chore(boot): update

This commit is contained in:
Leonardo de Moura 2019-02-17 06:53:05 -08:00
parent 78440919e8
commit f4143c030f
28 changed files with 33048 additions and 34418 deletions

View file

@ -2964,13 +2964,12 @@ return x_4;
obj* _init_l_list_unzip___main___rarg___closed__1() {
_start:
{
obj* x_0; obj* x_2;
obj* x_0; obj* x_1;
x_0 = lean::box(0);
lean::inc(x_0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_0);
return x_2;
x_1 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_1, 0, x_0);
lean::cnstr_set(x_1, 1, x_0);
return x_1;
}
}
obj* l_list_unzip___main___rarg(obj* x_0) {

View file

@ -226,7 +226,7 @@ return x_7;
obj* _init_l_lean_compiler_num__scalar__types() {
_start:
{
obj* x_0; obj* x_2; obj* x_3; obj* x_6; obj* x_7; obj* x_10; obj* x_11; obj* x_12; obj* x_14; obj* x_17; obj* x_20; obj* x_21; obj* x_22; obj* x_24; obj* x_27; obj* x_30; obj* x_31; obj* x_32; obj* x_34; obj* x_37; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_45; obj* x_47; obj* x_48; obj* x_50; obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57;
obj* x_0; obj* x_2; obj* x_3; obj* x_6; obj* x_7; obj* x_10; obj* x_11; obj* x_12; obj* x_14; obj* x_17; obj* x_20; obj* x_21; obj* x_22; obj* x_24; obj* x_27; obj* x_30; obj* x_31; obj* x_32; obj* x_34; obj* x_37; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_46; obj* x_47; obj* x_49; obj* x_51; obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56;
x_0 = lean::mk_nat_obj(8u);
lean::inc(x_0);
x_2 = l_lean_compiler_mk__uint__type__name(x_0);
@ -287,35 +287,34 @@ lean::cnstr_set(x_41, 2, x_37);
lean::cnstr_set(x_41, 3, x_40);
x_42 = lean::box(0);
x_43 = lean::mk_string("usize");
lean::inc(x_42);
x_45 = lean_name_mk_string(x_42, x_43);
lean::inc(x_45);
x_47 = lean_name_mk_string(x_45, x_3);
x_48 = l_system_platform_nbits;
lean::inc(x_48);
x_50 = l_nat_pow___main(x_7, x_48);
lean::inc(x_48);
x_52 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_52, 0, x_48);
lean::cnstr_set(x_52, 1, x_45);
lean::cnstr_set(x_52, 2, x_47);
lean::cnstr_set(x_52, 3, x_50);
x_44 = lean_name_mk_string(x_42, x_43);
lean::inc(x_44);
x_46 = lean_name_mk_string(x_44, x_3);
x_47 = l_system_platform_nbits;
lean::inc(x_47);
x_49 = l_nat_pow___main(x_7, x_47);
lean::inc(x_47);
x_51 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_51, 0, x_47);
lean::cnstr_set(x_51, 1, x_44);
lean::cnstr_set(x_51, 2, x_46);
lean::cnstr_set(x_51, 3, x_49);
x_52 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_52, 0, x_51);
lean::cnstr_set(x_52, 1, x_42);
x_53 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_53, 0, x_52);
lean::cnstr_set(x_53, 1, x_42);
lean::cnstr_set(x_53, 0, x_41);
lean::cnstr_set(x_53, 1, x_52);
x_54 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_54, 0, x_41);
lean::cnstr_set(x_54, 0, x_31);
lean::cnstr_set(x_54, 1, x_53);
x_55 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_55, 0, x_31);
lean::cnstr_set(x_55, 0, x_21);
lean::cnstr_set(x_55, 1, x_54);
x_56 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_56, 0, x_21);
lean::cnstr_set(x_56, 0, x_11);
lean::cnstr_set(x_56, 1, x_55);
x_57 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_57, 0, x_11);
lean::cnstr_set(x_57, 1, x_56);
return x_57;
return x_56;
}
}
obj* l_list_foldr___main___at_lean_compiler_is__of__nat___spec__1(obj* x_0, obj* x_1) {
@ -938,59 +937,54 @@ return x_4;
obj* _init_l_lean_compiler_pre__uint__bin__fold__fns() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25;
x_0 = lean::box(0);
x_1 = lean::mk_string("add");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__add___boxed), 3, 0);
x_5 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_5, 0, x_3);
lean::cnstr_set(x_5, 1, x_4);
x_6 = lean::mk_string("mul");
lean::inc(x_0);
x_8 = lean_name_mk_string(x_0, x_6);
x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__mul___boxed), 3, 0);
x_10 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::mk_string("div");
lean::inc(x_0);
x_13 = lean_name_mk_string(x_0, x_11);
x_14 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__div___boxed), 3, 0);
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_13);
lean::cnstr_set(x_15, 1, x_14);
x_16 = lean::mk_string("mod");
lean::inc(x_0);
x_18 = lean_name_mk_string(x_0, x_16);
x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__mod___boxed), 3, 0);
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__add___boxed), 3, 0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_2);
lean::cnstr_set(x_4, 1, x_3);
x_5 = lean::mk_string("mul");
x_6 = lean_name_mk_string(x_0, x_5);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__mul___boxed), 3, 0);
x_8 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
x_9 = lean::mk_string("div");
x_10 = lean_name_mk_string(x_0, x_9);
x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__div___boxed), 3, 0);
x_12 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_12, 0, x_10);
lean::cnstr_set(x_12, 1, x_11);
x_13 = lean::mk_string("mod");
x_14 = lean_name_mk_string(x_0, x_13);
x_15 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__mod___boxed), 3, 0);
x_16 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_16, 0, x_14);
lean::cnstr_set(x_16, 1, x_15);
x_17 = lean::mk_string("sub");
x_18 = lean_name_mk_string(x_0, x_17);
x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__sub___boxed), 3, 0);
x_20 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_20, 0, x_18);
lean::cnstr_set(x_20, 1, x_19);
x_21 = lean::mk_string("sub");
lean::inc(x_0);
x_23 = lean_name_mk_string(x_0, x_21);
x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__uint__sub___boxed), 3, 0);
x_25 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_25, 0, x_23);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_20);
lean::cnstr_set(x_21, 1, x_0);
x_22 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_22, 0, x_16);
lean::cnstr_set(x_22, 1, x_21);
x_23 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_23, 0, x_12);
lean::cnstr_set(x_23, 1, x_22);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_8);
lean::cnstr_set(x_24, 1, x_23);
x_25 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_25, 0, x_4);
lean::cnstr_set(x_25, 1, x_24);
x_26 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_26, 0, x_25);
lean::cnstr_set(x_26, 1, x_0);
x_27 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_27, 0, x_20);
lean::cnstr_set(x_27, 1, x_26);
x_28 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_28, 0, x_15);
lean::cnstr_set(x_28, 1, x_27);
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_10);
lean::cnstr_set(x_29, 1, x_28);
x_30 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_30, 0, x_5);
lean::cnstr_set(x_30, 1, x_29);
return x_30;
return x_25;
}
}
obj* l_list_map___main___at_lean_compiler_uint__bin__fold__fns___spec__1(obj* x_0, obj* x_1) {
@ -1289,24 +1283,21 @@ return x_2;
obj* _init_l_lean_compiler_mk__nat__eq___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::box(0);
x_1 = lean::mk_string("eq");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = l_lean_level_one;
lean::inc(x_0);
lean::inc(x_4);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_0);
x_8 = lean_expr_mk_const(x_3, x_7);
x_9 = lean::mk_string("nat");
lean::inc(x_0);
x_11 = lean_name_mk_string(x_0, x_9);
x_12 = lean_expr_mk_const(x_11, x_0);
x_13 = lean_expr_mk_app(x_8, x_12);
return x_13;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = l_lean_level_one;
lean::inc(x_3);
x_5 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_5, 0, x_3);
lean::cnstr_set(x_5, 1, x_0);
x_6 = lean_expr_mk_const(x_2, x_5);
x_7 = lean::mk_string("nat");
x_8 = lean_name_mk_string(x_0, x_7);
x_9 = lean_expr_mk_const(x_8, x_0);
x_10 = lean_expr_mk_app(x_6, x_9);
return x_10;
}
}
obj* l_lean_compiler_mk__nat__eq(obj* x_0, obj* x_1) {
@ -1322,30 +1313,25 @@ return x_4;
obj* _init_l_lean_compiler_mk__nat__lt___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_9; obj* x_10; obj* x_11; obj* x_13; obj* x_16; obj* x_17; obj* x_18; obj* x_19;
obj* x_0; obj* x_1; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_0 = lean::box(0);
x_1 = lean::mk_string("has_lt");
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean_name_mk_string(x_0, x_1);
x_5 = lean::mk_string("lt");
x_6 = lean_name_mk_string(x_4, x_5);
lean::inc(x_0);
lean::inc(x_0);
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_0);
lean::cnstr_set(x_9, 1, x_0);
x_10 = lean_expr_mk_const(x_6, x_9);
x_11 = lean::mk_string("nat");
lean::inc(x_0);
x_13 = lean_name_mk_string(x_0, x_11);
lean::inc(x_0);
lean::inc(x_13);
x_16 = lean_expr_mk_const(x_13, x_0);
x_17 = lean_name_mk_string(x_13, x_1);
x_18 = lean_expr_mk_const(x_17, x_0);
x_19 = l_lean_mk__bin__app(x_10, x_16, x_18);
return x_19;
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean::mk_string("lt");
x_5 = lean_name_mk_string(x_3, x_4);
x_6 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_6, 0, x_0);
lean::cnstr_set(x_6, 1, x_0);
x_7 = lean_expr_mk_const(x_5, x_6);
x_8 = lean::mk_string("nat");
x_9 = lean_name_mk_string(x_0, x_8);
lean::inc(x_9);
x_11 = lean_expr_mk_const(x_9, x_0);
x_12 = lean_name_mk_string(x_9, x_1);
x_13 = lean_expr_mk_const(x_12, x_0);
x_14 = l_lean_mk__bin__app(x_7, x_11, x_13);
return x_14;
}
}
obj* l_lean_compiler_mk__nat__lt(obj* x_0, obj* x_1) {
@ -1361,30 +1347,25 @@ return x_4;
obj* _init_l_lean_compiler_mk__nat__le___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4; obj* x_5; obj* x_8; obj* x_9; obj* x_10; obj* x_12; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_0 = lean::box(0);
x_1 = lean::mk_string("has_lt");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean::mk_string("le");
x_5 = lean_name_mk_string(x_3, x_4);
lean::inc(x_0);
lean::inc(x_0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_0);
lean::cnstr_set(x_8, 1, x_0);
x_9 = lean_expr_mk_const(x_5, x_8);
x_10 = lean::mk_string("nat");
lean::inc(x_0);
x_12 = lean_name_mk_string(x_0, x_10);
lean::inc(x_0);
lean::inc(x_12);
x_15 = lean_expr_mk_const(x_12, x_0);
x_16 = lean::mk_string("has_le");
x_17 = lean_name_mk_string(x_12, x_16);
x_18 = lean_expr_mk_const(x_17, x_0);
x_19 = l_lean_mk__bin__app(x_9, x_15, x_18);
return x_19;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("le");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_5, 0, x_0);
lean::cnstr_set(x_5, 1, x_0);
x_6 = lean_expr_mk_const(x_4, x_5);
x_7 = lean::mk_string("nat");
x_8 = lean_name_mk_string(x_0, x_7);
lean::inc(x_8);
x_10 = lean_expr_mk_const(x_8, x_0);
x_11 = lean::mk_string("has_le");
x_12 = lean_name_mk_string(x_8, x_11);
x_13 = lean_expr_mk_const(x_12, x_0);
x_14 = l_lean_mk__bin__app(x_6, x_10, x_13);
return x_14;
}
}
obj* l_lean_compiler_mk__nat__le(obj* x_0, obj* x_1) {
@ -1760,81 +1741,80 @@ return x_4;
obj* _init_l_lean_compiler_nat__fold__fns() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43;
x_0 = lean::box(0);
x_1 = lean::mk_string("nat");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean::mk_string("add");
lean::inc(x_3);
x_6 = lean_name_mk_string(x_3, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__add___boxed), 1, 0);
x_8 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
x_9 = lean::mk_string("mul");
lean::inc(x_3);
x_11 = lean_name_mk_string(x_3, x_9);
x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__mul___boxed), 1, 0);
x_13 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_13, 0, x_11);
lean::cnstr_set(x_13, 1, x_12);
x_14 = lean::mk_string("div");
lean::inc(x_3);
x_16 = lean_name_mk_string(x_3, x_14);
x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__div___boxed), 1, 0);
x_18 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_18, 0, x_16);
lean::cnstr_set(x_18, 1, x_17);
x_19 = lean::mk_string("mod");
lean::inc(x_3);
x_21 = lean_name_mk_string(x_3, x_19);
x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__mod___boxed), 1, 0);
x_23 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_22);
x_24 = lean::mk_string("dec_eq");
lean::inc(x_3);
x_26 = lean_name_mk_string(x_3, x_24);
x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__dec__eq___boxed), 3, 0);
x_28 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_28, 0, x_26);
lean::cnstr_set(x_28, 1, x_27);
x_29 = lean::mk_string("dec_lt");
lean::inc(x_3);
x_31 = lean_name_mk_string(x_3, x_29);
x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__dec__lt___boxed), 3, 0);
x_33 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_33, 0, x_31);
lean::cnstr_set(x_33, 1, x_32);
x_34 = lean::mk_string("dec_le");
x_35 = lean_name_mk_string(x_3, x_34);
x_36 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__dec__le___boxed), 3, 0);
x_37 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_37, 0, x_35);
lean::cnstr_set(x_37, 1, x_36);
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("add");
lean::inc(x_2);
x_5 = lean_name_mk_string(x_2, x_3);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__add___boxed), 1, 0);
x_7 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_6);
x_8 = lean::mk_string("mul");
lean::inc(x_2);
x_10 = lean_name_mk_string(x_2, x_8);
x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__mul___boxed), 1, 0);
x_12 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_12, 0, x_10);
lean::cnstr_set(x_12, 1, x_11);
x_13 = lean::mk_string("div");
lean::inc(x_2);
x_15 = lean_name_mk_string(x_2, x_13);
x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__div___boxed), 1, 0);
x_17 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_17, 0, x_15);
lean::cnstr_set(x_17, 1, x_16);
x_18 = lean::mk_string("mod");
lean::inc(x_2);
x_20 = lean_name_mk_string(x_2, x_18);
x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__mod___boxed), 1, 0);
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_20);
lean::cnstr_set(x_22, 1, x_21);
x_23 = lean::mk_string("dec_eq");
lean::inc(x_2);
x_25 = lean_name_mk_string(x_2, x_23);
x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__dec__eq___boxed), 3, 0);
x_27 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_27, 0, x_25);
lean::cnstr_set(x_27, 1, x_26);
x_28 = lean::mk_string("dec_lt");
lean::inc(x_2);
x_30 = lean_name_mk_string(x_2, x_28);
x_31 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__dec__lt___boxed), 3, 0);
x_32 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_32, 0, x_30);
lean::cnstr_set(x_32, 1, x_31);
x_33 = lean::mk_string("dec_le");
x_34 = lean_name_mk_string(x_2, x_33);
x_35 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__dec__le___boxed), 3, 0);
x_36 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_36, 0, x_34);
lean::cnstr_set(x_36, 1, x_35);
x_37 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_37, 0, x_36);
lean::cnstr_set(x_37, 1, x_0);
x_38 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_38, 0, x_37);
lean::cnstr_set(x_38, 1, x_0);
lean::cnstr_set(x_38, 0, x_32);
lean::cnstr_set(x_38, 1, x_37);
x_39 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_39, 0, x_33);
lean::cnstr_set(x_39, 0, x_27);
lean::cnstr_set(x_39, 1, x_38);
x_40 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_40, 0, x_28);
lean::cnstr_set(x_40, 0, x_22);
lean::cnstr_set(x_40, 1, x_39);
x_41 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_41, 0, x_23);
lean::cnstr_set(x_41, 0, x_17);
lean::cnstr_set(x_41, 1, x_40);
x_42 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_42, 0, x_18);
lean::cnstr_set(x_42, 0, x_12);
lean::cnstr_set(x_42, 1, x_41);
x_43 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_43, 0, x_13);
lean::cnstr_set(x_43, 0, x_7);
lean::cnstr_set(x_43, 1, x_42);
x_44 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_44, 0, x_8);
lean::cnstr_set(x_44, 1, x_43);
return x_44;
return x_43;
}
}
obj* _init_l_lean_compiler_bin__fold__fns() {
@ -2037,33 +2017,31 @@ return x_3;
obj* _init_l_lean_compiler_un__fold__fns() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_0 = lean::box(0);
x_1 = lean::mk_string("nat");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean::mk_string("succ");
x_5 = lean_name_mk_string(x_3, x_4);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__succ___boxed), 1, 0);
x_7 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_6);
x_8 = lean::mk_string("char");
lean::inc(x_0);
x_10 = lean_name_mk_string(x_0, x_8);
x_11 = lean::mk_string("of_nat");
x_12 = lean_name_mk_string(x_10, x_11);
x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__char__of__nat___boxed), 2, 0);
x_14 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_14, 0, x_12);
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("succ");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__nat__succ___boxed), 1, 0);
x_6 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_6, 0, x_4);
lean::cnstr_set(x_6, 1, x_5);
x_7 = lean::mk_string("char");
x_8 = lean_name_mk_string(x_0, x_7);
x_9 = lean::mk_string("of_nat");
x_10 = lean_name_mk_string(x_8, x_9);
x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_compiler_fold__char__of__nat___boxed), 2, 0);
x_12 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_12, 0, x_10);
lean::cnstr_set(x_12, 1, x_11);
x_13 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_0);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_6);
lean::cnstr_set(x_14, 1, x_13);
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_14);
lean::cnstr_set(x_15, 1, x_0);
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_7);
lean::cnstr_set(x_16, 1, x_15);
return x_16;
return x_14;
}
}
obj* l___private_init_lean_compiler_const__folding_1__alist__find___main___rarg(obj* x_0, obj* x_1) {

View file

@ -26,61 +26,56 @@ obj* l_lean_compiler_unreachable__expr;
obj* _init_l_lean_compiler_neutral__expr() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
obj* x_0; obj* x_1; obj* x_2; obj* x_3;
x_0 = lean::box(0);
x_1 = lean::mk_string("_neutral");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean_expr_mk_const(x_3, x_0);
return x_4;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean_expr_mk_const(x_2, x_0);
return x_3;
}
}
obj* _init_l_lean_compiler_unreachable__expr() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
obj* x_0; obj* x_1; obj* x_2; obj* x_3;
x_0 = lean::box(0);
x_1 = lean::mk_string("_unreachable");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean_expr_mk_const(x_3, x_0);
return x_4;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean_expr_mk_const(x_2, x_0);
return x_3;
}
}
obj* _init_l_lean_compiler_object__type() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
obj* x_0; obj* x_1; obj* x_2; obj* x_3;
x_0 = lean::box(0);
x_1 = lean::mk_string("_obj");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean_expr_mk_const(x_3, x_0);
return x_4;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean_expr_mk_const(x_2, x_0);
return x_3;
}
}
obj* _init_l_lean_compiler_void__type() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
obj* x_0; obj* x_1; obj* x_2; obj* x_3;
x_0 = lean::box(0);
x_1 = lean::mk_string("_void");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean_expr_mk_const(x_3, x_0);
return x_4;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean_expr_mk_const(x_2, x_0);
return x_3;
}
}
obj* _init_l_lean_compiler_mk__lc__proof___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
obj* x_0; obj* x_1; obj* x_2; obj* x_3;
x_0 = lean::box(0);
x_1 = lean::mk_string("lc_proof");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean_expr_mk_const(x_3, x_0);
return x_4;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean_expr_mk_const(x_2, x_0);
return x_3;
}
}
obj* l_lean_compiler_mk__lc__proof(obj* x_0) {

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -139,15 +139,14 @@ return x_4;
obj* _init_l_lean_mk__dec__is__true___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4; obj* x_5; obj* x_6;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5;
x_0 = lean::box(0);
x_1 = lean::mk_string("decidable");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean::mk_string("is_true");
x_5 = lean_name_mk_string(x_3, x_4);
x_6 = lean_expr_mk_const(x_5, x_0);
return x_6;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("is_true");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean_expr_mk_const(x_4, x_0);
return x_5;
}
}
obj* l_lean_mk__dec__is__true(obj* x_0, obj* x_1) {
@ -163,15 +162,14 @@ return x_4;
obj* _init_l_lean_mk__dec__is__false___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4; obj* x_5; obj* x_6;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5;
x_0 = lean::box(0);
x_1 = lean::mk_string("decidable");
lean::inc(x_0);
x_3 = lean_name_mk_string(x_0, x_1);
x_4 = lean::mk_string("is_false");
x_5 = lean_name_mk_string(x_3, x_4);
x_6 = lean_expr_mk_const(x_5, x_0);
return x_6;
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("is_false");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean_expr_mk_const(x_4, x_0);
return x_5;
}
}
obj* l_lean_mk__dec__is__false(obj* x_0, obj* x_1) {

View file

@ -143,7 +143,7 @@ return x_23;
}
else
{
obj* x_24; obj* x_26; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_37; obj* x_38; obj* x_40; obj* x_41;
obj* x_24; obj* x_26; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_36; obj* x_37; obj* x_39; obj* x_40;
x_24 = lean::cnstr_get(x_17, 0);
lean::inc(x_24);
if (lean::is_shared(x_17)) {
@ -165,27 +165,26 @@ lean::cnstr_set(x_30, 1, x_24);
x_31 = lean::box(0);
x_32 = l_lean_parser_term_builtin__leading__parsers;
x_33 = l_lean_parser_term_builtin__trailing__parsers;
lean::inc(x_31);
lean::inc(x_33);
lean::inc(x_32);
x_37 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_37, 0, x_30);
lean::cnstr_set(x_37, 1, x_32);
lean::cnstr_set(x_37, 2, x_33);
lean::cnstr_set(x_37, 3, x_31);
lean::cnstr_set(x_37, 4, x_31);
x_38 = l_lean_parser_command_builtin__command__parsers;
lean::inc(x_38);
x_40 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_40, 0, x_37);
lean::cnstr_set(x_40, 1, x_38);
x_36 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_36, 0, x_30);
lean::cnstr_set(x_36, 1, x_32);
lean::cnstr_set(x_36, 2, x_33);
lean::cnstr_set(x_36, 3, x_31);
lean::cnstr_set(x_36, 4, x_31);
x_37 = l_lean_parser_command_builtin__command__parsers;
lean::inc(x_37);
x_39 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_39, 0, x_36);
lean::cnstr_set(x_39, 1, x_37);
if (lean::is_scalar(x_26)) {
x_41 = lean::alloc_cnstr(1, 1, 0);
x_40 = lean::alloc_cnstr(1, 1, 0);
} else {
x_41 = x_26;
x_40 = x_26;
}
lean::cnstr_set(x_41, 0, x_40);
return x_41;
lean::cnstr_set(x_40, 0, x_39);
return x_40;
}
}
}

