chore: update stage0
This commit is contained in:
parent
a6c745e93e
commit
57ebfa45d2
3 changed files with 579 additions and 209 deletions
|
|
@ -186,7 +186,7 @@ fun stx => liftMetaTactic stx $ fun mvarId => do Meta.assumption mvarId; pure []
|
|||
/-
|
||||
@[builtinTactic «intro»] def evalIntro : Tactic :=
|
||||
fun stx => match_syntax stx with
|
||||
| `(tactic| intro) =>
|
||||
| `(tactic| intro) => `(tactic| intro _) >>= evalTactic
|
||||
-/
|
||||
|
||||
@[init] private def regTraceClasses : IO Unit := do
|
||||
|
|
|
|||
|
|
@ -21,9 +21,23 @@ categoryParser `tactic rbp
|
|||
|
||||
namespace Tactic
|
||||
|
||||
def underscoreFn {k : ParserKind} : ParserFn k :=
|
||||
fun a c s =>
|
||||
let s := symbolFn "_" a c s;
|
||||
let stx := s.stxStack.back;
|
||||
let s := s.popSyntax;
|
||||
s.pushSyntax $ mkIdentFrom stx `_
|
||||
|
||||
@[inline] def underscore {k : ParserKind} : Parser k :=
|
||||
{ fn := underscoreFn,
|
||||
info := mkAtomicInfo "ident" }
|
||||
|
||||
def ident' : Parser := ident <|> underscore
|
||||
|
||||
def seq := parser! sepBy tacticParser "; " true
|
||||
@[builtinTacticParser] def «intro» := parser! nonReservedSymbol "intro " >> optional ident
|
||||
@[builtinTacticParser] def «intros» := parser! nonReservedSymbol "intros " >> many ident
|
||||
|
||||
@[builtinTacticParser] def «intro» := parser! nonReservedSymbol "intro " >> optional ident'
|
||||
@[builtinTacticParser] def «intros» := parser! nonReservedSymbol "intros " >> many ident'
|
||||
@[builtinTacticParser] def «assumption» := parser! nonReservedSymbol "assumption"
|
||||
@[builtinTacticParser] def «apply» := parser! nonReservedSymbol "apply " >> termParser
|
||||
@[builtinTacticParser] def nestedTacticBlock := parser! "begin " >> seq >> "end"
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ lean_object* l_Lean_Parser_Tactic_orelse___closed__2;
|
|||
lean_object* l_Lean_Parser_Tactic_intros___closed__7;
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__4;
|
||||
extern lean_object* l_Lean_Parser_manyAux___main___closed__1;
|
||||
extern lean_object* l_Lean_Parser_declareLeadingBuiltinParser___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__5;
|
||||
lean_object* l_Lean_Parser_andthenInfo(lean_object*, lean_object*);
|
||||
|
|
@ -30,6 +31,7 @@ lean_object* l_Lean_Parser_Tactic_apply___closed__2;
|
|||
lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__1;
|
||||
lean_object* l_Lean_Parser_sepByInfo(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__14;
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__5;
|
||||
extern lean_object* l_Lean_nullKind;
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__2;
|
||||
|
|
@ -60,13 +62,17 @@ extern lean_object* l_Lean_Parser_Term_subtype___closed__1;
|
|||
lean_object* l_Lean_Parser_ParserState_mkNode(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_apply___closed__4;
|
||||
lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__3;
|
||||
lean_object* l_Lean_Parser_Tactic_underscore___boxed(lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__7;
|
||||
lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_Tactic_orelse___closed__7;
|
||||
lean_object* l_Lean_Parser_regTacticParserAttribute___closed__1;
|
||||
lean_object* l_Lean_Parser_Tactic_underscore(uint8_t);
|
||||
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_registerBuiltinDynamicParserAttribute(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_regBuiltinTacticParserAttr(lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__6;
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn___rarg___closed__4;
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_addBuiltinParser(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -84,6 +90,7 @@ lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__8;
|
|||
lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__5;
|
||||
lean_object* l_Lean_Parser_ParserState_mkErrorsAt(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_orelse___closed__5;
|
||||
lean_object* l_Lean_Parser_Tactic_ident_x27___elambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_intros___closed__3;
|
||||
lean_object* l_Lean_Parser_Tactic_apply___closed__5;
|
||||
lean_object* l_Lean_Parser_Tactic_assumption___closed__4;
|
||||
|
|
@ -99,14 +106,16 @@ lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__6;
|
|||
lean_object* l_Lean_Parser_Tactic_assumption;
|
||||
lean_object* l_Lean_Parser_Tactic_intros___elambda__1(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__5;
|
||||
extern lean_object* l_Lean_Parser_identNoAntiquot___closed__1;
|
||||
lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__4;
|
||||
lean_object* l_Lean_Parser_manyAux___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__3;
|
||||
lean_object* l_Lean_Parser_nonReservedSymbolFnAux(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Name_appendIndexAfter___closed__1;
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__1;
|
||||
lean_object* l_Lean_Parser_Tactic_seq___closed__5;
|
||||
lean_object* l_Lean_Parser_Tactic_ident_x27___closed__2;
|
||||
lean_object* l_Lean_Parser_nodeInfo(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_seq___closed__3;
|
||||
lean_object* l_Lean_Parser_Tactic_assumption___closed__1;
|
||||
|
|
@ -114,7 +123,10 @@ lean_object* l_Lean_Parser_Tactic_apply___closed__3;
|
|||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_noFirstTokenInfo(lean_object*);
|
||||
lean_object* l_Lean_Parser_nonReservedSymbolInfo(lean_object*, uint8_t);
|
||||
lean_object* l_Lean_Parser_Tactic_ident_x27___closed__1;
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn___rarg___closed__1;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Tactic_intros(lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_ident_x27___closed__3;
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__12;
|
||||
lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__3;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot(lean_object*);
|
||||
|
|
@ -145,6 +157,7 @@ extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2;
|
|||
lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__5;
|
||||
extern lean_object* l_Lean_Parser_Level_paren___elambda__1___closed__11;
|
||||
lean_object* l_Lean_Parser_Tactic_assumption___closed__2;
|
||||
lean_object* l_Lean_Parser_Tactic_ident_x27;
|
||||
lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__8;
|
||||
lean_object* l_Lean_Parser_Tactic_intro___closed__7;
|
||||
lean_object* l_Lean_Parser_registerBuiltinParserAttribute(lean_object*, lean_object*, uint8_t, lean_object*);
|
||||
|
|
@ -159,6 +172,7 @@ lean_object* l_Lean_Parser_Tactic_apply;
|
|||
lean_object* l_Lean_Parser_Tactic_assumption___closed__5;
|
||||
lean_object* l_Array_back___at___private_Init_Lean_Parser_Parser_6__updateCache___spec__1(lean_object*);
|
||||
lean_object* l_Lean_Parser_ParserState_restore(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_ParserState_popSyntax(lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Level_paren___closed__4;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__1;
|
||||
extern lean_object* l_Lean_Parser_Term_seq___elambda__1___closed__1;
|
||||
|
|
@ -166,20 +180,24 @@ lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__1;
|
|||
extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_Tactic_orelse;
|
||||
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intros___elambda__1___spec__1(uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_categoryParserFn(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_intros___closed__4;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Term_tacticStxQuot___closed__2;
|
||||
lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__5;
|
||||
extern lean_object* l_Lean_Parser_regBuiltinTermParserAttr___closed__4;
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn(uint8_t, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__2;
|
||||
lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___rarg___closed__1;
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn___rarg___closed__3;
|
||||
lean_object* l_Lean_Parser_Term_tacticStxQuot___elambda__1___rarg___closed__2;
|
||||
lean_object* l_Lean_Parser_mergeOrElseErrors(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_categoryParser(uint8_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_intro___elambda__1___closed__4;
|
||||
lean_object* l_Lean_Parser_regTacticParserAttribute(lean_object*);
|
||||
lean_object* l_Lean_Parser_symbolInfo(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn___rarg___closed__2;
|
||||
lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__6;
|
||||
extern lean_object* l_Lean_Parser_epsilonInfo;
|
||||
lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__1;
|
||||
|
|
@ -214,8 +232,10 @@ lean_object* l_Lean_Parser_Tactic_seq___closed__1;
|
|||
lean_object* l_Lean_Parser_Term_tacticBlock___closed__6;
|
||||
lean_object* l_Lean_Parser_Tactic_intro___closed__2;
|
||||
lean_object* l_Lean_Parser_regBuiltinTacticParserAttr___closed__3;
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_mkAntiquot(uint8_t, lean_object*, lean_object*, uint8_t);
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__5;
|
||||
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intros___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__7;
|
||||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__3;
|
||||
lean_object* l_Lean_Parser_Tactic_intro___closed__1;
|
||||
|
|
@ -229,6 +249,7 @@ lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__4;
|
|||
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed__7;
|
||||
lean_object* l_Lean_Parser_Tactic_seq___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__3;
|
||||
lean_object* l_Lean_Parser_ParserState_mkUnexpectedError(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__8;
|
||||
lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__8;
|
||||
lean_object* l_Lean_Parser_Tactic_assumption___elambda__1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -341,6 +362,262 @@ x_4 = l_Lean_Parser_tacticParser(x_3, x_2);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_underscoreFn___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Char_HasRepr___closed__1;
|
||||
x_2 = l_Lean_Name_appendIndexAfter___closed__1;
|
||||
x_3 = lean_string_append(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_underscoreFn___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_underscoreFn___rarg___closed__1;
|
||||
x_2 = l_Char_HasRepr___closed__1;
|
||||
x_3 = lean_string_append(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_underscoreFn___rarg___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Parser_Tactic_underscoreFn___rarg___closed__2;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_underscoreFn___rarg___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Name_appendIndexAfter___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_3 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_3);
|
||||
x_4 = l_Lean_Parser_tokenFn(x_1, x_2);
|
||||
x_5 = lean_ctor_get(x_4, 3);
|
||||
lean_inc(x_5);
|
||||
if (lean_obj_tag(x_5) == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15;
|
||||
x_14 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__updateCache___spec__1(x_14);
|
||||
lean_dec(x_14);
|
||||
if (lean_obj_tag(x_15) == 2)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_16 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_15);
|
||||
x_17 = l_Lean_Name_appendIndexAfter___closed__1;
|
||||
x_18 = lean_string_dec_eq(x_16, x_17);
|
||||
lean_dec(x_16);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
x_19 = l_Lean_Parser_Tactic_underscoreFn___rarg___closed__3;
|
||||
x_20 = l_Lean_Parser_ParserState_mkErrorsAt(x_4, x_19, x_3);
|
||||
x_6 = x_20;
|
||||
goto block_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_3);
|
||||
x_6 = x_4;
|
||||
goto block_13;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22;
|
||||
lean_dec(x_15);
|
||||
x_21 = l_Lean_Parser_Tactic_underscoreFn___rarg___closed__3;
|
||||
x_22 = l_Lean_Parser_ParserState_mkErrorsAt(x_4, x_21, x_3);
|
||||
x_6 = x_22;
|
||||
goto block_13;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
lean_dec(x_5);
|
||||
x_23 = l_Lean_Parser_Tactic_underscoreFn___rarg___closed__3;
|
||||
x_24 = l_Lean_Parser_ParserState_mkErrorsAt(x_4, x_23, x_3);
|
||||
x_6 = x_24;
|
||||
goto block_13;
|
||||
}
|
||||
block_13:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_7 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_7);
|
||||
x_8 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__updateCache___spec__1(x_7);
|
||||
lean_dec(x_7);
|
||||
x_9 = l_Lean_Parser_ParserState_popSyntax(x_6);
|
||||
x_10 = l_Lean_Parser_Tactic_underscoreFn___rarg___closed__4;
|
||||
x_11 = l_Lean_mkIdentFrom(x_8, x_10);
|
||||
lean_dec(x_8);
|
||||
x_12 = l_Lean_Parser_ParserState_pushSyntax(x_9, x_11);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn(uint8_t x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_underscoreFn___rarg), 2, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_Tactic_underscoreFn___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_4 = l_Lean_Parser_Tactic_underscoreFn(x_3, x_2);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_Tactic_underscore(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = lean_box(x_1);
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_underscoreFn___boxed), 2, 1);
|
||||
lean_closure_set(x_3, 0, x_2);
|
||||
x_4 = l_Lean_Parser_identNoAntiquot___closed__1;
|
||||
x_5 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
lean_ctor_set(x_5, 1, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_Tactic_underscore___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lean_Parser_Tactic_underscore(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_Tactic_ident_x27___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_4 = l_Lean_Parser_Level_ident___elambda__1___closed__4;
|
||||
x_5 = lean_ctor_get(x_4, 1);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
lean_dec(x_6);
|
||||
x_8 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_2);
|
||||
x_9 = lean_apply_3(x_5, x_1, x_2, x_3);
|
||||
x_10 = lean_ctor_get(x_9, 3);
|
||||
lean_inc(x_10);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_nat_dec_eq(x_12, x_8);
|
||||
lean_dec(x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
lean_inc(x_8);
|
||||
x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
x_15 = l_Lean_Parser_Tactic_underscoreFn___rarg(x_2, x_14);
|
||||
x_16 = l_Lean_Parser_mergeOrElseErrors(x_15, x_11, x_8);
|
||||
lean_dec(x_8);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_ident_x27___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Level_ident___elambda__1___closed__4;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_identNoAntiquot___closed__1;
|
||||
x_4 = l_Lean_Parser_orelseInfo(x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_ident_x27___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_ident_x27___elambda__1), 3, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_ident_x27___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_ident_x27___closed__1;
|
||||
x_2 = l_Lean_Parser_Tactic_ident_x27___closed__2;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_ident_x27() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Parser_Tactic_ident_x27___closed__3;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Tactic_seq___elambda__1___spec__2(uint8_t x_1, uint8_t x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -793,139 +1070,133 @@ return x_3;
|
|||
lean_object* l_Lean_Parser_Tactic_intro___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_4 = l_Lean_Parser_Level_ident___elambda__1___closed__4;
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_4 = l_Lean_Parser_Tactic_intro___elambda__1___closed__4;
|
||||
x_5 = lean_ctor_get(x_4, 1);
|
||||
lean_inc(x_5);
|
||||
x_6 = l_Lean_Parser_Tactic_intro___elambda__1___closed__4;
|
||||
x_7 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_3, 0);
|
||||
x_6 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
lean_dec(x_6);
|
||||
x_8 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_array_get_size(x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_11 = lean_apply_3(x_7, x_1, x_2, x_3);
|
||||
x_12 = lean_ctor_get(x_11, 3);
|
||||
lean_inc(x_12);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_12);
|
||||
x_14 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_nat_dec_eq(x_14, x_10);
|
||||
lean_dec(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_9 = lean_apply_3(x_5, x_1, x_2, x_3);
|
||||
x_10 = lean_ctor_get(x_9, 3);
|
||||
lean_inc(x_10);
|
||||
x_16 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_array_get_size(x_17);
|
||||
lean_dec(x_17);
|
||||
x_19 = l_Lean_Parser_Tactic_intro___elambda__1___closed__6;
|
||||
x_20 = l_Lean_Parser_Tactic_intro___elambda__1___closed__8;
|
||||
lean_inc(x_2);
|
||||
x_21 = l_Lean_Parser_nonReservedSymbolFnAux(x_19, x_20, x_2, x_16);
|
||||
x_22 = lean_ctor_get(x_21, 3);
|
||||
lean_inc(x_22);
|
||||
if (lean_obj_tag(x_22) == 0)
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_23);
|
||||
x_24 = lean_array_get_size(x_23);
|
||||
lean_dec(x_23);
|
||||
x_25 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_25);
|
||||
x_26 = lean_apply_3(x_5, x_1, x_2, x_21);
|
||||
x_27 = lean_ctor_get(x_26, 3);
|
||||
lean_inc(x_27);
|
||||
if (lean_obj_tag(x_27) == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_25);
|
||||
x_28 = l_Lean_nullKind;
|
||||
x_29 = l_Lean_Parser_ParserState_mkNode(x_26, x_28, x_24);
|
||||
x_30 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2;
|
||||
x_31 = l_Lean_Parser_ParserState_mkNode(x_29, x_30, x_18);
|
||||
x_32 = l_Lean_Parser_mergeOrElseErrors(x_31, x_13, x_10);
|
||||
lean_dec(x_10);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; uint8_t x_34;
|
||||
lean_dec(x_27);
|
||||
x_33 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_33);
|
||||
x_34 = lean_nat_dec_eq(x_33, x_25);
|
||||
lean_dec(x_33);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
lean_dec(x_25);
|
||||
x_35 = l_Lean_nullKind;
|
||||
x_36 = l_Lean_Parser_ParserState_mkNode(x_26, x_35, x_24);
|
||||
x_37 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2;
|
||||
x_38 = l_Lean_Parser_ParserState_mkNode(x_36, x_37, x_18);
|
||||
x_39 = l_Lean_Parser_mergeOrElseErrors(x_38, x_13, x_10);
|
||||
lean_dec(x_10);
|
||||
return x_39;
|
||||
}
|
||||
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 = l_Lean_Parser_ParserState_restore(x_26, x_24, x_25);
|
||||
x_41 = l_Lean_nullKind;
|
||||
x_42 = l_Lean_Parser_ParserState_mkNode(x_40, x_41, x_24);
|
||||
x_43 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2;
|
||||
x_44 = l_Lean_Parser_ParserState_mkNode(x_42, x_43, x_18);
|
||||
x_45 = l_Lean_Parser_mergeOrElseErrors(x_44, x_13, x_10);
|
||||
lean_dec(x_10);
|
||||
return x_45;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
lean_dec(x_22);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_46 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2;
|
||||
x_47 = l_Lean_Parser_ParserState_mkNode(x_21, x_46, x_18);
|
||||
x_48 = l_Lean_Parser_mergeOrElseErrors(x_47, x_13, x_10);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_10);
|
||||
return x_48;
|
||||
x_12 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_nat_dec_eq(x_12, x_8);
|
||||
lean_dec(x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_9;
|
||||
}
|
||||
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_inc(x_8);
|
||||
x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_array_get_size(x_15);
|
||||
lean_dec(x_15);
|
||||
x_17 = l_Lean_Parser_Tactic_intro___elambda__1___closed__6;
|
||||
x_18 = l_Lean_Parser_Tactic_intro___elambda__1___closed__8;
|
||||
lean_inc(x_2);
|
||||
x_19 = l_Lean_Parser_nonReservedSymbolFnAux(x_17, x_18, x_2, x_14);
|
||||
x_20 = lean_ctor_get(x_19, 3);
|
||||
lean_inc(x_20);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_array_get_size(x_21);
|
||||
lean_dec(x_21);
|
||||
x_23 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_23);
|
||||
x_24 = l_Lean_Parser_Tactic_ident_x27___elambda__1(x_1, x_2, x_19);
|
||||
x_25 = lean_ctor_get(x_24, 3);
|
||||
lean_inc(x_25);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
lean_dec(x_23);
|
||||
x_26 = l_Lean_nullKind;
|
||||
x_27 = l_Lean_Parser_ParserState_mkNode(x_24, x_26, x_22);
|
||||
x_28 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2;
|
||||
x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_16);
|
||||
x_30 = l_Lean_Parser_mergeOrElseErrors(x_29, x_11, x_8);
|
||||
lean_dec(x_8);
|
||||
return x_30;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; uint8_t x_32;
|
||||
lean_dec(x_25);
|
||||
x_31 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_nat_dec_eq(x_31, x_23);
|
||||
lean_dec(x_31);
|
||||
if (x_32 == 0)
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
lean_dec(x_23);
|
||||
x_33 = l_Lean_nullKind;
|
||||
x_34 = l_Lean_Parser_ParserState_mkNode(x_24, x_33, x_22);
|
||||
x_35 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2;
|
||||
x_36 = l_Lean_Parser_ParserState_mkNode(x_34, x_35, x_16);
|
||||
x_37 = l_Lean_Parser_mergeOrElseErrors(x_36, x_11, x_8);
|
||||
lean_dec(x_8);
|
||||
return x_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
x_38 = l_Lean_Parser_ParserState_restore(x_24, x_22, x_23);
|
||||
x_39 = l_Lean_nullKind;
|
||||
x_40 = l_Lean_Parser_ParserState_mkNode(x_38, x_39, x_22);
|
||||
x_41 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2;
|
||||
x_42 = l_Lean_Parser_ParserState_mkNode(x_40, x_41, x_16);
|
||||
x_43 = l_Lean_Parser_mergeOrElseErrors(x_42, x_11, x_8);
|
||||
lean_dec(x_8);
|
||||
return x_43;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_44 = l_Lean_Parser_Tactic_intro___elambda__1___closed__2;
|
||||
x_45 = l_Lean_Parser_ParserState_mkNode(x_19, x_44, x_16);
|
||||
x_46 = l_Lean_Parser_mergeOrElseErrors(x_45, x_11, x_8);
|
||||
lean_dec(x_8);
|
||||
return x_46;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -945,7 +1216,7 @@ lean_object* _init_l_Lean_Parser_Tactic_intro___closed__2() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Level_ident___elambda__1___closed__4;
|
||||
x_1 = l_Lean_Parser_Tactic_ident_x27;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_optionaInfo(x_2);
|
||||
|
|
@ -1024,6 +1295,71 @@ x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intros___elambda__1___spec__1(uint8_t 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;
|
||||
x_5 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_array_get_size(x_5);
|
||||
lean_dec(x_5);
|
||||
x_7 = lean_ctor_get(x_4, 1);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_8 = l_Lean_Parser_Tactic_ident_x27___elambda__1(x_2, x_3, x_4);
|
||||
x_9 = lean_ctor_get(x_8, 3);
|
||||
lean_inc(x_9);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10; uint8_t x_11;
|
||||
lean_dec(x_6);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_nat_dec_eq(x_7, x_10);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_7);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
x_4 = x_8;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_13 = l_Lean_Parser_manyAux___main___closed__1;
|
||||
x_14 = l_Lean_Parser_ParserState_mkUnexpectedError(x_8, x_13);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; uint8_t x_16;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_15 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_nat_dec_eq(x_7, x_15);
|
||||
lean_dec(x_15);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17;
|
||||
x_17 = l_Lean_Parser_ParserState_restore(x_8, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* _init_l_Lean_Parser_Tactic_intros___elambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1104,98 +1440,92 @@ return x_3;
|
|||
lean_object* l_Lean_Parser_Tactic_intros___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_4 = l_Lean_Parser_Level_ident___elambda__1___closed__4;
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_4 = l_Lean_Parser_Tactic_intros___elambda__1___closed__4;
|
||||
x_5 = lean_ctor_get(x_4, 1);
|
||||
lean_inc(x_5);
|
||||
x_6 = l_Lean_Parser_Tactic_intros___elambda__1___closed__4;
|
||||
x_7 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_3, 0);
|
||||
x_6 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
lean_dec(x_6);
|
||||
x_8 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_array_get_size(x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_11 = lean_apply_3(x_7, x_1, x_2, x_3);
|
||||
x_12 = lean_ctor_get(x_11, 3);
|
||||
lean_inc(x_12);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_12);
|
||||
x_14 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_nat_dec_eq(x_14, x_10);
|
||||
lean_dec(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_9 = lean_apply_3(x_5, x_1, x_2, x_3);
|
||||
x_10 = lean_ctor_get(x_9, 3);
|
||||
lean_inc(x_10);
|
||||
x_16 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_array_get_size(x_17);
|
||||
lean_dec(x_17);
|
||||
x_19 = l_Lean_Parser_Tactic_intros___elambda__1___closed__6;
|
||||
x_20 = l_Lean_Parser_Tactic_intros___elambda__1___closed__8;
|
||||
lean_inc(x_2);
|
||||
x_21 = l_Lean_Parser_nonReservedSymbolFnAux(x_19, x_20, x_2, x_16);
|
||||
x_22 = lean_ctor_get(x_21, 3);
|
||||
lean_inc(x_22);
|
||||
if (lean_obj_tag(x_22) == 0)
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_23);
|
||||
x_24 = lean_array_get_size(x_23);
|
||||
lean_dec(x_23);
|
||||
x_25 = 0;
|
||||
x_26 = l_Lean_Parser_manyAux___main(x_25, x_5, x_1, x_2, x_21);
|
||||
x_27 = l_Lean_nullKind;
|
||||
x_28 = l_Lean_Parser_ParserState_mkNode(x_26, x_27, x_24);
|
||||
x_29 = l_Lean_Parser_Tactic_intros___elambda__1___closed__2;
|
||||
x_30 = l_Lean_Parser_ParserState_mkNode(x_28, x_29, x_18);
|
||||
x_31 = l_Lean_Parser_mergeOrElseErrors(x_30, x_13, x_10);
|
||||
lean_dec(x_10);
|
||||
return x_31;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
lean_dec(x_22);
|
||||
lean_dec(x_5);
|
||||
lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_nat_dec_eq(x_12, x_8);
|
||||
lean_dec(x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_32 = l_Lean_Parser_Tactic_intros___elambda__1___closed__2;
|
||||
x_33 = l_Lean_Parser_ParserState_mkNode(x_21, x_32, x_18);
|
||||
x_34 = l_Lean_Parser_mergeOrElseErrors(x_33, x_13, x_10);
|
||||
lean_dec(x_10);
|
||||
return x_34;
|
||||
return x_9;
|
||||
}
|
||||
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_inc(x_8);
|
||||
x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_array_get_size(x_15);
|
||||
lean_dec(x_15);
|
||||
x_17 = l_Lean_Parser_Tactic_intros___elambda__1___closed__6;
|
||||
x_18 = l_Lean_Parser_Tactic_intros___elambda__1___closed__8;
|
||||
lean_inc(x_2);
|
||||
x_19 = l_Lean_Parser_nonReservedSymbolFnAux(x_17, x_18, x_2, x_14);
|
||||
x_20 = lean_ctor_get(x_19, 3);
|
||||
lean_inc(x_20);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_array_get_size(x_21);
|
||||
lean_dec(x_21);
|
||||
x_23 = 0;
|
||||
x_24 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intros___elambda__1___spec__1(x_23, x_1, x_2, x_19);
|
||||
x_25 = l_Lean_nullKind;
|
||||
x_26 = l_Lean_Parser_ParserState_mkNode(x_24, x_25, x_22);
|
||||
x_27 = l_Lean_Parser_Tactic_intros___elambda__1___closed__2;
|
||||
x_28 = l_Lean_Parser_ParserState_mkNode(x_26, x_27, x_16);
|
||||
x_29 = l_Lean_Parser_mergeOrElseErrors(x_28, x_11, x_8);
|
||||
lean_dec(x_8);
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_30 = l_Lean_Parser_Tactic_intros___elambda__1___closed__2;
|
||||
x_31 = l_Lean_Parser_ParserState_mkNode(x_19, x_30, x_16);
|
||||
x_32 = l_Lean_Parser_mergeOrElseErrors(x_31, x_11, x_8);
|
||||
lean_dec(x_8);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1215,7 +1545,7 @@ lean_object* _init_l_Lean_Parser_Tactic_intros___closed__2() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Level_ident___elambda__1___closed__4;
|
||||
x_1 = l_Lean_Parser_Tactic_ident_x27;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_noFirstTokenInfo(x_2);
|
||||
|
|
@ -1282,6 +1612,16 @@ x_1 = l_Lean_Parser_Tactic_intros___closed__7;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intros___elambda__1___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5; lean_object* x_6;
|
||||
x_5 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_6 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intros___elambda__1___spec__1(x_5, x_2, x_3, x_4);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Tactic_intros(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -3520,6 +3860,22 @@ lean_mark_persistent(l_Lean_Parser_regTacticParserAttribute___closed__2);
|
|||
res = l_Lean_Parser_regTacticParserAttribute(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Parser_Tactic_underscoreFn___rarg___closed__1 = _init_l_Lean_Parser_Tactic_underscoreFn___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_underscoreFn___rarg___closed__1);
|
||||
l_Lean_Parser_Tactic_underscoreFn___rarg___closed__2 = _init_l_Lean_Parser_Tactic_underscoreFn___rarg___closed__2();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_underscoreFn___rarg___closed__2);
|
||||
l_Lean_Parser_Tactic_underscoreFn___rarg___closed__3 = _init_l_Lean_Parser_Tactic_underscoreFn___rarg___closed__3();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_underscoreFn___rarg___closed__3);
|
||||
l_Lean_Parser_Tactic_underscoreFn___rarg___closed__4 = _init_l_Lean_Parser_Tactic_underscoreFn___rarg___closed__4();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_underscoreFn___rarg___closed__4);
|
||||
l_Lean_Parser_Tactic_ident_x27___closed__1 = _init_l_Lean_Parser_Tactic_ident_x27___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27___closed__1);
|
||||
l_Lean_Parser_Tactic_ident_x27___closed__2 = _init_l_Lean_Parser_Tactic_ident_x27___closed__2();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27___closed__2);
|
||||
l_Lean_Parser_Tactic_ident_x27___closed__3 = _init_l_Lean_Parser_Tactic_ident_x27___closed__3();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27___closed__3);
|
||||
l_Lean_Parser_Tactic_ident_x27 = _init_l_Lean_Parser_Tactic_ident_x27();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_ident_x27);
|
||||
l_Lean_Parser_Tactic_seq___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_seq___elambda__1___closed__1);
|
||||
l_Lean_Parser_Tactic_seq___elambda__1___closed__2 = _init_l_Lean_Parser_Tactic_seq___elambda__1___closed__2();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue