chore(boot): update

This commit is contained in:
Leonardo de Moura 2019-02-16 11:42:48 -08:00
parent e84f7744c3
commit 370561fbdd
21 changed files with 8910 additions and 26539 deletions

View file

@ -19,9 +19,6 @@ obj* l_array_rev__iterate(obj*, obj*);
obj* l_array_push___rarg___lambda__1(obj*, obj*, obj*, obj*);
obj* l_array_rev__foldl(obj*, obj*);
obj* l_array_uread___rarg___boxed(obj*, obj*, obj*);
namespace lean {
obj* nat_add(obj*, obj*);
}
obj* l_array_rev__iterate___rarg(obj*, obj*, obj*);
obj* l_array_read___rarg(obj*, obj*);
obj* l___private_init_data_array_basic_2__rev__iterate__aux___main___rarg(obj*, obj*, obj*, obj*, obj*);
@ -512,20 +509,20 @@ return x_2;
obj* l_array_push___rarg(obj* x_0, obj* x_1) {
_start:
{
obj* x_2; obj* x_4; obj* x_5; obj* x_7; obj* x_8;
obj* x_2; obj* x_5; obj* x_6; obj* x_7;
x_2 = lean::cnstr_get(x_0, 0);
lean::inc(x_2);
x_4 = lean::mk_nat_obj(1u);
x_5 = lean::nat_add(x_2, x_4);
lean::dec(x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_array_push___rarg___lambda__1), 4, 3);
lean::closure_set(x_7, 0, x_2);
lean::closure_set(x_7, 1, x_0);
lean::closure_set(x_7, 2, x_1);
x_8 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_8, 0, x_5);
lean::cnstr_set(x_8, 1, x_7);
return x_8;
lean::inc(x_2);
x_5 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_5, 0, x_2);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_array_push___rarg___lambda__1), 4, 3);
lean::closure_set(x_6, 0, x_2);
lean::closure_set(x_6, 1, x_0);
lean::closure_set(x_6, 2, x_1);
x_7 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_6);
return x_7;
}
}
obj* l_array_push(obj* x_0) {

View file

@ -258,44 +258,11 @@ return x_5;
uint32 _init_l_char_inhabited() {
_start:
{
uint32 x_0; uint32 x_1; uint8 x_2;
uint32 x_0;
x_0 = 65;
x_1 = 55296;
x_2 = x_0 < x_1;
if (x_2 == 0)
{
uint32 x_3; uint8 x_4;
x_3 = 57343;
x_4 = x_3 < x_0;
if (x_4 == 0)
{
uint32 x_5;
x_5 = 0;
return x_5;
}
else
{
uint32 x_6; uint8 x_7;
x_6 = 1114112;
x_7 = x_0 < x_6;
if (x_7 == 0)
{
uint32 x_8;
x_8 = 0;
return x_8;
}
else
{
return x_0;
}
}
}
else
{
return x_0;
}
}
}
obj* _init_l_char_inhabited___boxed() {
_start:
{
@ -308,242 +275,44 @@ return x_1;
uint8 l_char_is__whitespace(uint32 x_0) {
_start:
{
uint8 x_1; uint8 x_3; uint32 x_5; uint32 x_6; uint8 x_7;
x_5 = 32;
x_6 = 55296;
x_7 = x_5 < x_6;
if (x_7 == 0)
uint32 x_1; uint8 x_2;
x_1 = 32;
x_2 = x_0 == x_1;
if (x_2 == 0)
{
uint32 x_8; uint8 x_9;
x_8 = 57343;
x_9 = x_8 < x_5;
if (x_9 == 0)
uint32 x_3; uint8 x_4;
x_3 = 9;
x_4 = x_0 == x_3;
if (x_4 == 0)
{
uint32 x_10; uint8 x_11;
x_10 = 0;
x_11 = x_0 == x_10;
if (x_11 == 0)
uint32 x_5; uint8 x_6;
x_5 = 10;
x_6 = x_0 == x_5;
if (x_6 == 0)
{
uint8 x_12;
x_12 = 0;
x_3 = x_12;
goto lbl_4;
uint8 x_7;
x_7 = 0;
return x_7;
}
else
{
uint8 x_13;
x_13 = 1;
return x_13;
uint8 x_8;
x_8 = 1;
return x_8;
}
}
else
{
uint32 x_14; uint8 x_15;
x_14 = 1114112;
x_15 = x_5 < x_14;
if (x_15 == 0)
{
uint32 x_16; uint8 x_17;
x_16 = 0;
x_17 = x_0 == x_16;
if (x_17 == 0)
{
uint8 x_18;
x_18 = 0;
x_3 = x_18;
goto lbl_4;
}
else
{
uint8 x_19;
x_19 = 1;
return x_19;
uint8 x_9;
x_9 = 1;
return x_9;
}
}
else
{
uint8 x_20;
x_20 = x_0 == x_5;
if (x_20 == 0)
{
uint8 x_21;
x_21 = 0;
x_3 = x_21;
goto lbl_4;
}
else
{
uint8 x_22;
x_22 = 1;
return x_22;
}
}
}
}
else
{
uint8 x_23;
x_23 = x_0 == x_5;
if (x_23 == 0)
{
uint8 x_24;
x_24 = 0;
x_3 = x_24;
goto lbl_4;
}
else
{
uint8 x_25;
x_25 = 1;
return x_25;
}
}
lbl_2:
{
uint32 x_26; uint32 x_27; uint8 x_28;
x_26 = 10;
x_27 = 55296;
x_28 = x_26 < x_27;
if (x_28 == 0)
{
uint32 x_29; uint8 x_30;
x_29 = 57343;
x_30 = x_29 < x_26;
if (x_30 == 0)
{
uint32 x_31; uint8 x_32;
x_31 = 0;
x_32 = x_0 == x_31;
if (x_32 == 0)
{
return x_1;
}
else
{
uint8 x_33;
x_33 = 1;
return x_33;
}
}
else
{
uint32 x_34; uint8 x_35;
x_34 = 1114112;
x_35 = x_26 < x_34;
if (x_35 == 0)
{
uint32 x_36; uint8 x_37;
x_36 = 0;
x_37 = x_0 == x_36;
if (x_37 == 0)
{
return x_1;
}
else
{
uint8 x_38;
x_38 = 1;
return x_38;
}
}
else
{
uint8 x_39;
x_39 = x_0 == x_26;
if (x_39 == 0)
{
return x_1;
}
else
{
uint8 x_40;
x_40 = 1;
return x_40;
}
}
}
}
else
{
uint8 x_41;
x_41 = x_0 == x_26;
if (x_41 == 0)
{
return x_1;
}
else
{
uint8 x_42;
x_42 = 1;
return x_42;
}
}
}
lbl_4:
{
uint32 x_43; uint32 x_44; uint8 x_45; uint32 x_46;
x_43 = 9;
x_44 = 55296;
x_45 = x_43 < x_44;
if (x_45 == 0)
{
uint32 x_48; uint8 x_49;
x_48 = 57343;
x_49 = x_48 < x_43;
if (x_49 == 0)
{
uint32 x_50;
x_50 = 0;
x_46 = x_50;
goto lbl_47;
}
else
{
uint32 x_51; uint8 x_52;
x_51 = 1114112;
x_52 = x_43 < x_51;
if (x_52 == 0)
{
uint32 x_53;
x_53 = 0;
x_46 = x_53;
goto lbl_47;
}
else
{
x_46 = x_43;
goto lbl_47;
}
}
}
else
{
x_46 = x_43;
goto lbl_47;
}
lbl_47:
{
uint8 x_54;
x_54 = x_0 == x_46;
if (x_54 == 0)
{
if (x_3 == 0)
{
x_1 = x_3;
goto lbl_2;
}
else
{
return x_3;
}
}
else
{
uint8 x_55;
x_55 = 1;
return x_55;
}
}
uint8 x_10;
x_10 = 1;
return x_10;
}
}
}
@ -740,78 +509,36 @@ return x_3;
uint32 l_char_to__lower(uint32 x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4; uint8 x_5;
obj* x_1; obj* x_2; uint8 x_3;
x_1 = lean::uint32_to_nat(x_0);
x_4 = lean::mk_nat_obj(65u);
x_5 = lean::nat_dec_le(x_4, x_1);
lean::dec(x_4);
if (x_5 == 0)
{
lean::dec(x_1);
return x_0;
}
else
{
obj* x_8; uint8 x_9;
x_8 = lean::mk_nat_obj(90u);
x_9 = lean::nat_dec_le(x_1, x_8);
lean::dec(x_8);
if (x_9 == 0)
{
lean::dec(x_1);
return x_0;
}
else
{
obj* x_12;
x_12 = lean::box(0);
x_2 = x_12;
goto lbl_3;
}
}
lbl_3:
{
obj* x_14; obj* x_15; uint32 x_18; uint32 x_20; uint8 x_21;
x_2 = lean::mk_nat_obj(65u);
x_3 = lean::nat_dec_le(x_2, x_1);
lean::dec(x_2);
x_14 = lean::mk_nat_obj(32u);
x_15 = lean::nat_add(x_1, x_14);
lean::dec(x_14);
if (x_3 == 0)
{
lean::dec(x_1);
x_18 = lean::uint32_of_nat(x_15);
lean::dec(x_15);
x_20 = 55296;
x_21 = x_18 < x_20;
if (x_21 == 0)
{
uint32 x_22; uint8 x_23;
x_22 = 57343;
x_23 = x_22 < x_18;
if (x_23 == 0)
{
uint32 x_24;
x_24 = 0;
return x_24;
return x_0;
}
else
{
uint32 x_25; uint8 x_26;
x_25 = 1114112;
x_26 = x_18 < x_25;
if (x_26 == 0)
obj* x_6; uint8 x_7;
x_6 = lean::mk_nat_obj(90u);
x_7 = lean::nat_dec_le(x_1, x_6);
lean::dec(x_6);
if (x_7 == 0)
{
uint32 x_27;
x_27 = 0;
return x_27;
lean::dec(x_1);
return x_0;
}
else
{
return x_18;
}
}
}
else
{
return x_18;
obj* x_10; obj* x_11; uint32 x_14;
x_10 = lean::mk_nat_obj(32u);
x_11 = lean::nat_add(x_1, x_10);
lean::dec(x_10);
lean::dec(x_1);
x_14 = l_char_of__nat(x_11);
return x_14;
}
}
}

View file

@ -193,15 +193,13 @@ return x_4;
obj* l_fin_of__nat(obj* x_0, obj* x_1) {
_start:
{
obj* x_2; obj* x_3; obj* x_6;
x_2 = lean::mk_nat_obj(1u);
x_3 = lean::nat_add(x_0, x_2);
obj* x_2; obj* x_3;
x_2 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_2, 0, x_0);
x_3 = lean::nat_mod(x_1, x_2);
lean::dec(x_2);
lean::dec(x_0);
x_6 = lean::nat_mod(x_1, x_3);
lean::dec(x_3);
lean::dec(x_1);
return x_6;
return x_3;
}
}
obj* l_fin_add___main(obj* x_0, obj* x_1, obj* x_2) {

View file

@ -30,9 +30,6 @@ obj* l_int_has__sub;
namespace lean {
obj* int_neg_succ_of_nat(obj*);
}
namespace lean {
obj* nat_add(obj*, obj*);
}
obj* l_int_add___boxed(obj*, obj*);
namespace lean {
uint8 int_dec_le(obj*, obj*);
@ -422,21 +419,21 @@ return x_5;
}
else
{
obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_14; obj* x_15; obj* x_17;
obj* x_6; obj* x_8; obj* x_9; obj* x_12; obj* x_13; obj* x_14; obj* x_16;
x_6 = lean::nat_abs(x_0);
lean::dec(x_0);
x_8 = lean::mk_nat_obj(1u);
x_9 = lean::nat_sub(x_6, x_8);
lean::dec(x_6);
x_11 = lean::nat_add(x_9, x_8);
lean::dec(x_8);
lean::dec(x_9);
x_14 = l_nat_repr(x_11);
x_15 = l_int_repr___main___closed__2;
lean::inc(x_15);
x_17 = lean::string_append(x_15, x_14);
lean::dec(x_14);
return x_17;
lean::dec(x_6);
x_12 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_12, 0, x_9);
x_13 = l_nat_repr(x_12);
x_14 = l_int_repr___main___closed__2;
lean::inc(x_14);
x_16 = lean::string_append(x_14, x_13);
lean::dec(x_13);
return x_16;
}
}
}

View file

@ -1873,21 +1873,19 @@ x_12 = lean::unbox(x_11);
lean::dec(x_11);
if (x_12 == 0)
{
obj* x_14; obj* x_15; obj* x_16;
obj* x_14; obj* x_15;
x_14 = l_list_find__index___main___rarg(x_0, x_7);
x_15 = lean::mk_nat_obj(1u);
x_16 = lean::nat_add(x_14, x_15);
lean::dec(x_15);
lean::dec(x_14);
return x_16;
x_15 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_15, 0, x_14);
return x_15;
}
else
{
obj* x_21;
obj* x_18;
lean::dec(x_7);
lean::dec(x_0);
x_21 = lean::mk_nat_obj(0u);
return x_21;
x_18 = lean::mk_nat_obj(0u);
return x_18;
}
}
}
@ -1947,22 +1945,20 @@ x_15 = lean::unbox(x_14);
lean::dec(x_14);
if (x_15 == 0)
{
obj* x_17; obj* x_18; obj* x_19;
obj* x_17; obj* x_18;
x_17 = l_list_find__index___main___at_list_index__of___spec__1___rarg(x_0, x_1, x_9);
x_18 = lean::mk_nat_obj(1u);
x_19 = lean::nat_add(x_17, x_18);
lean::dec(x_18);
lean::dec(x_17);
return x_19;
x_18 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_18, 0, x_17);
return x_18;
}
else
{
obj* x_25;
obj* x_22;
lean::dec(x_9);
lean::dec(x_1);
lean::dec(x_0);
x_25 = lean::mk_nat_obj(0u);
return x_25;
x_22 = lean::mk_nat_obj(0u);
return x_22;
}
}
}

