diff --git a/src/stage0/init/control/monad.cpp b/src/stage0/init/control/monad.cpp index 497e554e10..96e70c2999 100644 --- a/src/stage0/init/control/monad.cpp +++ b/src/stage0/init/control/monad.cpp @@ -14,12 +14,44 @@ typedef lean::uint32 uint32; typedef lean::uint64 uint64; #pragma GCC diagnostic ignored "-Wunused-label" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif +obj* l_mcomp___boxed(obj*, obj*, obj*, obj*); obj* l_monadInhabited_x_27___rarg(obj*); obj* l_monadInhabited___rarg(obj*, obj*); obj* l_monadInhabited(obj*, obj*); +obj* l_mcomp(obj*, obj*, obj*, obj*); obj* l_monadInhabited_x_27___boxed(obj*, obj*); +obj* l_mcomp___rarg(obj*, obj*, obj*, obj*); obj* l_monadInhabited___boxed(obj*, obj*); obj* l_monadInhabited_x_27(obj*, obj*); +obj* l_mcomp___rarg(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +_start: +{ +obj* x_4; obj* x_5; +x_4 = lean::apply_1(x_1, x_3); +x_5 = lean::apply_4(x_0, lean::box(0), lean::box(0), x_4, x_2); +return x_5; +} +} +obj* l_mcomp(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +_start: +{ +obj* x_4; +x_4 = lean::alloc_closure(reinterpret_cast(l_mcomp___rarg), 4, 0); +return x_4; +} +} +obj* l_mcomp___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +_start: +{ +obj* x_4; +x_4 = l_mcomp(x_0, x_1, x_2, x_3); +lean::dec(x_0); +lean::dec(x_1); +lean::dec(x_2); +lean::dec(x_3); +return x_4; +} +} obj* l_monadInhabited___rarg(obj* x_0, obj* x_1) { _start: { diff --git a/src/stage0/init/lean/compiler/ir.cpp b/src/stage0/init/lean/compiler/ir.cpp index c12a2c9cd4..45032c8fbb 100644 --- a/src/stage0/init/lean/compiler/ir.cpp +++ b/src/stage0/init/lean/compiler/ir.cpp @@ -14,25 +14,24 @@ typedef lean::uint32 uint32; typedef lean::uint64 uint64; #pragma GCC diagnostic ignored "-Wunused-label" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif -obj* l_List_foldl___main___at___private_init_lean_compiler_ir_9__collectFnBody___main___spec__2(obj*, obj*, obj*); uint8 l_List_isEqv___main___at_Lean_IR_Fnbody_alphaEqv___main___spec__1(obj*, obj*, obj*); obj* l_Lean_IR_Litval_beq___main___boxed(obj*, obj*); extern "C" uint8 lean_name_dec_eq(obj*, obj*); uint8 l_Lean_IR_IRType_beq(uint8, uint8); uint8 l_Lean_IR_Arg_alphaEqv(obj*, obj*, obj*); +obj* l___private_init_lean_compiler_ir_10__collectFnBody(obj*, obj*, obj*); uint8 l_Lean_IR_IRType_beq___main(uint8, uint8); obj* l_Lean_IR_addParamRename(obj*, obj*, obj*); obj* l_Lean_IR_CtorInfo_HasBeq; obj* l___private_init_lean_compiler_ir_8__collectExpr___main(obj*, obj*, obj*); obj* l___private_init_lean_compiler_ir_3__withBv(obj*, obj*, obj*, obj*); -obj* l___private_init_lean_compiler_ir_5__Seq(obj*, obj*, obj*, obj*); +obj* l___private_init_lean_compiler_ir_10__collectFnBody___main(obj*, obj*, obj*); uint8 l_Lean_IR_VarId_alphaEqv(obj*, obj*, obj*); obj* l_Lean_IR_insertParams(obj*, obj*); uint8 l_Lean_IR_Fnbody_beq(obj*, obj*); obj* l___private_init_lean_compiler_ir_8__collectExpr(obj*, obj*, obj*); uint8 l_Lean_IR_CtorInfo_beq(obj*, obj*); obj* l_Lean_IR_Fnbody_HasBeq; -obj* l___private_init_lean_compiler_ir_9__collectFnBody___main(obj*, obj*, obj*); uint8 l_List_foldr___main___at_Lean_IR_Fnbody_isPure___main___spec__1(uint8, obj*); obj* l_Lean_IR_Alt_default(obj*); obj* l_Lean_IR_Fnbody_alphaEqv___boxed(obj*, obj*, obj*); @@ -63,7 +62,6 @@ obj* l_Lean_IR_Litval_HasBeq; uint8 l_Lean_IR_Litval_beq___main(obj*, obj*); uint8 l_Lean_KVMap_eqv(obj*, obj*); obj* l_Lean_IR_Expr_hasAeqv; -obj* l_List_foldl___main___at___private_init_lean_compiler_ir_9__collectFnBody___main___spec__1(obj*, obj*, obj*); obj* l_Lean_IR_args_alphaEqv___main___boxed(obj*, obj*, obj*); obj* l_Lean_IR_IRType_HasBeq; obj* l_Lean_NameMap_insert___rarg(obj*, obj*, obj*); @@ -72,10 +70,12 @@ namespace lean { uint8 string_dec_eq(obj*, obj*); } obj* l_Lean_IR_Litval_beq___boxed(obj*, obj*); +obj* l_Lean_IR_HasAndthen; obj* l_Lean_IR_Arg_alphaEqv___main___boxed(obj*, obj*, obj*); uint8 l_Lean_IR_args_alphaEqv___main(obj*, obj*, obj*); obj* l___private_init_lean_compiler_ir_7__collectArgs___main(obj*, obj*, obj*); obj* l_Lean_IR_Expr_isPure___main___boxed(obj*); +obj* l___private_init_lean_compiler_ir_5__seq(obj*, obj*, obj*, obj*); obj* l_Lean_IR_addVarRename(obj*, obj*, obj*); obj* l_Lean_IR_Fnbody_isPure___boxed(obj*); uint8 l_Lean_IR_Arg_alphaEqv___main(obj*, obj*, obj*); @@ -93,18 +93,20 @@ obj* l_Lean_IR_Arg_hasAeqv; obj* l_List_isEqv___main___at_Lean_IR_Fnbody_alphaEqv___main___spec__1___boxed(obj*, obj*, obj*); obj* l_Lean_IR_Alt_ctor(obj*, obj*); obj* l_Lean_IR_MData_HasEmptyc; -obj* l___private_init_lean_compiler_ir_9__collectFnBody(obj*, obj*, obj*); obj* l_Lean_IR_IRType_beq___boxed(obj*, obj*); obj* l_Lean_NameSet_insert(obj*, obj*); obj* l_RBNode_find___main___at_Lean_IR_VarId_alphaEqv___spec__1___boxed(obj*, obj*); obj* l_Lean_IR_Expr_alphaEqv___main___boxed(obj*, obj*, obj*); obj* l_Lean_IR_addParamsRename___main(obj*, obj*, obj*); obj* l___private_init_lean_compiler_ir_1__skip___rarg___boxed(obj*); +obj* l___private_init_lean_compiler_ir_10__collectFnBody___main___closed__1; obj* l_Lean_IR_Fnbody_beq___boxed(obj*, obj*); uint8 l_Lean_IR_Fnbody_isPure(obj*); obj* l___private_init_lean_compiler_ir_4__withParams(obj*, obj*, obj*, obj*); obj* l_Lean_IR_CtorInfo_beq___boxed(obj*, obj*); obj* l_Lean_IR_MData_empty; +obj* l___private_init_lean_compiler_ir_9__collectAlts___main(obj*, obj*, obj*, obj*); +obj* l___private_init_lean_compiler_ir_9__collectAlts(obj*, obj*, obj*, obj*); obj* l_Lean_IR_IRType_beq___main___boxed(obj*, obj*); obj* l___private_init_lean_compiler_ir_1__skip___rarg(obj*); obj* l_RBNode_find___main___at_Lean_IR_VarId_alphaEqv___spec__1(obj*, obj*); @@ -3091,7 +3093,7 @@ x_5 = lean::apply_2(x_1, x_4, x_3); return x_5; } } -obj* l___private_init_lean_compiler_ir_5__Seq(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +obj* l___private_init_lean_compiler_ir_5__seq(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { _start: { obj* x_5; obj* x_6; @@ -3101,6 +3103,14 @@ x_6 = lean::apply_2(x_1, x_2, x_5); return x_6; } } +obj* _init_l_Lean_IR_HasAndthen() { +_start: +{ +obj* x_0; +x_0 = lean::alloc_closure(reinterpret_cast(l___private_init_lean_compiler_ir_5__seq), 4, 0); +return x_0; +} +} obj* l___private_init_lean_compiler_ir_6__collectArg___main(obj* x_0, obj* x_1, obj* x_2) { _start: { @@ -3344,99 +3354,72 @@ x_3 = l___private_init_lean_compiler_ir_8__collectExpr___main(x_0, x_1, x_2); return x_3; } } -obj* l_List_foldl___main___at___private_init_lean_compiler_ir_9__collectFnBody___main___spec__1(obj* x_0, obj* x_1, obj* x_2) { +obj* l___private_init_lean_compiler_ir_9__collectAlts___main(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { _start: { -if (lean::obj_tag(x_2) == 0) +if (lean::obj_tag(x_1) == 0) { lean::dec(x_0); -return x_1; +lean::dec(x_2); +return x_3; } else { -obj* x_4; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -if (lean::obj_tag(x_4) == 0) -{ -obj* x_6; obj* x_9; obj* x_13; -x_6 = lean::cnstr_get(x_2, 1); +obj* x_6; +x_6 = lean::cnstr_get(x_1, 0); lean::inc(x_6); -lean::dec(x_2); -x_9 = lean::cnstr_get(x_4, 1); -lean::inc(x_9); -lean::dec(x_4); +if (lean::obj_tag(x_6) == 0) +{ +obj* x_8; obj* x_11; obj* x_16; +x_8 = lean::cnstr_get(x_1, 1); +lean::inc(x_8); +lean::dec(x_1); +x_11 = lean::cnstr_get(x_6, 1); +lean::inc(x_11); +lean::dec(x_6); +lean::inc(x_2); lean::inc(x_0); -x_13 = l___private_init_lean_compiler_ir_9__collectFnBody___main(x_9, x_0, x_1); -x_1 = x_13; -x_2 = x_6; +x_16 = lean::apply_3(x_0, x_11, x_2, x_3); +x_1 = x_8; +x_3 = x_16; goto _start; } else { -obj* x_15; obj* x_18; obj* x_22; -x_15 = lean::cnstr_get(x_2, 1); -lean::inc(x_15); -lean::dec(x_2); -x_18 = lean::cnstr_get(x_4, 0); +obj* x_18; obj* x_21; obj* x_26; +x_18 = lean::cnstr_get(x_1, 1); lean::inc(x_18); -lean::dec(x_4); +lean::dec(x_1); +x_21 = lean::cnstr_get(x_6, 0); +lean::inc(x_21); +lean::dec(x_6); +lean::inc(x_2); lean::inc(x_0); -x_22 = l___private_init_lean_compiler_ir_9__collectFnBody___main(x_18, x_0, x_1); -x_1 = x_22; -x_2 = x_15; +x_26 = lean::apply_3(x_0, x_21, x_2, x_3); +x_1 = x_18; +x_3 = x_26; goto _start; } } } } -obj* l_List_foldl___main___at___private_init_lean_compiler_ir_9__collectFnBody___main___spec__2(obj* x_0, obj* x_1, obj* x_2) { +obj* l___private_init_lean_compiler_ir_9__collectAlts(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { _start: { -if (lean::obj_tag(x_2) == 0) -{ -lean::dec(x_0); -return x_1; -} -else -{ obj* x_4; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -if (lean::obj_tag(x_4) == 0) +x_4 = l___private_init_lean_compiler_ir_9__collectAlts___main(x_0, x_1, x_2, x_3); +return x_4; +} +} +obj* _init_l___private_init_lean_compiler_ir_10__collectFnBody___main___closed__1() { +_start: { -obj* x_6; obj* x_9; obj* x_13; -x_6 = lean::cnstr_get(x_2, 1); -lean::inc(x_6); -lean::dec(x_2); -x_9 = lean::cnstr_get(x_4, 1); -lean::inc(x_9); -lean::dec(x_4); -lean::inc(x_0); -x_13 = l___private_init_lean_compiler_ir_9__collectFnBody___main(x_9, x_0, x_1); -x_1 = x_13; -x_2 = x_6; -goto _start; -} -else -{ -obj* x_15; obj* x_18; obj* x_22; -x_15 = lean::cnstr_get(x_2, 1); -lean::inc(x_15); -lean::dec(x_2); -x_18 = lean::cnstr_get(x_4, 0); -lean::inc(x_18); -lean::dec(x_4); -lean::inc(x_0); -x_22 = l___private_init_lean_compiler_ir_9__collectFnBody___main(x_18, x_0, x_1); -x_1 = x_22; -x_2 = x_15; -goto _start; +obj* x_0; +x_0 = lean::alloc_closure(reinterpret_cast(l___private_init_lean_compiler_ir_10__collectFnBody___main), 3, 0); +return x_0; } } -} -} -obj* l___private_init_lean_compiler_ir_9__collectFnBody___main(obj* x_0, obj* x_1, obj* x_2) { +obj* l___private_init_lean_compiler_ir_10__collectFnBody___main(obj* x_0, obj* x_1, obj* x_2) { _start: { switch (lean::obj_tag(x_0)) { @@ -3472,7 +3455,7 @@ lean::inc(x_20); lean::dec(x_0); lean::inc(x_1); x_24 = l_List_foldl___main___at_Lean_IR_insertParams___spec__1(x_1, x_16); -x_25 = l___private_init_lean_compiler_ir_9__collectFnBody___main(x_18, x_24, x_2); +x_25 = l___private_init_lean_compiler_ir_10__collectFnBody___main(x_18, x_24, x_2); x_26 = l_Lean_NameSet_insert(x_1, x_14); x_0 = x_20; x_1 = x_26; @@ -3659,61 +3642,63 @@ lean::inc(x_1); x_101 = l_Lean_NameSet_contains(x_1, x_95); if (x_101 == 0) { -obj* x_102; obj* x_103; +obj* x_102; obj* x_103; obj* x_104; x_102 = l_Lean_NameSet_insert(x_2, x_95); -x_103 = l_List_foldl___main___at___private_init_lean_compiler_ir_9__collectFnBody___main___spec__1(x_1, x_102, x_97); -return x_103; +x_103 = l___private_init_lean_compiler_ir_10__collectFnBody___main___closed__1; +x_104 = l___private_init_lean_compiler_ir_9__collectAlts___main(x_103, x_97, x_1, x_102); +return x_104; } else { -obj* x_105; +obj* x_106; obj* x_107; lean::dec(x_95); -x_105 = l_List_foldl___main___at___private_init_lean_compiler_ir_9__collectFnBody___main___spec__2(x_1, x_2, x_97); -return x_105; +x_106 = l___private_init_lean_compiler_ir_10__collectFnBody___main___closed__1; +x_107 = l___private_init_lean_compiler_ir_9__collectAlts___main(x_106, x_97, x_1, x_2); +return x_107; } } case 10: { -obj* x_106; uint8 x_109; -x_106 = lean::cnstr_get(x_0, 0); -lean::inc(x_106); +obj* x_108; uint8 x_111; +x_108 = lean::cnstr_get(x_0, 0); +lean::inc(x_108); lean::dec(x_0); -x_109 = l_Lean_NameSet_contains(x_1, x_106); -if (x_109 == 0) +x_111 = l_Lean_NameSet_contains(x_1, x_108); +if (x_111 == 0) { -obj* x_110; -x_110 = l_Lean_NameSet_insert(x_2, x_106); -return x_110; +obj* x_112; +x_112 = l_Lean_NameSet_insert(x_2, x_108); +return x_112; } else { -lean::dec(x_106); +lean::dec(x_108); return x_2; } } case 11: { -obj* x_112; obj* x_114; uint8 x_118; -x_112 = lean::cnstr_get(x_0, 0); -lean::inc(x_112); -x_114 = lean::cnstr_get(x_0, 1); +obj* x_114; obj* x_116; uint8 x_120; +x_114 = lean::cnstr_get(x_0, 0); lean::inc(x_114); +x_116 = lean::cnstr_get(x_0, 1); +lean::inc(x_116); lean::dec(x_0); lean::inc(x_1); -x_118 = l_Lean_NameSet_contains(x_1, x_112); -if (x_118 == 0) +x_120 = l_Lean_NameSet_contains(x_1, x_114); +if (x_120 == 0) { -obj* x_119; obj* x_120; -x_119 = l_Lean_NameSet_insert(x_2, x_112); -x_120 = l___private_init_lean_compiler_ir_7__collectArgs___main(x_114, x_1, x_119); -return x_120; +obj* x_121; obj* x_122; +x_121 = l_Lean_NameSet_insert(x_2, x_114); +x_122 = l___private_init_lean_compiler_ir_7__collectArgs___main(x_116, x_1, x_121); +return x_122; } else { -obj* x_122; -lean::dec(x_112); -x_122 = l___private_init_lean_compiler_ir_7__collectArgs___main(x_114, x_1, x_2); -return x_122; +obj* x_124; +lean::dec(x_114); +x_124 = l___private_init_lean_compiler_ir_7__collectArgs___main(x_116, x_1, x_2); +return x_124; } } case 12: @@ -3723,37 +3708,37 @@ return x_2; } default: { -obj* x_124; obj* x_126; uint8 x_130; -x_124 = lean::cnstr_get(x_0, 0); -lean::inc(x_124); -x_126 = lean::cnstr_get(x_0, 2); +obj* x_126; obj* x_128; uint8 x_132; +x_126 = lean::cnstr_get(x_0, 0); lean::inc(x_126); +x_128 = lean::cnstr_get(x_0, 2); +lean::inc(x_128); lean::dec(x_0); lean::inc(x_1); -x_130 = l_Lean_NameSet_contains(x_1, x_124); -if (x_130 == 0) +x_132 = l_Lean_NameSet_contains(x_1, x_126); +if (x_132 == 0) { -obj* x_131; -x_131 = l_Lean_NameSet_insert(x_2, x_124); -x_0 = x_126; -x_2 = x_131; +obj* x_133; +x_133 = l_Lean_NameSet_insert(x_2, x_126); +x_0 = x_128; +x_2 = x_133; goto _start; } else { -lean::dec(x_124); -x_0 = x_126; +lean::dec(x_126); +x_0 = x_128; goto _start; } } } } } -obj* l___private_init_lean_compiler_ir_9__collectFnBody(obj* x_0, obj* x_1, obj* x_2) { +obj* l___private_init_lean_compiler_ir_10__collectFnBody(obj* x_0, obj* x_1, obj* x_2) { _start: { obj* x_3; -x_3 = l___private_init_lean_compiler_ir_9__collectFnBody___main(x_0, x_1, x_2); +x_3 = l___private_init_lean_compiler_ir_10__collectFnBody___main(x_0, x_1, x_2); return x_3; } } @@ -3762,7 +3747,7 @@ _start: { obj* x_1; obj* x_2; x_1 = lean::box(0); -x_2 = l___private_init_lean_compiler_ir_9__collectFnBody___main(x_0, x_1, x_1); +x_2 = l___private_init_lean_compiler_ir_10__collectFnBody___main(x_0, x_1, x_1); return x_2; } } @@ -3799,5 +3784,9 @@ lean::mark_persistent(l_Lean_IR_args_hasAeqv); lean::mark_persistent(l_Lean_IR_Expr_hasAeqv); l_Lean_IR_Fnbody_HasBeq = _init_l_Lean_IR_Fnbody_HasBeq(); lean::mark_persistent(l_Lean_IR_Fnbody_HasBeq); + l_Lean_IR_HasAndthen = _init_l_Lean_IR_HasAndthen(); +lean::mark_persistent(l_Lean_IR_HasAndthen); + l___private_init_lean_compiler_ir_10__collectFnBody___main___closed__1 = _init_l___private_init_lean_compiler_ir_10__collectFnBody___main___closed__1(); +lean::mark_persistent(l___private_init_lean_compiler_ir_10__collectFnBody___main___closed__1); return w; } diff --git a/src/stage0/init/lean/compiler/util.cpp b/src/stage0/init/lean/compiler/util.cpp index 382c4017fe..81c8b897d5 100644 --- a/src/stage0/init/lean/compiler/util.cpp +++ b/src/stage0/init/lean/compiler/util.cpp @@ -15,6 +15,7 @@ typedef lean::uint32 uint32; typedef lean::uint64 uint64; #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif extern "C" uint8 lean_name_dec_eq(obj*, obj*); +obj* l_Lean_Compiler_atMostOnce_HasAndthen; obj* l_Lean_Compiler_atMostOnce_seq(obj*, obj*, obj*); extern "C" obj* lean_expr_mk_app(obj*, obj*); namespace lean { @@ -128,6 +129,14 @@ return x_6; } } } +obj* _init_l_Lean_Compiler_atMostOnce_HasAndthen() { +_start: +{ +obj* x_0; +x_0 = lean::alloc_closure(reinterpret_cast(l_Lean_Compiler_atMostOnce_seq), 3, 0); +return x_0; +} +} obj* l_Lean_Compiler_atMostOnce_skip(obj* x_0) { _start: { @@ -640,6 +649,8 @@ lean::mark_persistent(l_Lean_Compiler_objectType); lean::mark_persistent(l_Lean_Compiler_voidType); l_Lean_Compiler_mkLcProof___closed__1 = _init_l_Lean_Compiler_mkLcProof___closed__1(); lean::mark_persistent(l_Lean_Compiler_mkLcProof___closed__1); + l_Lean_Compiler_atMostOnce_HasAndthen = _init_l_Lean_Compiler_atMostOnce_HasAndthen(); +lean::mark_persistent(l_Lean_Compiler_atMostOnce_HasAndthen); l_Lean_Compiler_atMostOnce___closed__1 = _init_l_Lean_Compiler_atMostOnce___closed__1(); lean::mark_persistent(l_Lean_Compiler_atMostOnce___closed__1); return w; diff --git a/src/stage0/init/lean/parser/identifier.cpp b/src/stage0/init/lean/parser/identifier.cpp index edeaa6f127..9569045624 100644 --- a/src/stage0/init/lean/parser/identifier.cpp +++ b/src/stage0/init/lean/parser/identifier.cpp @@ -1219,26 +1219,26 @@ return x_2; obj* l_Lean_Parser_idPartEscaped___rarg(obj* x_0, obj* x_1, obj* x_2) { _start: { -obj* x_3; obj* x_6; obj* x_8; uint32 x_11; obj* x_14; obj* x_17; obj* x_18; uint32 x_19; obj* x_20; obj* x_21; +obj* x_3; obj* x_6; uint32 x_8; obj* x_11; obj* x_12; obj* x_17; uint32 x_18; obj* x_19; obj* x_20; obj* x_21; x_3 = lean::cnstr_get(x_2, 0); lean::inc(x_3); lean::dec(x_2); -x_6 = lean::cnstr_get(x_3, 3); +x_6 = lean::cnstr_get(x_3, 4); lean::inc(x_6); -x_8 = lean::cnstr_get(x_3, 4); -lean::inc(x_8); -lean::dec(x_3); -x_11 = l_Lean_idBeginEscape; +x_8 = l_Lean_idBeginEscape; lean::inc(x_1); lean::inc(x_0); -x_14 = l_Lean_Parser_MonadParsec_ch___rarg(x_0, x_1, x_11); +x_11 = l_Lean_Parser_MonadParsec_ch___rarg(x_0, x_1, x_8); +x_12 = lean::cnstr_get(x_3, 3); +lean::inc(x_12); +lean::dec(x_3); lean::inc(x_1); lean::inc(x_0); x_17 = l_Lean_Parser_MonadParsec_takeWhile1___at_Lean_Parser_idPartEscaped___spec__1___rarg(x_0, x_1); -x_18 = lean::apply_4(x_8, lean::box(0), lean::box(0), x_14, x_17); -x_19 = l_Lean_idEndEscape; -x_20 = l_Lean_Parser_MonadParsec_ch___rarg(x_0, x_1, x_19); -x_21 = lean::apply_4(x_6, lean::box(0), lean::box(0), x_18, x_20); +x_18 = l_Lean_idEndEscape; +x_19 = l_Lean_Parser_MonadParsec_ch___rarg(x_0, x_1, x_18); +x_20 = lean::apply_4(x_12, lean::box(0), lean::box(0), x_17, x_19); +x_21 = lean::apply_4(x_6, lean::box(0), lean::box(0), x_11, x_20); return x_21; } } diff --git a/src/stage0/init/lean/parser/token.cpp b/src/stage0/init/lean/parser/token.cpp index 94016352f4..93d2eec0bb 100644 --- a/src/stage0/init/lean/parser/token.cpp +++ b/src/stage0/init/lean/parser/token.cpp @@ -1794,7 +1794,7 @@ x_26 = lean::cnstr_get(x_25, 0); lean::inc(x_26); if (lean::obj_tag(x_26) == 0) { -obj* x_28; obj* x_31; obj* x_33; obj* x_36; obj* x_37; obj* x_39; obj* x_42; +obj* x_28; obj* x_31; obj* x_33; obj* x_36; obj* x_37; x_28 = lean::cnstr_get(x_25, 1); lean::inc(x_28); lean::dec(x_25); @@ -1806,580 +1806,608 @@ lean::dec(x_26); x_36 = l_Lean_Parser_MonadParsec_takeWhile_x_27___at___private_init_lean_parser_token_2__whitespaceAux___main___spec__5___rarg(x_31, x_28); x_37 = lean::cnstr_get(x_36, 0); lean::inc(x_37); +if (lean::obj_tag(x_37) == 0) +{ +obj* x_39; obj* x_42; obj* x_44; obj* x_47; obj* x_48; obj* x_50; obj* x_53; obj* x_54; x_39 = lean::cnstr_get(x_36, 1); lean::inc(x_39); lean::dec(x_36); -x_42 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_33, x_37); -if (lean::obj_tag(x_42) == 0) -{ -obj* x_43; obj* x_45; obj* x_48; obj* x_49; obj* x_51; obj* x_54; -x_43 = lean::cnstr_get(x_42, 1); -lean::inc(x_43); -x_45 = lean::cnstr_get(x_42, 2); -lean::inc(x_45); -lean::dec(x_42); -x_48 = l___private_init_lean_parser_token_2__whitespaceAux___main(x_18, x_1, x_43, x_39); -x_49 = lean::cnstr_get(x_48, 0); -lean::inc(x_49); -x_51 = lean::cnstr_get(x_48, 1); -lean::inc(x_51); -lean::dec(x_48); -x_54 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_45, x_49); +x_42 = lean::cnstr_get(x_37, 1); +lean::inc(x_42); +x_44 = lean::cnstr_get(x_37, 2); +lean::inc(x_44); +lean::dec(x_37); +x_47 = l___private_init_lean_parser_token_2__whitespaceAux___main(x_18, x_1, x_42, x_39); +x_48 = lean::cnstr_get(x_47, 0); +lean::inc(x_48); +x_50 = lean::cnstr_get(x_47, 1); +lean::inc(x_50); +lean::dec(x_47); +x_53 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_44, x_48); +x_54 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_33, x_53); x_19 = x_54; -x_20 = x_51; +x_20 = x_50; goto lbl_21; } else { -obj* x_55; uint8 x_57; obj* x_58; obj* x_59; obj* x_60; -x_55 = lean::cnstr_get(x_42, 0); -x_57 = lean::cnstr_get_scalar(x_42, sizeof(void*)*1); -if (lean::is_exclusive(x_42)) { - x_58 = x_42; +obj* x_55; obj* x_58; uint8 x_60; obj* x_61; obj* x_62; obj* x_63; obj* x_64; +x_55 = lean::cnstr_get(x_36, 1); +lean::inc(x_55); +lean::dec(x_36); +x_58 = lean::cnstr_get(x_37, 0); +x_60 = lean::cnstr_get_scalar(x_37, sizeof(void*)*1); +if (lean::is_exclusive(x_37)) { + x_61 = x_37; } else { - lean::inc(x_55); - lean::dec(x_42); - x_58 = lean::box(0); + lean::inc(x_58); + lean::dec(x_37); + x_61 = lean::box(0); } -if (lean::is_scalar(x_58)) { - x_59 = lean::alloc_cnstr(1, 1, 1); +if (lean::is_scalar(x_61)) { + x_62 = lean::alloc_cnstr(1, 1, 1); } else { - x_59 = x_58; + x_62 = x_61; } -lean::cnstr_set(x_59, 0, x_55); -lean::cnstr_set_scalar(x_59, sizeof(void*)*1, x_57); -x_60 = x_59; -x_19 = x_60; -x_20 = x_39; +lean::cnstr_set(x_62, 0, x_58); +lean::cnstr_set_scalar(x_62, sizeof(void*)*1, x_60); +x_63 = x_62; +x_64 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_33, x_63); +x_19 = x_64; +x_20 = x_55; goto lbl_21; } } else { -obj* x_61; obj* x_64; uint8 x_66; obj* x_67; obj* x_68; obj* x_69; -x_61 = lean::cnstr_get(x_25, 1); -lean::inc(x_61); +obj* x_65; obj* x_68; uint8 x_70; obj* x_71; obj* x_72; obj* x_73; +x_65 = lean::cnstr_get(x_25, 1); +lean::inc(x_65); lean::dec(x_25); -x_64 = lean::cnstr_get(x_26, 0); -x_66 = lean::cnstr_get_scalar(x_26, sizeof(void*)*1); +x_68 = lean::cnstr_get(x_26, 0); +x_70 = lean::cnstr_get_scalar(x_26, sizeof(void*)*1); if (lean::is_exclusive(x_26)) { - x_67 = x_26; + x_71 = x_26; } else { - lean::inc(x_64); + lean::inc(x_68); lean::dec(x_26); - x_67 = lean::box(0); + x_71 = lean::box(0); } -if (lean::is_scalar(x_67)) { - x_68 = lean::alloc_cnstr(1, 1, 1); +if (lean::is_scalar(x_71)) { + x_72 = lean::alloc_cnstr(1, 1, 1); } else { - x_68 = x_67; + x_72 = x_71; } -lean::cnstr_set(x_68, 0, x_64); -lean::cnstr_set_scalar(x_68, sizeof(void*)*1, x_66); -x_69 = x_68; -x_19 = x_69; -x_20 = x_61; +lean::cnstr_set(x_72, 0, x_68); +lean::cnstr_set_scalar(x_72, sizeof(void*)*1, x_70); +x_73 = x_72; +x_19 = x_73; +x_20 = x_65; goto lbl_21; } lbl_21: { if (lean::obj_tag(x_19) == 0) { -obj* x_73; obj* x_74; +obj* x_77; obj* x_78; lean::dec(x_18); lean::dec(x_12); lean::dec(x_16); -x_73 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_19); +x_77 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_19); if (lean::is_scalar(x_11)) { - x_74 = lean::alloc_cnstr(0, 2, 0); + x_78 = lean::alloc_cnstr(0, 2, 0); } else { - x_74 = x_11; + x_78 = x_11; } -lean::cnstr_set(x_74, 0, x_73); -lean::cnstr_set(x_74, 1, x_20); -return x_74; +lean::cnstr_set(x_78, 0, x_77); +lean::cnstr_set(x_78, 1, x_20); +return x_78; } else { -obj* x_75; uint8 x_77; obj* x_78; obj* x_79; -x_75 = lean::cnstr_get(x_19, 0); -lean::inc(x_75); -x_77 = lean::cnstr_get_scalar(x_19, sizeof(void*)*1); -if (x_77 == 0) +obj* x_79; uint8 x_81; obj* x_82; obj* x_83; +x_79 = lean::cnstr_get(x_19, 0); +lean::inc(x_79); +x_81 = lean::cnstr_get_scalar(x_19, sizeof(void*)*1); +if (x_81 == 0) { -obj* x_82; obj* x_83; obj* x_85; obj* x_86; +obj* x_86; obj* x_87; obj* x_89; obj* x_90; lean::dec(x_19); -x_82 = l___private_init_lean_parser_token_1__finishCommentBlockAux___main___closed__3; -x_83 = l___private_init_lean_parser_token_1__finishCommentBlockAux___main___closed__4; +x_86 = l___private_init_lean_parser_token_1__finishCommentBlockAux___main___closed__3; +x_87 = l___private_init_lean_parser_token_1__finishCommentBlockAux___main___closed__4; lean::inc(x_12); -x_85 = l_Lean_Parser_MonadParsec_strCore___at___private_init_lean_parser_token_1__finishCommentBlockAux___main___spec__3(x_82, x_83, x_1, x_12, x_20); -x_86 = lean::cnstr_get(x_85, 0); -lean::inc(x_86); -if (lean::obj_tag(x_86) == 0) +x_89 = l_Lean_Parser_MonadParsec_strCore___at___private_init_lean_parser_token_1__finishCommentBlockAux___main___spec__3(x_86, x_87, x_1, x_12, x_20); +x_90 = lean::cnstr_get(x_89, 0); +lean::inc(x_90); +if (lean::obj_tag(x_90) == 0) { -obj* x_88; obj* x_91; obj* x_93; obj* x_96; obj* x_98; obj* x_99; -x_88 = lean::cnstr_get(x_85, 1); -lean::inc(x_88); -lean::dec(x_85); -x_91 = lean::cnstr_get(x_86, 1); -lean::inc(x_91); -x_93 = lean::cnstr_get(x_86, 2); -lean::inc(x_93); -lean::dec(x_86); -x_96 = l___private_init_lean_parser_token_2__whitespaceAux___main___closed__1; -lean::inc(x_91); -x_98 = l_Lean_Parser_ParsecT_lookahead___at___private_init_lean_parser_token_2__whitespaceAux___main___spec__4(x_1, x_96, x_91, x_88); -x_99 = lean::cnstr_get(x_98, 0); -lean::inc(x_99); -if (lean::obj_tag(x_99) == 0) +obj* x_92; obj* x_95; obj* x_97; obj* x_100; obj* x_102; obj* x_103; +x_92 = lean::cnstr_get(x_89, 1); +lean::inc(x_92); +lean::dec(x_89); +x_95 = lean::cnstr_get(x_90, 1); +lean::inc(x_95); +x_97 = lean::cnstr_get(x_90, 2); +lean::inc(x_97); +lean::dec(x_90); +x_100 = l___private_init_lean_parser_token_2__whitespaceAux___main___closed__1; +lean::inc(x_95); +x_102 = l_Lean_Parser_ParsecT_lookahead___at___private_init_lean_parser_token_2__whitespaceAux___main___spec__4(x_1, x_100, x_95, x_92); +x_103 = lean::cnstr_get(x_102, 0); +lean::inc(x_103); +if (lean::obj_tag(x_103) == 0) { -obj* x_101; uint8 x_103; -x_101 = lean::cnstr_get(x_99, 0); -lean::inc(x_101); -x_103 = lean::unbox(x_101); -if (x_103 == 0) +obj* x_105; uint8 x_107; +x_105 = lean::cnstr_get(x_103, 0); +lean::inc(x_105); +x_107 = lean::unbox(x_105); +if (x_107 == 0) { -obj* x_104; obj* x_107; obj* x_109; obj* x_112; obj* x_113; obj* x_114; obj* x_115; obj* x_116; obj* x_117; obj* x_119; obj* x_122; obj* x_123; obj* x_124; obj* x_125; obj* x_126; -x_104 = lean::cnstr_get(x_98, 1); -lean::inc(x_104); -lean::dec(x_98); -x_107 = lean::cnstr_get(x_99, 1); -lean::inc(x_107); -x_109 = lean::cnstr_get(x_99, 2); -lean::inc(x_109); -lean::dec(x_99); -x_112 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_112, 0, x_91); -x_113 = lean::box(0); -x_114 = l___private_init_lean_parser_token_2__whitespaceAux___main___closed__2; -x_115 = l_mjoin___rarg___closed__1; -x_116 = l_Lean_Parser_MonadParsec_error___at___private_init_lean_parser_token_1__finishCommentBlockAux___main___spec__1___rarg(x_114, x_115, x_112, x_113, x_1, x_107, x_104); -x_117 = lean::cnstr_get(x_116, 0); -lean::inc(x_117); -x_119 = lean::cnstr_get(x_116, 1); -lean::inc(x_119); -lean::dec(x_116); -x_122 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_109, x_117); -x_123 = l_Lean_Parser_Parsec_Result_mkEps___rarg___closed__1; -x_124 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_123, x_122); -x_125 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_93, x_124); -x_126 = l_Lean_Parser_ParsecT_tryMkRes___rarg(x_125); -x_78 = x_126; -x_79 = x_119; -goto lbl_80; +obj* x_108; obj* x_111; obj* x_113; obj* x_116; obj* x_117; obj* x_118; obj* x_119; obj* x_120; obj* x_121; obj* x_123; obj* x_126; obj* x_127; obj* x_128; obj* x_129; obj* x_130; +x_108 = lean::cnstr_get(x_102, 1); +lean::inc(x_108); +lean::dec(x_102); +x_111 = lean::cnstr_get(x_103, 1); +lean::inc(x_111); +x_113 = lean::cnstr_get(x_103, 2); +lean::inc(x_113); +lean::dec(x_103); +x_116 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_116, 0, x_95); +x_117 = lean::box(0); +x_118 = l___private_init_lean_parser_token_2__whitespaceAux___main___closed__2; +x_119 = l_mjoin___rarg___closed__1; +x_120 = l_Lean_Parser_MonadParsec_error___at___private_init_lean_parser_token_1__finishCommentBlockAux___main___spec__1___rarg(x_118, x_119, x_116, x_117, x_1, x_111, x_108); +x_121 = lean::cnstr_get(x_120, 0); +lean::inc(x_121); +x_123 = lean::cnstr_get(x_120, 1); +lean::inc(x_123); +lean::dec(x_120); +x_126 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_113, x_121); +x_127 = l_Lean_Parser_Parsec_Result_mkEps___rarg___closed__1; +x_128 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_127, x_126); +x_129 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_97, x_128); +x_130 = l_Lean_Parser_ParsecT_tryMkRes___rarg(x_129); +x_82 = x_130; +x_83 = x_123; +goto lbl_84; } else { -obj* x_128; obj* x_131; obj* x_133; obj* x_135; obj* x_136; obj* x_137; obj* x_138; obj* x_139; obj* x_140; obj* x_141; obj* x_142; -lean::dec(x_91); -x_128 = lean::cnstr_get(x_98, 1); -lean::inc(x_128); -lean::dec(x_98); -x_131 = lean::cnstr_get(x_99, 1); -x_133 = lean::cnstr_get(x_99, 2); -if (lean::is_exclusive(x_99)) { - lean::cnstr_release(x_99, 0); - x_135 = x_99; +obj* x_132; obj* x_135; obj* x_137; obj* x_139; obj* x_140; obj* x_141; obj* x_142; obj* x_143; obj* x_144; obj* x_145; obj* x_146; +lean::dec(x_95); +x_132 = lean::cnstr_get(x_102, 1); +lean::inc(x_132); +lean::dec(x_102); +x_135 = lean::cnstr_get(x_103, 1); +x_137 = lean::cnstr_get(x_103, 2); +if (lean::is_exclusive(x_103)) { + lean::cnstr_release(x_103, 0); + x_139 = x_103; } else { - lean::inc(x_131); - lean::inc(x_133); - lean::dec(x_99); - x_135 = lean::box(0); + lean::inc(x_135); + lean::inc(x_137); + lean::dec(x_103); + x_139 = lean::box(0); } -x_136 = lean::box(0); -x_137 = l_Lean_Parser_Parsec_Result_mkEps___rarg___closed__1; -if (lean::is_scalar(x_135)) { - x_138 = lean::alloc_cnstr(0, 3, 0); +x_140 = lean::box(0); +x_141 = l_Lean_Parser_Parsec_Result_mkEps___rarg___closed__1; +if (lean::is_scalar(x_139)) { + x_142 = lean::alloc_cnstr(0, 3, 0); } else { - x_138 = x_135; + x_142 = x_139; } -lean::cnstr_set(x_138, 0, x_136); -lean::cnstr_set(x_138, 1, x_131); -lean::cnstr_set(x_138, 2, x_137); -x_139 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_133, x_138); -x_140 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_137, x_139); -x_141 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_93, x_140); -x_142 = l_Lean_Parser_ParsecT_tryMkRes___rarg(x_141); -x_78 = x_142; -x_79 = x_128; -goto lbl_80; +lean::cnstr_set(x_142, 0, x_140); +lean::cnstr_set(x_142, 1, x_135); +lean::cnstr_set(x_142, 2, x_141); +x_143 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_137, x_142); +x_144 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_141, x_143); +x_145 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_97, x_144); +x_146 = l_Lean_Parser_ParsecT_tryMkRes___rarg(x_145); +x_82 = x_146; +x_83 = x_132; +goto lbl_84; } } else { -obj* x_144; obj* x_147; uint8 x_149; obj* x_150; obj* x_151; obj* x_152; obj* x_153; obj* x_154; obj* x_155; obj* x_156; -lean::dec(x_91); -x_144 = lean::cnstr_get(x_98, 1); -lean::inc(x_144); -lean::dec(x_98); -x_147 = lean::cnstr_get(x_99, 0); -x_149 = lean::cnstr_get_scalar(x_99, sizeof(void*)*1); -if (lean::is_exclusive(x_99)) { - x_150 = x_99; +obj* x_148; obj* x_151; uint8 x_153; obj* x_154; obj* x_155; obj* x_156; obj* x_157; obj* x_158; obj* x_159; obj* x_160; +lean::dec(x_95); +x_148 = lean::cnstr_get(x_102, 1); +lean::inc(x_148); +lean::dec(x_102); +x_151 = lean::cnstr_get(x_103, 0); +x_153 = lean::cnstr_get_scalar(x_103, sizeof(void*)*1); +if (lean::is_exclusive(x_103)) { + x_154 = x_103; } else { - lean::inc(x_147); - lean::dec(x_99); - x_150 = lean::box(0); + lean::inc(x_151); + lean::dec(x_103); + x_154 = lean::box(0); } -if (lean::is_scalar(x_150)) { - x_151 = lean::alloc_cnstr(1, 1, 1); +if (lean::is_scalar(x_154)) { + x_155 = lean::alloc_cnstr(1, 1, 1); } else { - x_151 = x_150; + x_155 = x_154; } -lean::cnstr_set(x_151, 0, x_147); -lean::cnstr_set_scalar(x_151, sizeof(void*)*1, x_149); -x_152 = x_151; -x_153 = l_Lean_Parser_Parsec_Result_mkEps___rarg___closed__1; -x_154 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_153, x_152); -x_155 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_93, x_154); -x_156 = l_Lean_Parser_ParsecT_tryMkRes___rarg(x_155); -x_78 = x_156; -x_79 = x_144; -goto lbl_80; +lean::cnstr_set(x_155, 0, x_151); +lean::cnstr_set_scalar(x_155, sizeof(void*)*1, x_153); +x_156 = x_155; +x_157 = l_Lean_Parser_Parsec_Result_mkEps___rarg___closed__1; +x_158 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_157, x_156); +x_159 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_97, x_158); +x_160 = l_Lean_Parser_ParsecT_tryMkRes___rarg(x_159); +x_82 = x_160; +x_83 = x_148; +goto lbl_84; } } else { -obj* x_157; obj* x_160; obj* x_162; uint8 x_163; obj* x_164; obj* x_165; -x_157 = lean::cnstr_get(x_85, 1); -lean::inc(x_157); -lean::dec(x_85); -x_160 = lean::cnstr_get(x_86, 0); -if (lean::is_exclusive(x_86)) { - x_162 = x_86; +obj* x_161; obj* x_164; obj* x_166; uint8 x_167; obj* x_168; obj* x_169; +x_161 = lean::cnstr_get(x_89, 1); +lean::inc(x_161); +lean::dec(x_89); +x_164 = lean::cnstr_get(x_90, 0); +if (lean::is_exclusive(x_90)) { + x_166 = x_90; } else { - lean::inc(x_160); - lean::dec(x_86); - x_162 = lean::box(0); + lean::inc(x_164); + lean::dec(x_90); + x_166 = lean::box(0); } -x_163 = 0; -if (lean::is_scalar(x_162)) { - x_164 = lean::alloc_cnstr(1, 1, 1); +x_167 = 0; +if (lean::is_scalar(x_166)) { + x_168 = lean::alloc_cnstr(1, 1, 1); } else { - x_164 = x_162; + x_168 = x_166; } -lean::cnstr_set(x_164, 0, x_160); -lean::cnstr_set_scalar(x_164, sizeof(void*)*1, x_163); -x_165 = x_164; -x_78 = x_165; -x_79 = x_157; -goto lbl_80; +lean::cnstr_set(x_168, 0, x_164); +lean::cnstr_set_scalar(x_168, sizeof(void*)*1, x_167); +x_169 = x_168; +x_82 = x_169; +x_83 = x_161; +goto lbl_84; } } else { -obj* x_171; obj* x_172; +obj* x_175; obj* x_176; lean::dec(x_18); lean::dec(x_11); lean::dec(x_12); lean::dec(x_16); -lean::dec(x_75); -x_171 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_19); -x_172 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_172, 0, x_171); -lean::cnstr_set(x_172, 1, x_20); -return x_172; +lean::dec(x_79); +x_175 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_19); +x_176 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_176, 0, x_175); +lean::cnstr_set(x_176, 1, x_20); +return x_176; } -lbl_80: +lbl_84: { -if (lean::obj_tag(x_78) == 0) +if (lean::obj_tag(x_82) == 0) { -obj* x_175; obj* x_177; obj* x_179; obj* x_180; obj* x_181; obj* x_183; obj* x_185; obj* x_186; +obj* x_179; obj* x_181; obj* x_183; obj* x_184; obj* x_185; lean::dec(x_11); lean::dec(x_16); -x_175 = lean::cnstr_get(x_78, 1); -x_177 = lean::cnstr_get(x_78, 2); -if (lean::is_exclusive(x_78)) { - lean::cnstr_release(x_78, 0); - lean::cnstr_set(x_78, 1, lean::box(0)); - lean::cnstr_set(x_78, 2, lean::box(0)); - x_179 = x_78; -} else { - lean::inc(x_175); - lean::inc(x_177); - lean::dec(x_78); - x_179 = lean::box(0); -} -x_180 = l_Lean_Parser_finishCommentBlock(x_17, x_1, x_175, x_79); -x_181 = lean::cnstr_get(x_180, 0); -x_183 = lean::cnstr_get(x_180, 1); -if (lean::is_exclusive(x_180)) { - lean::cnstr_set(x_180, 0, lean::box(0)); - lean::cnstr_set(x_180, 1, lean::box(0)); - x_185 = x_180; +x_179 = lean::cnstr_get(x_82, 1); +x_181 = lean::cnstr_get(x_82, 2); +if (lean::is_exclusive(x_82)) { + lean::cnstr_release(x_82, 0); + lean::cnstr_set(x_82, 1, lean::box(0)); + lean::cnstr_set(x_82, 2, lean::box(0)); + x_183 = x_82; } else { + lean::inc(x_179); lean::inc(x_181); - lean::inc(x_183); - lean::dec(x_180); - x_185 = lean::box(0); + lean::dec(x_82); + x_183 = lean::box(0); } -x_186 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_177, x_181); -if (lean::obj_tag(x_186) == 0) +x_184 = l_Lean_Parser_finishCommentBlock(x_17, x_1, x_179, x_83); +x_185 = lean::cnstr_get(x_184, 0); +lean::inc(x_185); +if (lean::obj_tag(x_185) == 0) { -obj* x_189; obj* x_191; obj* x_193; obj* x_194; obj* x_196; obj* x_198; obj* x_200; obj* x_201; -lean::dec(x_179); -lean::dec(x_185); -x_189 = lean::cnstr_get(x_186, 1); -x_191 = lean::cnstr_get(x_186, 2); -if (lean::is_exclusive(x_186)) { - lean::cnstr_release(x_186, 0); - lean::cnstr_set(x_186, 1, lean::box(0)); - lean::cnstr_set(x_186, 2, lean::box(0)); - x_193 = x_186; +obj* x_188; obj* x_191; obj* x_193; obj* x_195; obj* x_196; obj* x_198; obj* x_200; obj* x_202; obj* x_203; obj* x_204; +lean::dec(x_183); +x_188 = lean::cnstr_get(x_184, 1); +lean::inc(x_188); +lean::dec(x_184); +x_191 = lean::cnstr_get(x_185, 1); +x_193 = lean::cnstr_get(x_185, 2); +if (lean::is_exclusive(x_185)) { + lean::cnstr_release(x_185, 0); + lean::cnstr_set(x_185, 1, lean::box(0)); + lean::cnstr_set(x_185, 2, lean::box(0)); + x_195 = x_185; } else { - lean::inc(x_189); lean::inc(x_191); - lean::dec(x_186); - x_193 = lean::box(0); + lean::inc(x_193); + lean::dec(x_185); + x_195 = lean::box(0); } -x_194 = l___private_init_lean_parser_token_2__whitespaceAux___main(x_18, x_1, x_189, x_183); +x_196 = l___private_init_lean_parser_token_2__whitespaceAux___main(x_18, x_1, x_191, x_188); lean::dec(x_18); -x_196 = lean::cnstr_get(x_194, 0); -x_198 = lean::cnstr_get(x_194, 1); -if (lean::is_exclusive(x_194)) { - lean::cnstr_set(x_194, 0, lean::box(0)); - lean::cnstr_set(x_194, 1, lean::box(0)); - x_200 = x_194; +x_198 = lean::cnstr_get(x_196, 0); +x_200 = lean::cnstr_get(x_196, 1); +if (lean::is_exclusive(x_196)) { + lean::cnstr_set(x_196, 0, lean::box(0)); + lean::cnstr_set(x_196, 1, lean::box(0)); + x_202 = x_196; } else { - lean::inc(x_196); lean::inc(x_198); - lean::dec(x_194); - x_200 = lean::box(0); + lean::inc(x_200); + lean::dec(x_196); + x_202 = lean::box(0); } -x_201 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_191, x_196); -if (lean::obj_tag(x_201) == 0) +x_203 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_193, x_198); +x_204 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_181, x_203); +if (lean::obj_tag(x_204) == 0) { -obj* x_204; obj* x_205; obj* x_206; -lean::dec(x_193); +obj* x_207; obj* x_208; obj* x_209; +lean::dec(x_195); lean::dec(x_12); -x_204 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_75, x_201); -x_205 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_204); -if (lean::is_scalar(x_200)) { - x_206 = lean::alloc_cnstr(0, 2, 0); +x_207 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_79, x_204); +x_208 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_207); +if (lean::is_scalar(x_202)) { + x_209 = lean::alloc_cnstr(0, 2, 0); } else { - x_206 = x_200; + x_209 = x_202; } -lean::cnstr_set(x_206, 0, x_205); -lean::cnstr_set(x_206, 1, x_198); -return x_206; +lean::cnstr_set(x_209, 0, x_208); +lean::cnstr_set(x_209, 1, x_200); +return x_209; } else { -uint8 x_207; -x_207 = lean::cnstr_get_scalar(x_201, sizeof(void*)*1); -if (x_207 == 0) +uint8 x_210; +x_210 = lean::cnstr_get_scalar(x_204, sizeof(void*)*1); +if (x_210 == 0) { -obj* x_208; obj* x_211; obj* x_214; obj* x_215; obj* x_216; obj* x_219; obj* x_220; obj* x_221; obj* x_222; obj* x_223; obj* x_224; -x_208 = lean::cnstr_get(x_201, 0); -lean::inc(x_208); -lean::dec(x_201); -x_211 = lean::cnstr_get(x_208, 2); +obj* x_211; obj* x_214; obj* x_217; obj* x_218; obj* x_219; obj* x_222; obj* x_223; obj* x_224; obj* x_225; obj* x_226; obj* x_227; +x_211 = lean::cnstr_get(x_204, 0); lean::inc(x_211); -lean::dec(x_208); -x_214 = l_mjoin___rarg___closed__1; -x_215 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); -lean::closure_set(x_215, 0, x_211); -lean::closure_set(x_215, 1, x_214); -x_216 = lean::cnstr_get(x_75, 2); -lean::inc(x_216); -lean::dec(x_75); -x_219 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); -lean::closure_set(x_219, 0, x_216); -lean::closure_set(x_219, 1, x_215); -x_220 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_220, 0, x_219); -x_221 = lean::box(0); -if (lean::is_scalar(x_193)) { - x_222 = lean::alloc_cnstr(0, 3, 0); +lean::dec(x_204); +x_214 = lean::cnstr_get(x_211, 2); +lean::inc(x_214); +lean::dec(x_211); +x_217 = l_mjoin___rarg___closed__1; +x_218 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); +lean::closure_set(x_218, 0, x_214); +lean::closure_set(x_218, 1, x_217); +x_219 = lean::cnstr_get(x_79, 2); +lean::inc(x_219); +lean::dec(x_79); +x_222 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); +lean::closure_set(x_222, 0, x_219); +lean::closure_set(x_222, 1, x_218); +x_223 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_223, 0, x_222); +x_224 = lean::box(0); +if (lean::is_scalar(x_195)) { + x_225 = lean::alloc_cnstr(0, 3, 0); } else { - x_222 = x_193; + x_225 = x_195; } -lean::cnstr_set(x_222, 0, x_221); -lean::cnstr_set(x_222, 1, x_12); -lean::cnstr_set(x_222, 2, x_220); -x_223 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_222); -if (lean::is_scalar(x_200)) { - x_224 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_225, 0, x_224); +lean::cnstr_set(x_225, 1, x_12); +lean::cnstr_set(x_225, 2, x_223); +x_226 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_225); +if (lean::is_scalar(x_202)) { + x_227 = lean::alloc_cnstr(0, 2, 0); } else { - x_224 = x_200; + x_227 = x_202; } -lean::cnstr_set(x_224, 0, x_223); -lean::cnstr_set(x_224, 1, x_198); -return x_224; +lean::cnstr_set(x_227, 0, x_226); +lean::cnstr_set(x_227, 1, x_200); +return x_227; } else { -obj* x_227; obj* x_228; obj* x_229; -lean::dec(x_193); +obj* x_230; obj* x_231; obj* x_232; +lean::dec(x_195); lean::dec(x_12); -x_227 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_75, x_201); -x_228 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_227); -if (lean::is_scalar(x_200)) { - x_229 = lean::alloc_cnstr(0, 2, 0); +x_230 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_79, x_204); +x_231 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_230); +if (lean::is_scalar(x_202)) { + x_232 = lean::alloc_cnstr(0, 2, 0); } else { - x_229 = x_200; + x_232 = x_202; } -lean::cnstr_set(x_229, 0, x_228); -lean::cnstr_set(x_229, 1, x_198); -return x_229; +lean::cnstr_set(x_232, 0, x_231); +lean::cnstr_set(x_232, 1, x_200); +return x_232; } } } else { -uint8 x_231; +obj* x_234; obj* x_236; obj* x_237; uint8 x_239; obj* x_240; obj* x_241; obj* x_242; obj* x_243; lean::dec(x_18); -x_231 = lean::cnstr_get_scalar(x_186, sizeof(void*)*1); -if (x_231 == 0) -{ -obj* x_232; obj* x_235; obj* x_238; obj* x_239; obj* x_240; obj* x_243; obj* x_244; obj* x_245; obj* x_246; obj* x_247; obj* x_248; -x_232 = lean::cnstr_get(x_186, 0); -lean::inc(x_232); -lean::dec(x_186); -x_235 = lean::cnstr_get(x_232, 2); -lean::inc(x_235); -lean::dec(x_232); -x_238 = l_mjoin___rarg___closed__1; -x_239 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); -lean::closure_set(x_239, 0, x_235); -lean::closure_set(x_239, 1, x_238); -x_240 = lean::cnstr_get(x_75, 2); -lean::inc(x_240); -lean::dec(x_75); -x_243 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); -lean::closure_set(x_243, 0, x_240); -lean::closure_set(x_243, 1, x_239); -x_244 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_244, 0, x_243); -x_245 = lean::box(0); -if (lean::is_scalar(x_179)) { - x_246 = lean::alloc_cnstr(0, 3, 0); +x_234 = lean::cnstr_get(x_184, 1); +if (lean::is_exclusive(x_184)) { + lean::cnstr_release(x_184, 0); + lean::cnstr_set(x_184, 1, lean::box(0)); + x_236 = x_184; } else { - x_246 = x_179; + lean::inc(x_234); + lean::dec(x_184); + x_236 = lean::box(0); } -lean::cnstr_set(x_246, 0, x_245); -lean::cnstr_set(x_246, 1, x_12); -lean::cnstr_set(x_246, 2, x_244); +x_237 = lean::cnstr_get(x_185, 0); +x_239 = lean::cnstr_get_scalar(x_185, sizeof(void*)*1); +if (lean::is_exclusive(x_185)) { + x_240 = x_185; +} else { + lean::inc(x_237); + lean::dec(x_185); + x_240 = lean::box(0); +} +if (lean::is_scalar(x_240)) { + x_241 = lean::alloc_cnstr(1, 1, 1); +} else { + x_241 = x_240; +} +lean::cnstr_set(x_241, 0, x_237); +lean::cnstr_set_scalar(x_241, sizeof(void*)*1, x_239); +x_242 = x_241; +x_243 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_181, x_242); +if (lean::obj_tag(x_243) == 0) +{ +obj* x_246; obj* x_247; obj* x_248; +lean::dec(x_183); +lean::dec(x_12); +x_246 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_79, x_243); x_247 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_246); -if (lean::is_scalar(x_185)) { +if (lean::is_scalar(x_236)) { x_248 = lean::alloc_cnstr(0, 2, 0); } else { - x_248 = x_185; + x_248 = x_236; } lean::cnstr_set(x_248, 0, x_247); -lean::cnstr_set(x_248, 1, x_183); +lean::cnstr_set(x_248, 1, x_234); return x_248; } else { -obj* x_251; obj* x_253; obj* x_254; obj* x_255; obj* x_256; obj* x_257; obj* x_258; -lean::dec(x_179); +uint8 x_249; +x_249 = lean::cnstr_get_scalar(x_243, sizeof(void*)*1); +if (x_249 == 0) +{ +obj* x_250; obj* x_253; obj* x_256; obj* x_257; obj* x_258; obj* x_261; obj* x_262; obj* x_263; obj* x_264; obj* x_265; obj* x_266; +x_250 = lean::cnstr_get(x_243, 0); +lean::inc(x_250); +lean::dec(x_243); +x_253 = lean::cnstr_get(x_250, 2); +lean::inc(x_253); +lean::dec(x_250); +x_256 = l_mjoin___rarg___closed__1; +x_257 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); +lean::closure_set(x_257, 0, x_253); +lean::closure_set(x_257, 1, x_256); +x_258 = lean::cnstr_get(x_79, 2); +lean::inc(x_258); +lean::dec(x_79); +x_261 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); +lean::closure_set(x_261, 0, x_258); +lean::closure_set(x_261, 1, x_257); +x_262 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_262, 0, x_261); +x_263 = lean::box(0); +if (lean::is_scalar(x_183)) { + x_264 = lean::alloc_cnstr(0, 3, 0); +} else { + x_264 = x_183; +} +lean::cnstr_set(x_264, 0, x_263); +lean::cnstr_set(x_264, 1, x_12); +lean::cnstr_set(x_264, 2, x_262); +x_265 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_264); +if (lean::is_scalar(x_236)) { + x_266 = lean::alloc_cnstr(0, 2, 0); +} else { + x_266 = x_236; +} +lean::cnstr_set(x_266, 0, x_265); +lean::cnstr_set(x_266, 1, x_234); +return x_266; +} +else +{ +obj* x_269; obj* x_270; obj* x_271; +lean::dec(x_183); lean::dec(x_12); -x_251 = lean::cnstr_get(x_186, 0); -if (lean::is_exclusive(x_186)) { - x_253 = x_186; +x_269 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_79, x_243); +x_270 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_269); +if (lean::is_scalar(x_236)) { + x_271 = lean::alloc_cnstr(0, 2, 0); } else { - lean::inc(x_251); - lean::dec(x_186); - x_253 = lean::box(0); + x_271 = x_236; } -if (lean::is_scalar(x_253)) { - x_254 = lean::alloc_cnstr(1, 1, 1); -} else { - x_254 = x_253; +lean::cnstr_set(x_271, 0, x_270); +lean::cnstr_set(x_271, 1, x_234); +return x_271; } -lean::cnstr_set(x_254, 0, x_251); -lean::cnstr_set_scalar(x_254, sizeof(void*)*1, x_231); -x_255 = x_254; -x_256 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_75, x_255); -x_257 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_256); -if (lean::is_scalar(x_185)) { - x_258 = lean::alloc_cnstr(0, 2, 0); -} else { - x_258 = x_185; -} -lean::cnstr_set(x_258, 0, x_257); -lean::cnstr_set(x_258, 1, x_183); -return x_258; } } } else { -uint8 x_260; +uint8 x_273; lean::dec(x_18); -x_260 = lean::cnstr_get_scalar(x_78, sizeof(void*)*1); -if (x_260 == 0) +x_273 = lean::cnstr_get_scalar(x_82, sizeof(void*)*1); +if (x_273 == 0) { -obj* x_261; obj* x_264; obj* x_267; obj* x_268; obj* x_269; obj* x_272; obj* x_273; obj* x_274; obj* x_275; obj* x_276; obj* x_277; -x_261 = lean::cnstr_get(x_78, 0); -lean::inc(x_261); -lean::dec(x_78); -x_264 = lean::cnstr_get(x_261, 2); -lean::inc(x_264); -lean::dec(x_261); -x_267 = l_mjoin___rarg___closed__1; -x_268 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); -lean::closure_set(x_268, 0, x_264); -lean::closure_set(x_268, 1, x_267); -x_269 = lean::cnstr_get(x_75, 2); -lean::inc(x_269); -lean::dec(x_75); -x_272 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); -lean::closure_set(x_272, 0, x_269); -lean::closure_set(x_272, 1, x_268); -x_273 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_273, 0, x_272); -x_274 = lean::box(0); +obj* x_274; obj* x_277; obj* x_280; obj* x_281; obj* x_282; obj* x_285; obj* x_286; obj* x_287; obj* x_288; obj* x_289; obj* x_290; +x_274 = lean::cnstr_get(x_82, 0); +lean::inc(x_274); +lean::dec(x_82); +x_277 = lean::cnstr_get(x_274, 2); +lean::inc(x_277); +lean::dec(x_274); +x_280 = l_mjoin___rarg___closed__1; +x_281 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); +lean::closure_set(x_281, 0, x_277); +lean::closure_set(x_281, 1, x_280); +x_282 = lean::cnstr_get(x_79, 2); +lean::inc(x_282); +lean::dec(x_79); +x_285 = lean::alloc_closure(reinterpret_cast(l_Function_comp___rarg), 3, 2); +lean::closure_set(x_285, 0, x_282); +lean::closure_set(x_285, 1, x_281); +x_286 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_286, 0, x_285); +x_287 = lean::box(0); if (lean::is_scalar(x_16)) { - x_275 = lean::alloc_cnstr(0, 3, 0); + x_288 = lean::alloc_cnstr(0, 3, 0); } else { - x_275 = x_16; + x_288 = x_16; } -lean::cnstr_set(x_275, 0, x_274); -lean::cnstr_set(x_275, 1, x_12); -lean::cnstr_set(x_275, 2, x_273); -x_276 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_275); +lean::cnstr_set(x_288, 0, x_287); +lean::cnstr_set(x_288, 1, x_12); +lean::cnstr_set(x_288, 2, x_286); +x_289 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_288); if (lean::is_scalar(x_11)) { - x_277 = lean::alloc_cnstr(0, 2, 0); + x_290 = lean::alloc_cnstr(0, 2, 0); } else { - x_277 = x_11; + x_290 = x_11; } -lean::cnstr_set(x_277, 0, x_276); -lean::cnstr_set(x_277, 1, x_79); -return x_277; +lean::cnstr_set(x_290, 0, x_289); +lean::cnstr_set(x_290, 1, x_83); +return x_290; } else { -obj* x_280; obj* x_282; obj* x_283; obj* x_284; obj* x_285; obj* x_286; obj* x_287; +obj* x_293; obj* x_295; obj* x_296; obj* x_297; obj* x_298; obj* x_299; obj* x_300; lean::dec(x_12); lean::dec(x_16); -x_280 = lean::cnstr_get(x_78, 0); -if (lean::is_exclusive(x_78)) { - x_282 = x_78; +x_293 = lean::cnstr_get(x_82, 0); +if (lean::is_exclusive(x_82)) { + x_295 = x_82; } else { - lean::inc(x_280); - lean::dec(x_78); - x_282 = lean::box(0); + lean::inc(x_293); + lean::dec(x_82); + x_295 = lean::box(0); } -if (lean::is_scalar(x_282)) { - x_283 = lean::alloc_cnstr(1, 1, 1); +if (lean::is_scalar(x_295)) { + x_296 = lean::alloc_cnstr(1, 1, 1); } else { - x_283 = x_282; + x_296 = x_295; } -lean::cnstr_set(x_283, 0, x_280); -lean::cnstr_set_scalar(x_283, sizeof(void*)*1, x_260); -x_284 = x_283; -x_285 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_75, x_284); -x_286 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_285); +lean::cnstr_set(x_296, 0, x_293); +lean::cnstr_set_scalar(x_296, sizeof(void*)*1, x_273); +x_297 = x_296; +x_298 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_79, x_297); +x_299 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_14, x_298); if (lean::is_scalar(x_11)) { - x_287 = lean::alloc_cnstr(0, 2, 0); + x_300 = lean::alloc_cnstr(0, 2, 0); } else { - x_287 = x_11; + x_300 = x_11; } -lean::cnstr_set(x_287, 0, x_286); -lean::cnstr_set(x_287, 1, x_79); -return x_287; +lean::cnstr_set(x_300, 0, x_299); +lean::cnstr_set(x_300, 1, x_83); +return x_300; } } } @@ -2388,51 +2416,51 @@ return x_287; } else { -obj* x_288; obj* x_290; obj* x_291; uint8 x_293; obj* x_294; obj* x_295; obj* x_296; obj* x_297; -x_288 = lean::cnstr_get(x_6, 1); +obj* x_301; obj* x_303; obj* x_304; uint8 x_306; obj* x_307; obj* x_308; obj* x_309; obj* x_310; +x_301 = lean::cnstr_get(x_6, 1); if (lean::is_exclusive(x_6)) { lean::cnstr_release(x_6, 0); - x_290 = x_6; + x_303 = x_6; } else { - lean::inc(x_288); + lean::inc(x_301); lean::dec(x_6); - x_290 = lean::box(0); + x_303 = lean::box(0); } -x_291 = lean::cnstr_get(x_7, 0); -x_293 = lean::cnstr_get_scalar(x_7, sizeof(void*)*1); +x_304 = lean::cnstr_get(x_7, 0); +x_306 = lean::cnstr_get_scalar(x_7, sizeof(void*)*1); if (lean::is_exclusive(x_7)) { - x_294 = x_7; + x_307 = x_7; } else { - lean::inc(x_291); + lean::inc(x_304); lean::dec(x_7); - x_294 = lean::box(0); + x_307 = lean::box(0); } -if (lean::is_scalar(x_294)) { - x_295 = lean::alloc_cnstr(1, 1, 1); +if (lean::is_scalar(x_307)) { + x_308 = lean::alloc_cnstr(1, 1, 1); } else { - x_295 = x_294; + x_308 = x_307; } -lean::cnstr_set(x_295, 0, x_291); -lean::cnstr_set_scalar(x_295, sizeof(void*)*1, x_293); -x_296 = x_295; -if (lean::is_scalar(x_290)) { - x_297 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_308, 0, x_304); +lean::cnstr_set_scalar(x_308, sizeof(void*)*1, x_306); +x_309 = x_308; +if (lean::is_scalar(x_303)) { + x_310 = lean::alloc_cnstr(0, 2, 0); } else { - x_297 = x_290; + x_310 = x_303; } -lean::cnstr_set(x_297, 0, x_296); -lean::cnstr_set(x_297, 1, x_288); -return x_297; +lean::cnstr_set(x_310, 0, x_309); +lean::cnstr_set(x_310, 1, x_301); +return x_310; } } else { -obj* x_298; obj* x_299; obj* x_300; obj* x_301; -x_298 = lean::box(0); -x_299 = l___private_init_lean_parser_combinators_1__many1Aux___main___rarg___closed__1; -x_300 = l_mjoin___rarg___closed__1; -x_301 = l_Lean_Parser_MonadParsec_error___at___private_init_lean_parser_token_1__finishCommentBlockAux___main___spec__1___rarg(x_299, x_300, x_298, x_298, x_1, x_2, x_3); -return x_301; +obj* x_311; obj* x_312; obj* x_313; obj* x_314; +x_311 = lean::box(0); +x_312 = l___private_init_lean_parser_combinators_1__many1Aux___main___rarg___closed__1; +x_313 = l_mjoin___rarg___closed__1; +x_314 = l_Lean_Parser_MonadParsec_error___at___private_init_lean_parser_token_1__finishCommentBlockAux___main___spec__1___rarg(x_312, x_313, x_311, x_311, x_1, x_2, x_3); +return x_314; } } } @@ -9770,7 +9798,7 @@ x_5 = lean::cnstr_get(x_4, 0); lean::inc(x_5); if (lean::obj_tag(x_5) == 0) { -obj* x_7; obj* x_10; obj* x_12; obj* x_15; obj* x_16; obj* x_18; obj* x_20; obj* x_21; +obj* x_7; obj* x_10; obj* x_12; obj* x_15; obj* x_16; x_7 = lean::cnstr_get(x_4, 1); lean::inc(x_7); lean::dec(x_4); @@ -9781,184 +9809,187 @@ lean::inc(x_12); lean::dec(x_5); x_15 = l_Lean_Parser_MonadParsec_takeWhile1___at_Lean_Parser_detailIdentPart_Parser_Lean_Parser_HasTokens___spec__1(x_0, x_10, x_7); x_16 = lean::cnstr_get(x_15, 0); +lean::inc(x_16); +if (lean::obj_tag(x_16) == 0) +{ +obj* x_18; obj* x_21; obj* x_23; obj* x_25; uint32 x_28; obj* x_29; obj* x_30; x_18 = lean::cnstr_get(x_15, 1); -if (lean::is_exclusive(x_15)) { - lean::cnstr_set(x_15, 0, lean::box(0)); - lean::cnstr_set(x_15, 1, lean::box(0)); - x_20 = x_15; -} else { - lean::inc(x_16); - lean::inc(x_18); - lean::dec(x_15); - x_20 = lean::box(0); -} -x_21 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_16); -if (lean::obj_tag(x_21) == 0) -{ -obj* x_23; obj* x_25; obj* x_27; uint32 x_30; obj* x_31; obj* x_32; -lean::dec(x_20); -x_23 = lean::cnstr_get(x_21, 0); +lean::inc(x_18); +lean::dec(x_15); +x_21 = lean::cnstr_get(x_16, 0); +lean::inc(x_21); +x_23 = lean::cnstr_get(x_16, 1); lean::inc(x_23); -x_25 = lean::cnstr_get(x_21, 1); +x_25 = lean::cnstr_get(x_16, 2); lean::inc(x_25); -x_27 = lean::cnstr_get(x_21, 2); -lean::inc(x_27); -lean::dec(x_21); -x_30 = l_Lean_idEndEscape; -x_31 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_30, x_0, x_25, x_18); -x_32 = lean::cnstr_get(x_31, 0); -lean::inc(x_32); -if (lean::obj_tag(x_32) == 0) +lean::dec(x_16); +x_28 = l_Lean_idEndEscape; +x_29 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_28, x_0, x_23, x_18); +x_30 = lean::cnstr_get(x_29, 0); +lean::inc(x_30); +if (lean::obj_tag(x_30) == 0) { -obj* x_34; obj* x_36; obj* x_37; obj* x_39; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; -x_34 = lean::cnstr_get(x_31, 1); -if (lean::is_exclusive(x_31)) { - lean::cnstr_release(x_31, 0); - x_36 = x_31; +obj* x_32; obj* x_34; obj* x_35; obj* x_37; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; +x_32 = lean::cnstr_get(x_29, 1); +if (lean::is_exclusive(x_29)) { + lean::cnstr_release(x_29, 0); + x_34 = x_29; } else { - lean::inc(x_34); - lean::dec(x_31); - x_36 = lean::box(0); + lean::inc(x_32); + lean::dec(x_29); + x_34 = lean::box(0); } -x_37 = lean::cnstr_get(x_32, 1); -x_39 = lean::cnstr_get(x_32, 2); -if (lean::is_exclusive(x_32)) { - lean::cnstr_release(x_32, 0); - x_41 = x_32; +x_35 = lean::cnstr_get(x_30, 1); +x_37 = lean::cnstr_get(x_30, 2); +if (lean::is_exclusive(x_30)) { + lean::cnstr_release(x_30, 0); + x_39 = x_30; } else { + lean::inc(x_35); lean::inc(x_37); - lean::inc(x_39); - lean::dec(x_32); - x_41 = lean::box(0); + lean::dec(x_30); + x_39 = lean::box(0); } -x_42 = l_Lean_Parser_Parsec_Result_mkEps___rarg___closed__1; -if (lean::is_scalar(x_41)) { - x_43 = lean::alloc_cnstr(0, 3, 0); +x_40 = l_Lean_Parser_Parsec_Result_mkEps___rarg___closed__1; +if (lean::is_scalar(x_39)) { + x_41 = lean::alloc_cnstr(0, 3, 0); } else { - x_43 = x_41; + x_41 = x_39; } -lean::cnstr_set(x_43, 0, x_23); -lean::cnstr_set(x_43, 1, x_37); -lean::cnstr_set(x_43, 2, x_42); -x_44 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_39, x_43); -x_45 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_27, x_44); -if (lean::is_scalar(x_36)) { - x_46 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_41, 0, x_21); +lean::cnstr_set(x_41, 1, x_35); +lean::cnstr_set(x_41, 2, x_40); +x_42 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_37, x_41); +x_43 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_25, x_42); +x_44 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_43); +if (lean::is_scalar(x_34)) { + x_45 = lean::alloc_cnstr(0, 2, 0); } else { - x_46 = x_36; + x_45 = x_34; } -lean::cnstr_set(x_46, 0, x_45); -lean::cnstr_set(x_46, 1, x_34); -return x_46; +lean::cnstr_set(x_45, 0, x_44); +lean::cnstr_set(x_45, 1, x_32); +return x_45; } else { -obj* x_48; obj* x_50; obj* x_51; uint8 x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58; -lean::dec(x_23); -x_48 = lean::cnstr_get(x_31, 1); -if (lean::is_exclusive(x_31)) { - lean::cnstr_release(x_31, 0); - x_50 = x_31; +obj* x_47; obj* x_49; obj* x_50; uint8 x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58; +lean::dec(x_21); +x_47 = lean::cnstr_get(x_29, 1); +if (lean::is_exclusive(x_29)) { + lean::cnstr_release(x_29, 0); + x_49 = x_29; } else { - lean::inc(x_48); - lean::dec(x_31); - x_50 = lean::box(0); + lean::inc(x_47); + lean::dec(x_29); + x_49 = lean::box(0); } -x_51 = lean::cnstr_get(x_32, 0); -x_53 = lean::cnstr_get_scalar(x_32, sizeof(void*)*1); -if (lean::is_exclusive(x_32)) { - x_54 = x_32; +x_50 = lean::cnstr_get(x_30, 0); +x_52 = lean::cnstr_get_scalar(x_30, sizeof(void*)*1); +if (lean::is_exclusive(x_30)) { + x_53 = x_30; } else { - lean::inc(x_51); - lean::dec(x_32); - x_54 = lean::box(0); + lean::inc(x_50); + lean::dec(x_30); + x_53 = lean::box(0); } -if (lean::is_scalar(x_54)) { - x_55 = lean::alloc_cnstr(1, 1, 1); +if (lean::is_scalar(x_53)) { + x_54 = lean::alloc_cnstr(1, 1, 1); } else { - x_55 = x_54; + x_54 = x_53; } -lean::cnstr_set(x_55, 0, x_51); -lean::cnstr_set_scalar(x_55, sizeof(void*)*1, x_53); -x_56 = x_55; -x_57 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_27, x_56); -if (lean::is_scalar(x_50)) { +lean::cnstr_set(x_54, 0, x_50); +lean::cnstr_set_scalar(x_54, sizeof(void*)*1, x_52); +x_55 = x_54; +x_56 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_25, x_55); +x_57 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_56); +if (lean::is_scalar(x_49)) { x_58 = lean::alloc_cnstr(0, 2, 0); } else { - x_58 = x_50; + x_58 = x_49; } lean::cnstr_set(x_58, 0, x_57); -lean::cnstr_set(x_58, 1, x_48); +lean::cnstr_set(x_58, 1, x_47); return x_58; } } else { -obj* x_59; uint8 x_61; obj* x_62; obj* x_63; obj* x_64; obj* x_65; -x_59 = lean::cnstr_get(x_21, 0); -x_61 = lean::cnstr_get_scalar(x_21, sizeof(void*)*1); -if (lean::is_exclusive(x_21)) { - x_62 = x_21; +obj* x_59; obj* x_61; obj* x_62; uint8 x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_68; obj* x_69; +x_59 = lean::cnstr_get(x_15, 1); +if (lean::is_exclusive(x_15)) { + lean::cnstr_release(x_15, 0); + x_61 = x_15; } else { lean::inc(x_59); - lean::dec(x_21); - x_62 = lean::box(0); + lean::dec(x_15); + x_61 = lean::box(0); } -if (lean::is_scalar(x_62)) { - x_63 = lean::alloc_cnstr(1, 1, 1); +x_62 = lean::cnstr_get(x_16, 0); +x_64 = lean::cnstr_get_scalar(x_16, sizeof(void*)*1); +if (lean::is_exclusive(x_16)) { + x_65 = x_16; } else { - x_63 = x_62; + lean::inc(x_62); + lean::dec(x_16); + x_65 = lean::box(0); } -lean::cnstr_set(x_63, 0, x_59); -lean::cnstr_set_scalar(x_63, sizeof(void*)*1, x_61); -x_64 = x_63; -if (lean::is_scalar(x_20)) { - x_65 = lean::alloc_cnstr(0, 2, 0); +if (lean::is_scalar(x_65)) { + x_66 = lean::alloc_cnstr(1, 1, 1); } else { - x_65 = x_20; + x_66 = x_65; } -lean::cnstr_set(x_65, 0, x_64); -lean::cnstr_set(x_65, 1, x_18); -return x_65; +lean::cnstr_set(x_66, 0, x_62); +lean::cnstr_set_scalar(x_66, sizeof(void*)*1, x_64); +x_67 = x_66; +x_68 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_67); +if (lean::is_scalar(x_61)) { + x_69 = lean::alloc_cnstr(0, 2, 0); +} else { + x_69 = x_61; +} +lean::cnstr_set(x_69, 0, x_68); +lean::cnstr_set(x_69, 1, x_59); +return x_69; } } else { -obj* x_66; obj* x_68; obj* x_69; uint8 x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75; -x_66 = lean::cnstr_get(x_4, 1); +obj* x_70; obj* x_72; obj* x_73; uint8 x_75; obj* x_76; obj* x_77; obj* x_78; obj* x_79; +x_70 = lean::cnstr_get(x_4, 1); if (lean::is_exclusive(x_4)) { lean::cnstr_release(x_4, 0); - x_68 = x_4; + x_72 = x_4; } else { - lean::inc(x_66); + lean::inc(x_70); lean::dec(x_4); - x_68 = lean::box(0); -} -x_69 = lean::cnstr_get(x_5, 0); -x_71 = lean::cnstr_get_scalar(x_5, sizeof(void*)*1); -if (lean::is_exclusive(x_5)) { - x_72 = x_5; -} else { - lean::inc(x_69); - lean::dec(x_5); x_72 = lean::box(0); } +x_73 = lean::cnstr_get(x_5, 0); +x_75 = lean::cnstr_get_scalar(x_5, sizeof(void*)*1); +if (lean::is_exclusive(x_5)) { + x_76 = x_5; +} else { + lean::inc(x_73); + lean::dec(x_5); + x_76 = lean::box(0); +} +if (lean::is_scalar(x_76)) { + x_77 = lean::alloc_cnstr(1, 1, 1); +} else { + x_77 = x_76; +} +lean::cnstr_set(x_77, 0, x_73); +lean::cnstr_set_scalar(x_77, sizeof(void*)*1, x_75); +x_78 = x_77; if (lean::is_scalar(x_72)) { - x_73 = lean::alloc_cnstr(1, 1, 1); + x_79 = lean::alloc_cnstr(0, 2, 0); } else { - x_73 = x_72; + x_79 = x_72; } -lean::cnstr_set(x_73, 0, x_69); -lean::cnstr_set_scalar(x_73, sizeof(void*)*1, x_71); -x_74 = x_73; -if (lean::is_scalar(x_68)) { - x_75 = lean::alloc_cnstr(0, 2, 0); -} else { - x_75 = x_68; -} -lean::cnstr_set(x_75, 0, x_74); -lean::cnstr_set(x_75, 1, x_66); -return x_75; +lean::cnstr_set(x_79, 0, x_78); +lean::cnstr_set(x_79, 1, x_70); +return x_79; } } } @@ -11419,168 +11450,191 @@ return x_6; obj* l_Lean_Parser_parseBinLit(obj* x_0, obj* x_1, obj* x_2) { _start: { -uint32 x_3; obj* x_4; obj* x_5; obj* x_7; obj* x_8; +uint32 x_3; obj* x_4; obj* x_5; x_3 = 48; -x_7 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_3, x_0, x_1, x_2); -x_8 = lean::cnstr_get(x_7, 0); -lean::inc(x_8); -if (lean::obj_tag(x_8) == 0) +x_4 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_3, x_0, x_1, x_2); +x_5 = lean::cnstr_get(x_4, 0); +lean::inc(x_5); +if (lean::obj_tag(x_5) == 0) { -obj* x_10; obj* x_13; obj* x_15; uint32 x_18; obj* x_20; obj* x_21; -x_10 = lean::cnstr_get(x_7, 1); +obj* x_7; obj* x_9; obj* x_10; obj* x_12; uint32 x_15; obj* x_16; obj* x_17; obj* x_20; obj* x_21; +x_7 = lean::cnstr_get(x_4, 1); +if (lean::is_exclusive(x_4)) { + lean::cnstr_release(x_4, 0); + lean::cnstr_set(x_4, 1, lean::box(0)); + x_9 = x_4; +} else { + lean::inc(x_7); + lean::dec(x_4); + x_9 = lean::box(0); +} +x_10 = lean::cnstr_get(x_5, 1); lean::inc(x_10); -lean::dec(x_7); -x_13 = lean::cnstr_get(x_8, 1); -lean::inc(x_13); -x_15 = lean::cnstr_get(x_8, 2); -lean::inc(x_15); -lean::dec(x_8); -x_18 = 98; -lean::inc(x_13); -x_20 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_18, x_0, x_13, x_10); +x_12 = lean::cnstr_get(x_5, 2); +lean::inc(x_12); +lean::dec(x_5); +x_15 = 98; +lean::inc(x_10); +x_20 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_15, x_0, x_10, x_7); x_21 = lean::cnstr_get(x_20, 0); lean::inc(x_21); if (lean::obj_tag(x_21) == 0) { -obj* x_24; obj* x_27; -lean::dec(x_13); +obj* x_24; +lean::dec(x_10); x_24 = lean::cnstr_get(x_20, 1); lean::inc(x_24); lean::dec(x_20); -x_27 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_21); -x_4 = x_27; -x_5 = x_24; -goto lbl_6; +x_16 = x_21; +x_17 = x_24; +goto lbl_18; } else { -uint8 x_28; -x_28 = lean::cnstr_get_scalar(x_21, sizeof(void*)*1); -if (x_28 == 0) +uint8 x_27; +x_27 = lean::cnstr_get_scalar(x_21, sizeof(void*)*1); +if (x_27 == 0) { -obj* x_29; obj* x_32; uint32 x_35; obj* x_36; obj* x_37; obj* x_39; obj* x_42; obj* x_43; -x_29 = lean::cnstr_get(x_20, 1); -lean::inc(x_29); +obj* x_28; obj* x_31; uint32 x_34; obj* x_35; obj* x_36; obj* x_38; obj* x_41; +x_28 = lean::cnstr_get(x_20, 1); +lean::inc(x_28); lean::dec(x_20); -x_32 = lean::cnstr_get(x_21, 0); -lean::inc(x_32); +x_31 = lean::cnstr_get(x_21, 0); +lean::inc(x_31); lean::dec(x_21); -x_35 = 66; -x_36 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_35, x_0, x_13, x_29); -x_37 = lean::cnstr_get(x_36, 0); -lean::inc(x_37); -x_39 = lean::cnstr_get(x_36, 1); -lean::inc(x_39); -lean::dec(x_36); -x_42 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_32, x_37); -x_43 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_42); -x_4 = x_43; -x_5 = x_39; -goto lbl_6; +x_34 = 66; +x_35 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_34, x_0, x_10, x_28); +x_36 = lean::cnstr_get(x_35, 0); +lean::inc(x_36); +x_38 = lean::cnstr_get(x_35, 1); +lean::inc(x_38); +lean::dec(x_35); +x_41 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_31, x_36); +x_16 = x_41; +x_17 = x_38; +goto lbl_18; } else { -obj* x_45; obj* x_48; -lean::dec(x_13); -x_45 = lean::cnstr_get(x_20, 1); -lean::inc(x_45); +obj* x_43; +lean::dec(x_10); +x_43 = lean::cnstr_get(x_20, 1); +lean::inc(x_43); lean::dec(x_20); -x_48 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_21); -x_4 = x_48; -x_5 = x_45; -goto lbl_6; +x_16 = x_21; +x_17 = x_43; +goto lbl_18; } } +lbl_18: +{ +if (lean::obj_tag(x_16) == 0) +{ +obj* x_47; obj* x_49; obj* x_52; obj* x_53; obj* x_54; obj* x_56; obj* x_58; obj* x_60; obj* x_61; obj* x_62; obj* x_63; obj* x_64; obj* x_65; +lean::dec(x_9); +x_47 = lean::cnstr_get(x_16, 1); +lean::inc(x_47); +x_49 = lean::cnstr_get(x_16, 2); +lean::inc(x_49); +lean::dec(x_16); +x_52 = l_String_OldIterator_remaining___main(x_47); +x_53 = l_Lean_Parser_parseBinLit___closed__1; +x_54 = l_Lean_Parser_MonadParsec_many1Aux_x_27___main___at_Lean_Parser_parseBinLit___spec__2(x_53, x_52, x_0, x_47, x_17); +lean::dec(x_52); +x_56 = lean::cnstr_get(x_54, 0); +x_58 = lean::cnstr_get(x_54, 1); +if (lean::is_exclusive(x_54)) { + x_60 = x_54; +} else { + lean::inc(x_56); + lean::inc(x_58); + lean::dec(x_54); + x_60 = lean::box(0); +} +x_61 = l_Lean_Parser_finishCommentBlock___closed__2; +x_62 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_61, x_56); +x_63 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_49, x_62); +x_64 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_63); +if (lean::is_scalar(x_60)) { + x_65 = lean::alloc_cnstr(0, 2, 0); +} else { + x_65 = x_60; +} +lean::cnstr_set(x_65, 0, x_64); +lean::cnstr_set(x_65, 1, x_58); +return x_65; } else { -obj* x_49; obj* x_52; uint8 x_54; obj* x_55; obj* x_56; obj* x_57; -x_49 = lean::cnstr_get(x_7, 1); -lean::inc(x_49); -lean::dec(x_7); -x_52 = lean::cnstr_get(x_8, 0); -x_54 = lean::cnstr_get_scalar(x_8, sizeof(void*)*1); -if (lean::is_exclusive(x_8)) { - x_55 = x_8; -} else { - lean::inc(x_52); - lean::dec(x_8); - x_55 = lean::box(0); -} -if (lean::is_scalar(x_55)) { - x_56 = lean::alloc_cnstr(1, 1, 1); -} else { - x_56 = x_55; -} -lean::cnstr_set(x_56, 0, x_52); -lean::cnstr_set_scalar(x_56, sizeof(void*)*1, x_54); -x_57 = x_56; -x_4 = x_57; -x_5 = x_49; -goto lbl_6; -} -lbl_6: -{ -if (lean::obj_tag(x_4) == 0) -{ -obj* x_58; obj* x_60; obj* x_63; obj* x_64; obj* x_65; obj* x_67; obj* x_69; obj* x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75; -x_58 = lean::cnstr_get(x_4, 1); -lean::inc(x_58); -x_60 = lean::cnstr_get(x_4, 2); -lean::inc(x_60); -lean::dec(x_4); -x_63 = l_String_OldIterator_remaining___main(x_58); -x_64 = l_Lean_Parser_parseBinLit___closed__1; -x_65 = l_Lean_Parser_MonadParsec_many1Aux_x_27___main___at_Lean_Parser_parseBinLit___spec__2(x_64, x_63, x_0, x_58, x_5); -lean::dec(x_63); -x_67 = lean::cnstr_get(x_65, 0); -x_69 = lean::cnstr_get(x_65, 1); -if (lean::is_exclusive(x_65)) { - x_71 = x_65; +obj* x_67; uint8 x_69; obj* x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74; +lean::dec(x_0); +x_67 = lean::cnstr_get(x_16, 0); +x_69 = lean::cnstr_get_scalar(x_16, sizeof(void*)*1); +if (lean::is_exclusive(x_16)) { + x_70 = x_16; } else { lean::inc(x_67); - lean::inc(x_69); - lean::dec(x_65); - x_71 = lean::box(0); + lean::dec(x_16); + x_70 = lean::box(0); } -x_72 = l_Lean_Parser_finishCommentBlock___closed__2; -x_73 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_72, x_67); -x_74 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_60, x_73); -if (lean::is_scalar(x_71)) { - x_75 = lean::alloc_cnstr(0, 2, 0); +if (lean::is_scalar(x_70)) { + x_71 = lean::alloc_cnstr(1, 1, 1); } else { - x_75 = x_71; + x_71 = x_70; +} +lean::cnstr_set(x_71, 0, x_67); +lean::cnstr_set_scalar(x_71, sizeof(void*)*1, x_69); +x_72 = x_71; +x_73 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_72); +if (lean::is_scalar(x_9)) { + x_74 = lean::alloc_cnstr(0, 2, 0); +} else { + x_74 = x_9; +} +lean::cnstr_set(x_74, 0, x_73); +lean::cnstr_set(x_74, 1, x_17); +return x_74; +} } -lean::cnstr_set(x_75, 0, x_74); -lean::cnstr_set(x_75, 1, x_69); -return x_75; } else { -obj* x_77; uint8 x_79; obj* x_80; obj* x_81; obj* x_82; obj* x_83; +obj* x_76; obj* x_78; obj* x_79; uint8 x_81; obj* x_82; obj* x_83; obj* x_84; obj* x_85; lean::dec(x_0); -x_77 = lean::cnstr_get(x_4, 0); -x_79 = lean::cnstr_get_scalar(x_4, sizeof(void*)*1); +x_76 = lean::cnstr_get(x_4, 1); if (lean::is_exclusive(x_4)) { - x_80 = x_4; + lean::cnstr_release(x_4, 0); + x_78 = x_4; } else { - lean::inc(x_77); + lean::inc(x_76); lean::dec(x_4); - x_80 = lean::box(0); + x_78 = lean::box(0); } -if (lean::is_scalar(x_80)) { - x_81 = lean::alloc_cnstr(1, 1, 1); +x_79 = lean::cnstr_get(x_5, 0); +x_81 = lean::cnstr_get_scalar(x_5, sizeof(void*)*1); +if (lean::is_exclusive(x_5)) { + x_82 = x_5; } else { - x_81 = x_80; + lean::inc(x_79); + lean::dec(x_5); + x_82 = lean::box(0); } -lean::cnstr_set(x_81, 0, x_77); -lean::cnstr_set_scalar(x_81, sizeof(void*)*1, x_79); -x_82 = x_81; -x_83 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_83, 0, x_82); -lean::cnstr_set(x_83, 1, x_5); -return x_83; +if (lean::is_scalar(x_82)) { + x_83 = lean::alloc_cnstr(1, 1, 1); +} else { + x_83 = x_82; } +lean::cnstr_set(x_83, 0, x_79); +lean::cnstr_set_scalar(x_83, sizeof(void*)*1, x_81); +x_84 = x_83; +if (lean::is_scalar(x_78)) { + x_85 = lean::alloc_cnstr(0, 2, 0); +} else { + x_85 = x_78; +} +lean::cnstr_set(x_85, 0, x_84); +lean::cnstr_set(x_85, 1, x_76); +return x_85; } } } @@ -11840,162 +11894,229 @@ return x_81; obj* l_Lean_Parser_parseOctLit(obj* x_0, obj* x_1, obj* x_2) { _start: { -uint32 x_3; obj* x_4; obj* x_5; obj* x_7; obj* x_8; +uint32 x_3; obj* x_4; obj* x_5; x_3 = 48; -x_7 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_3, x_0, x_1, x_2); -x_8 = lean::cnstr_get(x_7, 0); -lean::inc(x_8); -if (lean::obj_tag(x_8) == 0) +x_4 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_3, x_0, x_1, x_2); +x_5 = lean::cnstr_get(x_4, 0); +lean::inc(x_5); +if (lean::obj_tag(x_5) == 0) { -obj* x_10; obj* x_13; obj* x_15; uint32 x_18; obj* x_20; obj* x_21; -x_10 = lean::cnstr_get(x_7, 1); -lean::inc(x_10); -lean::dec(x_7); -x_13 = lean::cnstr_get(x_8, 1); -lean::inc(x_13); -x_15 = lean::cnstr_get(x_8, 2); -lean::inc(x_15); -lean::dec(x_8); -x_18 = 111; -lean::inc(x_13); -x_20 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_18, x_0, x_13, x_10); -x_21 = lean::cnstr_get(x_20, 0); -lean::inc(x_21); -if (lean::obj_tag(x_21) == 0) -{ -obj* x_24; obj* x_27; -lean::dec(x_13); -x_24 = lean::cnstr_get(x_20, 1); -lean::inc(x_24); -lean::dec(x_20); -x_27 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_21); -x_4 = x_27; -x_5 = x_24; -goto lbl_6; -} -else -{ -uint8 x_28; -x_28 = lean::cnstr_get_scalar(x_21, sizeof(void*)*1); -if (x_28 == 0) -{ -obj* x_29; obj* x_32; uint32 x_35; obj* x_36; obj* x_37; obj* x_39; obj* x_42; obj* x_43; -x_29 = lean::cnstr_get(x_20, 1); -lean::inc(x_29); -lean::dec(x_20); -x_32 = lean::cnstr_get(x_21, 0); -lean::inc(x_32); -lean::dec(x_21); -x_35 = 79; -x_36 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_35, x_0, x_13, x_29); -x_37 = lean::cnstr_get(x_36, 0); -lean::inc(x_37); -x_39 = lean::cnstr_get(x_36, 1); -lean::inc(x_39); -lean::dec(x_36); -x_42 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_32, x_37); -x_43 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_42); -x_4 = x_43; -x_5 = x_39; -goto lbl_6; -} -else -{ -obj* x_45; obj* x_48; -lean::dec(x_13); -x_45 = lean::cnstr_get(x_20, 1); -lean::inc(x_45); -lean::dec(x_20); -x_48 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_21); -x_4 = x_48; -x_5 = x_45; -goto lbl_6; -} -} -} -else -{ -obj* x_49; obj* x_52; uint8 x_54; obj* x_55; obj* x_56; obj* x_57; -x_49 = lean::cnstr_get(x_7, 1); -lean::inc(x_49); -lean::dec(x_7); -x_52 = lean::cnstr_get(x_8, 0); -x_54 = lean::cnstr_get_scalar(x_8, sizeof(void*)*1); -if (lean::is_exclusive(x_8)) { - x_55 = x_8; -} else { - lean::inc(x_52); - lean::dec(x_8); - x_55 = lean::box(0); -} -if (lean::is_scalar(x_55)) { - x_56 = lean::alloc_cnstr(1, 1, 1); -} else { - x_56 = x_55; -} -lean::cnstr_set(x_56, 0, x_52); -lean::cnstr_set_scalar(x_56, sizeof(void*)*1, x_54); -x_57 = x_56; -x_4 = x_57; -x_5 = x_49; -goto lbl_6; -} -lbl_6: -{ -if (lean::obj_tag(x_4) == 0) -{ -obj* x_58; obj* x_60; obj* x_63; obj* x_64; obj* x_66; obj* x_68; obj* x_69; obj* x_70; -x_58 = lean::cnstr_get(x_4, 1); -lean::inc(x_58); -x_60 = lean::cnstr_get(x_4, 2); -lean::inc(x_60); +obj* x_7; obj* x_10; obj* x_12; uint32 x_15; obj* x_17; obj* x_18; +x_7 = lean::cnstr_get(x_4, 1); +lean::inc(x_7); lean::dec(x_4); -x_63 = l_Lean_Parser_MonadParsec_takeWhile1___at_Lean_Parser_parseOctLit___spec__1(x_3, x_0, x_58, x_5); -x_64 = lean::cnstr_get(x_63, 0); -x_66 = lean::cnstr_get(x_63, 1); -if (lean::is_exclusive(x_63)) { - x_68 = x_63; +x_10 = lean::cnstr_get(x_5, 1); +lean::inc(x_10); +x_12 = lean::cnstr_get(x_5, 2); +lean::inc(x_12); +lean::dec(x_5); +x_15 = 111; +lean::inc(x_10); +x_17 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_15, x_0, x_10, x_7); +x_18 = lean::cnstr_get(x_17, 0); +lean::inc(x_18); +if (lean::obj_tag(x_18) == 0) +{ +obj* x_21; obj* x_24; obj* x_26; obj* x_29; obj* x_30; obj* x_32; obj* x_34; obj* x_35; obj* x_36; obj* x_37; +lean::dec(x_10); +x_21 = lean::cnstr_get(x_17, 1); +lean::inc(x_21); +lean::dec(x_17); +x_24 = lean::cnstr_get(x_18, 1); +lean::inc(x_24); +x_26 = lean::cnstr_get(x_18, 2); +lean::inc(x_26); +lean::dec(x_18); +x_29 = l_Lean_Parser_MonadParsec_takeWhile1___at_Lean_Parser_parseOctLit___spec__1(x_3, x_0, x_24, x_21); +x_30 = lean::cnstr_get(x_29, 0); +x_32 = lean::cnstr_get(x_29, 1); +if (lean::is_exclusive(x_29)) { + x_34 = x_29; } else { - lean::inc(x_64); - lean::inc(x_66); - lean::dec(x_63); - x_68 = lean::box(0); + lean::inc(x_30); + lean::inc(x_32); + lean::dec(x_29); + x_34 = lean::box(0); } -x_69 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_60, x_64); -if (lean::is_scalar(x_68)) { - x_70 = lean::alloc_cnstr(0, 2, 0); +x_35 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_26, x_30); +x_36 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_35); +if (lean::is_scalar(x_34)) { + x_37 = lean::alloc_cnstr(0, 2, 0); } else { - x_70 = x_68; + x_37 = x_34; } -lean::cnstr_set(x_70, 0, x_69); -lean::cnstr_set(x_70, 1, x_66); -return x_70; +lean::cnstr_set(x_37, 0, x_36); +lean::cnstr_set(x_37, 1, x_32); +return x_37; } else { -obj* x_71; uint8 x_73; obj* x_74; obj* x_75; obj* x_76; obj* x_77; -x_71 = lean::cnstr_get(x_4, 0); -x_73 = lean::cnstr_get_scalar(x_4, sizeof(void*)*1); +uint8 x_38; +x_38 = lean::cnstr_get_scalar(x_18, sizeof(void*)*1); +if (x_38 == 0) +{ +obj* x_39; obj* x_42; uint32 x_45; obj* x_46; obj* x_47; obj* x_49; obj* x_51; obj* x_52; +x_39 = lean::cnstr_get(x_17, 1); +lean::inc(x_39); +lean::dec(x_17); +x_42 = lean::cnstr_get(x_18, 0); +lean::inc(x_42); +lean::dec(x_18); +x_45 = 79; +x_46 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_45, x_0, x_10, x_39); +x_47 = lean::cnstr_get(x_46, 0); +x_49 = lean::cnstr_get(x_46, 1); +if (lean::is_exclusive(x_46)) { + lean::cnstr_set(x_46, 0, lean::box(0)); + lean::cnstr_set(x_46, 1, lean::box(0)); + x_51 = x_46; +} else { + lean::inc(x_47); + lean::inc(x_49); + lean::dec(x_46); + x_51 = lean::box(0); +} +x_52 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_42, x_47); +if (lean::obj_tag(x_52) == 0) +{ +obj* x_54; obj* x_56; obj* x_59; obj* x_60; obj* x_62; obj* x_64; obj* x_65; obj* x_66; obj* x_67; +lean::dec(x_51); +x_54 = lean::cnstr_get(x_52, 1); +lean::inc(x_54); +x_56 = lean::cnstr_get(x_52, 2); +lean::inc(x_56); +lean::dec(x_52); +x_59 = l_Lean_Parser_MonadParsec_takeWhile1___at_Lean_Parser_parseOctLit___spec__1(x_3, x_0, x_54, x_49); +x_60 = lean::cnstr_get(x_59, 0); +x_62 = lean::cnstr_get(x_59, 1); +if (lean::is_exclusive(x_59)) { + x_64 = x_59; +} else { + lean::inc(x_60); + lean::inc(x_62); + lean::dec(x_59); + x_64 = lean::box(0); +} +x_65 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_56, x_60); +x_66 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_65); +if (lean::is_scalar(x_64)) { + x_67 = lean::alloc_cnstr(0, 2, 0); +} else { + x_67 = x_64; +} +lean::cnstr_set(x_67, 0, x_66); +lean::cnstr_set(x_67, 1, x_62); +return x_67; +} +else +{ +obj* x_68; uint8 x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75; +x_68 = lean::cnstr_get(x_52, 0); +x_70 = lean::cnstr_get_scalar(x_52, sizeof(void*)*1); +if (lean::is_exclusive(x_52)) { + x_71 = x_52; +} else { + lean::inc(x_68); + lean::dec(x_52); + x_71 = lean::box(0); +} +if (lean::is_scalar(x_71)) { + x_72 = lean::alloc_cnstr(1, 1, 1); +} else { + x_72 = x_71; +} +lean::cnstr_set(x_72, 0, x_68); +lean::cnstr_set_scalar(x_72, sizeof(void*)*1, x_70); +x_73 = x_72; +x_74 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_73); +if (lean::is_scalar(x_51)) { + x_75 = lean::alloc_cnstr(0, 2, 0); +} else { + x_75 = x_51; +} +lean::cnstr_set(x_75, 0, x_74); +lean::cnstr_set(x_75, 1, x_49); +return x_75; +} +} +else +{ +obj* x_77; obj* x_79; obj* x_80; obj* x_82; obj* x_83; obj* x_84; obj* x_85; obj* x_86; +lean::dec(x_10); +x_77 = lean::cnstr_get(x_17, 1); +if (lean::is_exclusive(x_17)) { + lean::cnstr_release(x_17, 0); + x_79 = x_17; +} else { + lean::inc(x_77); + lean::dec(x_17); + x_79 = lean::box(0); +} +x_80 = lean::cnstr_get(x_18, 0); +if (lean::is_exclusive(x_18)) { + x_82 = x_18; +} else { + lean::inc(x_80); + lean::dec(x_18); + x_82 = lean::box(0); +} +if (lean::is_scalar(x_82)) { + x_83 = lean::alloc_cnstr(1, 1, 1); +} else { + x_83 = x_82; +} +lean::cnstr_set(x_83, 0, x_80); +lean::cnstr_set_scalar(x_83, sizeof(void*)*1, x_38); +x_84 = x_83; +x_85 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_84); +if (lean::is_scalar(x_79)) { + x_86 = lean::alloc_cnstr(0, 2, 0); +} else { + x_86 = x_79; +} +lean::cnstr_set(x_86, 0, x_85); +lean::cnstr_set(x_86, 1, x_77); +return x_86; +} +} +} +else +{ +obj* x_87; obj* x_89; obj* x_90; uint8 x_92; obj* x_93; obj* x_94; obj* x_95; obj* x_96; +x_87 = lean::cnstr_get(x_4, 1); if (lean::is_exclusive(x_4)) { - x_74 = x_4; + lean::cnstr_release(x_4, 0); + x_89 = x_4; } else { - lean::inc(x_71); + lean::inc(x_87); lean::dec(x_4); - x_74 = lean::box(0); + x_89 = lean::box(0); } -if (lean::is_scalar(x_74)) { - x_75 = lean::alloc_cnstr(1, 1, 1); +x_90 = lean::cnstr_get(x_5, 0); +x_92 = lean::cnstr_get_scalar(x_5, sizeof(void*)*1); +if (lean::is_exclusive(x_5)) { + x_93 = x_5; } else { - x_75 = x_74; + lean::inc(x_90); + lean::dec(x_5); + x_93 = lean::box(0); } -lean::cnstr_set(x_75, 0, x_71); -lean::cnstr_set_scalar(x_75, sizeof(void*)*1, x_73); -x_76 = x_75; -x_77 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_77, 0, x_76); -lean::cnstr_set(x_77, 1, x_5); -return x_77; +if (lean::is_scalar(x_93)) { + x_94 = lean::alloc_cnstr(1, 1, 1); +} else { + x_94 = x_93; } +lean::cnstr_set(x_94, 0, x_90); +lean::cnstr_set_scalar(x_94, sizeof(void*)*1, x_92); +x_95 = x_94; +if (lean::is_scalar(x_89)) { + x_96 = lean::alloc_cnstr(0, 2, 0); +} else { + x_96 = x_89; +} +lean::cnstr_set(x_96, 0, x_95); +lean::cnstr_set(x_96, 1, x_87); +return x_96; } } } @@ -12268,162 +12389,229 @@ return x_68; obj* l_Lean_Parser_parseHexLit(obj* x_0, obj* x_1, obj* x_2) { _start: { -uint32 x_3; obj* x_4; obj* x_5; obj* x_7; obj* x_8; +uint32 x_3; obj* x_4; obj* x_5; x_3 = 48; -x_7 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_3, x_0, x_1, x_2); -x_8 = lean::cnstr_get(x_7, 0); -lean::inc(x_8); -if (lean::obj_tag(x_8) == 0) +x_4 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_3, x_0, x_1, x_2); +x_5 = lean::cnstr_get(x_4, 0); +lean::inc(x_5); +if (lean::obj_tag(x_5) == 0) { -obj* x_10; obj* x_13; obj* x_15; uint32 x_18; obj* x_20; obj* x_21; -x_10 = lean::cnstr_get(x_7, 1); -lean::inc(x_10); -lean::dec(x_7); -x_13 = lean::cnstr_get(x_8, 1); -lean::inc(x_13); -x_15 = lean::cnstr_get(x_8, 2); -lean::inc(x_15); -lean::dec(x_8); -x_18 = 120; -lean::inc(x_13); -x_20 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_18, x_0, x_13, x_10); -x_21 = lean::cnstr_get(x_20, 0); -lean::inc(x_21); -if (lean::obj_tag(x_21) == 0) -{ -obj* x_24; obj* x_27; -lean::dec(x_13); -x_24 = lean::cnstr_get(x_20, 1); -lean::inc(x_24); -lean::dec(x_20); -x_27 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_21); -x_4 = x_27; -x_5 = x_24; -goto lbl_6; -} -else -{ -uint8 x_28; -x_28 = lean::cnstr_get_scalar(x_21, sizeof(void*)*1); -if (x_28 == 0) -{ -obj* x_29; obj* x_32; uint32 x_35; obj* x_36; obj* x_37; obj* x_39; obj* x_42; obj* x_43; -x_29 = lean::cnstr_get(x_20, 1); -lean::inc(x_29); -lean::dec(x_20); -x_32 = lean::cnstr_get(x_21, 0); -lean::inc(x_32); -lean::dec(x_21); -x_35 = 88; -x_36 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_35, x_0, x_13, x_29); -x_37 = lean::cnstr_get(x_36, 0); -lean::inc(x_37); -x_39 = lean::cnstr_get(x_36, 1); -lean::inc(x_39); -lean::dec(x_36); -x_42 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_32, x_37); -x_43 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_42); -x_4 = x_43; -x_5 = x_39; -goto lbl_6; -} -else -{ -obj* x_45; obj* x_48; -lean::dec(x_13); -x_45 = lean::cnstr_get(x_20, 1); -lean::inc(x_45); -lean::dec(x_20); -x_48 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_15, x_21); -x_4 = x_48; -x_5 = x_45; -goto lbl_6; -} -} -} -else -{ -obj* x_49; obj* x_52; uint8 x_54; obj* x_55; obj* x_56; obj* x_57; -x_49 = lean::cnstr_get(x_7, 1); -lean::inc(x_49); -lean::dec(x_7); -x_52 = lean::cnstr_get(x_8, 0); -x_54 = lean::cnstr_get_scalar(x_8, sizeof(void*)*1); -if (lean::is_exclusive(x_8)) { - x_55 = x_8; -} else { - lean::inc(x_52); - lean::dec(x_8); - x_55 = lean::box(0); -} -if (lean::is_scalar(x_55)) { - x_56 = lean::alloc_cnstr(1, 1, 1); -} else { - x_56 = x_55; -} -lean::cnstr_set(x_56, 0, x_52); -lean::cnstr_set_scalar(x_56, sizeof(void*)*1, x_54); -x_57 = x_56; -x_4 = x_57; -x_5 = x_49; -goto lbl_6; -} -lbl_6: -{ -if (lean::obj_tag(x_4) == 0) -{ -obj* x_58; obj* x_60; obj* x_63; obj* x_64; obj* x_66; obj* x_68; obj* x_69; obj* x_70; -x_58 = lean::cnstr_get(x_4, 1); -lean::inc(x_58); -x_60 = lean::cnstr_get(x_4, 2); -lean::inc(x_60); +obj* x_7; obj* x_10; obj* x_12; uint32 x_15; obj* x_17; obj* x_18; +x_7 = lean::cnstr_get(x_4, 1); +lean::inc(x_7); lean::dec(x_4); -x_63 = l_Lean_Parser_MonadParsec_takeWhile1___at_Lean_Parser_parseHexLit___spec__1(x_0, x_58, x_5); -x_64 = lean::cnstr_get(x_63, 0); -x_66 = lean::cnstr_get(x_63, 1); -if (lean::is_exclusive(x_63)) { - x_68 = x_63; +x_10 = lean::cnstr_get(x_5, 1); +lean::inc(x_10); +x_12 = lean::cnstr_get(x_5, 2); +lean::inc(x_12); +lean::dec(x_5); +x_15 = 120; +lean::inc(x_10); +x_17 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_15, x_0, x_10, x_7); +x_18 = lean::cnstr_get(x_17, 0); +lean::inc(x_18); +if (lean::obj_tag(x_18) == 0) +{ +obj* x_21; obj* x_24; obj* x_26; obj* x_29; obj* x_30; obj* x_32; obj* x_34; obj* x_35; obj* x_36; obj* x_37; +lean::dec(x_10); +x_21 = lean::cnstr_get(x_17, 1); +lean::inc(x_21); +lean::dec(x_17); +x_24 = lean::cnstr_get(x_18, 1); +lean::inc(x_24); +x_26 = lean::cnstr_get(x_18, 2); +lean::inc(x_26); +lean::dec(x_18); +x_29 = l_Lean_Parser_MonadParsec_takeWhile1___at_Lean_Parser_parseHexLit___spec__1(x_0, x_24, x_21); +x_30 = lean::cnstr_get(x_29, 0); +x_32 = lean::cnstr_get(x_29, 1); +if (lean::is_exclusive(x_29)) { + x_34 = x_29; } else { - lean::inc(x_64); - lean::inc(x_66); - lean::dec(x_63); - x_68 = lean::box(0); + lean::inc(x_30); + lean::inc(x_32); + lean::dec(x_29); + x_34 = lean::box(0); } -x_69 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_60, x_64); -if (lean::is_scalar(x_68)) { - x_70 = lean::alloc_cnstr(0, 2, 0); +x_35 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_26, x_30); +x_36 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_35); +if (lean::is_scalar(x_34)) { + x_37 = lean::alloc_cnstr(0, 2, 0); } else { - x_70 = x_68; + x_37 = x_34; } -lean::cnstr_set(x_70, 0, x_69); -lean::cnstr_set(x_70, 1, x_66); -return x_70; +lean::cnstr_set(x_37, 0, x_36); +lean::cnstr_set(x_37, 1, x_32); +return x_37; } else { -obj* x_71; uint8 x_73; obj* x_74; obj* x_75; obj* x_76; obj* x_77; -x_71 = lean::cnstr_get(x_4, 0); -x_73 = lean::cnstr_get_scalar(x_4, sizeof(void*)*1); +uint8 x_38; +x_38 = lean::cnstr_get_scalar(x_18, sizeof(void*)*1); +if (x_38 == 0) +{ +obj* x_39; obj* x_42; uint32 x_45; obj* x_46; obj* x_47; obj* x_49; obj* x_51; obj* x_52; +x_39 = lean::cnstr_get(x_17, 1); +lean::inc(x_39); +lean::dec(x_17); +x_42 = lean::cnstr_get(x_18, 0); +lean::inc(x_42); +lean::dec(x_18); +x_45 = 88; +x_46 = l_Lean_Parser_MonadParsec_ch___at___private_init_lean_parser_token_4__ident_x_27___spec__6(x_45, x_0, x_10, x_39); +x_47 = lean::cnstr_get(x_46, 0); +x_49 = lean::cnstr_get(x_46, 1); +if (lean::is_exclusive(x_46)) { + lean::cnstr_set(x_46, 0, lean::box(0)); + lean::cnstr_set(x_46, 1, lean::box(0)); + x_51 = x_46; +} else { + lean::inc(x_47); + lean::inc(x_49); + lean::dec(x_46); + x_51 = lean::box(0); +} +x_52 = l_Lean_Parser_ParsecT_orelseMkRes___rarg(x_42, x_47); +if (lean::obj_tag(x_52) == 0) +{ +obj* x_54; obj* x_56; obj* x_59; obj* x_60; obj* x_62; obj* x_64; obj* x_65; obj* x_66; obj* x_67; +lean::dec(x_51); +x_54 = lean::cnstr_get(x_52, 1); +lean::inc(x_54); +x_56 = lean::cnstr_get(x_52, 2); +lean::inc(x_56); +lean::dec(x_52); +x_59 = l_Lean_Parser_MonadParsec_takeWhile1___at_Lean_Parser_parseHexLit___spec__1(x_0, x_54, x_49); +x_60 = lean::cnstr_get(x_59, 0); +x_62 = lean::cnstr_get(x_59, 1); +if (lean::is_exclusive(x_59)) { + x_64 = x_59; +} else { + lean::inc(x_60); + lean::inc(x_62); + lean::dec(x_59); + x_64 = lean::box(0); +} +x_65 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_56, x_60); +x_66 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_65); +if (lean::is_scalar(x_64)) { + x_67 = lean::alloc_cnstr(0, 2, 0); +} else { + x_67 = x_64; +} +lean::cnstr_set(x_67, 0, x_66); +lean::cnstr_set(x_67, 1, x_62); +return x_67; +} +else +{ +obj* x_68; uint8 x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75; +x_68 = lean::cnstr_get(x_52, 0); +x_70 = lean::cnstr_get_scalar(x_52, sizeof(void*)*1); +if (lean::is_exclusive(x_52)) { + x_71 = x_52; +} else { + lean::inc(x_68); + lean::dec(x_52); + x_71 = lean::box(0); +} +if (lean::is_scalar(x_71)) { + x_72 = lean::alloc_cnstr(1, 1, 1); +} else { + x_72 = x_71; +} +lean::cnstr_set(x_72, 0, x_68); +lean::cnstr_set_scalar(x_72, sizeof(void*)*1, x_70); +x_73 = x_72; +x_74 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_73); +if (lean::is_scalar(x_51)) { + x_75 = lean::alloc_cnstr(0, 2, 0); +} else { + x_75 = x_51; +} +lean::cnstr_set(x_75, 0, x_74); +lean::cnstr_set(x_75, 1, x_49); +return x_75; +} +} +else +{ +obj* x_77; obj* x_79; obj* x_80; obj* x_82; obj* x_83; obj* x_84; obj* x_85; obj* x_86; +lean::dec(x_10); +x_77 = lean::cnstr_get(x_17, 1); +if (lean::is_exclusive(x_17)) { + lean::cnstr_release(x_17, 0); + x_79 = x_17; +} else { + lean::inc(x_77); + lean::dec(x_17); + x_79 = lean::box(0); +} +x_80 = lean::cnstr_get(x_18, 0); +if (lean::is_exclusive(x_18)) { + x_82 = x_18; +} else { + lean::inc(x_80); + lean::dec(x_18); + x_82 = lean::box(0); +} +if (lean::is_scalar(x_82)) { + x_83 = lean::alloc_cnstr(1, 1, 1); +} else { + x_83 = x_82; +} +lean::cnstr_set(x_83, 0, x_80); +lean::cnstr_set_scalar(x_83, sizeof(void*)*1, x_38); +x_84 = x_83; +x_85 = l_Lean_Parser_ParsecT_bindMkRes___rarg(x_12, x_84); +if (lean::is_scalar(x_79)) { + x_86 = lean::alloc_cnstr(0, 2, 0); +} else { + x_86 = x_79; +} +lean::cnstr_set(x_86, 0, x_85); +lean::cnstr_set(x_86, 1, x_77); +return x_86; +} +} +} +else +{ +obj* x_87; obj* x_89; obj* x_90; uint8 x_92; obj* x_93; obj* x_94; obj* x_95; obj* x_96; +x_87 = lean::cnstr_get(x_4, 1); if (lean::is_exclusive(x_4)) { - x_74 = x_4; + lean::cnstr_release(x_4, 0); + x_89 = x_4; } else { - lean::inc(x_71); + lean::inc(x_87); lean::dec(x_4); - x_74 = lean::box(0); + x_89 = lean::box(0); } -if (lean::is_scalar(x_74)) { - x_75 = lean::alloc_cnstr(1, 1, 1); +x_90 = lean::cnstr_get(x_5, 0); +x_92 = lean::cnstr_get_scalar(x_5, sizeof(void*)*1); +if (lean::is_exclusive(x_5)) { + x_93 = x_5; } else { - x_75 = x_74; + lean::inc(x_90); + lean::dec(x_5); + x_93 = lean::box(0); } -lean::cnstr_set(x_75, 0, x_71); -lean::cnstr_set_scalar(x_75, sizeof(void*)*1, x_73); -x_76 = x_75; -x_77 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_77, 0, x_76); -lean::cnstr_set(x_77, 1, x_5); -return x_77; +if (lean::is_scalar(x_93)) { + x_94 = lean::alloc_cnstr(1, 1, 1); +} else { + x_94 = x_93; } +lean::cnstr_set(x_94, 0, x_90); +lean::cnstr_set_scalar(x_94, sizeof(void*)*1, x_92); +x_95 = x_94; +if (lean::is_scalar(x_89)) { + x_96 = lean::alloc_cnstr(0, 2, 0); +} else { + x_96 = x_89; +} +lean::cnstr_set(x_96, 0, x_95); +lean::cnstr_set(x_96, 1, x_87); +return x_96; } } }