View file

@ -515,68 +515,66 @@ lean::inc(x_5);
lean::dec(x_0);
x_8 = lean::box(0);
x_9 = lean_name_dec_eq(x_3, x_8);
lean::dec(x_8);
if (x_9 == 0)
{
obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_11 = l_lean_ir_id_to__string___main(x_3);
x_12 = l_lean_name_to__string___closed__1;
x_13 = lean::string_append(x_11, x_12);
x_14 = l_lean_ir_id__part_to__string(x_5);
x_15 = lean::string_append(x_13, x_14);
lean::dec(x_14);
return x_15;
obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_10 = l_lean_ir_id_to__string___main(x_3);
x_11 = l_lean_name_to__string___closed__1;
x_12 = lean::string_append(x_10, x_11);
x_13 = l_lean_ir_id__part_to__string(x_5);
x_14 = lean::string_append(x_12, x_13);
lean::dec(x_13);
return x_14;
}
else
{
uint8 x_19;
uint8 x_18;
lean::dec(x_3);
lean::inc(x_5);
x_19 = l_lean_ir_is__reserved(x_5);
if (x_19 == 0)
x_18 = l_lean_ir_is__reserved(x_5);
if (x_18 == 0)
{
obj* x_20;
x_20 = l_lean_ir_id__part_to__string(x_5);
return x_20;
obj* x_19;
x_19 = l_lean_ir_id__part_to__string(x_5);
return x_19;
}
else
{
obj* x_21;
x_21 = l_lean_ir_escape__string(x_5);
return x_21;
obj* x_20;
x_20 = l_lean_ir_escape__string(x_5);
return x_20;
}
}
}
default:
{
obj* x_22; obj* x_24; obj* x_27; uint8 x_28;
x_22 = lean::cnstr_get(x_0, 0);
lean::inc(x_22);
x_24 = lean::cnstr_get(x_0, 1);
lean::inc(x_24);
obj* x_21; obj* x_23; obj* x_26; uint8 x_27;
x_21 = lean::cnstr_get(x_0, 0);
lean::inc(x_21);
x_23 = lean::cnstr_get(x_0, 1);
lean::inc(x_23);
lean::dec(x_0);
x_27 = lean::box(0);
x_28 = lean_name_dec_eq(x_22, x_27);
lean::dec(x_27);
if (x_28 == 0)
x_26 = lean::box(0);
x_27 = lean_name_dec_eq(x_21, x_26);
if (x_27 == 0)
{
obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35;
x_30 = l_lean_ir_id_to__string___main(x_22);
x_31 = l_lean_name_to__string___closed__1;
x_32 = lean::string_append(x_30, x_31);
x_33 = l_nat_repr(x_24);
x_34 = l_lean_ir_escape__string(x_33);
x_35 = lean::string_append(x_32, x_34);
lean::dec(x_34);
return x_35;
obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33;
x_28 = l_lean_ir_id_to__string___main(x_21);
x_29 = l_lean_name_to__string___closed__1;
x_30 = lean::string_append(x_28, x_29);
x_31 = l_nat_repr(x_23);
x_32 = l_lean_ir_escape__string(x_31);
x_33 = lean::string_append(x_30, x_32);
lean::dec(x_32);
return x_33;
}
else
{
obj* x_38; obj* x_39;
lean::dec(x_22);
x_38 = l_nat_repr(x_24);
x_39 = l_lean_ir_escape__string(x_38);
return x_39;
obj* x_36; obj* x_37;
lean::dec(x_21);
x_36 = l_nat_repr(x_23);
x_37 = l_lean_ir_escape__string(x_36);
return x_37;
}
}
}
@ -4161,7 +4159,7 @@ return x_9;
}
else
{
obj* x_10; obj* x_12; obj* x_15; uint8 x_16; obj* x_17; obj* x_19; obj* x_20; obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_27; obj* x_28; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34;
obj* x_10; obj* x_12; obj* x_15; uint8 x_16; obj* x_17; obj* x_19; obj* x_20; obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32;
x_10 = lean::cnstr_get(x_0, 0);
lean::inc(x_10);
x_12 = lean::cnstr_get(x_0, 1);
@ -4184,25 +4182,23 @@ lean::cnstr_set(x_23, 1, x_21);
lean::cnstr_set_scalar(x_23, sizeof(void*)*2, x_16);
x_24 = x_23;
x_25 = lean::box(1);
lean::inc(x_25);
x_27 = lean::alloc_cnstr(4, 2, 1);
lean::cnstr_set(x_27, 0, x_24);
lean::cnstr_set(x_27, 1, x_25);
lean::cnstr_set_scalar(x_27, sizeof(void*)*2, x_16);
x_28 = x_27;
lean::inc(x_25);
x_30 = l_lean_format_join__sep___main___at_lean_ir_decl_to__format___main___spec__1(x_12, x_25);
x_26 = lean::alloc_cnstr(4, 2, 1);
lean::cnstr_set(x_26, 0, x_24);
lean::cnstr_set(x_26, 1, x_25);
lean::cnstr_set_scalar(x_26, sizeof(void*)*2, x_16);
x_27 = x_26;
x_28 = l_lean_format_join__sep___main___at_lean_ir_decl_to__format___main___spec__1(x_12, x_25);
x_29 = lean::alloc_cnstr(4, 2, 1);
lean::cnstr_set(x_29, 0, x_27);
lean::cnstr_set(x_29, 1, x_28);
lean::cnstr_set_scalar(x_29, sizeof(void*)*2, x_16);
x_30 = x_29;
x_31 = lean::alloc_cnstr(4, 2, 1);
lean::cnstr_set(x_31, 0, x_28);
lean::cnstr_set(x_31, 1, x_30);
lean::cnstr_set(x_31, 0, x_30);
lean::cnstr_set(x_31, 1, x_25);
lean::cnstr_set_scalar(x_31, sizeof(void*)*2, x_16);
x_32 = x_31;
x_33 = lean::alloc_cnstr(4, 2, 1);
lean::cnstr_set(x_33, 0, x_32);
lean::cnstr_set(x_33, 1, x_25);
lean::cnstr_set_scalar(x_33, sizeof(void*)*2, x_16);
x_34 = x_33;
return x_34;
return x_32;
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -705,17 +705,16 @@ lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::box(0);
x_11 = lean_name_dec_eq(x_5, x_10);
lean::dec(x_10);
if (x_11 == 0)
{
obj* x_14; obj* x_15; obj* x_17;
obj* x_13; obj* x_14; obj* x_16;
lean::inc(x_0);
x_14 = l_lean_name_to__string__with__sep___main(x_0, x_5);
x_15 = lean::string_append(x_14, x_0);
x_13 = l_lean_name_to__string__with__sep___main(x_0, x_5);
x_14 = lean::string_append(x_13, x_0);
lean::dec(x_0);
x_17 = lean::string_append(x_15, x_7);
x_16 = lean::string_append(x_14, x_7);
lean::dec(x_7);
return x_17;
return x_16;
}
else
{
@ -726,34 +725,33 @@ return x_7;
}
default:
{
obj* x_21; obj* x_23; obj* x_26; uint8 x_27;
x_21 = lean::cnstr_get(x_1, 0);
lean::inc(x_21);
x_23 = lean::cnstr_get(x_1, 1);
lean::inc(x_23);
obj* x_20; obj* x_22; obj* x_25; uint8 x_26;
x_20 = lean::cnstr_get(x_1, 0);
lean::inc(x_20);
x_22 = lean::cnstr_get(x_1, 1);
lean::inc(x_22);
lean::dec(x_1);
x_26 = lean::box(0);
x_27 = lean_name_dec_eq(x_21, x_26);
lean::dec(x_26);
if (x_27 == 0)
x_25 = lean::box(0);
x_26 = lean_name_dec_eq(x_20, x_25);
if (x_26 == 0)
{
obj* x_30; obj* x_31; obj* x_33; obj* x_34;
obj* x_28; obj* x_29; obj* x_31; obj* x_32;
lean::inc(x_0);
x_30 = l_lean_name_to__string__with__sep___main(x_0, x_21);
x_31 = lean::string_append(x_30, x_0);
x_28 = l_lean_name_to__string__with__sep___main(x_0, x_20);
x_29 = lean::string_append(x_28, x_0);
lean::dec(x_0);
x_33 = l_nat_repr(x_23);
x_34 = lean::string_append(x_31, x_33);
lean::dec(x_33);
return x_34;
x_31 = l_nat_repr(x_22);
x_32 = lean::string_append(x_29, x_31);
lean::dec(x_31);
return x_32;
}
else
{
obj* x_38;
obj* x_36;
lean::dec(x_0);
lean::dec(x_21);
x_38 = l_nat_repr(x_23);
return x_38;
lean::dec(x_20);
x_36 = l_nat_repr(x_22);
return x_36;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -1217,29 +1217,27 @@ goto _start;
obj* _init_l_lean_parser_mk__token__trie___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_5; obj* x_6; obj* x_8; obj* x_9; obj* x_10;
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("/-");
x_2 = lean::mk_nat_obj(0u);
lean::inc(x_0);
lean::inc(x_2);
x_5 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_5, 0, x_1);
lean::cnstr_set(x_5, 1, x_2);
lean::cnstr_set(x_5, 2, x_0);
x_6 = lean::mk_string("--");
lean::inc(x_0);
x_8 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_2);
lean::cnstr_set(x_8, 2, x_0);
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_5);
lean::cnstr_set(x_10, 1, x_9);
return x_10;
x_4 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_4, 0, x_1);
lean::cnstr_set(x_4, 1, x_2);
lean::cnstr_set(x_4, 2, x_0);
x_5 = lean::mk_string("--");
x_6 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_6, 0, x_5);
lean::cnstr_set(x_6, 1, x_2);
lean::cnstr_set(x_6, 2, x_0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_6);
lean::cnstr_set(x_7, 1, x_0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_4);
lean::cnstr_set(x_8, 1, x_7);
return x_8;
}
}
obj* l_lean_parser_mk__token__trie(obj* x_0) {

View file

@ -615,7 +615,7 @@ return x_24;
}
else
{
obj* x_31; obj* x_32; obj* x_33; obj* x_37;
obj* x_31; obj* x_32; obj* x_33; obj* x_36;
lean::dec(x_5);
lean::dec(x_4);
lean::dec(x_1);
@ -625,11 +625,10 @@ lean::dec(x_0);
x_31 = lean::box(0);
x_32 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
x_33 = l_mjoin___rarg___closed__1;
lean::inc(x_31);
lean::inc(x_33);
lean::inc(x_32);
x_37 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_combinators_1__many1__aux___main___spec__1___rarg(x_2, lean::box(0), x_32, x_33, x_31, x_31);
return x_37;
x_36 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_combinators_1__many1__aux___main___spec__1___rarg(x_2, lean::box(0), x_32, x_33, x_31, x_31);
return x_36;
}
}
}
@ -1137,7 +1136,7 @@ return x_63;
}
else
{
obj* x_71; obj* x_72; obj* x_73; obj* x_77;
obj* x_71; obj* x_72; obj* x_73; obj* x_76;
lean::dec(x_5);
lean::dec(x_9);
lean::dec(x_8);
@ -1148,11 +1147,10 @@ lean::dec(x_0);
x_71 = lean::box(0);
x_72 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
x_73 = l_mjoin___rarg___closed__1;
lean::inc(x_71);
lean::inc(x_73);
lean::inc(x_72);
x_77 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_combinators_2__sep__by__aux___main___spec__1___rarg(x_2, lean::box(0), x_72, x_73, x_71, x_71);
return x_77;
x_76 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_combinators_2__sep__by__aux___main___spec__1___rarg(x_2, lean::box(0), x_72, x_73, x_71, x_71);
return x_76;
}
}
}
@ -1449,7 +1447,7 @@ return x_63;
}
else
{
obj* x_71; obj* x_72; obj* x_73; obj* x_77;
obj* x_71; obj* x_72; obj* x_73; obj* x_76;
lean::dec(x_5);
lean::dec(x_9);
lean::dec(x_8);
@ -1460,11 +1458,10 @@ lean::dec(x_0);
x_71 = lean::box(0);
x_72 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
x_73 = l_mjoin___rarg___closed__1;
lean::inc(x_71);
lean::inc(x_73);
lean::inc(x_72);
x_77 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_sep__by___spec__2___rarg(x_2, lean::box(0), x_72, x_73, x_71, x_71);
return x_77;
x_76 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_sep__by___spec__2___rarg(x_2, lean::box(0), x_72, x_73, x_71, x_71);
return x_76;
}
}
}
@ -1810,7 +1807,7 @@ return x_63;
}
else
{
obj* x_71; obj* x_72; obj* x_73; obj* x_77;
obj* x_71; obj* x_72; obj* x_73; obj* x_76;
lean::dec(x_5);
lean::dec(x_9);
lean::dec(x_8);
@ -1821,11 +1818,10 @@ lean::dec(x_0);
x_71 = lean::box(0);
x_72 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
x_73 = l_mjoin___rarg___closed__1;
lean::inc(x_71);
lean::inc(x_73);
lean::inc(x_72);
x_77 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_sep__by1___spec__2___rarg(x_2, lean::box(0), x_72, x_73, x_71, x_71);
return x_77;
x_76 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_sep__by1___spec__2___rarg(x_2, lean::box(0), x_72, x_73, x_71, x_71);
return x_76;
}
}
}
@ -2027,7 +2023,7 @@ if (lean::is_shared(x_4)) {
}
if (lean::obj_tag(x_12) == 0)
{
obj* x_18; obj* x_21; obj* x_22; obj* x_24; obj* x_25;
obj* x_18; obj* x_21; obj* x_22; obj* x_23; obj* x_24;
lean::dec(x_1);
lean::dec(x_3);
lean::dec(x_0);
@ -2036,47 +2032,46 @@ lean::inc(x_18);
lean::dec(x_2);
x_21 = lean::apply_1(x_18, x_10);
x_22 = lean::box(0);
lean::inc(x_22);
x_24 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_24, 0, x_21);
lean::cnstr_set(x_24, 1, x_22);
x_23 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_22);
if (lean::is_scalar(x_14)) {
x_25 = lean::alloc_cnstr(1, 2, 0);
x_24 = lean::alloc_cnstr(1, 2, 0);
} else {
x_25 = x_14;
x_24 = x_14;
}
lean::cnstr_set(x_25, 0, x_24);
lean::cnstr_set(x_25, 1, x_22);
return x_25;
lean::cnstr_set(x_24, 0, x_23);
lean::cnstr_set(x_24, 1, x_22);
return x_24;
}
else
{
obj* x_26; obj* x_28; obj* x_31; obj* x_33; obj* x_34; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40;
x_26 = lean::cnstr_get(x_12, 0);
lean::inc(x_26);
x_28 = lean::cnstr_get(x_12, 1);
lean::inc(x_28);
obj* x_25; obj* x_27; obj* x_30; obj* x_32; obj* x_33; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39;
x_25 = lean::cnstr_get(x_12, 0);
lean::inc(x_25);
x_27 = lean::cnstr_get(x_12, 1);
lean::inc(x_27);
lean::dec(x_12);
x_31 = lean::cnstr_get(x_2, 0);
lean::inc(x_31);
x_33 = lean::apply_1(x_31, x_10);
x_34 = lean::cnstr_get(x_3, 0);
lean::inc(x_34);
x_36 = lean::apply_1(x_34, x_26);
x_37 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_37, 0, x_36);
x_38 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_38, 0, x_33);
lean::cnstr_set(x_38, 1, x_37);
x_39 = l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___rarg(x_0, x_1, x_2, x_3, x_28);
x_30 = lean::cnstr_get(x_2, 0);
lean::inc(x_30);
x_32 = lean::apply_1(x_30, x_10);
x_33 = lean::cnstr_get(x_3, 0);
lean::inc(x_33);
x_35 = lean::apply_1(x_33, x_25);
x_36 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_36, 0, x_35);
x_37 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_37, 0, x_32);
lean::cnstr_set(x_37, 1, x_36);
x_38 = l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___rarg(x_0, x_1, x_2, x_3, x_27);
if (lean::is_scalar(x_14)) {
x_40 = lean::alloc_cnstr(1, 2, 0);
x_39 = lean::alloc_cnstr(1, 2, 0);
} else {
x_40 = x_14;
x_39 = x_14;
}
lean::cnstr_set(x_40, 0, x_38);
lean::cnstr_set(x_40, 1, x_39);
return x_40;
lean::cnstr_set(x_39, 0, x_37);
lean::cnstr_set(x_39, 1, x_38);
return x_39;
}
}
}
@ -2223,7 +2218,7 @@ obj* x_5;
x_5 = l_lean_parser_syntax_as__node___main(x_4);
if (lean::obj_tag(x_5) == 0)
{
obj* x_9; obj* x_12; obj* x_13; obj* x_14; obj* x_16; obj* x_17;
obj* x_9; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
lean::dec(x_1);
lean::dec(x_3);
lean::dec(x_2);
@ -2233,26 +2228,25 @@ lean::dec(x_0);
x_12 = lean::box(3);
x_13 = lean::apply_1(x_9, x_12);
x_14 = lean::box(0);
lean::inc(x_14);
x_16 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_16, 0, x_13);
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_13);
lean::cnstr_set(x_15, 1, x_14);
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_15);
lean::cnstr_set(x_16, 1, x_14);
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_14);
return x_17;
return x_16;
}
else
{
obj* x_18; obj* x_21; obj* x_24;
x_18 = lean::cnstr_get(x_5, 0);
lean::inc(x_18);
obj* x_17; obj* x_20; obj* x_23;
x_17 = lean::cnstr_get(x_5, 0);
lean::inc(x_17);
lean::dec(x_5);
x_21 = lean::cnstr_get(x_18, 1);
lean::inc(x_21);
lean::dec(x_18);
x_24 = l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___rarg(x_1, x_2, x_0, x_3, x_21);
return x_24;
x_20 = lean::cnstr_get(x_17, 1);
lean::inc(x_20);
lean::dec(x_17);
x_23 = l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___rarg(x_1, x_2, x_0, x_3, x_20);
return x_23;
}
}
}
@ -2857,32 +2851,31 @@ lean::dec(x_1);
lean::dec(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_8; obj* x_9; obj* x_10; obj* x_14;
obj* x_8; obj* x_9; obj* x_10; obj* x_13;
lean::dec(x_3);
x_8 = lean::box(0);
x_9 = l_lean_parser_combinators_any__of___rarg___closed__1;
x_10 = l_mjoin___rarg___closed__1;
lean::inc(x_8);
lean::inc(x_10);
lean::inc(x_9);
x_14 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_any__of___spec__1___rarg(x_2, lean::box(0), x_9, x_10, x_8, x_8);
return x_14;
x_13 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_any__of___spec__1___rarg(x_2, lean::box(0), x_9, x_10, x_8, x_8);
return x_13;
}
else
{
obj* x_16; obj* x_18; obj* x_21; obj* x_24; obj* x_25;
obj* x_15; obj* x_17; obj* x_20; obj* x_23; obj* x_24;
lean::dec(x_2);
x_16 = lean::cnstr_get(x_4, 0);
lean::inc(x_16);
x_18 = lean::cnstr_get(x_4, 1);
lean::inc(x_18);
x_15 = lean::cnstr_get(x_4, 0);
lean::inc(x_15);
x_17 = lean::cnstr_get(x_4, 1);
lean::inc(x_17);
lean::dec(x_4);
x_21 = lean::cnstr_get(x_3, 1);
lean::inc(x_21);
x_20 = lean::cnstr_get(x_3, 1);
lean::inc(x_20);
lean::dec(x_3);
x_24 = lean::apply_1(x_21, lean::box(0));
x_25 = l_list_foldl___main___rarg(x_24, x_16, x_18);
return x_25;
x_23 = lean::apply_1(x_20, lean::box(0));
x_24 = l_list_foldl___main___rarg(x_23, x_15, x_17);
return x_24;
}
}
}
@ -3104,7 +3097,7 @@ return x_4;
obj* l_lean_parser_combinators_choice__aux___main___rarg___lambda__1(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_6; obj* x_9; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
obj* x_3; obj* x_6; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13;
x_3 = lean::cnstr_get(x_0, 0);
lean::inc(x_3);
lean::dec(x_0);
@ -3112,14 +3105,13 @@ x_6 = lean::cnstr_get(x_3, 1);
lean::inc(x_6);
lean::dec(x_3);
x_9 = lean::box(0);
lean::inc(x_9);
x_11 = lean_name_mk_numeral(x_9, x_1);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_2);
lean::cnstr_set(x_12, 1, x_9);
x_13 = l_lean_parser_syntax_mk__node(x_11, x_12);
x_14 = lean::apply_2(x_6, lean::box(0), x_13);
return x_14;
x_10 = lean_name_mk_numeral(x_9, x_1);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_2);
lean::cnstr_set(x_11, 1, x_9);
x_12 = l_lean_parser_syntax_mk__node(x_10, x_11);
x_13 = lean::apply_2(x_6, lean::box(0), x_12);
return x_13;
}
}
obj* _init_l_lean_parser_combinators_choice__aux___main___rarg___closed__1() {
@ -3135,44 +3127,43 @@ _start:
{
if (lean::obj_tag(x_3) == 0)
{
obj* x_8; obj* x_9; obj* x_10; obj* x_14;
obj* x_8; obj* x_9; obj* x_10; obj* x_13;
lean::dec(x_4);
lean::dec(x_0);
lean::dec(x_2);
x_8 = lean::box(0);
x_9 = l_lean_parser_combinators_choice__aux___main___rarg___closed__1;
x_10 = l_mjoin___rarg___closed__1;
lean::inc(x_8);
lean::inc(x_10);
lean::inc(x_9);
x_14 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_choice__aux___main___spec__1___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_14;
x_13 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_choice__aux___main___spec__1___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_13;
}
else
{
obj* x_15; obj* x_17; obj* x_20; obj* x_22; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_32; obj* x_33;
x_15 = lean::cnstr_get(x_3, 0);
lean::inc(x_15);
x_17 = lean::cnstr_get(x_3, 1);
lean::inc(x_17);
obj* x_14; obj* x_16; obj* x_19; obj* x_21; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_31; obj* x_32;
x_14 = lean::cnstr_get(x_3, 0);
lean::inc(x_14);
x_16 = lean::cnstr_get(x_3, 1);
lean::inc(x_16);
lean::dec(x_3);
x_20 = lean::cnstr_get(x_2, 1);
lean::inc(x_20);
x_22 = lean::cnstr_get(x_0, 1);
lean::inc(x_22);
x_19 = lean::cnstr_get(x_2, 1);
lean::inc(x_19);
x_21 = lean::cnstr_get(x_0, 1);
lean::inc(x_21);
lean::inc(x_4);
lean::inc(x_2);
x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_choice__aux___main___rarg___lambda__1), 3, 2);
lean::closure_set(x_26, 0, x_2);
lean::closure_set(x_26, 1, x_4);
x_27 = lean::apply_4(x_22, lean::box(0), lean::box(0), x_15, x_26);
x_28 = lean::mk_nat_obj(1u);
x_29 = lean::nat_add(x_4, x_28);
lean::dec(x_28);
x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_choice__aux___main___rarg___lambda__1), 3, 2);
lean::closure_set(x_25, 0, x_2);
lean::closure_set(x_25, 1, x_4);
x_26 = lean::apply_4(x_21, lean::box(0), lean::box(0), x_14, x_25);
x_27 = lean::mk_nat_obj(1u);
x_28 = lean::nat_add(x_4, x_27);
lean::dec(x_27);
lean::dec(x_4);
x_32 = l_lean_parser_combinators_choice__aux___main___rarg(x_0, x_1, x_2, x_17, x_29);
x_33 = lean::apply_3(x_20, lean::box(0), x_27, x_32);
return x_33;
x_31 = l_lean_parser_combinators_choice__aux___main___rarg(x_0, x_1, x_2, x_16, x_28);
x_32 = lean::apply_3(x_19, lean::box(0), x_26, x_31);
return x_32;
}
}
}
@ -3336,32 +3327,31 @@ _start:
lean::dec(x_0);
if (lean::obj_tag(x_3) == 0)
{
obj* x_6; obj* x_7; obj* x_8; obj* x_12;
obj* x_6; obj* x_7; obj* x_8; obj* x_11;
lean::dec(x_2);
x_6 = lean::box(0);
x_7 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
x_8 = l_mjoin___rarg___closed__1;
lean::inc(x_6);
lean::inc(x_8);
lean::inc(x_7);
x_12 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_longest__choice___spec__2___rarg(x_1, lean::box(0), x_7, x_8, x_6, x_6);
return x_12;
x_11 = l_lean_parser_monad__parsec_error___at_lean_parser_combinators_longest__choice___spec__2___rarg(x_1, lean::box(0), x_7, x_8, x_6, x_6);
return x_11;
}
else
{
obj* x_14; obj* x_17; obj* x_20; obj* x_23;
obj* x_13; obj* x_16; obj* x_19; obj* x_22;
lean::dec(x_1);
x_14 = lean::cnstr_get(x_3, 0);
lean::inc(x_14);
x_13 = lean::cnstr_get(x_3, 0);
lean::inc(x_13);
lean::dec(x_3);
x_17 = lean::cnstr_get(x_2, 0);
lean::inc(x_17);
x_16 = lean::cnstr_get(x_2, 0);
lean::inc(x_16);
lean::dec(x_2);
x_20 = lean::cnstr_get(x_17, 1);
lean::inc(x_20);
lean::dec(x_17);
x_23 = lean::apply_2(x_20, lean::box(0), x_14);
return x_23;
x_19 = lean::cnstr_get(x_16, 1);
lean::inc(x_19);
lean::dec(x_16);
x_22 = lean::apply_2(x_19, lean::box(0), x_13);
return x_22;
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1229,51 +1229,49 @@ lean::dec(x_0);
x_5 = lean::string_iterator_has_next(x_3);
if (x_5 == 0)
{
obj* x_8; obj* x_9; obj* x_10; obj* x_14;
obj* x_8; obj* x_9; obj* x_10; obj* x_13;
lean::dec(x_3);
lean::dec(x_2);
x_8 = lean::box(0);
x_9 = l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
x_10 = l_mjoin___rarg___closed__1;
lean::inc(x_8);
lean::inc(x_10);
lean::inc(x_9);
x_14 = l_lean_parser_monad__parsec_error___at_lean_parser_id__part__default___spec__1___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_14;
x_13 = l_lean_parser_monad__parsec_error___at_lean_parser_id__part__default___spec__1___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_13;
}
else
{
uint32 x_15; uint8 x_16;
x_15 = lean::string_iterator_curr(x_3);
x_16 = l_lean_is__id__first(x_15);
if (x_16 == 0)
uint32 x_14; uint8 x_15;
x_14 = lean::string_iterator_curr(x_3);
x_15 = l_lean_is__id__first(x_14);
if (x_15 == 0)
{
obj* x_19; obj* x_20; obj* x_22; obj* x_24; obj* x_25; obj* x_26; obj* x_29;
obj* x_18; obj* x_19; obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_27;
lean::dec(x_3);
lean::dec(x_2);
x_19 = l_char_quote__core(x_15);
x_20 = l_char_has__repr___closed__1;
lean::inc(x_20);
x_22 = lean::string_append(x_20, x_19);
lean::dec(x_19);
x_24 = lean::string_append(x_22, x_20);
x_25 = lean::box(0);
x_26 = l_mjoin___rarg___closed__1;
x_18 = l_char_quote__core(x_14);
x_19 = l_char_has__repr___closed__1;
lean::inc(x_19);
x_21 = lean::string_append(x_19, x_18);
lean::dec(x_18);
x_23 = lean::string_append(x_21, x_19);
x_24 = lean::box(0);
x_25 = l_mjoin___rarg___closed__1;
lean::inc(x_25);
lean::inc(x_26);
x_29 = l_lean_parser_monad__parsec_error___at_lean_parser_id__part__default___spec__2___rarg(x_1, lean::box(0), x_24, x_26, x_25, x_25);
return x_29;
x_27 = l_lean_parser_monad__parsec_error___at_lean_parser_id__part__default___spec__2___rarg(x_1, lean::box(0), x_23, x_25, x_24, x_24);
return x_27;
}
else
{
obj* x_31; obj* x_32; obj* x_33;
obj* x_29; obj* x_30; obj* x_31;
lean::dec(x_1);
x_31 = lean::box_uint32(x_15);
x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_32, 0, x_3);
lean::closure_set(x_32, 1, x_31);
x_33 = lean::apply_2(x_2, lean::box(0), x_32);
return x_33;
x_29 = lean::box_uint32(x_14);
x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_30, 0, x_3);
lean::closure_set(x_30, 1, x_29);
x_31 = lean::apply_2(x_2, lean::box(0), x_30);
return x_31;
}
}
}
@ -1487,51 +1485,49 @@ lean::dec(x_0);
x_5 = lean::string_iterator_has_next(x_3);
if (x_5 == 0)
{
obj* x_8; obj* x_9; obj* x_10; obj* x_14;
obj* x_8; obj* x_9; obj* x_10; obj* x_13;
lean::dec(x_3);
lean::dec(x_2);
x_8 = lean::box(0);
x_9 = l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
x_10 = l_mjoin___rarg___closed__1;
lean::inc(x_8);
lean::inc(x_10);
lean::inc(x_9);
x_14 = l_lean_parser_monad__parsec_error___at_lean_parser_id__part__escaped___spec__2___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_14;
x_13 = l_lean_parser_monad__parsec_error___at_lean_parser_id__part__escaped___spec__2___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_13;
}
else
{
uint32 x_15; uint8 x_16;
x_15 = lean::string_iterator_curr(x_3);
x_16 = l_lean_is__id__end__escape(x_15);
if (x_16 == 0)
uint32 x_14; uint8 x_15;
x_14 = lean::string_iterator_curr(x_3);
x_15 = l_lean_is__id__end__escape(x_14);
if (x_15 == 0)
{
obj* x_18; obj* x_19; obj* x_20;
obj* x_17; obj* x_18; obj* x_19;
lean::dec(x_1);
x_18 = lean::box_uint32(x_15);
x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_19, 0, x_3);
lean::closure_set(x_19, 1, x_18);
x_20 = lean::apply_2(x_2, lean::box(0), x_19);
return x_20;
x_17 = lean::box_uint32(x_14);
x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_18, 0, x_3);
lean::closure_set(x_18, 1, x_17);
x_19 = lean::apply_2(x_2, lean::box(0), x_18);
return x_19;
}
else
{
obj* x_23; obj* x_24; obj* x_26; obj* x_28; obj* x_29; obj* x_30; obj* x_33;
obj* x_22; obj* x_23; obj* x_25; obj* x_27; obj* x_28; obj* x_29; obj* x_31;
lean::dec(x_3);
lean::dec(x_2);
x_23 = l_char_quote__core(x_15);
x_24 = l_char_has__repr___closed__1;
lean::inc(x_24);
x_26 = lean::string_append(x_24, x_23);
lean::dec(x_23);
x_28 = lean::string_append(x_26, x_24);
x_29 = lean::box(0);
x_30 = l_mjoin___rarg___closed__1;
x_22 = l_char_quote__core(x_14);
x_23 = l_char_has__repr___closed__1;
lean::inc(x_23);
x_25 = lean::string_append(x_23, x_22);
lean::dec(x_22);
x_27 = lean::string_append(x_25, x_23);
x_28 = lean::box(0);
x_29 = l_mjoin___rarg___closed__1;
lean::inc(x_29);
lean::inc(x_30);
x_33 = l_lean_parser_monad__parsec_error___at_lean_parser_id__part__escaped___spec__3___rarg(x_1, lean::box(0), x_28, x_30, x_29, x_29);
return x_33;
x_31 = l_lean_parser_monad__parsec_error___at_lean_parser_id__part__escaped___spec__3___rarg(x_1, lean::box(0), x_27, x_29, x_28, x_28);
return x_31;
}
}
}
@ -2072,102 +2068,99 @@ lean::dec(x_0);
x_5 = lean::string_iterator_has_next(x_3);
if (x_5 == 0)
{
obj* x_8; obj* x_9; obj* x_10; obj* x_14;
obj* x_8; obj* x_9; obj* x_10; obj* x_13;
lean::dec(x_3);
lean::dec(x_2);
x_8 = lean::box(0);
x_9 = l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
x_10 = l_mjoin___rarg___closed__1;
lean::inc(x_8);
lean::inc(x_10);
lean::inc(x_9);
x_14 = l_lean_parser_monad__parsec_error___at_lean_parser_c__identifier___spec__1___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_14;
x_13 = l_lean_parser_monad__parsec_error___at_lean_parser_c__identifier___spec__1___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_13;
}
else
{
uint32 x_15; uint8 x_16;
x_15 = lean::string_iterator_curr(x_3);
x_16 = l_char_is__alpha(x_15);
if (x_16 == 0)
uint32 x_14; uint8 x_15;
x_14 = lean::string_iterator_curr(x_3);
x_15 = l_char_is__alpha(x_14);
if (x_15 == 0)
{
uint32 x_17; uint8 x_18;
x_17 = 95;
x_18 = x_15 == x_17;
if (x_18 == 0)
uint32 x_16; uint8 x_17;
x_16 = 95;
x_17 = x_14 == x_16;
if (x_17 == 0)
{
if (x_16 == 0)
if (x_15 == 0)
{
obj* x_21; obj* x_22; obj* x_24; obj* x_26; obj* x_27; obj* x_28; obj* x_31;
obj* x_20; obj* x_21; obj* x_23; obj* x_25; obj* x_26; obj* x_27; obj* x_29;
lean::dec(x_3);
lean::dec(x_2);
x_21 = l_char_quote__core(x_15);
x_22 = l_char_has__repr___closed__1;
lean::inc(x_22);
x_24 = lean::string_append(x_22, x_21);
lean::dec(x_21);
x_26 = lean::string_append(x_24, x_22);
x_27 = lean::box(0);
x_28 = l_mjoin___rarg___closed__1;
x_20 = l_char_quote__core(x_14);
x_21 = l_char_has__repr___closed__1;
lean::inc(x_21);
x_23 = lean::string_append(x_21, x_20);
lean::dec(x_20);
x_25 = lean::string_append(x_23, x_21);
x_26 = lean::box(0);
x_27 = l_mjoin___rarg___closed__1;
lean::inc(x_27);
lean::inc(x_28);
x_31 = l_lean_parser_monad__parsec_error___at_lean_parser_c__identifier___spec__2___rarg(x_1, lean::box(0), x_26, x_28, x_27, x_27);
return x_31;
x_29 = l_lean_parser_monad__parsec_error___at_lean_parser_c__identifier___spec__2___rarg(x_1, lean::box(0), x_25, x_27, x_26, x_26);
return x_29;
}
else
{
obj* x_33; obj* x_34; obj* x_35;
obj* x_31; obj* x_32; obj* x_33;
lean::dec(x_1);
x_33 = lean::box_uint32(x_15);
x_34 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_34, 0, x_3);
lean::closure_set(x_34, 1, x_33);
x_35 = lean::apply_2(x_2, lean::box(0), x_34);
return x_35;
x_31 = lean::box_uint32(x_14);
x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_32, 0, x_3);
lean::closure_set(x_32, 1, x_31);
x_33 = lean::apply_2(x_2, lean::box(0), x_32);
return x_33;
}
}
else
{
obj* x_37; obj* x_38; obj* x_39;
obj* x_35; obj* x_36; obj* x_37;
lean::dec(x_1);
x_37 = lean::box_uint32(x_15);
x_38 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_38, 0, x_3);
lean::closure_set(x_38, 1, x_37);
x_39 = lean::apply_2(x_2, lean::box(0), x_38);
return x_39;
x_35 = lean::box_uint32(x_14);
x_36 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_36, 0, x_3);
lean::closure_set(x_36, 1, x_35);
x_37 = lean::apply_2(x_2, lean::box(0), x_36);
return x_37;
}
}
else
{
if (x_16 == 0)
if (x_15 == 0)
{
obj* x_42; obj* x_43; obj* x_45; obj* x_47; obj* x_48; obj* x_49; obj* x_52;
obj* x_40; obj* x_41; obj* x_43; obj* x_45; obj* x_46; obj* x_47; obj* x_49;
lean::dec(x_3);
lean::dec(x_2);
x_42 = l_char_quote__core(x_15);
x_43 = l_char_has__repr___closed__1;
lean::inc(x_43);
x_45 = lean::string_append(x_43, x_42);
lean::dec(x_42);
x_47 = lean::string_append(x_45, x_43);
x_48 = lean::box(0);
x_49 = l_mjoin___rarg___closed__1;
lean::inc(x_48);
lean::inc(x_49);
x_52 = l_lean_parser_monad__parsec_error___at_lean_parser_c__identifier___spec__3___rarg(x_1, lean::box(0), x_47, x_49, x_48, x_48);
return x_52;
x_40 = l_char_quote__core(x_14);
x_41 = l_char_has__repr___closed__1;
lean::inc(x_41);
x_43 = lean::string_append(x_41, x_40);
lean::dec(x_40);
x_45 = lean::string_append(x_43, x_41);
x_46 = lean::box(0);
x_47 = l_mjoin___rarg___closed__1;
lean::inc(x_47);
x_49 = l_lean_parser_monad__parsec_error___at_lean_parser_c__identifier___spec__3___rarg(x_1, lean::box(0), x_45, x_47, x_46, x_46);
return x_49;
}
else
{
obj* x_54; obj* x_55; obj* x_56;
obj* x_51; obj* x_52; obj* x_53;
lean::dec(x_1);
x_54 = lean::box_uint32(x_15);
x_55 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_55, 0, x_3);
lean::closure_set(x_55, 1, x_54);
x_56 = lean::apply_2(x_2, lean::box(0), x_55);
return x_56;
x_51 = lean::box_uint32(x_14);
x_52 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_52, 0, x_3);
lean::closure_set(x_52, 1, x_51);
x_53 = lean::apply_2(x_2, lean::box(0), x_52);
return x_53;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -1436,30 +1436,25 @@ return x_13;
obj* _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_3; obj* x_4; obj* x_6; obj* x_8; obj* x_11; obj* x_12;
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7;
x_0 = lean::box(0);
lean::inc(x_0);
lean::inc(x_0);
x_3 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_3, 0, x_0);
lean::cnstr_set(x_3, 1, x_0);
x_4 = lean::mk_string("NOT_AN_IDENT");
lean::inc(x_4);
x_6 = l_lean_parser_substring_of__string(x_4);
lean::inc(x_0);
x_8 = lean_name_mk_string(x_0, x_4);
lean::inc(x_0);
lean::inc(x_0);
x_11 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_11, 0, x_0);
lean::cnstr_set(x_11, 1, x_6);
lean::cnstr_set(x_11, 2, x_8);
lean::cnstr_set(x_11, 3, x_0);
lean::cnstr_set(x_11, 4, x_0);
x_12 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_12, 0, x_3);
lean::cnstr_set(x_12, 1, x_11);
return x_12;
x_1 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_1, 0, x_0);
lean::cnstr_set(x_1, 1, x_0);
x_2 = lean::mk_string("NOT_AN_IDENT");
lean::inc(x_2);
x_4 = l_lean_parser_substring_of__string(x_2);
x_5 = lean_name_mk_string(x_0, x_2);
x_6 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_6, 0, x_0);
lean::cnstr_set(x_6, 1, x_4);
lean::cnstr_set(x_6, 2, x_5);
lean::cnstr_set(x_6, 3, x_0);
lean::cnstr_set(x_6, 4, x_0);
x_7 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_7, 0, x_1);
lean::cnstr_set(x_7, 1, x_6);
return x_7;
}
}
obj* _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2() {
@ -1474,13 +1469,12 @@ return x_0;
obj* _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__3() {
_start:
{
obj* x_0; obj* x_2;
obj* x_0; obj* x_1;
x_0 = lean::box(0);
lean::inc(x_0);
x_2 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_0);
return x_2;
x_1 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_1, 0, x_0);
lean::cnstr_set(x_1, 1, x_0);
return x_1;
}
}
obj* _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__4() {
@ -2192,15 +2186,13 @@ return x_24;
obj* _init_l_lean_parser_module_import__path_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_2; obj* x_4; obj* x_5; obj* x_6;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4;
x_0 = lean::box(0);
lean::inc(x_0);
x_2 = l_lean_parser_tokens___rarg(x_0);
lean::inc(x_0);
x_4 = l_lean_parser_list_cons_tokens___rarg(x_0, x_0);
x_5 = l_lean_parser_list_cons_tokens___rarg(x_2, x_4);
x_6 = l_lean_parser_tokens___rarg(x_5);
return x_6;
x_1 = l_lean_parser_tokens___rarg(x_0);
x_2 = l_lean_parser_list_cons_tokens___rarg(x_0, x_0);
x_3 = l_lean_parser_list_cons_tokens___rarg(x_1, x_2);
x_4 = l_lean_parser_tokens___rarg(x_3);
return x_4;
}
}
obj* _init_l_lean_parser_module_import__path_parser___closed__1() {
@ -3289,7 +3281,7 @@ return x_1;
obj* l_lean_parser_module_header_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_14;
obj* x_1; obj* x_3; obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
@ -3302,46 +3294,44 @@ x_9 = l_lean_parser_no__kind;
lean::inc(x_9);
x_11 = l_lean_parser_syntax_mk__node(x_9, x_8);
x_12 = lean::box(0);
lean::inc(x_12);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_11);
lean::cnstr_set(x_14, 1, x_12);
x_13 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_13, 0, x_11);
lean::cnstr_set(x_13, 1, x_12);
if (lean::obj_tag(x_1) == 0)
{
obj* x_16; obj* x_18; obj* x_19; obj* x_21;
lean::dec(x_12);
x_16 = l_lean_parser_combinators_many___rarg___closed__1;
lean::inc(x_16);
x_18 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_18, 0, x_16);
lean::cnstr_set(x_18, 1, x_14);
x_19 = l_lean_parser_module_header;
lean::inc(x_19);
x_21 = l_lean_parser_syntax_mk__node(x_19, x_18);
return x_21;
obj* x_14; obj* x_16; obj* x_17; obj* x_19;
x_14 = l_lean_parser_combinators_many___rarg___closed__1;
lean::inc(x_14);
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_14);
lean::cnstr_set(x_16, 1, x_13);
x_17 = l_lean_parser_module_header;
lean::inc(x_17);
x_19 = l_lean_parser_syntax_mk__node(x_17, x_16);
return x_19;
}
else
{
obj* x_22; obj* x_25; obj* x_26; obj* x_28; obj* x_29; obj* x_31; obj* x_32; obj* x_33; obj* x_35;
x_22 = lean::cnstr_get(x_1, 0);
lean::inc(x_22);
obj* x_20; obj* x_23; obj* x_24; obj* x_26; obj* x_27; obj* x_29; obj* x_30; obj* x_31; obj* x_33;
x_20 = lean::cnstr_get(x_1, 0);
lean::inc(x_20);
lean::dec(x_1);
x_25 = l_lean_parser_module_prelude_has__view;
x_26 = lean::cnstr_get(x_25, 1);
lean::inc(x_26);
x_28 = lean::apply_1(x_26, x_22);
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_28);
lean::cnstr_set(x_29, 1, x_12);
x_23 = l_lean_parser_module_prelude_has__view;
x_24 = lean::cnstr_get(x_23, 1);
lean::inc(x_24);
x_26 = lean::apply_1(x_24, x_20);
x_27 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_27, 0, x_26);
lean::cnstr_set(x_27, 1, x_12);
lean::inc(x_9);
x_31 = l_lean_parser_syntax_mk__node(x_9, x_29);
x_32 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_32, 0, x_31);
lean::cnstr_set(x_32, 1, x_14);
x_33 = l_lean_parser_module_header;
lean::inc(x_33);
x_35 = l_lean_parser_syntax_mk__node(x_33, x_32);
return x_35;
x_29 = l_lean_parser_syntax_mk__node(x_9, x_27);
x_30 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_30, 0, x_29);
lean::cnstr_set(x_30, 1, x_13);
x_31 = l_lean_parser_module_header;
lean::inc(x_31);
x_33 = l_lean_parser_syntax_mk__node(x_31, x_30);
return x_33;
}
}
}
@ -3443,7 +3433,7 @@ goto lbl_10;
}
else
{
obj* x_36; uint8 x_38; obj* x_39; obj* x_40; obj* x_42; obj* x_44; obj* x_46; obj* x_49; obj* x_51; obj* x_52; obj* x_54; obj* x_55; obj* x_56;
obj* x_36; uint8 x_38; obj* x_39; obj* x_40; obj* x_42; obj* x_44; obj* x_46; obj* x_49; obj* x_50; obj* x_51; obj* x_53; obj* x_54; obj* x_55;
x_36 = lean::cnstr_get(x_13, 0);
lean::inc(x_36);
x_38 = lean::cnstr_get_scalar<uint8>(x_13, sizeof(void*)*1);
@ -3464,48 +3454,47 @@ x_46 = lean::cnstr_get(x_36, 3);
lean::inc(x_46);
lean::dec(x_36);
x_49 = l_option_get___main___at_lean_parser_run___spec__2(x_46);
lean::inc(x_7);
x_51 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_51, 0, x_49);
lean::cnstr_set(x_51, 1, x_7);
x_52 = l_lean_parser_no__kind;
lean::inc(x_52);
x_54 = l_lean_parser_syntax_mk__node(x_52, x_51);
x_55 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_55, 0, x_54);
x_56 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_56, 0, x_40);
lean::cnstr_set(x_56, 1, x_42);
lean::cnstr_set(x_56, 2, x_44);
lean::cnstr_set(x_56, 3, x_55);
x_50 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_50, 0, x_49);
lean::cnstr_set(x_50, 1, x_7);
x_51 = l_lean_parser_no__kind;
lean::inc(x_51);
x_53 = l_lean_parser_syntax_mk__node(x_51, x_50);
x_54 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_54, 0, x_53);
x_55 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_55, 0, x_40);
lean::cnstr_set(x_55, 1, x_42);
lean::cnstr_set(x_55, 2, x_44);
lean::cnstr_set(x_55, 3, x_54);
if (x_38 == 0)
{
uint8 x_57; obj* x_58; obj* x_59;
x_57 = 0;
uint8 x_56; obj* x_57; obj* x_58;
x_56 = 0;
if (lean::is_scalar(x_39)) {
x_58 = lean::alloc_cnstr(1, 1, 1);
x_57 = lean::alloc_cnstr(1, 1, 1);
} else {
x_58 = x_39;
x_57 = x_39;
}
lean::cnstr_set(x_58, 0, x_56);
lean::cnstr_set_scalar(x_58, sizeof(void*)*1, x_57);
x_59 = x_58;
x_8 = x_59;
lean::cnstr_set(x_57, 0, x_55);
lean::cnstr_set_scalar(x_57, sizeof(void*)*1, x_56);
x_58 = x_57;
x_8 = x_58;
x_9 = x_15;
goto lbl_10;
}
else
{
obj* x_60; obj* x_61;
obj* x_59; obj* x_60;
if (lean::is_scalar(x_39)) {
x_60 = lean::alloc_cnstr(1, 1, 1);
x_59 = lean::alloc_cnstr(1, 1, 1);
} else {
x_60 = x_39;
x_59 = x_39;
}
lean::cnstr_set(x_60, 0, x_56);
lean::cnstr_set_scalar(x_60, sizeof(void*)*1, x_38);
x_61 = x_60;
x_8 = x_61;
lean::cnstr_set(x_59, 0, x_55);
lean::cnstr_set_scalar(x_59, sizeof(void*)*1, x_38);
x_60 = x_59;
x_8 = x_60;
x_9 = x_15;
goto lbl_10;
}
@ -3514,105 +3503,104 @@ lbl_6:
{
if (lean::obj_tag(x_4) == 0)
{
obj* x_62; obj* x_64; obj* x_66; obj* x_68;
x_62 = lean::cnstr_get(x_4, 0);
lean::inc(x_62);
x_64 = lean::cnstr_get(x_4, 1);
lean::inc(x_64);
x_66 = lean::cnstr_get(x_4, 2);
lean::inc(x_66);
obj* x_61; obj* x_63; obj* x_65; obj* x_67;
x_61 = lean::cnstr_get(x_4, 0);
lean::inc(x_61);
x_63 = lean::cnstr_get(x_4, 1);
lean::inc(x_63);
x_65 = lean::cnstr_get(x_4, 2);
lean::inc(x_65);
if (lean::is_shared(x_4)) {
lean::dec(x_4);
x_68 = lean::box(0);
x_67 = lean::box(0);
} else {
lean::cnstr_release(x_4, 0);
lean::cnstr_release(x_4, 1);
lean::cnstr_release(x_4, 2);
x_68 = x_4;
x_67 = x_4;
}
if (lean::obj_tag(x_62) == 0)
if (lean::obj_tag(x_61) == 0)
{
obj* x_69; obj* x_70; obj* x_73; obj* x_74; obj* x_75;
x_69 = l_lean_parser_combinators_many___rarg___closed__1;
x_70 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
lean::inc(x_70);
obj* x_68; obj* x_69; obj* x_72; obj* x_73; obj* x_74;
x_68 = l_lean_parser_combinators_many___rarg___closed__1;
x_69 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
lean::inc(x_69);
if (lean::is_scalar(x_68)) {
x_73 = lean::alloc_cnstr(0, 3, 0);
lean::inc(x_68);
if (lean::is_scalar(x_67)) {
x_72 = lean::alloc_cnstr(0, 3, 0);
} else {
x_73 = x_68;
x_72 = x_67;
}
lean::cnstr_set(x_73, 0, x_69);
lean::cnstr_set(x_73, 1, x_64);
lean::cnstr_set(x_73, 2, x_70);
x_74 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_66, x_73);
x_75 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_75, 0, x_74);
lean::cnstr_set(x_75, 1, x_5);
return x_75;
lean::cnstr_set(x_72, 0, x_68);
lean::cnstr_set(x_72, 1, x_63);
lean::cnstr_set(x_72, 2, x_69);
x_73 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_65, x_72);
x_74 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_74, 0, x_73);
lean::cnstr_set(x_74, 1, x_5);
return x_74;
}
else
{
obj* x_76; obj* x_79; obj* x_80; obj* x_81; obj* x_83; obj* x_84; obj* x_86; obj* x_87; obj* x_88;
x_76 = lean::cnstr_get(x_62, 0);
lean::inc(x_76);
lean::dec(x_62);
x_79 = lean::box(0);
x_80 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_80, 0, x_76);
lean::cnstr_set(x_80, 1, x_79);
x_81 = l_lean_parser_no__kind;
lean::inc(x_81);
x_83 = l_lean_parser_syntax_mk__node(x_81, x_80);
x_84 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
lean::inc(x_84);
if (lean::is_scalar(x_68)) {
x_86 = lean::alloc_cnstr(0, 3, 0);
obj* x_75; obj* x_78; obj* x_79; obj* x_80; obj* x_82; obj* x_83; obj* x_85; obj* x_86; obj* x_87;
x_75 = lean::cnstr_get(x_61, 0);
lean::inc(x_75);
lean::dec(x_61);
x_78 = lean::box(0);
x_79 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_79, 0, x_75);
lean::cnstr_set(x_79, 1, x_78);
x_80 = l_lean_parser_no__kind;
lean::inc(x_80);
x_82 = l_lean_parser_syntax_mk__node(x_80, x_79);
x_83 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
lean::inc(x_83);
if (lean::is_scalar(x_67)) {
x_85 = lean::alloc_cnstr(0, 3, 0);
} else {
x_86 = x_68;
x_85 = x_67;
}
lean::cnstr_set(x_86, 0, x_83);
lean::cnstr_set(x_86, 1, x_64);
lean::cnstr_set(x_86, 2, x_84);
x_87 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_66, x_86);
x_88 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_88, 0, x_87);
lean::cnstr_set(x_88, 1, x_5);
return x_88;
lean::cnstr_set(x_85, 0, x_82);
lean::cnstr_set(x_85, 1, x_63);
lean::cnstr_set(x_85, 2, x_83);
x_86 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_65, x_85);
x_87 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_87, 0, x_86);
lean::cnstr_set(x_87, 1, x_5);
return x_87;
}
}
else
{
obj* x_89; uint8 x_91; obj* x_92; obj* x_93; obj* x_94; obj* x_95;
x_89 = lean::cnstr_get(x_4, 0);
lean::inc(x_89);
x_91 = lean::cnstr_get_scalar<uint8>(x_4, sizeof(void*)*1);
obj* x_88; uint8 x_90; obj* x_91; obj* x_92; obj* x_93; obj* x_94;
x_88 = lean::cnstr_get(x_4, 0);
lean::inc(x_88);
x_90 = lean::cnstr_get_scalar<uint8>(x_4, sizeof(void*)*1);
if (lean::is_shared(x_4)) {
lean::dec(x_4);
x_92 = lean::box(0);
x_91 = lean::box(0);
} else {
lean::cnstr_release(x_4, 0);
x_92 = x_4;
x_91 = x_4;
}
if (lean::is_scalar(x_92)) {
x_93 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_91)) {
x_92 = lean::alloc_cnstr(1, 1, 1);
} else {
x_93 = x_92;
x_92 = x_91;
}
lean::cnstr_set(x_93, 0, x_89);
lean::cnstr_set_scalar(x_93, sizeof(void*)*1, x_91);
x_94 = x_93;
x_95 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_95, 0, x_94);
lean::cnstr_set(x_95, 1, x_5);
return x_95;
lean::cnstr_set(x_92, 0, x_88);
lean::cnstr_set_scalar(x_92, sizeof(void*)*1, x_90);
x_93 = x_92;
x_94 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_94, 0, x_93);
lean::cnstr_set(x_94, 1, x_5);
return x_94;
}
}
lbl_10:
{
if (lean::obj_tag(x_8) == 0)
{
lean::dec(x_7);
lean::dec(x_2);
x_4 = x_8;
x_5 = x_9;
@ -3620,37 +3608,36 @@ goto lbl_6;
}
else
{
obj* x_98; uint8 x_100;
x_98 = lean::cnstr_get(x_8, 0);
lean::inc(x_98);
x_100 = lean::cnstr_get_scalar<uint8>(x_8, sizeof(void*)*1);
if (x_100 == 0)
obj* x_96; uint8 x_98;
x_96 = lean::cnstr_get(x_8, 0);
lean::inc(x_96);
x_98 = lean::cnstr_get_scalar<uint8>(x_8, sizeof(void*)*1);
if (x_98 == 0)
{
obj* x_102; obj* x_105; obj* x_107; obj* x_108; obj* x_109;
obj* x_100; obj* x_103; obj* x_105; obj* x_106; obj* x_107;
lean::dec(x_8);
x_102 = lean::cnstr_get(x_98, 2);
lean::inc(x_102);
lean::dec(x_98);
x_105 = l_mjoin___rarg___closed__1;
lean::inc(x_105);
x_107 = lean::alloc_closure(reinterpret_cast<void*>(l_function_comp___rarg), 3, 2);
lean::closure_set(x_107, 0, x_102);
lean::closure_set(x_107, 1, x_105);
x_108 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_108, 0, x_107);
x_109 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_109, 0, x_7);
lean::cnstr_set(x_109, 1, x_2);
lean::cnstr_set(x_109, 2, x_108);
x_4 = x_109;
x_100 = lean::cnstr_get(x_96, 2);
lean::inc(x_100);
lean::dec(x_96);
x_103 = l_mjoin___rarg___closed__1;
lean::inc(x_103);
x_105 = lean::alloc_closure(reinterpret_cast<void*>(l_function_comp___rarg), 3, 2);
lean::closure_set(x_105, 0, x_100);
lean::closure_set(x_105, 1, x_103);
x_106 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_106, 0, x_105);
x_107 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_107, 0, x_7);
lean::cnstr_set(x_107, 1, x_2);
lean::cnstr_set(x_107, 2, x_106);
x_4 = x_107;
x_5 = x_9;
goto lbl_6;
}
else
{
lean::dec(x_7);
lean::dec(x_2);
lean::dec(x_98);
lean::dec(x_96);
x_4 = x_8;
x_5 = x_9;
goto lbl_6;
@ -3931,7 +3918,7 @@ lean::dec(x_21);
lean::dec(x_20);
if (x_22 == 0)
{
uint32 x_29; obj* x_31; obj* x_32; obj* x_34; obj* x_36; obj* x_37; obj* x_38; obj* x_41; obj* x_42;
uint32 x_29; obj* x_31; obj* x_32; obj* x_34; obj* x_36; obj* x_37; obj* x_38; obj* x_40; obj* x_41;
lean::dec(x_6);
lean::dec(x_0);
lean::dec(x_13);
@ -3946,81 +3933,80 @@ lean::dec(x_31);
x_36 = lean::string_append(x_34, x_32);
x_37 = lean::box(0);
x_38 = l_lean_parser_monad__parsec_eoi___rarg___lambda__1___closed__1;
lean::inc(x_37);
lean::inc(x_38);
x_41 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_36, x_38, x_37, x_37, x_16, x_9, x_4);
x_42 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_42, 0, x_41);
lean::closure_set(x_42, 1, x_19);
return x_42;
x_40 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_36, x_38, x_37, x_37, x_16, x_9, x_4);
x_41 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_41, 0, x_40);
lean::closure_set(x_41, 1, x_19);
return x_41;
}
else
{
obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48; obj* x_49;
obj* x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48;
lean::dec(x_14);
x_44 = lean::box(0);
x_43 = lean::box(0);
if (lean::is_scalar(x_6)) {
x_45 = lean::alloc_cnstr(0, 2, 0);
x_44 = lean::alloc_cnstr(0, 2, 0);
} else {
x_45 = x_6;
x_44 = x_6;
}
lean::cnstr_set(x_44, 0, x_43);
lean::cnstr_set(x_44, 1, x_16);
if (lean::is_scalar(x_13)) {
x_45 = lean::alloc_cnstr(0, 3, 0);
} else {
x_45 = x_13;
}
lean::cnstr_set(x_45, 0, x_44);
lean::cnstr_set(x_45, 1, x_16);
if (lean::is_scalar(x_13)) {
x_46 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_45, 1, x_9);
lean::cnstr_set(x_45, 2, x_0);
if (lean::is_scalar(x_18)) {
x_46 = lean::alloc_cnstr(0, 2, 0);
} else {
x_46 = x_13;
x_46 = x_18;
}
lean::cnstr_set(x_46, 0, x_45);
lean::cnstr_set(x_46, 1, x_9);
lean::cnstr_set(x_46, 2, x_0);
if (lean::is_scalar(x_18)) {
x_47 = lean::alloc_cnstr(0, 2, 0);
} else {
x_47 = x_18;
}
lean::cnstr_set(x_47, 0, x_46);
lean::cnstr_set(x_47, 1, x_4);
x_48 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::cnstr_set(x_46, 1, x_4);
x_47 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_47, 0, x_46);
x_48 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_48, 0, x_47);
x_49 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_49, 0, x_48);
lean::closure_set(x_49, 1, x_19);
return x_49;
lean::closure_set(x_48, 1, x_19);
return x_48;
}
}
else
{
obj* x_51; uint8 x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58;
obj* x_50; uint8 x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57;
lean::dec(x_0);
x_51 = lean::cnstr_get(x_2, 0);
lean::inc(x_51);
x_53 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1);
x_50 = lean::cnstr_get(x_2, 0);
lean::inc(x_50);
x_52 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1);
if (lean::is_shared(x_2)) {
lean::dec(x_2);
x_54 = lean::box(0);
x_53 = lean::box(0);
} else {
lean::cnstr_release(x_2, 0);
x_54 = x_2;
x_53 = x_2;
}
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;
lean::cnstr_set(x_54, 0, x_50);
lean::cnstr_set_scalar(x_54, sizeof(void*)*1, x_52);
x_55 = x_54;
if (lean::is_scalar(x_6)) {
x_57 = lean::alloc_cnstr(0, 2, 0);
x_56 = lean::alloc_cnstr(0, 2, 0);
} else {
x_57 = x_6;
x_56 = x_6;
}
lean::cnstr_set(x_57, 0, x_56);
lean::cnstr_set(x_57, 1, x_4);
x_58 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_58, 0, x_57);
return x_58;
lean::cnstr_set(x_56, 0, x_55);
lean::cnstr_set(x_56, 1, x_4);
x_57 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_57, 0, x_56);
return x_57;
}
}
}
@ -4208,7 +4194,7 @@ lean::closure_set(x_19, 0, x_11);
x_20 = lean::string_iterator_has_next(x_14);
if (x_20 == 0)
{
obj* x_25; obj* x_26; obj* x_27; obj* x_31; obj* x_32;
obj* x_25; obj* x_26; obj* x_27; obj* x_30; obj* x_31;
lean::dec(x_14);
lean::dec(x_6);
lean::dec(x_0);
@ -4216,112 +4202,110 @@ lean::dec(x_13);
x_25 = lean::box(0);
x_26 = l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
x_27 = l_mjoin___rarg___closed__1;
lean::inc(x_25);
lean::inc(x_27);
lean::inc(x_26);
x_31 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_26, x_27, x_25, x_25, x_16, x_9, x_4);
x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_32, 0, x_31);
lean::closure_set(x_32, 1, x_19);
return x_32;
x_30 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_26, x_27, x_25, x_25, x_16, x_9, x_4);
x_31 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_31, 0, x_30);
lean::closure_set(x_31, 1, x_19);
return x_31;
}
else
{
uint32 x_33; uint8 x_34;
x_33 = lean::string_iterator_curr(x_14);
x_34 = l_true_decidable;
if (x_34 == 0)
uint32 x_32; uint8 x_33;
x_32 = lean::string_iterator_curr(x_14);
x_33 = l_true_decidable;
if (x_33 == 0)
{
obj* x_39; obj* x_40; obj* x_42; obj* x_44; obj* x_45; obj* x_46; obj* x_49; obj* x_50;
obj* x_38; obj* x_39; obj* x_41; obj* x_43; obj* x_44; obj* x_45; obj* x_47; obj* x_48;
lean::dec(x_14);
lean::dec(x_6);
lean::dec(x_0);
lean::dec(x_13);
x_39 = l_char_quote__core(x_33);
x_40 = l_char_has__repr___closed__1;
lean::inc(x_40);
x_42 = lean::string_append(x_40, x_39);
lean::dec(x_39);
x_44 = lean::string_append(x_42, x_40);
x_45 = lean::box(0);
x_46 = l_mjoin___rarg___closed__1;
x_38 = l_char_quote__core(x_32);
x_39 = l_char_has__repr___closed__1;
lean::inc(x_39);
x_41 = lean::string_append(x_39, x_38);
lean::dec(x_38);
x_43 = lean::string_append(x_41, x_39);
x_44 = lean::box(0);
x_45 = l_mjoin___rarg___closed__1;
lean::inc(x_45);
lean::inc(x_46);
x_49 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_44, x_46, x_45, x_45, x_16, x_9, x_4);
x_50 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_50, 0, x_49);
lean::closure_set(x_50, 1, x_19);
return x_50;
x_47 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_43, x_45, x_44, x_44, x_16, x_9, x_4);
x_48 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_48, 0, x_47);
lean::closure_set(x_48, 1, x_19);
return x_48;
}
else
{
obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58; obj* x_59; obj* x_60;
obj* x_50; obj* x_51; obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58;
lean::dec(x_9);
x_52 = lean::string_iterator_next(x_14);
x_53 = lean::box(0);
x_54 = lean::box_uint32(x_33);
x_50 = lean::string_iterator_next(x_14);
x_51 = lean::box(0);
x_52 = lean::box_uint32(x_32);
if (lean::is_scalar(x_13)) {
x_55 = lean::alloc_cnstr(0, 3, 0);
x_53 = lean::alloc_cnstr(0, 3, 0);
} else {
x_55 = x_13;
x_53 = x_13;
}
lean::cnstr_set(x_55, 0, x_54);
lean::cnstr_set(x_55, 1, x_52);
lean::cnstr_set(x_55, 2, x_53);
lean::cnstr_set(x_53, 0, x_52);
lean::cnstr_set(x_53, 1, x_50);
lean::cnstr_set(x_53, 2, x_51);
if (lean::is_scalar(x_6)) {
x_56 = lean::alloc_cnstr(0, 2, 0);
x_54 = lean::alloc_cnstr(0, 2, 0);
} else {
x_56 = x_6;
x_54 = x_6;
}
lean::cnstr_set(x_56, 0, x_55);
lean::cnstr_set(x_56, 1, x_4);
x_57 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_57, 0, x_56);
x_58 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___lambda__1), 3, 2);
lean::closure_set(x_58, 0, x_16);
lean::closure_set(x_58, 1, x_0);
x_59 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_59, 0, x_57);
lean::closure_set(x_59, 1, x_58);
x_60 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_60, 0, x_59);
lean::closure_set(x_60, 1, x_19);
return x_60;
lean::cnstr_set(x_54, 0, x_53);
lean::cnstr_set(x_54, 1, x_4);
x_55 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_55, 0, x_54);
x_56 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___lambda__1), 3, 2);
lean::closure_set(x_56, 0, x_16);
lean::closure_set(x_56, 1, x_0);
x_57 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_57, 0, x_55);
lean::closure_set(x_57, 1, x_56);
x_58 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_58, 0, x_57);
lean::closure_set(x_58, 1, x_19);
return x_58;
}
}
}
else
{
obj* x_62; uint8 x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_68; obj* x_69;
obj* x_60; uint8 x_62; obj* x_63; obj* x_64; obj* x_65; obj* x_66; obj* x_67;
lean::dec(x_0);
x_62 = lean::cnstr_get(x_2, 0);
lean::inc(x_62);
x_64 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1);
x_60 = lean::cnstr_get(x_2, 0);
lean::inc(x_60);
x_62 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1);
if (lean::is_shared(x_2)) {
lean::dec(x_2);
x_65 = lean::box(0);
x_63 = lean::box(0);
} else {
lean::cnstr_release(x_2, 0);
x_65 = x_2;
x_63 = x_2;
}
if (lean::is_scalar(x_65)) {
x_66 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_63)) {
x_64 = lean::alloc_cnstr(1, 1, 1);
} else {
x_66 = x_65;
x_64 = x_63;
}
lean::cnstr_set(x_66, 0, x_62);
lean::cnstr_set_scalar(x_66, sizeof(void*)*1, x_64);
x_67 = x_66;
lean::cnstr_set(x_64, 0, x_60);
lean::cnstr_set_scalar(x_64, sizeof(void*)*1, x_62);
x_65 = x_64;
if (lean::is_scalar(x_6)) {
x_68 = lean::alloc_cnstr(0, 2, 0);
x_66 = lean::alloc_cnstr(0, 2, 0);
} else {
x_68 = x_6;
x_66 = x_6;
}
lean::cnstr_set(x_68, 0, x_67);
lean::cnstr_set(x_68, 1, x_4);
x_69 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_69, 0, x_68);
return x_69;
lean::cnstr_set(x_66, 0, x_65);
lean::cnstr_set(x_66, 1, x_4);
x_67 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_67, 0, x_66);
return x_67;
}
}
}
@ -6486,16 +6470,15 @@ return x_26;
}
else
{
obj* x_28; obj* x_29; obj* x_30; obj* x_34;
obj* x_28; obj* x_29; obj* x_30; obj* x_33;
lean::dec(x_1);
x_28 = lean::box(0);
x_29 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
x_30 = l_mjoin___rarg___closed__1;
lean::inc(x_28);
lean::inc(x_30);
lean::inc(x_29);
x_34 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_29, x_30, x_28, x_28, x_2, x_3, x_4);
return x_34;
x_33 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_29, x_30, x_28, x_28, x_2, x_3, x_4);
return x_33;
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -183,33 +183,32 @@ _start:
lean::dec(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_7; obj* x_8; obj* x_9; obj* x_13;
obj* x_7; obj* x_8; obj* x_9; obj* x_12;
lean::dec(x_3);
x_7 = lean::box(0);
x_8 = l_lean_parser_curr__lbp___rarg___lambda__1___closed__1;
x_9 = l_mjoin___rarg___closed__1;
lean::inc(x_7);
lean::inc(x_9);
lean::inc(x_8);
x_13 = l_lean_parser_monad__parsec_error___at_lean_parser_curr__lbp___spec__1___rarg(x_1, lean::box(0), x_8, x_9, x_7, x_7, x_2);
return x_13;
x_12 = l_lean_parser_monad__parsec_error___at_lean_parser_curr__lbp___spec__1___rarg(x_1, lean::box(0), x_8, x_9, x_7, x_7, x_2);
return x_12;
}
else
{
obj* x_16; obj* x_19; obj* x_22; obj* x_25;
obj* x_15; obj* x_18; obj* x_21; obj* x_24;
lean::dec(x_1);
lean::dec(x_2);
x_16 = lean::cnstr_get(x_4, 0);
lean::inc(x_16);
x_15 = lean::cnstr_get(x_4, 0);
lean::inc(x_15);
lean::dec(x_4);
x_19 = lean::cnstr_get(x_16, 1);
lean::inc(x_19);
lean::dec(x_16);
x_22 = lean::cnstr_get(x_19, 1);
lean::inc(x_22);
lean::dec(x_19);
x_25 = lean::apply_2(x_3, lean::box(0), x_22);
return x_25;
x_18 = lean::cnstr_get(x_15, 1);
lean::inc(x_18);
lean::dec(x_15);
x_21 = lean::cnstr_get(x_18, 1);
lean::inc(x_21);
lean::dec(x_18);
x_24 = lean::apply_2(x_3, lean::box(0), x_21);
return x_24;
}
}
}
@ -347,66 +346,64 @@ x_56 = lean_name_dec_eq(x_50, x_55);
lean::dec(x_50);
if (x_56 == 0)
{
obj* x_59; obj* x_60; obj* x_61; obj* x_65;
obj* x_59; obj* x_60; obj* x_61; obj* x_64;
lean::dec(x_0);
x_59 = lean::box(0);
x_60 = l_lean_parser_curr__lbp___rarg___lambda__3___closed__2;
x_61 = l_mjoin___rarg___closed__1;
lean::inc(x_59);
lean::inc(x_61);
lean::inc(x_60);
x_65 = l_lean_parser_monad__parsec_error___at_lean_parser_curr__lbp___spec__2___rarg(x_1, lean::box(0), x_60, x_61, x_59, x_59, x_2);
return x_65;
x_64 = l_lean_parser_monad__parsec_error___at_lean_parser_curr__lbp___spec__2___rarg(x_1, lean::box(0), x_60, x_61, x_59, x_59, x_2);
return x_64;
}
else
{
obj* x_68; obj* x_71; obj* x_74; obj* x_76;
obj* x_67; obj* x_70; obj* x_73; obj* x_75;
lean::dec(x_1);
lean::dec(x_2);
x_68 = lean::cnstr_get(x_0, 0);
lean::inc(x_68);
x_67 = lean::cnstr_get(x_0, 0);
lean::inc(x_67);
lean::dec(x_0);
x_71 = lean::cnstr_get(x_68, 1);
lean::inc(x_71);
lean::dec(x_68);
x_74 = l_lean_parser_max__prec;
lean::inc(x_74);
x_76 = lean::apply_2(x_71, lean::box(0), x_74);
return x_76;
x_70 = lean::cnstr_get(x_67, 1);
lean::inc(x_70);
lean::dec(x_67);
x_73 = l_lean_parser_max__prec;
lean::inc(x_73);
x_75 = lean::apply_2(x_70, lean::box(0), x_73);
return x_75;
}
}
else
{
obj* x_80; obj* x_83; obj* x_86; obj* x_88;
obj* x_79; obj* x_82; obj* x_85; obj* x_87;
lean::dec(x_1);
lean::dec(x_2);
lean::dec(x_50);
x_80 = lean::cnstr_get(x_0, 0);
lean::inc(x_80);
x_79 = lean::cnstr_get(x_0, 0);
lean::inc(x_79);
lean::dec(x_0);
x_83 = lean::cnstr_get(x_80, 1);
lean::inc(x_83);
lean::dec(x_80);
x_86 = l_lean_parser_max__prec;
lean::inc(x_86);
x_88 = lean::apply_2(x_83, lean::box(0), x_86);
return x_88;
x_82 = lean::cnstr_get(x_79, 1);
lean::inc(x_82);
lean::dec(x_79);
x_85 = l_lean_parser_max__prec;
lean::inc(x_85);
x_87 = lean::apply_2(x_82, lean::box(0), x_85);
return x_87;
}
}
default:
{
obj* x_92; obj* x_93; obj* x_94; obj* x_98;
obj* x_91; obj* x_92; obj* x_93; obj* x_96;
lean::dec(x_4);
lean::dec(x_3);
lean::dec(x_0);
x_92 = lean::box(0);
x_93 = l_lean_parser_curr__lbp___rarg___lambda__3___closed__2;
x_94 = l_mjoin___rarg___closed__1;
lean::inc(x_92);
lean::inc(x_94);
x_91 = lean::box(0);
x_92 = l_lean_parser_curr__lbp___rarg___lambda__3___closed__2;
x_93 = l_mjoin___rarg___closed__1;
lean::inc(x_93);
x_98 = l_lean_parser_monad__parsec_error___at_lean_parser_curr__lbp___spec__3___rarg(x_1, lean::box(0), x_93, x_94, x_92, x_92, x_2);
return x_98;
lean::inc(x_92);
x_96 = l_lean_parser_monad__parsec_error___at_lean_parser_curr__lbp___spec__3___rarg(x_1, lean::box(0), x_92, x_93, x_91, x_91, x_2);
return x_96;
}
}
}
@ -562,7 +559,7 @@ return x_26;
}
else
{
obj* x_34; obj* x_35; obj* x_36; obj* x_40;
obj* x_34; obj* x_35; obj* x_36; obj* x_39;
lean::dec(x_5);
lean::dec(x_7);
lean::dec(x_4);
@ -573,11 +570,10 @@ lean::dec(x_0);
x_34 = lean::box(0);
x_35 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
x_36 = l_mjoin___rarg___closed__1;
lean::inc(x_34);
lean::inc(x_36);
lean::inc(x_35);
x_40 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_pratt_1__trailing__loop___main___spec__1___rarg(x_2, lean::box(0), x_35, x_36, x_34, x_34, x_8);
return x_40;
x_39 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_pratt_1__trailing__loop___main___spec__1___rarg(x_2, lean::box(0), x_35, x_36, x_34, x_34, x_8);
return x_39;
}
}
}
@ -659,17 +655,16 @@ return x_4;
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_pratt__parser___spec__1___rarg___lambda__1(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_5; obj* x_6; obj* x_7; obj* x_11;
obj* x_5; obj* x_6; obj* x_7; obj* x_10;
lean::dec(x_2);
lean::dec(x_0);
x_5 = lean::box(0);
x_6 = l_lean_parser_rec__t_run__parsec___rarg___lambda__1___closed__1;
x_7 = l_mjoin___rarg___closed__1;
lean::inc(x_5);
lean::inc(x_7);
lean::inc(x_6);
x_11 = l_lean_parser_monad__parsec_error___at_lean_parser_pratt__parser___spec__2___rarg(x_1, lean::box(0), x_6, x_7, x_5, x_5);
return x_11;
x_10 = l_lean_parser_monad__parsec_error___at_lean_parser_pratt__parser___spec__2___rarg(x_1, lean::box(0), x_6, x_7, x_5, x_5);
return x_10;
}
}
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_pratt__parser___spec__1___rarg___lambda__2(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {

View file

@ -269,17 +269,16 @@ return x_0;
obj* l_lean_parser_rec__t_run__parsec___rarg___lambda__1(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_5; obj* x_6; obj* x_7; obj* x_11;
obj* x_5; obj* x_6; obj* x_7; obj* x_10;
lean::dec(x_2);
lean::dec(x_0);
x_5 = lean::box(0);
x_6 = l_lean_parser_rec__t_run__parsec___rarg___lambda__1___closed__1;
x_7 = l_mjoin___rarg___closed__1;
lean::inc(x_5);
lean::inc(x_7);
lean::inc(x_6);
x_11 = l_lean_parser_monad__parsec_error___at_lean_parser_rec__t_run__parsec___spec__1___rarg(x_1, lean::box(0), x_6, x_7, x_5, x_5);
return x_11;
x_10 = l_lean_parser_monad__parsec_error___at_lean_parser_rec__t_run__parsec___spec__1___rarg(x_1, lean::box(0), x_6, x_7, x_5, x_5);
return x_10;
}
}
obj* l_lean_parser_rec__t_run__parsec___rarg___lambda__2(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {

View file

@ -367,102 +367,98 @@ lean::dec(x_0);
x_5 = lean::string_iterator_has_next(x_3);
if (x_5 == 0)
{
obj* x_8; obj* x_9; obj* x_10; obj* x_14;
obj* x_8; obj* x_9; obj* x_10; obj* x_13;
lean::dec(x_3);
lean::dec(x_2);
x_8 = lean::box(0);
x_9 = l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
x_10 = l_mjoin___rarg___closed__1;
lean::inc(x_8);
lean::inc(x_10);
lean::inc(x_9);
x_14 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__1___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_14;
x_13 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__1___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_13;
}
else
{
uint32 x_15; uint32 x_16; uint8 x_17; uint8 x_19;
x_15 = lean::string_iterator_curr(x_3);
x_16 = 97;
x_19 = x_16 <= x_15;
if (x_19 == 0)
uint32 x_14; uint32 x_15; uint8 x_16; uint8 x_18;
x_14 = lean::string_iterator_curr(x_3);
x_15 = 97;
x_18 = x_15 <= x_14;
if (x_18 == 0)
{
obj* x_22; obj* x_23; obj* x_25; obj* x_27; obj* x_28; obj* x_29; obj* x_32;
obj* x_21; obj* x_22; obj* x_24; obj* x_26; obj* x_27; obj* x_28; obj* x_30;
lean::dec(x_3);
lean::dec(x_2);
x_22 = l_char_quote__core(x_15);
x_23 = l_char_has__repr___closed__1;
lean::inc(x_23);
x_25 = lean::string_append(x_23, x_22);
lean::dec(x_22);
x_27 = lean::string_append(x_25, x_23);
x_28 = lean::box(0);
x_29 = l_mjoin___rarg___closed__1;
x_21 = l_char_quote__core(x_14);
x_22 = l_char_has__repr___closed__1;
lean::inc(x_22);
x_24 = lean::string_append(x_22, x_21);
lean::dec(x_21);
x_26 = lean::string_append(x_24, x_22);
x_27 = lean::box(0);
x_28 = l_mjoin___rarg___closed__1;
lean::inc(x_28);
lean::inc(x_29);
x_32 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__4___rarg(x_1, lean::box(0), x_27, x_29, x_28, x_28);
return x_32;
x_30 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__4___rarg(x_1, lean::box(0), x_26, x_28, x_27, x_27);
return x_30;
}
else
{
uint8 x_33;
x_33 = 1;
x_17 = x_33;
goto lbl_18;
uint8 x_31;
x_31 = 1;
x_16 = x_31;
goto lbl_17;
}
lbl_18:
lbl_17:
{
uint32 x_34; uint8 x_35;
x_34 = 102;
x_35 = x_15 <= x_34;
if (x_35 == 0)
uint32 x_32; uint8 x_33;
x_32 = 102;
x_33 = x_14 <= x_32;
if (x_33 == 0)
{
obj* x_38; obj* x_39; obj* x_41; obj* x_43; obj* x_44; obj* x_45; obj* x_48;
obj* x_36; obj* x_37; obj* x_39; obj* x_41; obj* x_42; obj* x_43; obj* x_45;
lean::dec(x_3);
lean::dec(x_2);
x_38 = l_char_quote__core(x_15);
x_39 = l_char_has__repr___closed__1;
lean::inc(x_39);
x_41 = lean::string_append(x_39, x_38);
lean::dec(x_38);
x_43 = lean::string_append(x_41, x_39);
x_44 = lean::box(0);
x_45 = l_mjoin___rarg___closed__1;
lean::inc(x_44);
lean::inc(x_45);
x_48 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__2___rarg(x_1, lean::box(0), x_43, x_45, x_44, x_44);
return x_48;
x_36 = l_char_quote__core(x_14);
x_37 = l_char_has__repr___closed__1;
lean::inc(x_37);
x_39 = lean::string_append(x_37, x_36);
lean::dec(x_36);
x_41 = lean::string_append(x_39, x_37);
x_42 = lean::box(0);
x_43 = l_mjoin___rarg___closed__1;
lean::inc(x_43);
x_45 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__2___rarg(x_1, lean::box(0), x_41, x_43, x_42, x_42);
return x_45;
}
else
{
if (x_17 == 0)
if (x_16 == 0)
{
obj* x_51; obj* x_52; obj* x_54; obj* x_56; obj* x_57; obj* x_58; obj* x_61;
obj* x_48; obj* x_49; obj* x_51; obj* x_53; obj* x_54; obj* x_55; obj* x_57;
lean::dec(x_3);
lean::dec(x_2);
x_51 = l_char_quote__core(x_15);
x_52 = l_char_has__repr___closed__1;
lean::inc(x_52);
x_54 = lean::string_append(x_52, x_51);
lean::dec(x_51);
x_56 = lean::string_append(x_54, x_52);
x_57 = lean::box(0);
x_58 = l_mjoin___rarg___closed__1;
lean::inc(x_57);
lean::inc(x_58);
x_61 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__3___rarg(x_1, lean::box(0), x_56, x_58, x_57, x_57);
return x_61;
x_48 = l_char_quote__core(x_14);
x_49 = l_char_has__repr___closed__1;
lean::inc(x_49);
x_51 = lean::string_append(x_49, x_48);
lean::dec(x_48);
x_53 = lean::string_append(x_51, x_49);
x_54 = lean::box(0);
x_55 = l_mjoin___rarg___closed__1;
lean::inc(x_55);
x_57 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__3___rarg(x_1, lean::box(0), x_53, x_55, x_54, x_54);
return x_57;
}
else
{
obj* x_63; obj* x_64; obj* x_65;
obj* x_59; obj* x_60; obj* x_61;
lean::dec(x_1);
x_63 = lean::box_uint32(x_15);
x_64 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_64, 0, x_3);
lean::closure_set(x_64, 1, x_63);
x_65 = lean::apply_2(x_2, lean::box(0), x_64);
return x_65;
x_59 = lean::box_uint32(x_14);
x_60 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_60, 0, x_3);
lean::closure_set(x_60, 1, x_59);
x_61 = lean::apply_2(x_2, lean::box(0), x_60);
return x_61;
}
}
}
@ -508,102 +504,98 @@ lean::dec(x_0);
x_5 = lean::string_iterator_has_next(x_3);
if (x_5 == 0)
{
obj* x_8; obj* x_9; obj* x_10; obj* x_14;
obj* x_8; obj* x_9; obj* x_10; obj* x_13;
lean::dec(x_3);
lean::dec(x_2);
x_8 = lean::box(0);
x_9 = l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
x_10 = l_mjoin___rarg___closed__1;
lean::inc(x_8);
lean::inc(x_10);
lean::inc(x_9);
x_14 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__5___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_14;
x_13 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__5___rarg(x_1, lean::box(0), x_9, x_10, x_8, x_8);
return x_13;
}
else
{
uint32 x_15; uint32 x_16; uint8 x_17; uint8 x_19;
x_15 = lean::string_iterator_curr(x_3);
x_16 = 65;
x_19 = x_16 <= x_15;
if (x_19 == 0)
uint32 x_14; uint32 x_15; uint8 x_16; uint8 x_18;
x_14 = lean::string_iterator_curr(x_3);
x_15 = 65;
x_18 = x_15 <= x_14;
if (x_18 == 0)
{
obj* x_22; obj* x_23; obj* x_25; obj* x_27; obj* x_28; obj* x_29; obj* x_32;
obj* x_21; obj* x_22; obj* x_24; obj* x_26; obj* x_27; obj* x_28; obj* x_30;
lean::dec(x_3);
lean::dec(x_2);
x_22 = l_char_quote__core(x_15);
x_23 = l_char_has__repr___closed__1;
lean::inc(x_23);
x_25 = lean::string_append(x_23, x_22);
lean::dec(x_22);
x_27 = lean::string_append(x_25, x_23);
x_28 = lean::box(0);
x_29 = l_mjoin___rarg___closed__1;
x_21 = l_char_quote__core(x_14);
x_22 = l_char_has__repr___closed__1;
lean::inc(x_22);
x_24 = lean::string_append(x_22, x_21);
lean::dec(x_21);
x_26 = lean::string_append(x_24, x_22);
x_27 = lean::box(0);
x_28 = l_mjoin___rarg___closed__1;
lean::inc(x_28);
lean::inc(x_29);
x_32 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__8___rarg(x_1, lean::box(0), x_27, x_29, x_28, x_28);
return x_32;
x_30 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__8___rarg(x_1, lean::box(0), x_26, x_28, x_27, x_27);
return x_30;
}
else
{
uint8 x_33;
x_33 = 1;
x_17 = x_33;
goto lbl_18;
uint8 x_31;
x_31 = 1;
x_16 = x_31;
goto lbl_17;
}
lbl_18:
lbl_17:
{
uint32 x_34; uint8 x_35;
x_34 = 70;
x_35 = x_15 <= x_34;
if (x_35 == 0)
uint32 x_32; uint8 x_33;
x_32 = 70;
x_33 = x_14 <= x_32;
if (x_33 == 0)
{
obj* x_38; obj* x_39; obj* x_41; obj* x_43; obj* x_44; obj* x_45; obj* x_48;
obj* x_36; obj* x_37; obj* x_39; obj* x_41; obj* x_42; obj* x_43; obj* x_45;
lean::dec(x_3);
lean::dec(x_2);
x_38 = l_char_quote__core(x_15);
x_39 = l_char_has__repr___closed__1;
lean::inc(x_39);
x_41 = lean::string_append(x_39, x_38);
lean::dec(x_38);
x_43 = lean::string_append(x_41, x_39);
x_44 = lean::box(0);
x_45 = l_mjoin___rarg___closed__1;
lean::inc(x_44);
lean::inc(x_45);
x_48 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__6___rarg(x_1, lean::box(0), x_43, x_45, x_44, x_44);
return x_48;
x_36 = l_char_quote__core(x_14);
x_37 = l_char_has__repr___closed__1;
lean::inc(x_37);
x_39 = lean::string_append(x_37, x_36);
lean::dec(x_36);
x_41 = lean::string_append(x_39, x_37);
x_42 = lean::box(0);
x_43 = l_mjoin___rarg___closed__1;
lean::inc(x_43);
x_45 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__6___rarg(x_1, lean::box(0), x_41, x_43, x_42, x_42);
return x_45;
}
else
{
if (x_17 == 0)
if (x_16 == 0)
{
obj* x_51; obj* x_52; obj* x_54; obj* x_56; obj* x_57; obj* x_58; obj* x_61;
obj* x_48; obj* x_49; obj* x_51; obj* x_53; obj* x_54; obj* x_55; obj* x_57;
lean::dec(x_3);
lean::dec(x_2);
x_51 = l_char_quote__core(x_15);
x_52 = l_char_has__repr___closed__1;
lean::inc(x_52);
x_54 = lean::string_append(x_52, x_51);
lean::dec(x_51);
x_56 = lean::string_append(x_54, x_52);
x_57 = lean::box(0);
x_58 = l_mjoin___rarg___closed__1;
lean::inc(x_57);
lean::inc(x_58);
x_61 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__7___rarg(x_1, lean::box(0), x_56, x_58, x_57, x_57);
return x_61;
x_48 = l_char_quote__core(x_14);
x_49 = l_char_has__repr___closed__1;
lean::inc(x_49);
x_51 = lean::string_append(x_49, x_48);
lean::dec(x_48);
x_53 = lean::string_append(x_51, x_49);
x_54 = lean::box(0);
x_55 = l_mjoin___rarg___closed__1;
lean::inc(x_55);
x_57 = l_lean_parser_monad__parsec_error___at_lean_parser_parse__hex__digit___spec__7___rarg(x_1, lean::box(0), x_53, x_55, x_54, x_54);
return x_57;
}
else
{
obj* x_63; obj* x_64; obj* x_65;
obj* x_59; obj* x_60; obj* x_61;
lean::dec(x_1);
x_63 = lean::box_uint32(x_15);
x_64 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_64, 0, x_3);
lean::closure_set(x_64, 1, x_63);
x_65 = lean::apply_2(x_2, lean::box(0), x_64);
return x_65;
x_59 = lean::box_uint32(x_14);
x_60 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_satisfy___rarg___lambda__1___boxed), 3, 2);
lean::closure_set(x_60, 0, x_3);
lean::closure_set(x_60, 1, x_59);
x_61 = lean::apply_2(x_2, lean::box(0), x_60);
return x_61;
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -92,13 +92,12 @@ obj* l___private_init_lean_parser_trie_2__find__aux(obj*);
obj* _init_l_lean_parser_trie_mk___closed__1() {
_start:
{
obj* x_0; obj* x_2;
obj* x_0; obj* x_1;
x_0 = lean::box(0);
lean::inc(x_0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_0);
return x_2;
x_1 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_1, 0, x_0);
lean::cnstr_set(x_1, 1, x_0);
return x_1;
}
}
obj* l_lean_parser_trie_mk(obj* x_0) {

View file

@ -656,7 +656,7 @@ goto lbl_13;
}
lbl_13:
{
obj* x_41; obj* x_43; obj* x_47; obj* x_48; obj* x_50; obj* x_51; obj* x_53; obj* x_55; obj* x_56;
obj* x_41; obj* x_43; obj* x_47; obj* x_48; obj* x_49; obj* x_50; obj* x_52; obj* x_54; obj* x_55;
lean::dec(x_12);
x_41 = lean::cnstr_get(x_9, 0);
lean::inc(x_41);
@ -667,30 +667,29 @@ lean::inc(x_0);
x_47 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_47, 0, x_0);
x_48 = lean::box(0);
lean::inc(x_48);
x_50 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_50, 0, x_41);
lean::cnstr_set(x_50, 1, x_43);
lean::cnstr_set(x_50, 2, x_47);
lean::cnstr_set(x_50, 3, x_48);
x_49 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_49, 0, x_41);
lean::cnstr_set(x_49, 1, x_43);
lean::cnstr_set(x_49, 2, x_47);
lean::cnstr_set(x_49, 3, x_48);
if (lean::is_scalar(x_11)) {
x_51 = lean::alloc_cnstr(0, 2, 0);
x_50 = lean::alloc_cnstr(0, 2, 0);
} else {
x_51 = x_11;
x_50 = x_11;
}
lean::cnstr_set(x_51, 0, x_48);
lean::cnstr_set(x_51, 1, x_50);
lean::cnstr_set(x_50, 0, x_48);
lean::cnstr_set(x_50, 1, x_49);
lean::inc(x_1);
x_53 = lean::apply_2(x_1, lean::box(0), x_51);
x_52 = lean::apply_2(x_1, lean::box(0), x_50);
lean::inc(x_4);
x_55 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_trace_lean_trace_monad__tracer___rarg___lambda__3), 6, 5);
lean::closure_set(x_55, 0, x_2);
lean::closure_set(x_55, 1, x_3);
lean::closure_set(x_55, 2, x_0);
lean::closure_set(x_55, 3, x_1);
lean::closure_set(x_55, 4, x_4);
x_56 = lean::apply_4(x_4, lean::box(0), lean::box(0), x_53, x_55);
return x_56;
x_54 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_trace_lean_trace_monad__tracer___rarg___lambda__3), 6, 5);
lean::closure_set(x_54, 0, x_2);
lean::closure_set(x_54, 1, x_3);
lean::closure_set(x_54, 2, x_0);
lean::closure_set(x_54, 3, x_1);
lean::closure_set(x_54, 4, x_4);
x_55 = lean::apply_4(x_4, lean::box(0), lean::box(0), x_52, x_54);
return x_55;
}
}
}
@ -937,37 +936,35 @@ return x_57;
}
lbl_31:
{
obj* x_59; obj* x_61; obj* x_63; obj* x_65; obj* x_67; obj* x_69; obj* x_70;
obj* x_59; obj* x_61; obj* x_62; obj* x_63; obj* x_65; obj* x_67; obj* x_68;
lean::dec(x_30);
x_59 = lean::cnstr_get(x_1, 1);
lean::inc(x_59);
x_61 = lean::box(0);
lean::inc(x_61);
x_63 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_63, 0, x_26);
lean::cnstr_set(x_63, 1, x_59);
lean::cnstr_set(x_63, 2, x_2);
lean::cnstr_set(x_63, 3, x_61);
lean::inc(x_61);
x_62 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_62, 0, x_26);
lean::cnstr_set(x_62, 1, x_59);
lean::cnstr_set(x_62, 2, x_2);
lean::cnstr_set(x_62, 3, x_61);
if (lean::is_scalar(x_13)) {
x_65 = lean::alloc_cnstr(0, 2, 0);
x_63 = lean::alloc_cnstr(0, 2, 0);
} else {
x_65 = x_13;
x_63 = x_13;
}
lean::cnstr_set(x_65, 0, x_61);
lean::cnstr_set(x_65, 1, x_63);
lean::cnstr_set(x_63, 0, x_61);
lean::cnstr_set(x_63, 1, x_62);
lean::inc(x_4);
x_67 = lean::apply_2(x_4, lean::box(0), x_65);
x_65 = lean::apply_2(x_4, lean::box(0), x_63);
lean::inc(x_6);
x_69 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_trace_lean_trace_monad__tracer___rarg___lambda__9), 7, 6);
lean::closure_set(x_69, 0, x_0);
lean::closure_set(x_69, 1, x_1);
lean::closure_set(x_69, 2, x_5);
lean::closure_set(x_69, 3, x_61);
lean::closure_set(x_69, 4, x_4);
lean::closure_set(x_69, 5, x_6);
x_70 = lean::apply_4(x_6, lean::box(0), lean::box(0), x_67, x_69);
return x_70;
x_67 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_trace_lean_trace_monad__tracer___rarg___lambda__9), 7, 6);
lean::closure_set(x_67, 0, x_0);
lean::closure_set(x_67, 1, x_1);
lean::closure_set(x_67, 2, x_5);
lean::closure_set(x_67, 3, x_61);
lean::closure_set(x_67, 4, x_4);
lean::closure_set(x_67, 5, x_6);
x_68 = lean::apply_4(x_6, lean::box(0), lean::box(0), x_65, x_67);
return x_68;
}
}
}
@ -1107,22 +1104,20 @@ return x_17;
obj* l_lean_trace_trace__t_run___rarg(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_5; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
x_5 = lean::box(0);
lean::inc(x_5);
lean::inc(x_5);
x_8 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_8, 0, x_1);
lean::cnstr_set(x_8, 1, x_5);
lean::cnstr_set(x_8, 2, x_5);
lean::cnstr_set(x_8, 3, x_5);
x_9 = lean::apply_1(x_2, x_8);
x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_trace_trace__t_run___rarg___lambda__1), 2, 1);
lean::closure_set(x_10, 0, x_0);
x_11 = lean::apply_4(x_3, lean::box(0), lean::box(0), x_9, x_10);
return x_11;
x_6 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_6, 0, x_1);
lean::cnstr_set(x_6, 1, x_5);
lean::cnstr_set(x_6, 2, x_5);
lean::cnstr_set(x_6, 3, x_5);
x_7 = lean::apply_1(x_2, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_trace_trace__t_run___rarg___lambda__1), 2, 1);
lean::closure_set(x_8, 0, x_0);
x_9 = lean::apply_4(x_3, lean::box(0), lean::box(0), x_7, x_8);
return x_9;
}
}
obj* l_lean_trace_trace__t_run(obj* x_0, obj* x_1) {