View file

@ -33,9 +33,6 @@ obj* l_rbnode_ins___main___at_rbmap_of__list___main___spec__3___rarg(obj*, obj*,
obj* l_rbmap_mfold___main(obj*, obj*, obj*, obj*, obj*);
obj* l_rbmap_max___main___rarg(obj*);
obj* l_rbnode_all___rarg(obj*, obj*);
namespace lean {
obj* nat_add(obj*, obj*);
}
obj* l_rbmap;
obj* l_rbmap_insert___main___rarg(obj*, obj*, obj*, obj*);
obj* l_list_repr__aux___main___at_rbmap_has__repr___spec__2___rarg(obj*, obj*, uint8, obj*);
@ -293,7 +290,7 @@ return x_4;
}
case 1:
{
obj* x_5; obj* x_7; obj* x_11; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
obj* x_5; obj* x_7; obj* x_11; obj* x_13; obj* x_14; obj* x_15;
x_5 = lean::cnstr_get(x_1, 0);
lean::inc(x_5);
x_7 = lean::cnstr_get(x_1, 3);
@ -304,30 +301,26 @@ x_11 = l_rbnode_depth___main___rarg(x_0, x_5);
lean::inc(x_0);
x_13 = l_rbnode_depth___main___rarg(x_0, x_7);
x_14 = lean::apply_2(x_0, x_11, x_13);
x_15 = lean::mk_nat_obj(1u);
x_16 = lean::nat_add(x_14, x_15);
lean::dec(x_15);
lean::dec(x_14);
return x_16;
x_15 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_15, 0, x_14);
return x_15;
}
default:
{
obj* x_19; obj* x_21; obj* x_25; obj* x_27; obj* x_28; obj* x_29; obj* x_30;
x_19 = lean::cnstr_get(x_1, 0);
lean::inc(x_19);
x_21 = lean::cnstr_get(x_1, 3);
lean::inc(x_21);
obj* x_16; obj* x_18; obj* x_22; obj* x_24; obj* x_25; obj* x_26;
x_16 = lean::cnstr_get(x_1, 0);
lean::inc(x_16);
x_18 = lean::cnstr_get(x_1, 3);
lean::inc(x_18);
lean::dec(x_1);
lean::inc(x_0);
x_25 = l_rbnode_depth___main___rarg(x_0, x_19);
x_22 = l_rbnode_depth___main___rarg(x_0, x_16);
lean::inc(x_0);
x_27 = l_rbnode_depth___main___rarg(x_0, x_21);
x_28 = lean::apply_2(x_0, x_25, x_27);
x_29 = lean::mk_nat_obj(1u);
x_30 = lean::nat_add(x_28, x_29);
lean::dec(x_29);
lean::dec(x_28);
return x_30;
x_24 = l_rbnode_depth___main___rarg(x_0, x_18);
x_25 = lean::apply_2(x_0, x_22, x_24);
x_26 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_26, 0, x_25);
return x_26;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -40,7 +40,6 @@ obj* l_list_as__string(obj*);
obj* l_string_iterator_is__prefix__of__remaining;
obj* l_string_iterator_forward___main(obj*, obj*);
obj* l_string_iterator_has__next___boxed(obj*);
obj* l___private_init_data_string_basic_4__to__nat__core___main___closed__2;
obj* l_nat_repeat__core___main___at_string_pushn___spec__1(uint32, obj*, obj*, obj*);
obj* l_string_iterator_extract__core(obj*, obj*);
obj* l_string_back___boxed(obj*);
@ -1200,116 +1199,65 @@ x_3 = lean::mk_nat_obj(0u);
x_4 = lean::nat_dec_eq(x_0, x_3);
if (x_4 == 0)
{
obj* x_5; obj* x_7; obj* x_9; obj* x_10; obj* x_12; uint8 x_14;
obj* x_5; obj* x_7; uint8 x_9;
x_5 = lean::cnstr_get(x_2, 0);
lean::inc(x_5);
x_7 = lean::cnstr_get(x_2, 1);
lean::inc(x_7);
x_9 = lean::mk_nat_obj(1u);
x_10 = lean::nat_sub(x_0, x_9);
lean::dec(x_0);
x_14 = lean::string_iterator_has_next(x_1);
if (x_14 == 0)
x_9 = lean::string_iterator_has_next(x_1);
if (x_9 == 0)
{
lean::dec(x_5);
lean::dec(x_10);
lean::dec(x_9);
lean::dec(x_1);
lean::dec(x_7);
lean::dec(x_3);
lean::dec(x_0);
return x_2;
}
else
{
obj* x_22;
obj* x_16; obj* x_17; uint32 x_19; uint32 x_20; uint8 x_21;
lean::dec(x_2);
x_22 = lean::box(0);
x_12 = x_22;
goto lbl_13;
}
lbl_13:
x_16 = lean::mk_nat_obj(1u);
x_17 = lean::nat_sub(x_0, x_16);
lean::dec(x_0);
x_19 = lean::string_iterator_curr(x_1);
x_20 = 10;
x_21 = x_19 == x_20;
if (x_21 == 0)
{
uint32 x_24; uint32 x_25; uint32 x_26; uint8 x_27; uint32 x_28;
lean::dec(x_12);
x_24 = lean::string_iterator_curr(x_1);
x_25 = 10;
x_26 = 55296;
x_27 = x_25 < x_26;
if (x_27 == 0)
{
uint32 x_30; uint8 x_31;
x_30 = 57343;
x_31 = x_30 < x_25;
if (x_31 == 0)
{
uint32 x_32;
x_32 = 0;
x_28 = x_32;
goto lbl_29;
}
else
{
uint32 x_33; uint8 x_34;
x_33 = 1114112;
x_34 = x_25 < x_33;
if (x_34 == 0)
{
uint32 x_35;
x_35 = 0;
x_28 = x_35;
goto lbl_29;
}
else
{
x_28 = x_25;
goto lbl_29;
}
}
}
else
{
x_28 = x_25;
goto lbl_29;
}
lbl_29:
{
uint8 x_36;
x_36 = x_24 == x_28;
if (x_36 == 0)
{
obj* x_38; obj* x_39; obj* x_42;
obj* x_23; obj* x_24; obj* x_27;
lean::dec(x_3);
x_38 = lean::string_iterator_next(x_1);
x_39 = lean::nat_add(x_7, x_9);
lean::dec(x_9);
x_23 = lean::string_iterator_next(x_1);
x_24 = lean::nat_add(x_7, x_16);
lean::dec(x_16);
lean::dec(x_7);
x_42 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_42, 0, x_5);
lean::cnstr_set(x_42, 1, x_39);
x_0 = x_10;
x_1 = x_38;
x_2 = x_42;
x_27 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_27, 0, x_5);
lean::cnstr_set(x_27, 1, x_24);
x_0 = x_17;
x_1 = x_23;
x_2 = x_27;
goto _start;
}
else
{
obj* x_45; obj* x_46; obj* x_49;
obj* x_30; obj* x_31; obj* x_34;
lean::dec(x_7);
x_45 = lean::string_iterator_next(x_1);
x_46 = lean::nat_add(x_5, x_9);
lean::dec(x_9);
x_30 = lean::string_iterator_next(x_1);
x_31 = lean::nat_add(x_5, x_16);
lean::dec(x_16);
lean::dec(x_5);
x_49 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_49, 0, x_46);
lean::cnstr_set(x_49, 1, x_3);
x_0 = x_10;
x_1 = x_45;
x_2 = x_49;
x_34 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_34, 0, x_31);
lean::cnstr_set(x_34, 1, x_3);
x_0 = x_17;
x_1 = x_30;
x_2 = x_34;
goto _start;
}
}
}
}
else
{
lean::dec(x_1);
@ -1373,15 +1321,6 @@ obj* _init_l___private_init_data_string_basic_4__to__nat__core___main___closed__
_start:
{
uint32 x_0; obj* x_1;
x_0 = 0;
x_1 = lean::uint32_to_nat(x_0);
return x_1;
}
}
obj* _init_l___private_init_data_string_basic_4__to__nat__core___main___closed__2() {
_start:
{
uint32 x_0; obj* x_1;
x_0 = 48;
x_1 = lean::uint32_to_nat(x_0);
return x_1;
@ -1396,7 +1335,7 @@ x_4 = lean::nat_dec_eq(x_1, x_3);
lean::dec(x_3);
if (x_4 == 0)
{
obj* x_6; obj* x_7; uint32 x_10; obj* x_11; obj* x_12; obj* x_15; obj* x_16; uint32 x_19; uint32 x_20; uint8 x_21; obj* x_22;
obj* x_6; obj* x_7; uint32 x_10; obj* x_11; obj* x_12; obj* x_15; obj* x_16; obj* x_19; obj* x_20; obj* x_22;
x_6 = lean::mk_nat_obj(1u);
x_7 = lean::nat_sub(x_1, x_6);
lean::dec(x_6);
@ -1410,69 +1349,17 @@ x_15 = lean::uint32_to_nat(x_10);
x_16 = lean::nat_add(x_12, x_15);
lean::dec(x_15);
lean::dec(x_12);
x_19 = 48;
x_20 = 55296;
x_21 = x_19 < x_20;
x_19 = l___private_init_data_string_basic_4__to__nat__core___main___closed__1;
x_20 = lean::nat_sub(x_16, x_19);
lean::dec(x_16);
x_22 = lean::string_iterator_next(x_0);
if (x_21 == 0)
{
uint32 x_23; uint8 x_24;
x_23 = 57343;
x_24 = x_23 < x_19;
if (x_24 == 0)
{
obj* x_25; obj* x_26;
x_25 = l___private_init_data_string_basic_4__to__nat__core___main___closed__1;
x_26 = lean::nat_sub(x_16, x_25);
lean::dec(x_16);
x_0 = x_22;
x_1 = x_7;
x_2 = x_26;
x_2 = x_20;
goto _start;
}
else
{
uint32 x_29; uint8 x_30;
x_29 = 1114112;
x_30 = x_19 < x_29;
if (x_30 == 0)
{
obj* x_31; obj* x_32;
x_31 = l___private_init_data_string_basic_4__to__nat__core___main___closed__1;
x_32 = lean::nat_sub(x_16, x_31);
lean::dec(x_16);
x_0 = x_22;
x_1 = x_7;
x_2 = x_32;
goto _start;
}
else
{
obj* x_35; obj* x_36;
x_35 = l___private_init_data_string_basic_4__to__nat__core___main___closed__2;
x_36 = lean::nat_sub(x_16, x_35);
lean::dec(x_16);
x_0 = x_22;
x_1 = x_7;
x_2 = x_36;
goto _start;
}
}
}
else
{
obj* x_39; obj* x_40;
x_39 = l___private_init_data_string_basic_4__to__nat__core___main___closed__2;
x_40 = lean::nat_sub(x_16, x_39);
lean::dec(x_16);
x_0 = x_22;
x_1 = x_7;
x_2 = x_40;
goto _start;
}
}
else
{
lean::dec(x_1);
lean::dec(x_0);
return x_2;
@ -1519,5 +1406,4 @@ void initialize_init_data_string_basic() {
l_string_join___closed__1 = _init_l_string_join___closed__1();
l_string_line__column___closed__1 = _init_l_string_line__column___closed__1();
l___private_init_data_string_basic_4__to__nat__core___main___closed__1 = _init_l___private_init_data_string_basic_4__to__nat__core___main___closed__1();
l___private_init_data_string_basic_4__to__nat__core___main___closed__2 = _init_l___private_init_data_string_basic_4__to__nat__core___main___closed__2();
}

View file

@ -81,6 +81,7 @@ uint32 uint32_of_nat(obj*);
}
obj* l_lean_expand__extern__entry___main(obj*, obj*);
obj* l_lean_mk__simple__fn__call(obj*, obj*);
extern obj* l___private_init_data_string_basic_4__to__nat__core___main___closed__1;
namespace lean {
obj* nat_sub(obj*, obj*);
}
@ -159,12 +160,12 @@ x_5 = lean::nat_dec_eq(x_1, x_4);
lean::dec(x_4);
if (x_5 == 0)
{
obj* x_7; obj* x_8; obj* x_10; obj* x_12; uint8 x_14;
obj* x_7; obj* x_8; obj* x_10; uint8 x_12;
x_7 = lean::mk_nat_obj(1u);
x_8 = lean::nat_sub(x_1, x_7);
lean::dec(x_1);
x_14 = lean::string_iterator_has_next(x_2);
if (x_14 == 0)
x_12 = lean::string_iterator_has_next(x_2);
if (x_12 == 0)
{
lean::dec(x_8);
lean::dec(x_7);
@ -174,149 +175,55 @@ return x_3;
}
else
{
obj* x_19;
x_19 = lean::box(0);
x_12 = x_19;
goto lbl_13;
obj* x_17;
x_17 = lean::box(0);
x_10 = x_17;
goto lbl_11;
}
lbl_11:
{
obj* x_21; uint32 x_22; obj* x_23; uint32 x_24; uint32 x_25; uint8 x_26; obj* x_27; uint32 x_28;
uint32 x_19; uint32 x_20; uint8 x_21;
lean::dec(x_10);
x_21 = lean::string_iterator_next(x_2);
x_22 = lean::string_iterator_curr(x_21);
x_23 = lean::uint32_to_nat(x_22);
x_24 = 48;
x_25 = 55296;
x_26 = x_24 < x_25;
x_27 = lean::string_iterator_next(x_21);
if (x_26 == 0)
x_19 = lean::string_iterator_curr(x_2);
x_20 = 35;
x_21 = x_19 == x_20;
if (x_21 == 0)
{
uint32 x_30; uint8 x_31;
x_30 = 57343;
x_31 = x_30 < x_24;
if (x_31 == 0)
{
uint32 x_32;
x_32 = 0;
x_28 = x_32;
goto lbl_29;
}
else
{
uint32 x_33; uint8 x_34;
x_33 = 1114112;
x_34 = x_24 < x_33;
if (x_34 == 0)
{
uint32 x_35;
x_35 = 0;
x_28 = x_35;
goto lbl_29;
}
else
{
x_28 = x_24;
goto lbl_29;
}
}
}
else
{
x_28 = x_24;
goto lbl_29;
}
lbl_29:
{
obj* x_36; obj* x_37; obj* x_40; obj* x_44; obj* x_45; obj* x_47; obj* x_48;
x_36 = lean::uint32_to_nat(x_28);
x_37 = lean::nat_sub(x_23, x_36);
lean::dec(x_36);
lean::dec(x_23);
x_40 = lean::nat_sub(x_37, x_7);
obj* x_23; obj* x_24;
lean::dec(x_7);
lean::dec(x_37);
x_23 = lean::string_iterator_next(x_2);
x_24 = lean::string_push(x_3, x_19);
x_1 = x_8;
x_2 = x_23;
x_3 = x_24;
goto _start;
}
else
{
obj* x_26; uint32 x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_32; obj* x_35; obj* x_37; obj* x_38; obj* x_40; obj* x_41;
x_26 = lean::string_iterator_next(x_2);
x_27 = lean::string_iterator_curr(x_26);
x_28 = lean::uint32_to_nat(x_27);
x_29 = l___private_init_data_string_basic_4__to__nat__core___main___closed__1;
x_30 = lean::nat_sub(x_28, x_29);
lean::dec(x_28);
x_32 = lean::nat_sub(x_30, x_7);
lean::dec(x_7);
lean::dec(x_30);
x_35 = lean::string_iterator_next(x_26);
lean::inc(x_0);
x_44 = l_list_nth___main___rarg(x_0, x_40);
x_45 = l_string_join___closed__1;
lean::inc(x_45);
x_47 = l_option_get__or__else___main___rarg(x_44, x_45);
x_48 = lean::string_append(x_3, x_47);
lean::dec(x_47);
x_37 = l_list_nth___main___rarg(x_0, x_32);
x_38 = l_string_join___closed__1;
lean::inc(x_38);
x_40 = l_option_get__or__else___main___rarg(x_37, x_38);
x_41 = lean::string_append(x_3, x_40);
lean::dec(x_40);
x_1 = x_8;
x_2 = x_27;
x_3 = x_48;
x_2 = x_35;
x_3 = x_41;
goto _start;
}
}
lbl_13:
{
uint32 x_52; uint32 x_53; uint32 x_54; uint8 x_55; uint32 x_56;
lean::dec(x_12);
x_52 = lean::string_iterator_curr(x_2);
x_53 = 35;
x_54 = 55296;
x_55 = x_53 < x_54;
if (x_55 == 0)
{
uint32 x_58; uint8 x_59;
x_58 = 57343;
x_59 = x_58 < x_53;
if (x_59 == 0)
{
uint32 x_60;
x_60 = 0;
x_56 = x_60;
goto lbl_57;
}
else
{
uint32 x_61; uint8 x_62;
x_61 = 1114112;
x_62 = x_53 < x_61;
if (x_62 == 0)
{
uint32 x_63;
x_63 = 0;
x_56 = x_63;
goto lbl_57;
}
else
{
x_56 = x_53;
goto lbl_57;
}
}
}
else
{
x_56 = x_53;
goto lbl_57;
}
lbl_57:
{
uint8 x_64;
x_64 = x_52 == x_56;
if (x_64 == 0)
{
obj* x_66; obj* x_67;
lean::dec(x_7);
x_66 = lean::string_iterator_next(x_2);
x_67 = lean::string_push(x_3, x_52);
x_1 = x_8;
x_2 = x_66;
x_3 = x_67;
goto _start;
}
else
{
obj* x_69;
x_69 = lean::box(0);
x_10 = x_69;
goto lbl_11;
}
}
}
}
else
{

View file

@ -765,7 +765,7 @@ goto _start;
}
case 1:
{
obj* x_26; obj* x_27; uint32 x_28; uint32 x_29; uint8 x_30;
obj* x_26; obj* x_27; uint32 x_28; obj* x_31;
lean::dec(x_16);
lean::dec(x_14);
lean::dec(x_1);
@ -773,208 +773,155 @@ lean::dec(x_11);
x_26 = l_lean_format_be___main___closed__1;
x_27 = lean::string_append(x_2, x_26);
x_28 = 32;
x_29 = 55296;
x_30 = x_28 < x_29;
if (x_30 == 0)
{
uint32 x_31; uint8 x_32;
x_31 = 57343;
x_32 = x_31 < x_28;
if (x_32 == 0)
{
uint32 x_33; obj* x_36;
x_33 = 0;
lean::inc(x_12);
lean::inc(x_12);
x_36 = l_nat_repeat__core___main___at_string_pushn___spec__1(x_33, x_12, x_12, x_27);
x_31 = l_nat_repeat__core___main___at_string_pushn___spec__1(x_28, x_12, x_12, x_27);
x_1 = x_12;
x_2 = x_36;
x_2 = x_31;
x_3 = x_9;
goto _start;
}
else
{
uint32 x_38; uint8 x_39;
x_38 = 1114112;
x_39 = x_28 < x_38;
if (x_39 == 0)
{
uint32 x_40; obj* x_43;
x_40 = 0;
lean::inc(x_12);
lean::inc(x_12);
x_43 = l_nat_repeat__core___main___at_string_pushn___spec__1(x_40, x_12, x_12, x_27);
x_1 = x_12;
x_2 = x_43;
x_3 = x_9;
goto _start;
}
else
{
obj* x_47;
lean::inc(x_12);
lean::inc(x_12);
x_47 = l_nat_repeat__core___main___at_string_pushn___spec__1(x_28, x_12, x_12, x_27);
x_1 = x_12;
x_2 = x_47;
x_3 = x_9;
goto _start;
}
}
}
else
{
obj* x_51;
lean::inc(x_12);
lean::inc(x_12);
x_51 = l_nat_repeat__core___main___at_string_pushn___spec__1(x_28, x_12, x_12, x_27);
x_1 = x_12;
x_2 = x_51;
x_3 = x_9;
goto _start;
}
}
case 2:
{
obj* x_56; obj* x_59; obj* x_60; obj* x_63;
obj* x_36; obj* x_39; obj* x_40; obj* x_43;
lean::dec(x_16);
lean::dec(x_12);
lean::dec(x_11);
x_56 = lean::cnstr_get(x_14, 0);
lean::inc(x_56);
x_36 = lean::cnstr_get(x_14, 0);
lean::inc(x_36);
lean::dec(x_14);
x_59 = lean::string_length(x_56);
x_60 = lean::nat_add(x_1, x_59);
lean::dec(x_59);
x_39 = lean::string_length(x_36);
x_40 = lean::nat_add(x_1, x_39);
lean::dec(x_39);
lean::dec(x_1);
x_63 = lean::string_append(x_2, x_56);
lean::dec(x_56);
x_1 = x_60;
x_2 = x_63;
x_43 = lean::string_append(x_2, x_36);
lean::dec(x_36);
x_1 = x_40;
x_2 = x_43;
x_3 = x_9;
goto _start;
}
case 3:
{
obj* x_66; obj* x_68; obj* x_71; obj* x_74; obj* x_75;
x_66 = lean::cnstr_get(x_14, 0);
lean::inc(x_66);
x_68 = lean::cnstr_get(x_14, 1);
lean::inc(x_68);
obj* x_46; obj* x_48; obj* x_51; obj* x_54; obj* x_55;
x_46 = lean::cnstr_get(x_14, 0);
lean::inc(x_46);
x_48 = lean::cnstr_get(x_14, 1);
lean::inc(x_48);
lean::dec(x_14);
x_71 = lean::nat_add(x_12, x_66);
lean::dec(x_66);
x_51 = lean::nat_add(x_12, x_46);
lean::dec(x_46);
lean::dec(x_12);
if (lean::is_scalar(x_16)) {
x_74 = lean::alloc_cnstr(0, 2, 0);
x_54 = lean::alloc_cnstr(0, 2, 0);
} else {
x_74 = x_16;
x_54 = x_16;
}
lean::cnstr_set(x_74, 0, x_71);
lean::cnstr_set(x_74, 1, x_68);
lean::cnstr_set(x_54, 0, x_51);
lean::cnstr_set(x_54, 1, x_48);
if (lean::is_scalar(x_11)) {
x_75 = lean::alloc_cnstr(1, 2, 0);
x_55 = lean::alloc_cnstr(1, 2, 0);
} else {
x_75 = x_11;
x_55 = x_11;
}
lean::cnstr_set(x_75, 0, x_74);
lean::cnstr_set(x_75, 1, x_9);
x_3 = x_75;
lean::cnstr_set(x_55, 0, x_54);
lean::cnstr_set(x_55, 1, x_9);
x_3 = x_55;
goto _start;
}
case 4:
{
obj* x_77; obj* x_79; obj* x_83; obj* x_84; obj* x_85; obj* x_86;
x_77 = lean::cnstr_get(x_14, 0);
lean::inc(x_77);
x_79 = lean::cnstr_get(x_14, 1);
lean::inc(x_79);
obj* x_57; obj* x_59; obj* x_63; obj* x_64; obj* x_65; obj* x_66;
x_57 = lean::cnstr_get(x_14, 0);
lean::inc(x_57);
x_59 = lean::cnstr_get(x_14, 1);
lean::inc(x_59);
lean::dec(x_14);
lean::inc(x_12);
if (lean::is_scalar(x_16)) {
x_83 = lean::alloc_cnstr(0, 2, 0);
x_63 = lean::alloc_cnstr(0, 2, 0);
} else {
x_83 = x_16;
x_63 = x_16;
}
lean::cnstr_set(x_83, 0, x_12);
lean::cnstr_set(x_83, 1, x_77);
x_84 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_84, 0, x_12);
lean::cnstr_set(x_84, 1, x_79);
lean::cnstr_set(x_63, 0, x_12);
lean::cnstr_set(x_63, 1, x_57);
x_64 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_64, 0, x_12);
lean::cnstr_set(x_64, 1, x_59);
if (lean::is_scalar(x_11)) {
x_85 = lean::alloc_cnstr(1, 2, 0);
x_65 = lean::alloc_cnstr(1, 2, 0);
} else {
x_85 = x_11;
x_65 = x_11;
}
lean::cnstr_set(x_85, 0, x_84);
lean::cnstr_set(x_85, 1, x_9);
x_86 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_86, 0, x_83);
lean::cnstr_set(x_86, 1, x_85);
x_3 = x_86;
lean::cnstr_set(x_65, 0, x_64);
lean::cnstr_set(x_65, 1, x_9);
x_66 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_66, 0, x_63);
lean::cnstr_set(x_66, 1, x_65);
x_3 = x_66;
goto _start;
}
default:
{
obj* x_88; obj* x_90; obj* x_95; obj* x_98; obj* x_99; obj* x_101; uint8 x_102;
x_88 = lean::cnstr_get(x_14, 0);
lean::inc(x_88);
x_90 = lean::cnstr_get(x_14, 1);
lean::inc(x_90);
obj* x_68; obj* x_70; obj* x_75; obj* x_78; obj* x_79; obj* x_81; uint8 x_82;
x_68 = lean::cnstr_get(x_14, 0);
lean::inc(x_68);
x_70 = lean::cnstr_get(x_14, 1);
lean::inc(x_70);
lean::dec(x_14);
lean::inc(x_0);
lean::inc(x_88);
x_95 = l_lean_format_space__upto__line___main(x_88, x_0);
lean::inc(x_68);
x_75 = l_lean_format_space__upto__line___main(x_68, x_0);
lean::inc(x_0);
lean::inc(x_9);
x_98 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_format_space__upto__line_x_27___main___lambda__1), 3, 2);
lean::closure_set(x_98, 0, x_9);
lean::closure_set(x_98, 1, x_0);
x_99 = lean::mk_thunk(x_98);
x_78 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_format_space__upto__line_x_27___main___lambda__1), 3, 2);
lean::closure_set(x_78, 0, x_9);
lean::closure_set(x_78, 1, x_0);
x_79 = lean::mk_thunk(x_78);
lean::inc(x_0);
x_101 = l___private_init_lean_format_1__merge(x_0, x_95, x_99);
x_102 = lean::cnstr_get_scalar<uint8>(x_101, sizeof(void*)*1 + 1);
lean::dec(x_101);
if (x_102 == 0)
x_81 = l___private_init_lean_format_1__merge(x_0, x_75, x_79);
x_82 = lean::cnstr_get_scalar<uint8>(x_81, sizeof(void*)*1 + 1);
lean::dec(x_81);
if (x_82 == 0)
{
obj* x_105; obj* x_106;
lean::dec(x_90);
obj* x_85; obj* x_86;
lean::dec(x_70);
if (lean::is_scalar(x_16)) {
x_105 = lean::alloc_cnstr(0, 2, 0);
x_85 = lean::alloc_cnstr(0, 2, 0);
} else {
x_105 = x_16;
x_85 = x_16;
}
lean::cnstr_set(x_105, 0, x_12);
lean::cnstr_set(x_105, 1, x_88);
lean::cnstr_set(x_85, 0, x_12);
lean::cnstr_set(x_85, 1, x_68);
if (lean::is_scalar(x_11)) {
x_106 = lean::alloc_cnstr(1, 2, 0);
x_86 = lean::alloc_cnstr(1, 2, 0);
} else {
x_106 = x_11;
x_86 = x_11;
}
lean::cnstr_set(x_106, 0, x_105);
lean::cnstr_set(x_106, 1, x_9);
x_3 = x_106;
lean::cnstr_set(x_86, 0, x_85);
lean::cnstr_set(x_86, 1, x_9);
x_3 = x_86;
goto _start;
}
else
{
obj* x_109; obj* x_110;
lean::dec(x_88);
obj* x_89; obj* x_90;
lean::dec(x_68);
if (lean::is_scalar(x_16)) {
x_109 = lean::alloc_cnstr(0, 2, 0);
x_89 = lean::alloc_cnstr(0, 2, 0);
} else {
x_109 = x_16;
x_89 = x_16;
}
lean::cnstr_set(x_109, 0, x_12);
lean::cnstr_set(x_109, 1, x_90);
lean::cnstr_set(x_89, 0, x_12);
lean::cnstr_set(x_89, 1, x_70);
if (lean::is_scalar(x_11)) {
x_110 = lean::alloc_cnstr(1, 2, 0);
x_90 = lean::alloc_cnstr(1, 2, 0);
} else {
x_110 = x_11;
x_90 = x_11;
}
lean::cnstr_set(x_110, 0, x_109);
lean::cnstr_set(x_110, 1, x_9);
x_3 = x_110;
lean::cnstr_set(x_90, 0, x_89);
lean::cnstr_set(x_90, 1, x_9);
x_3 = x_90;
goto _start;
}
}

View file

@ -369,186 +369,77 @@ return x_8;
}
else
{
obj* x_9; obj* x_10; uint32 x_13; obj* x_14; uint8 x_16;
obj* x_9; obj* x_10; uint32 x_13; uint8 x_14;
x_9 = lean::mk_nat_obj(1u);
x_10 = lean::nat_sub(x_0, x_9);
lean::dec(x_9);
lean::dec(x_0);
x_13 = lean::string_iterator_curr(x_2);
x_16 = l_char_is__alphanum(x_13);
x_14 = l_char_is__alphanum(x_13);
if (x_14 == 0)
{
uint32 x_15; uint8 x_16;
x_15 = 95;
x_16 = x_13 == x_15;
if (x_16 == 0)
{
uint32 x_17; uint32 x_18; uint8 x_19;
x_17 = 95;
x_18 = 55296;
x_19 = x_17 < x_18;
if (x_19 == 0)
if (x_14 == 0)
{
uint32 x_20; uint8 x_21;
x_20 = 57343;
x_21 = x_20 < x_17;
if (x_21 == 0)
{
uint32 x_22; uint8 x_23;
x_22 = 0;
x_23 = x_13 == x_22;
if (x_23 == 0)
{
if (x_16 == 0)
{
obj* x_25;
obj* x_18;
lean::dec(x_10);
x_25 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_25;
x_18 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_18;
}
else
{
obj* x_19; obj* x_20;
x_19 = lean::string_push(x_1, x_13);
x_20 = lean::string_iterator_next(x_2);
x_0 = x_10;
x_1 = x_19;
x_2 = x_20;
goto _start;
}
}
else
{
obj* x_22; obj* x_23;
x_22 = lean::string_push(x_1, x_13);
x_23 = lean::string_iterator_next(x_2);
x_0 = x_10;
x_1 = x_22;
x_2 = x_23;
goto _start;
}
}
else
{
if (x_14 == 0)
{
obj* x_26;
x_26 = lean::box(0);
x_14 = x_26;
goto lbl_15;
}
}
else
{
obj* x_27;
x_27 = lean::box(0);
x_14 = x_27;
goto lbl_15;
}
}
else
{
uint32 x_28; uint8 x_29;
x_28 = 1114112;
x_29 = x_17 < x_28;
if (x_29 == 0)
{
uint32 x_30; uint8 x_31;
x_30 = 0;
x_31 = x_13 == x_30;
if (x_31 == 0)
{
if (x_16 == 0)
{
obj* x_33;
lean::dec(x_10);
x_33 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_33;
x_26 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_26;
}
else
{
obj* x_34;
x_34 = lean::box(0);
x_14 = x_34;
goto lbl_15;
}
}
else
{
obj* x_35;
x_35 = lean::box(0);
x_14 = x_35;
goto lbl_15;
}
}
else
{
uint8 x_36;
x_36 = x_13 == x_17;
if (x_36 == 0)
{
if (x_16 == 0)
{
obj* x_38;
lean::dec(x_10);
x_38 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_38;
}
else
{
obj* x_39;
x_39 = lean::box(0);
x_14 = x_39;
goto lbl_15;
}
}
else
{
obj* x_40;
x_40 = lean::box(0);
x_14 = x_40;
goto lbl_15;
}
}
}
}
else
{
uint8 x_41;
x_41 = x_13 == x_17;
if (x_41 == 0)
{
if (x_16 == 0)
{
obj* x_43;
lean::dec(x_10);
x_43 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_43;
}
else
{
obj* x_44;
x_44 = lean::box(0);
x_14 = x_44;
goto lbl_15;
}
}
else
{
obj* x_45;
x_45 = lean::box(0);
x_14 = x_45;
goto lbl_15;
}
}
}
else
{
if (x_16 == 0)
{
obj* x_47;
lean::dec(x_10);
x_47 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_47;
}
else
{
obj* x_48;
x_48 = lean::box(0);
x_14 = x_48;
goto lbl_15;
}
}
lbl_15:
{
obj* x_50; obj* x_51;
lean::dec(x_14);
x_50 = lean::string_push(x_1, x_13);
x_51 = lean::string_iterator_next(x_2);
obj* x_27; obj* x_28;
x_27 = lean::string_push(x_1, x_13);
x_28 = lean::string_iterator_next(x_2);
x_0 = x_10;
x_1 = x_50;
x_2 = x_51;
x_1 = x_27;
x_2 = x_28;
goto _start;
}
}
}
}
else
{
obj* x_54;
obj* x_31;
lean::dec(x_0);
x_54 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_54;
x_31 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_31;
}
}
}
@ -594,258 +485,157 @@ goto lbl_2;
}
else
{
uint32 x_11; obj* x_12; obj* x_14; uint8 x_16;
uint32 x_11; uint8 x_12;
x_11 = lean::string_iterator_curr(x_0);
x_16 = l_char_is__alpha(x_11);
if (x_16 == 0)
x_12 = l_char_is__alpha(x_11);
if (x_12 == 0)
{
uint32 x_17; uint32 x_18; uint8 x_19;
x_17 = 95;
x_18 = 55296;
x_19 = x_17 < x_18;
if (x_19 == 0)
uint32 x_13; uint8 x_14;
x_13 = 95;
x_14 = x_11 == x_13;
if (x_14 == 0)
{
uint32 x_20; uint8 x_21;
x_20 = 57343;
x_21 = x_20 < x_17;
if (x_21 == 0)
if (x_12 == 0)
{
uint32 x_22; uint8 x_23;
x_22 = 0;
x_23 = x_11 == x_22;
if (x_23 == 0)
{
if (x_16 == 0)
{
obj* x_24;
x_24 = lean::box(0);
x_12 = x_24;
goto lbl_13;
obj* x_15; obj* x_16; obj* x_18; obj* x_20; obj* x_21; obj* x_22; obj* x_25;
x_15 = l_char_quote__core(x_11);
x_16 = l_char_has__repr___closed__1;
lean::inc(x_16);
x_18 = lean::string_append(x_16, x_15);
lean::dec(x_15);
x_20 = lean::string_append(x_18, x_16);
x_21 = lean::box(0);
x_22 = l_mjoin___rarg___closed__1;
lean::inc(x_21);
lean::inc(x_22);
x_25 = l_lean_parser_monad__parsec_error___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__3___rarg(x_20, x_22, x_21, x_21, x_0);
x_1 = x_25;
goto lbl_2;
}
else
{
obj* x_25;
x_25 = lean::box(0);
x_14 = x_25;
goto lbl_15;
obj* x_26; obj* x_27; obj* x_28; obj* x_29;
x_26 = lean::string_iterator_next(x_0);
x_27 = lean::box(0);
x_28 = lean::box_uint32(x_11);
x_29 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_29, 0, x_28);
lean::cnstr_set(x_29, 1, x_26);
lean::cnstr_set(x_29, 2, x_27);
x_1 = x_29;
goto lbl_2;
}
}
else
{
obj* x_26;
x_26 = lean::box(0);
x_14 = x_26;
goto lbl_15;
}
}
else
{
uint32 x_27; uint8 x_28;
x_27 = 1114112;
x_28 = x_17 < x_27;
if (x_28 == 0)
{
uint32 x_29; uint8 x_30;
x_29 = 0;
x_30 = x_11 == x_29;
if (x_30 == 0)
{
if (x_16 == 0)
{
obj* x_31;
obj* x_30; obj* x_31; obj* x_32; obj* x_33;
x_30 = lean::string_iterator_next(x_0);
x_31 = lean::box(0);
x_12 = x_31;
goto lbl_13;
}
else
{
obj* x_32;
x_32 = lean::box(0);
x_14 = x_32;
goto lbl_15;
x_32 = lean::box_uint32(x_11);
x_33 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_33, 0, x_32);
lean::cnstr_set(x_33, 1, x_30);
lean::cnstr_set(x_33, 2, x_31);
x_1 = x_33;
goto lbl_2;
}
}
else
{
obj* x_33;
x_33 = lean::box(0);
x_14 = x_33;
goto lbl_15;
}
}
else
if (x_12 == 0)
{
uint8 x_34;
x_34 = x_11 == x_17;
if (x_34 == 0)
{
if (x_16 == 0)
{
obj* x_35;
x_35 = lean::box(0);
x_12 = x_35;
goto lbl_13;
}
else
{
obj* x_36;
x_36 = lean::box(0);
x_14 = x_36;
goto lbl_15;
}
}
else
{
obj* x_37;
x_37 = lean::box(0);
x_14 = x_37;
goto lbl_15;
}
}
}
}
else
{
uint8 x_38;
x_38 = x_11 == x_17;
if (x_38 == 0)
{
if (x_16 == 0)
{
obj* x_39;
x_39 = lean::box(0);
x_12 = x_39;
goto lbl_13;
}
else
{
obj* x_40;
obj* x_34; obj* x_35; obj* x_37; obj* x_39; obj* x_40; obj* x_41; obj* x_44;
x_34 = l_char_quote__core(x_11);
x_35 = l_char_has__repr___closed__1;
lean::inc(x_35);
x_37 = lean::string_append(x_35, x_34);
lean::dec(x_34);
x_39 = lean::string_append(x_37, x_35);
x_40 = lean::box(0);
x_14 = x_40;
goto lbl_15;
}
}
else
{
obj* x_41;
x_41 = lean::box(0);
x_14 = x_41;
goto lbl_15;
}
}
}
else
{
if (x_16 == 0)
{
obj* x_42;
x_42 = lean::box(0);
x_12 = x_42;
goto lbl_13;
}
else
{
obj* x_43;
x_43 = lean::box(0);
x_14 = x_43;
goto lbl_15;
}
}
lbl_13:
{
obj* x_45; obj* x_46; obj* x_48; obj* x_50; obj* x_51; obj* x_52; obj* x_55;
lean::dec(x_12);
x_45 = l_char_quote__core(x_11);
x_46 = l_char_has__repr___closed__1;
lean::inc(x_46);
x_48 = lean::string_append(x_46, x_45);
lean::dec(x_45);
x_50 = lean::string_append(x_48, x_46);
x_51 = lean::box(0);
x_52 = l_mjoin___rarg___closed__1;
lean::inc(x_51);
lean::inc(x_52);
x_55 = l_lean_parser_monad__parsec_error___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__3___rarg(x_50, x_52, x_51, x_51, x_0);
x_1 = x_55;
x_41 = l_mjoin___rarg___closed__1;
lean::inc(x_40);
lean::inc(x_41);
x_44 = l_lean_parser_monad__parsec_error___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__3___rarg(x_39, x_41, x_40, x_40, x_0);
x_1 = x_44;
goto lbl_2;
}
lbl_15:
else
{
obj* x_57; obj* x_58; obj* x_59; obj* x_60;
lean::dec(x_14);
x_57 = lean::string_iterator_next(x_0);
x_58 = lean::box(0);
x_59 = lean::box_uint32(x_11);
x_60 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_60, 0, x_59);
lean::cnstr_set(x_60, 1, x_57);
lean::cnstr_set(x_60, 2, x_58);
x_1 = x_60;
obj* x_45; obj* x_46; obj* x_47; obj* x_48;
x_45 = lean::string_iterator_next(x_0);
x_46 = lean::box(0);
x_47 = lean::box_uint32(x_11);
x_48 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_48, 0, x_47);
lean::cnstr_set(x_48, 1, x_45);
lean::cnstr_set(x_48, 2, x_46);
x_1 = x_48;
goto lbl_2;
}
}
}
lbl_2:
{
obj* x_61; obj* x_63;
x_61 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
lean::inc(x_61);
x_63 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_61, x_1);
if (lean::obj_tag(x_63) == 0)
obj* x_49; obj* x_51;
x_49 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
lean::inc(x_49);
x_51 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_49, x_1);
if (lean::obj_tag(x_51) == 0)
{
obj* x_64; obj* x_66; obj* x_68; uint32 x_71; obj* x_73; obj* x_74; obj* x_75; obj* x_76; obj* x_78;
x_64 = lean::cnstr_get(x_63, 0);
obj* x_52; obj* x_54; obj* x_56; uint32 x_59; obj* x_61; obj* x_62; obj* x_63; obj* x_64; obj* x_66;
x_52 = lean::cnstr_get(x_51, 0);
lean::inc(x_52);
x_54 = lean::cnstr_get(x_51, 1);
lean::inc(x_54);
x_56 = lean::cnstr_get(x_51, 2);
lean::inc(x_56);
lean::dec(x_51);
x_59 = lean::unbox_uint32(x_52);
lean::dec(x_52);
x_61 = l_lean_parser_monad__parsec_take__while__cont___at_lean_ir_parse__input__aux___main___spec__5(x_59, x_54);
x_62 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_56, x_61);
x_63 = l_lean_parser_parsec__t_try__mk__res___rarg(x_62);
x_64 = l_lean_parser_c__identifier___at_lean_ir_parse__input__aux___main___spec__4___closed__1;
lean::inc(x_64);
x_66 = lean::cnstr_get(x_63, 1);
lean::inc(x_66);
x_68 = lean::cnstr_get(x_63, 2);
lean::inc(x_68);
lean::dec(x_63);
x_71 = lean::unbox_uint32(x_64);
lean::dec(x_64);
x_73 = l_lean_parser_monad__parsec_take__while__cont___at_lean_ir_parse__input__aux___main___spec__5(x_71, x_66);
x_74 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_68, x_73);
x_75 = l_lean_parser_parsec__t_try__mk__res___rarg(x_74);
x_76 = l_lean_parser_c__identifier___at_lean_ir_parse__input__aux___main___spec__4___closed__1;
lean::inc(x_76);
x_78 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_75, x_76);
return x_78;
x_66 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_63, x_64);
return x_66;
}
else
{
obj* x_79; obj* x_81; obj* x_82; obj* x_84; obj* x_86; obj* x_89; obj* x_91; uint8 x_92; obj* x_93; obj* x_94;
x_79 = lean::cnstr_get(x_63, 0);
lean::inc(x_79);
if (lean::is_shared(x_63)) {
lean::dec(x_63);
x_81 = lean::box(0);
obj* x_67; obj* x_69; obj* x_70; obj* x_72; obj* x_74; obj* x_77; obj* x_79; uint8 x_80; obj* x_81; obj* x_82;
x_67 = lean::cnstr_get(x_51, 0);
lean::inc(x_67);
if (lean::is_shared(x_51)) {
lean::dec(x_51);
x_69 = lean::box(0);
} else {
lean::cnstr_release(x_63, 0);
x_81 = x_63;
lean::cnstr_release(x_51, 0);
x_69 = x_51;
}
x_82 = lean::cnstr_get(x_79, 0);
lean::inc(x_82);
x_84 = lean::cnstr_get(x_79, 1);
lean::inc(x_84);
x_86 = lean::cnstr_get(x_79, 3);
lean::inc(x_86);
lean::dec(x_79);
x_89 = l_lean_parser_c__identifier___at_lean_ir_parse__input__aux___main___spec__4___closed__1;
lean::inc(x_89);
x_91 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_91, 0, x_82);
lean::cnstr_set(x_91, 1, x_84);
lean::cnstr_set(x_91, 2, x_89);
lean::cnstr_set(x_91, 3, x_86);
x_92 = 0;
if (lean::is_scalar(x_81)) {
x_93 = lean::alloc_cnstr(1, 1, 1);
x_70 = lean::cnstr_get(x_67, 0);
lean::inc(x_70);
x_72 = lean::cnstr_get(x_67, 1);
lean::inc(x_72);
x_74 = lean::cnstr_get(x_67, 3);
lean::inc(x_74);
lean::dec(x_67);
x_77 = l_lean_parser_c__identifier___at_lean_ir_parse__input__aux___main___spec__4___closed__1;
lean::inc(x_77);
x_79 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_79, 0, x_70);
lean::cnstr_set(x_79, 1, x_72);
lean::cnstr_set(x_79, 2, x_77);
lean::cnstr_set(x_79, 3, x_74);
x_80 = 0;
if (lean::is_scalar(x_69)) {
x_81 = lean::alloc_cnstr(1, 1, 1);
} else {
x_93 = x_81;
x_81 = x_69;
}
lean::cnstr_set(x_93, 0, x_91);
lean::cnstr_set_scalar(x_93, sizeof(void*)*1, x_92);
x_94 = x_93;
return x_94;
lean::cnstr_set(x_81, 0, x_79);
lean::cnstr_set_scalar(x_81, sizeof(void*)*1, x_80);
x_82 = x_81;
return x_82;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -350,12 +350,10 @@ return x_8;
obj* l_lean_level_to__nat___main___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2;
x_1 = lean::mk_nat_obj(1u);
x_2 = lean::nat_add(x_0, x_1);
lean::dec(x_1);
lean::dec(x_0);
return x_2;
obj* x_1;
x_1 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_1, 0, x_0);
return x_1;
}
}
obj* _init_l_lean_level_to__nat___main___closed__1() {

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -38,9 +38,6 @@ obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__15___
obj* l_lean_parser_module_yield__command___lambda__8(obj*, obj*, obj*, obj*);
obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__2;
obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__3___closed__1;
namespace lean {
obj* nat_add(obj*, obj*);
}
obj* l_lean_parser_module_tokens;
obj* l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__2(obj*);
obj* l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2;
@ -6826,7 +6823,7 @@ if (lean::is_shared(x_0)) {
}
if (lean::obj_tag(x_1) == 0)
{
obj* x_7; obj* x_9; obj* x_11; obj* x_14; obj* x_16; obj* x_19; obj* x_20; obj* x_21; uint8 x_24; obj* x_25; obj* x_26;
obj* x_7; obj* x_9; obj* x_11; obj* x_14; obj* x_16; obj* x_19; obj* x_20; uint8 x_21; obj* x_22; obj* x_23;
lean::dec(x_5);
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
@ -6842,48 +6839,46 @@ lean::inc(x_16);
lean::dec(x_7);
x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1);
lean::closure_set(x_19, 0, x_11);
x_20 = lean::mk_nat_obj(1u);
x_21 = lean::nat_add(x_14, x_20);
lean::dec(x_20);
lean::dec(x_14);
x_24 = 0;
x_25 = l___private_init_lean_parser_module_1__commands__aux___main(x_24, x_21, x_16, x_9, x_3);
x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_26, 0, x_25);
lean::closure_set(x_26, 1, x_19);
return x_26;
x_20 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_20, 0, x_14);
x_21 = 0;
x_22 = l___private_init_lean_parser_module_1__commands__aux___main(x_21, x_20, x_16, x_9, x_3);
x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2);
lean::closure_set(x_23, 0, x_22);
lean::closure_set(x_23, 1, x_19);
return x_23;
}
else
{
obj* x_27; uint8 x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34;
x_27 = lean::cnstr_get(x_1, 0);
lean::inc(x_27);
x_29 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1);
obj* x_24; uint8 x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31;
x_24 = lean::cnstr_get(x_1, 0);
lean::inc(x_24);
x_26 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1);
if (lean::is_shared(x_1)) {
lean::dec(x_1);
x_30 = lean::box(0);
x_27 = lean::box(0);
} else {
lean::cnstr_release(x_1, 0);
x_30 = x_1;
x_27 = x_1;
}
if (lean::is_scalar(x_30)) {
x_31 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_27)) {
x_28 = lean::alloc_cnstr(1, 1, 1);
} else {
x_31 = x_30;
x_28 = x_27;
}
lean::cnstr_set(x_31, 0, x_27);
lean::cnstr_set_scalar(x_31, sizeof(void*)*1, x_29);
x_32 = x_31;
lean::cnstr_set(x_28, 0, x_24);
lean::cnstr_set_scalar(x_28, sizeof(void*)*1, x_26);
x_29 = x_28;
if (lean::is_scalar(x_5)) {
x_33 = lean::alloc_cnstr(0, 2, 0);
x_30 = lean::alloc_cnstr(0, 2, 0);
} else {
x_33 = x_5;
x_30 = x_5;
}
lean::cnstr_set(x_33, 0, x_32);
lean::cnstr_set(x_33, 1, x_3);
x_34 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_34, 0, x_33);
return x_34;
lean::cnstr_set(x_30, 0, x_29);
lean::cnstr_set(x_30, 1, x_3);
x_31 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2), 2, 1);
lean::closure_set(x_31, 0, x_30);
return x_31;
}
}
}

View file

@ -4837,124 +4837,39 @@ return x_8;
}
else
{
obj* x_9; obj* x_10; uint32 x_13; obj* x_14; uint32 x_16; uint32 x_17; uint8 x_18;
x_9 = lean::mk_nat_obj(1u);
x_10 = lean::nat_sub(x_0, x_9);
lean::dec(x_9);
uint32 x_9; uint32 x_10; uint8 x_11;
x_9 = lean::string_iterator_curr(x_2);
x_10 = 96;
x_11 = x_9 == x_10;
if (x_11 == 0)
{
obj* x_12; obj* x_13; obj* x_16; obj* x_17;
x_12 = lean::mk_nat_obj(1u);
x_13 = lean::nat_sub(x_0, x_12);
lean::dec(x_12);
lean::dec(x_0);
x_13 = lean::string_iterator_curr(x_2);
x_16 = 96;
x_17 = 55296;
x_18 = x_16 < x_17;
if (x_18 == 0)
{
uint32 x_19; uint8 x_20;
x_19 = 57343;
x_20 = x_19 < x_16;
if (x_20 == 0)
{
uint32 x_21; uint8 x_22;
x_21 = 0;
x_22 = x_13 == x_21;
if (x_22 == 0)
{
obj* x_23;
x_23 = lean::box(0);
x_14 = x_23;
goto lbl_15;
}
else
{
obj* x_25;
lean::dec(x_10);
x_25 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_25;
}
}
else
{
uint32 x_26; uint8 x_27;
x_26 = 1114112;
x_27 = x_16 < x_26;
if (x_27 == 0)
{
uint32 x_28; uint8 x_29;
x_28 = 0;
x_29 = x_13 == x_28;
if (x_29 == 0)
{
obj* x_30;
x_30 = lean::box(0);
x_14 = x_30;
goto lbl_15;
}
else
{
obj* x_32;
lean::dec(x_10);
x_32 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_32;
}
}
else
{
uint8 x_33;
x_33 = x_13 == x_16;
if (x_33 == 0)
{
obj* x_34;
x_34 = lean::box(0);
x_14 = x_34;
goto lbl_15;
}
else
{
obj* x_36;
lean::dec(x_10);
x_36 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_36;
}
}
}
}
else
{
uint8 x_37;
x_37 = x_13 == x_16;
if (x_37 == 0)
{
obj* x_38;
x_38 = lean::box(0);
x_14 = x_38;
goto lbl_15;
}
else
{
obj* x_40;
lean::dec(x_10);
x_40 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_40;
}
}
lbl_15:
{
obj* x_42; obj* x_43;
lean::dec(x_14);
x_42 = lean::string_push(x_1, x_13);
x_43 = lean::string_iterator_next(x_2);
x_0 = x_10;
x_1 = x_42;
x_2 = x_43;
x_16 = lean::string_push(x_1, x_9);
x_17 = lean::string_iterator_next(x_2);
x_0 = x_13;
x_1 = x_16;
x_2 = x_17;
goto _start;
}
else
{
obj* x_20;
lean::dec(x_0);
x_20 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_20;
}
}
}
else
{
obj* x_46;
obj* x_22;
lean::dec(x_0);
x_46 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_46;
x_22 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_22;
}
}
}
@ -5011,124 +4926,39 @@ return x_8;
}
else
{
obj* x_9; obj* x_10; uint32 x_13; obj* x_14; uint32 x_16; uint32 x_17; uint8 x_18;
x_9 = lean::mk_nat_obj(1u);
x_10 = lean::nat_sub(x_0, x_9);
lean::dec(x_9);
uint32 x_9; uint32 x_10; uint8 x_11;
x_9 = lean::string_iterator_curr(x_2);
x_10 = 96;
x_11 = x_9 == x_10;
if (x_11 == 0)
{
obj* x_12; obj* x_13; obj* x_16; obj* x_17;
x_12 = lean::mk_nat_obj(1u);
x_13 = lean::nat_sub(x_0, x_12);
lean::dec(x_12);
lean::dec(x_0);
x_13 = lean::string_iterator_curr(x_2);
x_16 = 96;
x_17 = 55296;
x_18 = x_16 < x_17;
if (x_18 == 0)
{
uint32 x_19; uint8 x_20;
x_19 = 57343;
x_20 = x_19 < x_16;
if (x_20 == 0)
{
uint32 x_21; uint8 x_22;
x_21 = 0;
x_22 = x_13 == x_21;
if (x_22 == 0)
{
obj* x_23;
x_23 = lean::box(0);
x_14 = x_23;
goto lbl_15;
}
else
{
obj* x_25;
lean::dec(x_10);
x_25 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_25;
}
}
else
{
uint32 x_26; uint8 x_27;
x_26 = 1114112;
x_27 = x_16 < x_26;
if (x_27 == 0)
{
uint32 x_28; uint8 x_29;
x_28 = 0;
x_29 = x_13 == x_28;
if (x_29 == 0)
{
obj* x_30;
x_30 = lean::box(0);
x_14 = x_30;
goto lbl_15;
}
else
{
obj* x_32;
lean::dec(x_10);
x_32 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_32;
}
}
else
{
uint8 x_33;
x_33 = x_13 == x_16;
if (x_33 == 0)
{
obj* x_34;
x_34 = lean::box(0);
x_14 = x_34;
goto lbl_15;
}
else
{
obj* x_36;
lean::dec(x_10);
x_36 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_36;
}
}
}
}
else
{
uint8 x_37;
x_37 = x_13 == x_16;
if (x_37 == 0)
{
obj* x_38;
x_38 = lean::box(0);
x_14 = x_38;
goto lbl_15;
}
else
{
obj* x_40;
lean::dec(x_10);
x_40 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_40;
}
}
lbl_15:
{
obj* x_42; obj* x_43;
lean::dec(x_14);
x_42 = lean::string_push(x_1, x_13);
x_43 = lean::string_iterator_next(x_2);
x_0 = x_10;
x_1 = x_42;
x_2 = x_43;
x_16 = lean::string_push(x_1, x_9);
x_17 = lean::string_iterator_next(x_2);
x_0 = x_13;
x_1 = x_16;
x_2 = x_17;
goto _start;
}
else
{
obj* x_20;
lean::dec(x_0);
x_20 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_20;
}
}
}
else
{
obj* x_46;
obj* x_22;
lean::dec(x_0);
x_46 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_46;
x_22 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_22;
}
}
}
@ -5193,124 +5023,39 @@ return x_8;
}
else
{
obj* x_9; obj* x_10; uint32 x_13; obj* x_14; uint32 x_16; uint32 x_17; uint8 x_18;
x_9 = lean::mk_nat_obj(1u);
x_10 = lean::nat_sub(x_0, x_9);
lean::dec(x_9);
uint32 x_9; uint32 x_10; uint8 x_11;
x_9 = lean::string_iterator_curr(x_2);
x_10 = 96;
x_11 = x_9 == x_10;
if (x_11 == 0)
{
obj* x_12; obj* x_13; obj* x_16; obj* x_17;
x_12 = lean::mk_nat_obj(1u);
x_13 = lean::nat_sub(x_0, x_12);
lean::dec(x_12);
lean::dec(x_0);
x_13 = lean::string_iterator_curr(x_2);
x_16 = 96;
x_17 = 55296;
x_18 = x_16 < x_17;
if (x_18 == 0)
{
uint32 x_19; uint8 x_20;
x_19 = 57343;
x_20 = x_19 < x_16;
if (x_20 == 0)
{
uint32 x_21; uint8 x_22;
x_21 = 0;
x_22 = x_13 == x_21;
if (x_22 == 0)
{
obj* x_23;
x_23 = lean::box(0);
x_14 = x_23;
goto lbl_15;
}
else
{
obj* x_25;
lean::dec(x_10);
x_25 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_25;
}
}
else
{
uint32 x_26; uint8 x_27;
x_26 = 1114112;
x_27 = x_16 < x_26;
if (x_27 == 0)
{
uint32 x_28; uint8 x_29;
x_28 = 0;
x_29 = x_13 == x_28;
if (x_29 == 0)
{
obj* x_30;
x_30 = lean::box(0);
x_14 = x_30;
goto lbl_15;
}
else
{
obj* x_32;
lean::dec(x_10);
x_32 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_32;
}
}
else
{
uint8 x_33;
x_33 = x_13 == x_16;
if (x_33 == 0)
{
obj* x_34;
x_34 = lean::box(0);
x_14 = x_34;
goto lbl_15;
}
else
{
obj* x_36;
lean::dec(x_10);
x_36 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_36;
}
}
}
}
else
{
uint8 x_37;
x_37 = x_13 == x_16;
if (x_37 == 0)
{
obj* x_38;
x_38 = lean::box(0);
x_14 = x_38;
goto lbl_15;
}
else
{
obj* x_40;
lean::dec(x_10);
x_40 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_40;
}
}
lbl_15:
{
obj* x_42; obj* x_43;
lean::dec(x_14);
x_42 = lean::string_push(x_1, x_13);
x_43 = lean::string_iterator_next(x_2);
x_0 = x_10;
x_1 = x_42;
x_2 = x_43;
x_16 = lean::string_push(x_1, x_9);
x_17 = lean::string_iterator_next(x_2);
x_0 = x_13;
x_1 = x_16;
x_2 = x_17;
goto _start;
}
else
{
obj* x_20;
lean::dec(x_0);
x_20 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_20;
}
}
}
else
{
obj* x_46;
obj* x_22;
lean::dec(x_0);
x_46 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_46;
x_22 = l___private_init_lean_parser_parsec_3__mk__string__result___rarg(x_1, x_2);
return x_22;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -52262,22 +52262,22 @@ return x_17;
obj* _init_l_lean_parser_term_projection_tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_7; obj* x_8;
obj* x_0; obj* x_2; obj* x_3; obj* x_4; obj* x_6; obj* x_7;
x_0 = l_lean_parser_max__prec;
x_1 = lean::mk_nat_obj(1u);
x_2 = lean::nat_add(x_0, x_1);
lean::dec(x_1);
x_4 = lean::box(0);
x_5 = lean::mk_string(".");
lean::inc(x_4);
x_7 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_2);
lean::cnstr_set(x_7, 2, x_4);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_7);
lean::cnstr_set(x_8, 1, x_4);
return x_8;
lean::inc(x_0);
x_2 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_2, 0, x_0);
x_3 = lean::box(0);
x_4 = lean::mk_string(".");
lean::inc(x_3);
x_6 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_6, 0, x_4);
lean::cnstr_set(x_6, 1, x_2);
lean::cnstr_set(x_6, 2, x_3);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_6);
lean::cnstr_set(x_7, 1, x_3);
return x_7;
}
}
obj* _init_l_lean_parser_term_builtin__trailing__parsers_lean_parser_has__tokens() {

File diff suppressed because it is too large Load diff

View file

@ -337,114 +337,63 @@ x_4 = lean::nat_dec_eq(x_0, x_3);
lean::dec(x_3);
if (x_4 == 0)
{
obj* x_6; obj* x_7; obj* x_9; uint8 x_11;
x_6 = lean::mk_nat_obj(1u);
x_7 = lean::nat_sub(x_0, x_6);
lean::dec(x_0);
x_11 = lean::string_iterator_has_next(x_1);
if (x_11 == 0)
uint8 x_6;
x_6 = lean::string_iterator_has_next(x_1);
if (x_6 == 0)
{
obj* x_16;
lean::dec(x_6);
obj* x_10;
lean::dec(x_1);
lean::dec(x_7);
lean::dec(x_0);
lean::dec(x_2);
x_16 = lean::box(0);
return x_16;
x_10 = lean::box(0);
return x_10;
}
else
{
obj* x_17;
x_17 = lean::box(0);
x_9 = x_17;
goto lbl_10;
}
lbl_10:
obj* x_11; obj* x_12; uint32 x_14; uint32 x_15; uint8 x_16;
x_11 = lean::mk_nat_obj(1u);
x_12 = lean::nat_sub(x_0, x_11);
lean::dec(x_0);
x_14 = lean::string_iterator_curr(x_1);
x_15 = 10;
x_16 = x_14 == x_15;
if (x_16 == 0)
{
uint32 x_19; uint32 x_20; uint32 x_21; uint8 x_22; uint32 x_23;
lean::dec(x_9);
x_19 = lean::string_iterator_curr(x_1);
x_20 = 10;
x_21 = 55296;
x_22 = x_20 < x_21;
if (x_22 == 0)
{
uint32 x_25; uint8 x_26;
x_25 = 57343;
x_26 = x_25 < x_20;
if (x_26 == 0)
{
uint32 x_27;
x_27 = 0;
x_23 = x_27;
goto lbl_24;
}
else
{
uint32 x_28; uint8 x_29;
x_28 = 1114112;
x_29 = x_20 < x_28;
if (x_29 == 0)
{
uint32 x_30;
x_30 = 0;
x_23 = x_30;
goto lbl_24;
}
else
{
x_23 = x_20;
goto lbl_24;
}
}
}
else
{
x_23 = x_20;
goto lbl_24;
}
lbl_24:
{
uint8 x_31;
x_31 = x_19 == x_23;
if (x_31 == 0)
{
obj* x_33;
lean::dec(x_6);
x_33 = lean::string_iterator_next(x_1);
x_0 = x_7;
x_1 = x_33;
obj* x_18;
lean::dec(x_11);
x_18 = lean::string_iterator_next(x_1);
x_0 = x_12;
x_1 = x_18;
goto _start;
}
else
{
obj* x_35; obj* x_36; obj* x_37; obj* x_41; obj* x_42; obj* x_43;
x_35 = lean::string_iterator_next(x_1);
x_36 = lean::string_iterator_offset(x_35);
x_37 = lean::nat_add(x_2, x_6);
lean::dec(x_6);
obj* x_20; obj* x_21; obj* x_22; obj* x_26; obj* x_27; obj* x_28;
x_20 = lean::string_iterator_next(x_1);
x_21 = lean::string_iterator_offset(x_20);
x_22 = lean::nat_add(x_2, x_11);
lean::dec(x_11);
lean::dec(x_2);
lean::inc(x_37);
x_41 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_41, 0, x_36);
lean::cnstr_set(x_41, 1, x_37);
x_42 = l___private_init_lean_position_1__from__string__aux___main(x_7, x_35, x_37);
x_43 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_43, 0, x_41);
lean::cnstr_set(x_43, 1, x_42);
return x_43;
}
lean::inc(x_22);
x_26 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_26, 0, x_21);
lean::cnstr_set(x_26, 1, x_22);
x_27 = l___private_init_lean_position_1__from__string__aux___main(x_12, x_20, x_22);
x_28 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_28, 0, x_26);
lean::cnstr_set(x_28, 1, x_27);
return x_28;
}
}
}
else
{
obj* x_47;
obj* x_32;
lean::dec(x_1);
lean::dec(x_0);
lean::dec(x_2);
x_47 = lean::box(0);
return x_47;
x_32 = lean::box(0);
return x_32;
}
}
}