chore(stage0): update

This commit is contained in:
Leonardo de Moura 2019-06-27 09:30:53 -07:00
parent dfa3b6d9af
commit cf6f6bc96d
15 changed files with 3614 additions and 3075 deletions

View file

@ -152,22 +152,19 @@ return x_4;
uint8 l_Ordering_orElse___main(uint8 x_1, uint8 x_2) {
_start:
{
switch (x_1) {
case 0:
{
return x_1;
}
case 1:
obj* x_3;
x_3 = lean::box(x_1);
if (lean::obj_tag(x_3) == 1)
{
return x_2;
}
default:
else
{
lean::dec(x_3);
return x_1;
}
}
}
}
obj* l_Ordering_orElse___main___boxed(obj* x_1, obj* x_2) {
_start:
{
@ -184,22 +181,19 @@ return x_6;
uint8 l_Ordering_orElse(uint8 x_1, uint8 x_2) {
_start:
{
switch (x_1) {
case 0:
{
return x_1;
}
case 1:
obj* x_3;
x_3 = lean::box(x_1);
if (lean::obj_tag(x_3) == 1)
{
return x_2;
}
default:
else
{
lean::dec(x_3);
return x_1;
}
}
}
}
obj* l_Ordering_orElse___boxed(obj* x_1, obj* x_2) {
_start:
{
@ -369,53 +363,43 @@ return x_5;
}
case 1:
{
switch (x_2) {
case 0:
{
uint8 x_6;
x_6 = 0;
return x_6;
}
case 1:
obj* x_6;
x_6 = lean::box(x_2);
if (lean::obj_tag(x_6) == 1)
{
uint8 x_7;
x_7 = 1;
return x_7;
}
default:
else
{
uint8 x_8;
lean::dec(x_6);
x_8 = 0;
return x_8;
}
}
}
default:
{
switch (x_2) {
case 0:
{
uint8 x_9;
x_9 = 0;
return x_9;
}
case 1:
obj* x_9;
x_9 = lean::box(x_2);
if (lean::obj_tag(x_9) == 2)
{
uint8 x_10;
x_10 = 0;
x_10 = 1;
return x_10;
}
default:
else
{
uint8 x_11;
x_11 = 1;
lean::dec(x_9);
x_11 = 0;
return x_11;
}
}
}
}
}
}
obj* l_Ordering_DecidableEq___boxed(obj* x_1, obj* x_2) {
_start:
{

View file

@ -996,12 +996,7 @@ return x_1;
obj* l_Lean_Environment_registerNamespace___main(obj* x_1, obj* x_2) {
_start:
{
switch (lean::obj_tag(x_2)) {
case 0:
{
return x_1;
}
case 1:
if (lean::obj_tag(x_2) == 1)
{
obj* x_3; obj* x_4;
x_3 = lean::cnstr_get(x_2, 0);
@ -1011,14 +1006,13 @@ x_1 = x_4;
x_2 = x_3;
goto _start;
}
default:
else
{
lean::dec(x_2);
return x_1;
}
}
}
}
namespace lean {
obj* register_namespace_core(obj* x_1, obj* x_2) {
_start:

File diff suppressed because it is too large Load diff

View file

@ -276,49 +276,41 @@ return x_3;
uint8 l___private_init_lean_compiler_exportattr_2__isValidCppName___main(obj* x_1) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
if (lean::obj_tag(x_1) == 1)
{
uint8 x_2;
x_2 = 0;
return x_2;
}
case 1:
obj* x_2; obj* x_3; obj* x_4; uint8 x_5;
x_2 = lean::cnstr_get(x_1, 0);
x_3 = lean::cnstr_get(x_1, 1);
x_4 = lean::box(0);
x_5 = lean_name_dec_eq(x_2, x_4);
if (x_5 == 0)
{
obj* x_3; obj* x_4; obj* x_5; uint8 x_6;
x_3 = lean::cnstr_get(x_1, 0);
x_4 = lean::cnstr_get(x_1, 1);
x_5 = lean::box(0);
x_6 = lean_name_dec_eq(x_3, x_5);
uint8 x_6;
x_6 = l___private_init_lean_compiler_exportattr_1__isValidCppId(x_3);
if (x_6 == 0)
{
uint8 x_7;
x_7 = l___private_init_lean_compiler_exportattr_1__isValidCppId(x_4);
if (x_7 == 0)
{
uint8 x_8;
x_8 = 0;
return x_8;
x_7 = 0;
return x_7;
}
else
{
x_1 = x_3;
x_1 = x_2;
goto _start;
}
}
else
{
uint8 x_10;
x_10 = l___private_init_lean_compiler_exportattr_1__isValidCppId(x_4);
return x_10;
uint8 x_9;
x_9 = l___private_init_lean_compiler_exportattr_1__isValidCppId(x_3);
return x_9;
}
}
default:
else
{
uint8 x_11;
x_11 = 0;
return x_11;
}
uint8 x_10;
x_10 = 0;
return x_10;
}
}
}

View file

@ -2333,30 +2333,31 @@ if (x_10 == 0)
obj* x_11;
x_11 = lean::cnstr_get(x_8, 0);
switch (lean::obj_tag(x_11)) {
case 0:
case 2:
{
obj* x_12;
lean::free_heap_obj(x_8);
x_12 = lean::cnstr_get(x_11, 1);
lean::inc(x_12);
lean::dec(x_11);
x_12 = lean::box(0);
return x_12;
lean::cnstr_set(x_8, 0, x_12);
return x_8;
}
case 1:
case 3:
{
obj* x_13;
lean::free_heap_obj(x_8);
x_13 = lean::cnstr_get(x_11, 1);
lean::inc(x_13);
lean::dec(x_11);
x_13 = lean::box(0);
return x_13;
lean::cnstr_set(x_8, 0, x_13);
return x_8;
}
default:
{
obj* x_14;
x_14 = lean::cnstr_get(x_11, 1);
lean::inc(x_14);
lean::free_heap_obj(x_8);
lean::dec(x_11);
lean::cnstr_set(x_8, 0, x_14);
return x_8;
x_14 = lean::box(0);
return x_14;
}
}
}
@ -2367,21 +2368,17 @@ x_15 = lean::cnstr_get(x_8, 0);
lean::inc(x_15);
lean::dec(x_8);
switch (lean::obj_tag(x_15)) {
case 0:
case 2:
{
obj* x_16;
obj* x_16; obj* x_17;
x_16 = lean::cnstr_get(x_15, 1);
lean::inc(x_16);
lean::dec(x_15);
x_16 = lean::box(0);
return x_16;
}
case 1:
{
obj* x_17;
lean::dec(x_15);
x_17 = lean::box(0);
x_17 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_17, 0, x_16);
return x_17;
}
default:
case 3:
{
obj* x_18; obj* x_19;
x_18 = lean::cnstr_get(x_15, 1);
@ -2391,6 +2388,13 @@ x_19 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_19, 0, x_18);
return x_19;
}
default:
{
obj* x_20;
lean::dec(x_15);
x_20 = lean::box(0);
return x_20;
}
}
}
}

View file

@ -1718,81 +1718,74 @@ obj* l_Lean_IR_FnBody_body___main(obj* x_1) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
case 1:
{
obj* x_2;
x_2 = lean::cnstr_get(x_1, 2);
x_2 = lean::cnstr_get(x_1, 3);
lean::inc(x_2);
return x_2;
}
case 1:
case 2:
{
obj* x_3;
x_3 = lean::cnstr_get(x_1, 3);
lean::inc(x_3);
return x_3;
}
case 2:
case 4:
{
obj* x_4;
x_4 = lean::cnstr_get(x_1, 3);
lean::inc(x_4);
return x_4;
}
case 3:
case 5:
{
obj* x_5;
x_5 = lean::cnstr_get(x_1, 2);
x_5 = lean::cnstr_get(x_1, 4);
lean::inc(x_5);
return x_5;
}
case 4:
case 8:
{
obj* x_6;
x_6 = lean::cnstr_get(x_1, 3);
x_6 = lean::cnstr_get(x_1, 1);
lean::inc(x_6);
return x_6;
}
case 5:
case 9:
{
obj* x_7;
x_7 = lean::cnstr_get(x_1, 4);
x_7 = lean::cnstr_get(x_1, 1);
lean::inc(x_7);
return x_7;
}
case 6:
case 10:
{
lean::inc(x_1);
return x_1;
}
case 11:
{
lean::inc(x_1);
return x_1;
}
case 12:
{
lean::inc(x_1);
return x_1;
}
case 13:
{
return x_1;
}
default:
{
obj* x_8;
x_8 = lean::cnstr_get(x_1, 2);
lean::inc(x_8);
return x_8;
}
case 7:
{
obj* x_9;
x_9 = lean::cnstr_get(x_1, 2);
lean::inc(x_9);
return x_9;
}
case 8:
{
obj* x_10;
x_10 = lean::cnstr_get(x_1, 1);
lean::inc(x_10);
return x_10;
}
case 9:
{
obj* x_11;
x_11 = lean::cnstr_get(x_1, 1);
lean::inc(x_11);
return x_11;
}
default:
{
lean::inc(x_1);
return x_1;
}
}
}
}
@ -2948,21 +2941,11 @@ return x_6;
obj* l_Lean_IR_Decl_name___main(obj* x_1) {
_start:
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_2;
x_2 = lean::cnstr_get(x_1, 0);
lean::inc(x_2);
return x_2;
}
else
{
obj* x_3;
x_3 = lean::cnstr_get(x_1, 0);
lean::inc(x_3);
return x_3;
}
}
}
obj* l_Lean_IR_Decl_name___main___boxed(obj* x_1) {
_start:
@ -2993,21 +2976,11 @@ return x_2;
obj* l_Lean_IR_Decl_params___main(obj* x_1) {
_start:
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_2;
x_2 = lean::cnstr_get(x_1, 1);
lean::inc(x_2);
return x_2;
}
else
{
obj* x_3;
x_3 = lean::cnstr_get(x_1, 1);
lean::inc(x_3);
return x_3;
}
}
}
obj* l_Lean_IR_Decl_params___main___boxed(obj* x_1) {
_start:
@ -3038,19 +3011,10 @@ return x_2;
uint8 l_Lean_IR_Decl_resultType___main(obj* x_1) {
_start:
{
if (lean::obj_tag(x_1) == 0)
{
uint8 x_2;
x_2 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*3);
return x_2;
}
else
{
uint8 x_3;
x_3 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*3);
return x_3;
}
}
}
obj* l_Lean_IR_Decl_resultType___main___boxed(obj* x_1) {
_start:
@ -5751,29 +5715,20 @@ obj* x_5;
x_5 = lean::cnstr_get(x_3, 0);
lean::inc(x_5);
lean::dec(x_3);
switch (lean::obj_tag(x_5)) {
case 0:
if (lean::obj_tag(x_5) == 2)
{
uint8 x_6;
lean::dec(x_5);
x_6 = 0;
x_6 = 1;
return x_6;
}
case 1:
else
{
uint8 x_7;
lean::dec(x_5);
x_7 = 0;
return x_7;
}
default:
{
uint8 x_8;
lean::dec(x_5);
x_8 = 1;
return x_8;
}
}
}
}
}
@ -5817,16 +5772,16 @@ if (x_5 == 0)
{
obj* x_6;
x_6 = lean::cnstr_get(x_3, 0);
switch (lean::obj_tag(x_6)) {
case 0:
if (lean::obj_tag(x_6) == 2)
{
obj* x_7;
lean::free_heap_obj(x_3);
x_7 = lean::cnstr_get(x_6, 1);
lean::inc(x_7);
lean::dec(x_6);
x_7 = lean::box(0);
return x_7;
lean::cnstr_set(x_3, 0, x_7);
return x_3;
}
case 1:
else
{
obj* x_8;
lean::free_heap_obj(x_3);
@ -5834,49 +5789,30 @@ lean::dec(x_6);
x_8 = lean::box(0);
return x_8;
}
default:
{
obj* x_9;
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
lean::cnstr_set(x_3, 0, x_9);
return x_3;
}
}
}
else
{
obj* x_10;
x_10 = lean::cnstr_get(x_3, 0);
lean::inc(x_10);
obj* x_9;
x_9 = lean::cnstr_get(x_3, 0);
lean::inc(x_9);
lean::dec(x_3);
switch (lean::obj_tag(x_10)) {
case 0:
if (lean::obj_tag(x_9) == 2)
{
obj* x_11;
lean::dec(x_10);
x_11 = lean::box(0);
obj* x_10; obj* x_11;
x_10 = lean::cnstr_get(x_9, 1);
lean::inc(x_10);
lean::dec(x_9);
x_11 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_11, 0, x_10);
return x_11;
}
case 1:
else
{
obj* x_12;
lean::dec(x_10);
lean::dec(x_9);
x_12 = lean::box(0);
return x_12;
}
default:
{
obj* x_13; obj* x_14;
x_13 = lean::cnstr_get(x_10, 1);
lean::inc(x_13);
lean::dec(x_10);
x_14 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_14, 0, x_13);
return x_14;
}
}
}
}
}
@ -5910,16 +5846,16 @@ if (x_5 == 0)
{
obj* x_6;
x_6 = lean::cnstr_get(x_3, 0);
switch (lean::obj_tag(x_6)) {
case 0:
if (lean::obj_tag(x_6) == 2)
{
obj* x_7;
lean::free_heap_obj(x_3);
x_7 = lean::cnstr_get(x_6, 0);
lean::inc(x_7);
lean::dec(x_6);
x_7 = lean::box(0);
return x_7;
lean::cnstr_set(x_3, 0, x_7);
return x_3;
}
case 1:
else
{
obj* x_8;
lean::free_heap_obj(x_3);
@ -5927,49 +5863,30 @@ lean::dec(x_6);
x_8 = lean::box(0);
return x_8;
}
default:
{
obj* x_9;
x_9 = lean::cnstr_get(x_6, 0);
lean::inc(x_9);
lean::dec(x_6);
lean::cnstr_set(x_3, 0, x_9);
return x_3;
}
}
}
else
{
obj* x_10;
x_10 = lean::cnstr_get(x_3, 0);
lean::inc(x_10);
obj* x_9;
x_9 = lean::cnstr_get(x_3, 0);
lean::inc(x_9);
lean::dec(x_3);
switch (lean::obj_tag(x_10)) {
case 0:
if (lean::obj_tag(x_9) == 2)
{
obj* x_11;
lean::dec(x_10);
x_11 = lean::box(0);
obj* x_10; obj* x_11;
x_10 = lean::cnstr_get(x_9, 0);
lean::inc(x_10);
lean::dec(x_9);
x_11 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_11, 0, x_10);
return x_11;
}
case 1:
else
{
obj* x_12;
lean::dec(x_10);
lean::dec(x_9);
x_12 = lean::box(0);
return x_12;
}
default:
{
obj* x_13; obj* x_14;
x_13 = lean::cnstr_get(x_10, 0);
lean::inc(x_13);
lean::dec(x_10);
x_14 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_14, 0, x_13);
return x_14;
}
}
}
}
}
@ -6046,29 +5963,20 @@ obj* x_5;
x_5 = lean::cnstr_get(x_3, 0);
lean::inc(x_5);
lean::dec(x_3);
switch (lean::obj_tag(x_5)) {
case 0:
if (lean::obj_tag(x_5) == 1)
{
uint8 x_6;
lean::dec(x_5);
x_6 = 0;
x_6 = 1;
return x_6;
}
case 1:
else
{
uint8 x_7;
lean::dec(x_5);
x_7 = 1;
x_7 = 0;
return x_7;
}
default:
{
uint8 x_8;
lean::dec(x_5);
x_8 = 0;
return x_8;
}
}
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -15,26 +15,32 @@ typedef lean::uint32 uint32; typedef lean::uint64 uint64;
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
extern "C" obj* lean_expr_mk_mdata(obj*, obj*);
obj* l_Lean_getAppFn___main(obj*);
obj* l_Lean_Expr_lam___boxed(obj*, obj*, obj*, obj*);
extern "C" uint8 lean_expr_quick_lt(obj*, obj*);
obj* l_Lean_Expr_hash___boxed(obj*);
extern "C" uint8 lean_name_dec_eq(obj*, obj*);
obj* l_Lean_Expr_getAppFn(obj*);
obj* l_Lean_mkBinApp(obj*, obj*, obj*);
obj* l_Lean_MData_empty;
extern "C" obj* lean_expr_mk_sort(obj*);
obj* l_Lean_Expr_pi___boxed(obj*, obj*, obj*, obj*);
obj* l_Lean_getAppFn(obj*);
namespace lean {
obj* nat_sub(obj*, obj*);
}
obj* l_Lean_Expr_isAppOfArity___main___boxed(obj*, obj*, obj*);
obj* l_Lean_exprIsInhabited;
extern "C" usize lean_expr_hash(obj*);
obj* l_Lean_getAppFn___main___boxed(obj*);
extern "C" obj* lean_expr_dbg_to_string(obj*);
obj* l_Lean_mkApp(obj*, obj*);
obj* l_Lean_Expr_eqv___boxed(obj*, obj*);
extern "C" obj* lean_expr_mk_pi(obj*, uint8, obj*, obj*);
extern "C" obj* lean_expr_mk_app(obj*, obj*);
obj* l_Lean_Expr_quickLt___boxed(obj*, obj*);
obj* l_Lean_Expr_isAppOf___boxed(obj*, obj*);
extern "C" obj* lean_expr_mk_let(obj*, obj*, obj*, obj*);
obj* l_Lean_Expr_getAppFn___main(obj*);
obj* l_Lean_mkDecIsFalse___closed__1;
obj* l_Lean_Expr_isAppOfArity___boxed(obj*, obj*, obj*);
obj* l_Lean_mkConst(obj*, obj*);
obj* l_Lean_Expr_sort___boxed(obj*);
extern "C" obj* lean_expr_mk_fvar(obj*);
@ -51,14 +57,19 @@ obj* l_Lean_mkBinCApp(obj*, obj*, obj*);
obj* l_Lean_mkDecIsFalse(obj*, obj*);
extern "C" obj* lean_name_mk_string(obj*, obj*);
obj* l_Lean_Expr_lit___boxed(obj*);
namespace lean {
uint8 nat_dec_eq(obj*, obj*);
}
obj* l_Lean_Expr_app___boxed(obj*, obj*);
obj* l_Lean_Expr_getAppFn___main___boxed(obj*);
obj* l_Lean_mkCApp(obj*, obj*);
uint8 l_Lean_Expr_isAppOfArity___main(obj*, obj*, obj*);
extern "C" obj* lean_expr_mk_mvar(obj*, obj*);
obj* l_Lean_getAppFn___boxed(obj*);
extern "C" obj* lean_expr_mk_bvar(obj*);
obj* l_Lean_Expr_proj___boxed(obj*, obj*, obj*);
extern "C" uint8 lean_expr_lt(obj*, obj*);
obj* l_Lean_mkDecIsTrue(obj*, obj*);
uint8 l_Lean_Expr_isAppOf(obj*, obj*);
obj* l_Lean_Expr_const___boxed(obj*, obj*);
obj* l_Lean_Expr_fvar___boxed(obj*);
extern "C" obj* lean_expr_mk_lambda(obj*, uint8, obj*, obj*);
@ -66,6 +77,8 @@ obj* l_Lean_Expr_mdata___boxed(obj*, obj*);
obj* l_Lean_Expr_HasBeq;
obj* l_Lean_Expr_Hashable;
obj* l_Lean_Expr_mvar___boxed(obj*, obj*);
obj* l_Lean_Expr_getAppFn___boxed(obj*);
uint8 l_Lean_Expr_isAppOfArity(obj*, obj*, obj*);
extern "C" obj* lean_expr_mk_lit(obj*);
obj* l_Lean_Expr_lt___boxed(obj*, obj*);
obj* _init_l_Lean_MData_empty() {
@ -292,15 +305,7 @@ x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_Lean_Expr_eqv___boxed), 2, 0
return x_1;
}
}
obj* l_Lean_mkConst(obj* x_1, obj* x_2) {
_start:
{
obj* x_3;
x_3 = lean_expr_mk_const(x_1, x_2);
return x_3;
}
}
obj* l_Lean_getAppFn___main(obj* x_1) {
obj* l_Lean_Expr_getAppFn___main(obj* x_1) {
_start:
{
if (lean::obj_tag(x_1) == 5)
@ -317,32 +322,163 @@ return x_1;
}
}
}
obj* l_Lean_getAppFn___main___boxed(obj* x_1) {
obj* l_Lean_Expr_getAppFn___main___boxed(obj* x_1) {
_start:
{
obj* x_2;
x_2 = l_Lean_getAppFn___main(x_1);
x_2 = l_Lean_Expr_getAppFn___main(x_1);
lean::dec(x_1);
return x_2;
}
}
obj* l_Lean_getAppFn(obj* x_1) {
obj* l_Lean_Expr_getAppFn(obj* x_1) {
_start:
{
obj* x_2;
x_2 = l_Lean_getAppFn___main(x_1);
x_2 = l_Lean_Expr_getAppFn___main(x_1);
return x_2;
}
}
obj* l_Lean_getAppFn___boxed(obj* x_1) {
obj* l_Lean_Expr_getAppFn___boxed(obj* x_1) {
_start:
{
obj* x_2;
x_2 = l_Lean_getAppFn(x_1);
x_2 = l_Lean_Expr_getAppFn(x_1);
lean::dec(x_1);
return x_2;
}
}
uint8 l_Lean_Expr_isAppOf(obj* x_1, obj* x_2) {
_start:
{
obj* x_3;
x_3 = l_Lean_Expr_getAppFn___main(x_1);
if (lean::obj_tag(x_3) == 4)
{
obj* x_4; uint8 x_5;
x_4 = lean::cnstr_get(x_3, 0);
lean::inc(x_4);
lean::dec(x_3);
x_5 = lean_name_dec_eq(x_4, x_2);
lean::dec(x_4);
return x_5;
}
else
{
uint8 x_6;
lean::dec(x_3);
x_6 = 0;
return x_6;
}
}
}
obj* l_Lean_Expr_isAppOf___boxed(obj* x_1, obj* x_2) {
_start:
{
uint8 x_3; obj* x_4;
x_3 = l_Lean_Expr_isAppOf(x_1, x_2);
lean::dec(x_2);
lean::dec(x_1);
x_4 = lean::box(x_3);
return x_4;
}
}
uint8 l_Lean_Expr_isAppOfArity___main(obj* x_1, obj* x_2, obj* x_3) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 4:
{
obj* x_4; obj* x_5; uint8 x_6;
x_4 = lean::cnstr_get(x_1, 0);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::nat_dec_eq(x_3, x_5);
lean::dec(x_3);
if (x_6 == 0)
{
uint8 x_7;
x_7 = 0;
return x_7;
}
else
{
uint8 x_8;
x_8 = lean_name_dec_eq(x_4, x_2);
return x_8;
}
}
case 5:
{
obj* x_9; obj* x_10; uint8 x_11;
x_9 = lean::cnstr_get(x_1, 0);
x_10 = lean::mk_nat_obj(0u);
x_11 = lean::nat_dec_eq(x_3, x_10);
if (x_11 == 0)
{
obj* x_12; obj* x_13;
x_12 = lean::mk_nat_obj(1u);
x_13 = lean::nat_sub(x_3, x_12);
lean::dec(x_3);
x_1 = x_9;
x_3 = x_13;
goto _start;
}
else
{
uint8 x_15;
lean::dec(x_3);
x_15 = 0;
return x_15;
}
}
default:
{
uint8 x_16;
lean::dec(x_3);
x_16 = 0;
return x_16;
}
}
}
}
obj* l_Lean_Expr_isAppOfArity___main___boxed(obj* x_1, obj* x_2, obj* x_3) {
_start:
{
uint8 x_4; obj* x_5;
x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3);
lean::dec(x_2);
lean::dec(x_1);
x_5 = lean::box(x_4);
return x_5;
}
}
uint8 l_Lean_Expr_isAppOfArity(obj* x_1, obj* x_2, obj* x_3) {
_start:
{
uint8 x_4;
x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3);
return x_4;
}
}
obj* l_Lean_Expr_isAppOfArity___boxed(obj* x_1, obj* x_2, obj* x_3) {
_start:
{
uint8 x_4; obj* x_5;
x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3);
lean::dec(x_2);
lean::dec(x_1);
x_5 = lean::box(x_4);
return x_5;
}
}
obj* l_Lean_mkConst(obj* x_1, obj* x_2) {
_start:
{
obj* x_3;
x_3 = lean_expr_mk_const(x_1, x_2);
return x_3;
}
}
obj* l_Lean_mkBinApp(obj* x_1, obj* x_2, obj* x_3) {
_start:
{
@ -453,8 +589,10 @@ REGISTER_LEAN_FUNCTION(lean::mk_const_name(lean::mk_const_name(lean::mk_const_na
l_Lean_Expr_HasBeq = _init_l_Lean_Expr_HasBeq();
lean::mark_persistent(l_Lean_Expr_HasBeq);
lean::register_constant(lean::mk_const_name(lean::mk_const_name(lean::mk_const_name("Lean"), "Expr"), "HasBeq"), l_Lean_Expr_HasBeq);
REGISTER_LEAN_FUNCTION(lean::mk_const_name(lean::mk_const_name(lean::mk_const_name("Lean"), "Expr"), "getAppFn"), 1, l_Lean_Expr_getAppFn___boxed);
REGISTER_LEAN_FUNCTION(lean::mk_const_name(lean::mk_const_name(lean::mk_const_name("Lean"), "Expr"), "isAppOf"), 2, l_Lean_Expr_isAppOf___boxed);
REGISTER_LEAN_FUNCTION(lean::mk_const_name(lean::mk_const_name(lean::mk_const_name("Lean"), "Expr"), "isAppOfArity"), 3, l_Lean_Expr_isAppOfArity___boxed);
REGISTER_LEAN_FUNCTION(lean::mk_const_name(lean::mk_const_name("Lean"), "mkConst"), 2, l_Lean_mkConst);
REGISTER_LEAN_FUNCTION(lean::mk_const_name(lean::mk_const_name("Lean"), "getAppFn"), 1, l_Lean_getAppFn___boxed);
REGISTER_LEAN_FUNCTION(lean::mk_const_name(lean::mk_const_name("Lean"), "mkBinApp"), 3, l_Lean_mkBinApp);
REGISTER_LEAN_FUNCTION(lean::mk_const_name(lean::mk_const_name("Lean"), "mkBinCApp"), 3, l_Lean_mkBinCApp);
l_Lean_mkDecIsTrue___closed__1 = _init_l_Lean_mkDecIsTrue___closed__1();

View file

@ -358,20 +358,12 @@ obj* l_Lean_Format_flatten___main(obj* x_1) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
return x_1;
}
case 1:
{
obj* x_2;
x_2 = l_Lean_Format_flatten___main___closed__1;
return x_2;
}
case 2:
{
return x_1;
}
case 3:
{
obj* x_3;
@ -425,7 +417,7 @@ else
return x_1;
}
}
default:
case 5:
{
obj* x_18;
x_18 = lean::cnstr_get(x_1, 0);
@ -434,6 +426,10 @@ lean::dec(x_1);
x_1 = x_18;
goto _start;
}
default:
{
return x_1;
}
}
}
}

View file

@ -159,49 +159,61 @@ uint8 l_Lean_Level_hasParam___main(obj* x_1) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
uint8 x_2;
x_2 = 0;
return x_2;
}
case 1:
{
obj* x_3;
x_3 = lean::cnstr_get(x_1, 0);
x_1 = x_3;
obj* x_2;
x_2 = lean::cnstr_get(x_1, 0);
x_1 = x_2;
goto _start;
}
case 4:
case 2:
{
uint8 x_5;
x_5 = 1;
return x_5;
}
case 5:
obj* x_4; obj* x_5; uint8 x_6;
x_4 = lean::cnstr_get(x_1, 0);
x_5 = lean::cnstr_get(x_1, 1);
x_6 = l_Lean_Level_hasParam___main(x_4);
if (x_6 == 0)
{
uint8 x_6;
x_6 = 0;
return x_6;
}
default:
{
obj* x_7; obj* x_8; uint8 x_9;
x_7 = lean::cnstr_get(x_1, 0);
x_8 = lean::cnstr_get(x_1, 1);
x_9 = l_Lean_Level_hasParam___main(x_7);
if (x_9 == 0)
{
x_1 = x_8;
x_1 = x_5;
goto _start;
}
else
{
uint8 x_11;
x_11 = 1;
return x_11;
uint8 x_8;
x_8 = 1;
return x_8;
}
}
case 3:
{
obj* x_9; obj* x_10; uint8 x_11;
x_9 = lean::cnstr_get(x_1, 0);
x_10 = lean::cnstr_get(x_1, 1);
x_11 = l_Lean_Level_hasParam___main(x_9);
if (x_11 == 0)
{
x_1 = x_10;
goto _start;
}
else
{
uint8 x_13;
x_13 = 1;
return x_13;
}
}
case 4:
{
uint8 x_14;
x_14 = 1;
return x_14;
}
default:
{
uint8 x_15;
x_15 = 0;
return x_15;
}
}
}
}
@ -237,50 +249,63 @@ uint8 l_Lean_Level_hasMvar___main(obj* x_1) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
uint8 x_2;
x_2 = 0;
return x_2;
}
case 1:
{
obj* x_3; uint8 x_4;
x_3 = lean::cnstr_get(x_1, 0);
x_4 = l_Lean_Level_hasParam___main(x_3);
return x_4;
obj* x_2; uint8 x_3;
x_2 = lean::cnstr_get(x_1, 0);
x_3 = l_Lean_Level_hasParam___main(x_2);
return x_3;
}
case 4:
case 2:
{
uint8 x_5;
x_5 = 0;
return x_5;
}
case 5:
obj* x_4; obj* x_5; uint8 x_6;
x_4 = lean::cnstr_get(x_1, 0);
x_5 = lean::cnstr_get(x_1, 1);
x_6 = l_Lean_Level_hasParam___main(x_4);
if (x_6 == 0)
{
uint8 x_6;
x_6 = 1;
return x_6;
}
default:
{
obj* x_7; obj* x_8; uint8 x_9;
x_7 = lean::cnstr_get(x_1, 0);
x_8 = lean::cnstr_get(x_1, 1);
x_9 = l_Lean_Level_hasParam___main(x_7);
if (x_9 == 0)
{
uint8 x_10;
x_10 = l_Lean_Level_hasParam___main(x_8);
return x_10;
uint8 x_7;
x_7 = l_Lean_Level_hasParam___main(x_5);
return x_7;
}
else
{
uint8 x_11;
x_11 = 1;
return x_11;
uint8 x_8;
x_8 = 1;
return x_8;
}
}
case 3:
{
obj* x_9; obj* x_10; uint8 x_11;
x_9 = lean::cnstr_get(x_1, 0);
x_10 = lean::cnstr_get(x_1, 1);
x_11 = l_Lean_Level_hasParam___main(x_9);
if (x_11 == 0)
{
uint8 x_12;
x_12 = l_Lean_Level_hasParam___main(x_10);
return x_12;
}
else
{
uint8 x_13;
x_13 = 1;
return x_13;
}
}
case 5:
{
uint8 x_14;
x_14 = 1;
return x_14;
}
default:
{
uint8 x_15;
x_15 = 0;
return x_15;
}
}
}
}
@ -660,11 +685,6 @@ obj* l_Lean_Level_instantiate___main(obj* x_1, obj* x_2) {
_start:
{
switch (lean::obj_tag(x_2)) {
case 0:
{
lean::dec(x_1);
return x_2;
}
case 1:
{
obj* x_3; obj* x_4; obj* x_5;

View file

@ -266,27 +266,23 @@ return x_1;
}
else
{
obj* x_3; obj* x_4; uint8 x_5; uint8 x_6;
obj* x_3; obj* x_4; uint8 x_5; uint8 x_6; obj* x_7;
x_3 = lean::cnstr_get(x_2, 0);
x_4 = lean::cnstr_get(x_2, 1);
x_5 = l_List_foldr___main___at_Lean_MessageLog_hasErrors___spec__1(x_1, x_4);
x_6 = lean::cnstr_get_scalar<uint8>(x_3, sizeof(void*)*5);
switch (x_6) {
case 0:
x_7 = lean::box(x_6);
if (lean::obj_tag(x_7) == 2)
{
uint8 x_8;
x_8 = 1;
return x_8;
}
else
{
lean::dec(x_7);
return x_5;
}
case 1:
{
return x_5;
}
default:
{
uint8 x_7;
x_7 = 1;
return x_7;
}
}
}
}
}

View file

@ -847,26 +847,20 @@ return x_5;
obj* l___private_init_lean_modifiers_2__privatePrefixAux___main(obj* x_1) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
return x_1;
}
case 1:
if (lean::obj_tag(x_1) == 1)
{
obj* x_2;
x_2 = lean::cnstr_get(x_1, 0);
x_1 = x_2;
goto _start;
}
default:
else
{
lean::inc(x_1);
return x_1;
}
}
}
}
obj* l___private_init_lean_modifiers_2__privatePrefixAux___main___boxed(obj* x_1) {
_start:
{

View file

@ -620,94 +620,86 @@ return x_5;
}
case 1:
{
switch (lean::obj_tag(x_2)) {
case 0:
if (lean::obj_tag(x_2) == 1)
{
uint8 x_6;
x_6 = 0;
return x_6;
}
case 1:
obj* x_6; obj* x_7; obj* x_8; obj* x_9; uint8 x_10;
x_6 = lean::cnstr_get(x_1, 0);
x_7 = lean::cnstr_get(x_1, 1);
x_8 = lean::cnstr_get(x_2, 0);
x_9 = lean::cnstr_get(x_2, 1);
x_10 = lean::string_dec_lt(x_7, x_9);
if (x_10 == 0)
{
obj* x_7; obj* x_8; obj* x_9; obj* x_10; uint8 x_11;
x_7 = lean::cnstr_get(x_1, 0);
x_8 = lean::cnstr_get(x_1, 1);
x_9 = lean::cnstr_get(x_2, 0);
x_10 = lean::cnstr_get(x_2, 1);
x_11 = lean::string_dec_lt(x_8, x_10);
uint8 x_11;
x_11 = lean::string_dec_eq(x_7, x_9);
if (x_11 == 0)
{
uint8 x_12;
x_12 = lean::string_dec_eq(x_8, x_10);
if (x_12 == 0)
{
return x_11;
return x_10;
}
else
{
x_1 = x_7;
x_2 = x_9;
x_1 = x_6;
x_2 = x_8;
goto _start;
}
}
else
{
uint8 x_13;
x_13 = 1;
return x_13;
}
}
else
{
uint8 x_14;
x_14 = 1;
x_14 = 0;
return x_14;
}
}
default:
{
uint8 x_15;
x_15 = 0;
return x_15;
}
}
}
default:
{
switch (lean::obj_tag(x_2)) {
case 0:
{
uint8 x_16;
x_16 = 0;
return x_16;
uint8 x_15;
x_15 = 0;
return x_15;
}
case 1:
{
uint8 x_17;
x_17 = 1;
return x_17;
uint8 x_16;
x_16 = 1;
return x_16;
}
default:
{
obj* x_18; obj* x_19; obj* x_20; obj* x_21; uint8 x_22;
x_18 = lean::cnstr_get(x_1, 0);
x_19 = lean::cnstr_get(x_1, 1);
x_20 = lean::cnstr_get(x_2, 0);
x_21 = lean::cnstr_get(x_2, 1);
x_22 = lean::nat_dec_lt(x_19, x_21);
obj* x_17; obj* x_18; obj* x_19; obj* x_20; uint8 x_21;
x_17 = lean::cnstr_get(x_1, 0);
x_18 = lean::cnstr_get(x_1, 1);
x_19 = lean::cnstr_get(x_2, 0);
x_20 = lean::cnstr_get(x_2, 1);
x_21 = lean::nat_dec_lt(x_18, x_20);
if (x_21 == 0)
{
uint8 x_22;
x_22 = lean::nat_dec_eq(x_18, x_20);
if (x_22 == 0)
{
uint8 x_23;
x_23 = lean::nat_dec_eq(x_19, x_21);
if (x_23 == 0)
{
return x_22;
return x_21;
}
else
{
x_1 = x_18;
x_2 = x_20;
x_1 = x_17;
x_2 = x_19;
goto _start;
}
}
else
{
uint8 x_25;
x_25 = 1;
return x_25;
uint8 x_24;
x_24 = 1;
return x_24;
}
}
}
@ -954,32 +946,24 @@ return x_1;
obj* l_Lean_Name_appendAfter___main(obj* x_1, obj* x_2) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
if (lean::obj_tag(x_1) == 1)
{
obj* x_3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
case 1:
{
obj* x_4; obj* x_5; obj* x_6; obj* x_7;
x_4 = lean::cnstr_get(x_1, 0);
obj* x_3; obj* x_4; obj* x_5; obj* x_6;
x_3 = lean::cnstr_get(x_1, 0);
lean::inc(x_3);
x_4 = lean::cnstr_get(x_1, 1);
lean::inc(x_4);
x_5 = lean::cnstr_get(x_1, 1);
lean::inc(x_5);
lean::dec(x_1);
x_6 = lean::string_append(x_5, x_2);
x_5 = lean::string_append(x_4, x_2);
lean::dec(x_2);
x_7 = lean_name_mk_string(x_4, x_6);
return x_7;
x_6 = lean_name_mk_string(x_3, x_5);
return x_6;
}
default:
else
{
obj* x_8;
x_8 = lean_name_mk_string(x_1, x_2);
return x_8;
}
obj* x_7;
x_7 = lean_name_mk_string(x_1, x_2);
return x_7;
}
}
}
@ -1003,38 +987,29 @@ obj* l_Lean_Name_appendIndexAfter___main(obj* x_1, obj* x_2) {
_start:
{
obj* x_3;
switch (lean::obj_tag(x_1)) {
case 0:
if (lean::obj_tag(x_1) == 1)
{
obj* x_9;
x_9 = lean::box(0);
x_3 = x_9;
goto block_8;
}
case 1:
{
obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
x_10 = lean::cnstr_get(x_1, 0);
obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_9 = lean::cnstr_get(x_1, 0);
lean::inc(x_9);
x_10 = lean::cnstr_get(x_1, 1);
lean::inc(x_10);
x_11 = lean::cnstr_get(x_1, 1);
lean::inc(x_11);
lean::dec(x_1);
x_12 = l_Lean_Name_appendIndexAfter___main___closed__1;
x_13 = lean::string_append(x_11, x_12);
x_14 = l_Nat_repr(x_2);
x_15 = lean::string_append(x_13, x_14);
lean::dec(x_14);
x_16 = lean_name_mk_string(x_10, x_15);
return x_16;
x_11 = l_Lean_Name_appendIndexAfter___main___closed__1;
x_12 = lean::string_append(x_10, x_11);
x_13 = l_Nat_repr(x_2);
x_14 = lean::string_append(x_12, x_13);
lean::dec(x_13);
x_15 = lean_name_mk_string(x_9, x_14);
return x_15;
}
default:
else
{
obj* x_17;
x_17 = lean::box(0);
x_3 = x_17;
obj* x_16;
x_16 = lean::box(0);
x_3 = x_16;
goto block_8;
}
}
block_8:
{
obj* x_4; obj* x_5; obj* x_6; obj* x_7;

File diff suppressed because it is too large Load diff

View file

@ -701,10 +701,6 @@ obj* l_Lean_Syntax_flipScopes___main(obj* x_1) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
return x_1;
}
case 1:
{
uint8 x_2;
@ -739,11 +735,7 @@ lean::cnstr_set(x_9, 2, x_8);
return x_9;
}
}
case 2:
{
return x_1;
}
default:
case 3:
{
uint8 x_10;
x_10 = !lean::is_exclusive(x_1);
@ -783,6 +775,10 @@ lean::cnstr_set(x_19, 4, x_18);
return x_19;
}
}
default:
{
return x_1;
}
}
}
}
@ -1453,243 +1449,234 @@ obj* l___private_init_lean_syntax_2__updateLeadingAux___main(obj* x_1, obj* x_2)
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_3);
lean::cnstr_set(x_4, 1, x_2);
return x_4;
}
case 1:
{
obj* x_5; obj* x_6;
lean::dec(x_1);
x_5 = lean::box(0);
x_6 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_6, 0, x_5);
lean::cnstr_set(x_6, 1, x_2);
return x_6;
}
case 2:
{
obj* x_7;
obj* x_3;
x_3 = lean::cnstr_get(x_1, 0);
lean::inc(x_3);
if (lean::obj_tag(x_3) == 0)
{
obj* x_4; obj* x_5;
lean::dec(x_1);
x_4 = lean::box(0);
x_5 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_5, 0, x_4);
lean::cnstr_set(x_5, 1, x_2);
return x_5;
}
else
{
uint8 x_6;
x_6 = !lean::is_exclusive(x_1);
if (x_6 == 0)
{
obj* x_7; uint8 x_8;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
if (lean::obj_tag(x_7) == 0)
{
obj* x_8; obj* x_9;
lean::dec(x_1);
x_8 = lean::box(0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_2);
return x_9;
}
else
{
uint8 x_10;
x_10 = !lean::is_exclusive(x_1);
if (x_10 == 0)
{
obj* x_11; uint8 x_12;
x_11 = lean::cnstr_get(x_1, 0);
lean::dec(x_11);
x_12 = !lean::is_exclusive(x_7);
if (x_12 == 0)
{
obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18;
x_13 = lean::cnstr_get(x_7, 0);
x_14 = lean::cnstr_get(x_13, 2);
lean::inc(x_14);
x_15 = lean::cnstr_get(x_14, 2);
lean::inc(x_15);
lean::dec(x_14);
x_16 = l___private_init_lean_syntax_1__updateInfo___main(x_13, x_2);
lean::cnstr_set(x_7, 0, x_16);
x_17 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_17, 0, x_1);
x_18 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_18, 0, x_17);
lean::cnstr_set(x_18, 1, x_15);
return x_18;
}
else
{
obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25;
x_19 = lean::cnstr_get(x_7, 0);
lean::inc(x_19);
lean::dec(x_7);
x_20 = lean::cnstr_get(x_19, 2);
lean::inc(x_20);
x_21 = lean::cnstr_get(x_20, 2);
lean::inc(x_21);
lean::dec(x_20);
x_22 = l___private_init_lean_syntax_1__updateInfo___main(x_19, x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_22);
lean::cnstr_set(x_1, 0, x_23);
x_24 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_24, 0, x_1);
x_25 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_25, 0, x_24);
lean::cnstr_set(x_25, 1, x_21);
return x_25;
x_8 = !lean::is_exclusive(x_3);
if (x_8 == 0)
{
obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_9 = lean::cnstr_get(x_3, 0);
x_10 = lean::cnstr_get(x_9, 2);
lean::inc(x_10);
x_11 = lean::cnstr_get(x_10, 2);
lean::inc(x_11);
lean::dec(x_10);
x_12 = l___private_init_lean_syntax_1__updateInfo___main(x_9, x_2);
lean::cnstr_set(x_3, 0, x_12);
x_13 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_13, 0, x_1);
x_14 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_11);
return x_14;
}
else
{
obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21;
x_15 = lean::cnstr_get(x_3, 0);
lean::inc(x_15);
lean::dec(x_3);
x_16 = lean::cnstr_get(x_15, 2);
lean::inc(x_16);
x_17 = lean::cnstr_get(x_16, 2);
lean::inc(x_17);
lean::dec(x_16);
x_18 = l___private_init_lean_syntax_1__updateInfo___main(x_15, x_2);
x_19 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_19, 0, x_18);
lean::cnstr_set(x_1, 0, x_19);
x_20 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_20, 0, x_1);
x_21 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_21, 0, x_20);
lean::cnstr_set(x_21, 1, x_17);
return x_21;
}
}
else
{
obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35;
x_26 = lean::cnstr_get(x_1, 1);
lean::inc(x_26);
obj* x_22; 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;
x_22 = lean::cnstr_get(x_1, 1);
lean::inc(x_22);
lean::dec(x_1);
x_27 = lean::cnstr_get(x_7, 0);
lean::inc(x_27);
if (lean::is_exclusive(x_7)) {
lean::cnstr_release(x_7, 0);
x_28 = x_7;
x_23 = lean::cnstr_get(x_3, 0);
lean::inc(x_23);
if (lean::is_exclusive(x_3)) {
lean::cnstr_release(x_3, 0);
x_24 = x_3;
} else {
lean::dec_ref(x_7);
x_28 = lean::box(0);
lean::dec_ref(x_3);
x_24 = lean::box(0);
}
x_29 = lean::cnstr_get(x_27, 2);
lean::inc(x_29);
x_30 = lean::cnstr_get(x_29, 2);
lean::inc(x_30);
lean::dec(x_29);
x_31 = l___private_init_lean_syntax_1__updateInfo___main(x_27, x_2);
if (lean::is_scalar(x_28)) {
x_32 = lean::alloc_cnstr(1, 1, 0);
x_25 = lean::cnstr_get(x_23, 2);
lean::inc(x_25);
x_26 = lean::cnstr_get(x_25, 2);
lean::inc(x_26);
lean::dec(x_25);
x_27 = l___private_init_lean_syntax_1__updateInfo___main(x_23, x_2);
if (lean::is_scalar(x_24)) {
x_28 = lean::alloc_cnstr(1, 1, 0);
} else {
x_32 = x_28;
x_28 = x_24;
}
lean::cnstr_set(x_32, 0, x_31);
x_33 = lean::alloc_cnstr(2, 2, 0);
lean::cnstr_set(x_33, 0, x_32);
lean::cnstr_set(x_33, 1, x_26);
x_34 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_28, 0, x_27);
x_29 = lean::alloc_cnstr(2, 2, 0);
lean::cnstr_set(x_29, 0, x_28);
lean::cnstr_set(x_29, 1, x_22);
x_30 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_30, 0, x_29);
x_31 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_31, 0, x_30);
lean::cnstr_set(x_31, 1, x_26);
return x_31;
}
}
}
case 3:
{
obj* x_32;
x_32 = lean::cnstr_get(x_1, 0);
lean::inc(x_32);
if (lean::obj_tag(x_32) == 0)
{
obj* x_33; obj* x_34;
lean::dec(x_1);
x_33 = lean::box(0);
x_34 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_34, 0, x_33);
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_34);
lean::cnstr_set(x_35, 1, x_30);
return x_35;
lean::cnstr_set(x_34, 1, x_2);
return x_34;
}
else
{
uint8 x_35;
x_35 = !lean::is_exclusive(x_1);
if (x_35 == 0)
{
obj* x_36; uint8 x_37;
x_36 = lean::cnstr_get(x_1, 0);
lean::dec(x_36);
x_37 = !lean::is_exclusive(x_32);
if (x_37 == 0)
{
obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43;
x_38 = lean::cnstr_get(x_32, 0);
x_39 = lean::cnstr_get(x_38, 2);
lean::inc(x_39);
x_40 = lean::cnstr_get(x_39, 2);
lean::inc(x_40);
lean::dec(x_39);
x_41 = l___private_init_lean_syntax_1__updateInfo___main(x_38, x_2);
lean::cnstr_set(x_32, 0, x_41);
x_42 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_42, 0, x_1);
x_43 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_43, 0, x_42);
lean::cnstr_set(x_43, 1, x_40);
return x_43;
}
else
{
obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48; obj* x_49; obj* x_50;
x_44 = lean::cnstr_get(x_32, 0);
lean::inc(x_44);
lean::dec(x_32);
x_45 = lean::cnstr_get(x_44, 2);
lean::inc(x_45);
x_46 = lean::cnstr_get(x_45, 2);
lean::inc(x_46);
lean::dec(x_45);
x_47 = l___private_init_lean_syntax_1__updateInfo___main(x_44, x_2);
x_48 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_48, 0, x_47);
lean::cnstr_set(x_1, 0, x_48);
x_49 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_49, 0, x_1);
x_50 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_50, 0, x_49);
lean::cnstr_set(x_50, 1, x_46);
return x_50;
}
}
else
{
obj* x_51; 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_61; obj* x_62; obj* x_63;
x_51 = lean::cnstr_get(x_1, 1);
x_52 = lean::cnstr_get(x_1, 2);
x_53 = lean::cnstr_get(x_1, 3);
x_54 = lean::cnstr_get(x_1, 4);
lean::inc(x_54);
lean::inc(x_53);
lean::inc(x_52);
lean::inc(x_51);
lean::dec(x_1);
x_55 = lean::cnstr_get(x_32, 0);
lean::inc(x_55);
if (lean::is_exclusive(x_32)) {
lean::cnstr_release(x_32, 0);
x_56 = x_32;
} else {
lean::dec_ref(x_32);
x_56 = lean::box(0);
}
x_57 = lean::cnstr_get(x_55, 2);
lean::inc(x_57);
x_58 = lean::cnstr_get(x_57, 2);
lean::inc(x_58);
lean::dec(x_57);
x_59 = l___private_init_lean_syntax_1__updateInfo___main(x_55, x_2);
if (lean::is_scalar(x_56)) {
x_60 = lean::alloc_cnstr(1, 1, 0);
} else {
x_60 = x_56;
}
lean::cnstr_set(x_60, 0, x_59);
x_61 = lean::alloc_cnstr(3, 5, 0);
lean::cnstr_set(x_61, 0, x_60);
lean::cnstr_set(x_61, 1, x_51);
lean::cnstr_set(x_61, 2, x_52);
lean::cnstr_set(x_61, 3, x_53);
lean::cnstr_set(x_61, 4, x_54);
x_62 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_62, 0, x_61);
x_63 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_63, 0, x_62);
lean::cnstr_set(x_63, 1, x_58);
return x_63;
}
}
}
default:
{
obj* x_36;
x_36 = lean::cnstr_get(x_1, 0);
lean::inc(x_36);
if (lean::obj_tag(x_36) == 0)
{
obj* x_37; obj* x_38;
obj* x_64; obj* x_65;
lean::dec(x_1);
x_37 = lean::box(0);
x_38 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_38, 0, x_37);
lean::cnstr_set(x_38, 1, x_2);
return x_38;
}
else
{
uint8 x_39;
x_39 = !lean::is_exclusive(x_1);
if (x_39 == 0)
{
obj* x_40; uint8 x_41;
x_40 = lean::cnstr_get(x_1, 0);
lean::dec(x_40);
x_41 = !lean::is_exclusive(x_36);
if (x_41 == 0)
{
obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47;
x_42 = lean::cnstr_get(x_36, 0);
x_43 = lean::cnstr_get(x_42, 2);
lean::inc(x_43);
x_44 = lean::cnstr_get(x_43, 2);
lean::inc(x_44);
lean::dec(x_43);
x_45 = l___private_init_lean_syntax_1__updateInfo___main(x_42, x_2);
lean::cnstr_set(x_36, 0, x_45);
x_46 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_46, 0, x_1);
x_47 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_47, 0, x_46);
lean::cnstr_set(x_47, 1, x_44);
return x_47;
}
else
{
obj* x_48; obj* x_49; obj* x_50; obj* x_51; obj* x_52; obj* x_53; obj* x_54;
x_48 = lean::cnstr_get(x_36, 0);
lean::inc(x_48);
lean::dec(x_36);
x_49 = lean::cnstr_get(x_48, 2);
lean::inc(x_49);
x_50 = lean::cnstr_get(x_49, 2);
lean::inc(x_50);
lean::dec(x_49);
x_51 = l___private_init_lean_syntax_1__updateInfo___main(x_48, x_2);
x_52 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_52, 0, x_51);
lean::cnstr_set(x_1, 0, x_52);
x_53 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_53, 0, x_1);
x_54 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_54, 0, x_53);
lean::cnstr_set(x_54, 1, x_50);
return x_54;
}
}
else
{
obj* x_55; obj* x_56; obj* x_57; obj* x_58; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_63; obj* x_64; obj* x_65; obj* x_66; obj* x_67;
x_55 = lean::cnstr_get(x_1, 1);
x_56 = lean::cnstr_get(x_1, 2);
x_57 = lean::cnstr_get(x_1, 3);
x_58 = lean::cnstr_get(x_1, 4);
lean::inc(x_58);
lean::inc(x_57);
lean::inc(x_56);
lean::inc(x_55);
lean::dec(x_1);
x_59 = lean::cnstr_get(x_36, 0);
lean::inc(x_59);
if (lean::is_exclusive(x_36)) {
lean::cnstr_release(x_36, 0);
x_60 = x_36;
} else {
lean::dec_ref(x_36);
x_60 = lean::box(0);
}
x_61 = lean::cnstr_get(x_59, 2);
lean::inc(x_61);
x_62 = lean::cnstr_get(x_61, 2);
lean::inc(x_62);
lean::dec(x_61);
x_63 = l___private_init_lean_syntax_1__updateInfo___main(x_59, x_2);
if (lean::is_scalar(x_60)) {
x_64 = lean::alloc_cnstr(1, 1, 0);
} else {
x_64 = x_60;
}
lean::cnstr_set(x_64, 0, x_63);
x_65 = lean::alloc_cnstr(3, 5, 0);
x_64 = lean::box(0);
x_65 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_65, 0, x_64);
lean::cnstr_set(x_65, 1, x_55);
lean::cnstr_set(x_65, 2, x_56);
lean::cnstr_set(x_65, 3, x_57);
lean::cnstr_set(x_65, 4, x_58);
x_66 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_66, 0, x_65);
x_67 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_67, 0, x_66);
lean::cnstr_set(x_67, 1, x_62);
return x_67;
}
}
lean::cnstr_set(x_65, 1, x_2);
return x_65;
}
}
}
@ -1698,243 +1685,234 @@ obj* l___private_init_lean_syntax_2__updateLeadingAux(obj* x_1, obj* x_2) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_3);
lean::cnstr_set(x_4, 1, x_2);
return x_4;
}
case 1:
{
obj* x_5; obj* x_6;
lean::dec(x_1);
x_5 = lean::box(0);
x_6 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_6, 0, x_5);
lean::cnstr_set(x_6, 1, x_2);
return x_6;
}
case 2:
{
obj* x_7;
obj* x_3;
x_3 = lean::cnstr_get(x_1, 0);
lean::inc(x_3);
if (lean::obj_tag(x_3) == 0)
{
obj* x_4; obj* x_5;
lean::dec(x_1);
x_4 = lean::box(0);
x_5 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_5, 0, x_4);
lean::cnstr_set(x_5, 1, x_2);
return x_5;
}
else
{
uint8 x_6;
x_6 = !lean::is_exclusive(x_1);
if (x_6 == 0)
{
obj* x_7; uint8 x_8;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
if (lean::obj_tag(x_7) == 0)
{
obj* x_8; obj* x_9;
lean::dec(x_1);
x_8 = lean::box(0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_2);
return x_9;
}
else
{
uint8 x_10;
x_10 = !lean::is_exclusive(x_1);
if (x_10 == 0)
{
obj* x_11; uint8 x_12;
x_11 = lean::cnstr_get(x_1, 0);
lean::dec(x_11);
x_12 = !lean::is_exclusive(x_7);
if (x_12 == 0)
{
obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18;
x_13 = lean::cnstr_get(x_7, 0);
x_14 = lean::cnstr_get(x_13, 2);
lean::inc(x_14);
x_15 = lean::cnstr_get(x_14, 2);
lean::inc(x_15);
lean::dec(x_14);
x_16 = l___private_init_lean_syntax_1__updateInfo___main(x_13, x_2);
lean::cnstr_set(x_7, 0, x_16);
x_17 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_17, 0, x_1);
x_18 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_18, 0, x_17);
lean::cnstr_set(x_18, 1, x_15);
return x_18;
}
else
{
obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25;
x_19 = lean::cnstr_get(x_7, 0);
lean::inc(x_19);
lean::dec(x_7);
x_20 = lean::cnstr_get(x_19, 2);
lean::inc(x_20);
x_21 = lean::cnstr_get(x_20, 2);
lean::inc(x_21);
lean::dec(x_20);
x_22 = l___private_init_lean_syntax_1__updateInfo___main(x_19, x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_22);
lean::cnstr_set(x_1, 0, x_23);
x_24 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_24, 0, x_1);
x_25 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_25, 0, x_24);
lean::cnstr_set(x_25, 1, x_21);
return x_25;
x_8 = !lean::is_exclusive(x_3);
if (x_8 == 0)
{
obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_9 = lean::cnstr_get(x_3, 0);
x_10 = lean::cnstr_get(x_9, 2);
lean::inc(x_10);
x_11 = lean::cnstr_get(x_10, 2);
lean::inc(x_11);
lean::dec(x_10);
x_12 = l___private_init_lean_syntax_1__updateInfo___main(x_9, x_2);
lean::cnstr_set(x_3, 0, x_12);
x_13 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_13, 0, x_1);
x_14 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_11);
return x_14;
}
else
{
obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21;
x_15 = lean::cnstr_get(x_3, 0);
lean::inc(x_15);
lean::dec(x_3);
x_16 = lean::cnstr_get(x_15, 2);
lean::inc(x_16);
x_17 = lean::cnstr_get(x_16, 2);
lean::inc(x_17);
lean::dec(x_16);
x_18 = l___private_init_lean_syntax_1__updateInfo___main(x_15, x_2);
x_19 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_19, 0, x_18);
lean::cnstr_set(x_1, 0, x_19);
x_20 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_20, 0, x_1);
x_21 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_21, 0, x_20);
lean::cnstr_set(x_21, 1, x_17);
return x_21;
}
}
else
{
obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35;
x_26 = lean::cnstr_get(x_1, 1);
lean::inc(x_26);
obj* x_22; 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;
x_22 = lean::cnstr_get(x_1, 1);
lean::inc(x_22);
lean::dec(x_1);
x_27 = lean::cnstr_get(x_7, 0);
lean::inc(x_27);
if (lean::is_exclusive(x_7)) {
lean::cnstr_release(x_7, 0);
x_28 = x_7;
x_23 = lean::cnstr_get(x_3, 0);
lean::inc(x_23);
if (lean::is_exclusive(x_3)) {
lean::cnstr_release(x_3, 0);
x_24 = x_3;
} else {
lean::dec_ref(x_7);
x_28 = lean::box(0);
lean::dec_ref(x_3);
x_24 = lean::box(0);
}
x_29 = lean::cnstr_get(x_27, 2);
lean::inc(x_29);
x_30 = lean::cnstr_get(x_29, 2);
lean::inc(x_30);
lean::dec(x_29);
x_31 = l___private_init_lean_syntax_1__updateInfo___main(x_27, x_2);
if (lean::is_scalar(x_28)) {
x_32 = lean::alloc_cnstr(1, 1, 0);
x_25 = lean::cnstr_get(x_23, 2);
lean::inc(x_25);
x_26 = lean::cnstr_get(x_25, 2);
lean::inc(x_26);
lean::dec(x_25);
x_27 = l___private_init_lean_syntax_1__updateInfo___main(x_23, x_2);
if (lean::is_scalar(x_24)) {
x_28 = lean::alloc_cnstr(1, 1, 0);
} else {
x_32 = x_28;
x_28 = x_24;
}
lean::cnstr_set(x_32, 0, x_31);
x_33 = lean::alloc_cnstr(2, 2, 0);
lean::cnstr_set(x_33, 0, x_32);
lean::cnstr_set(x_33, 1, x_26);
x_34 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_28, 0, x_27);
x_29 = lean::alloc_cnstr(2, 2, 0);
lean::cnstr_set(x_29, 0, x_28);
lean::cnstr_set(x_29, 1, x_22);
x_30 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_30, 0, x_29);
x_31 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_31, 0, x_30);
lean::cnstr_set(x_31, 1, x_26);
return x_31;
}
}
}
case 3:
{
obj* x_32;
x_32 = lean::cnstr_get(x_1, 0);
lean::inc(x_32);
if (lean::obj_tag(x_32) == 0)
{
obj* x_33; obj* x_34;
lean::dec(x_1);
x_33 = lean::box(0);
x_34 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_34, 0, x_33);
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_34);
lean::cnstr_set(x_35, 1, x_30);
return x_35;
lean::cnstr_set(x_34, 1, x_2);
return x_34;
}
else
{
uint8 x_35;
x_35 = !lean::is_exclusive(x_1);
if (x_35 == 0)
{
obj* x_36; uint8 x_37;
x_36 = lean::cnstr_get(x_1, 0);
lean::dec(x_36);
x_37 = !lean::is_exclusive(x_32);
if (x_37 == 0)
{
obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43;
x_38 = lean::cnstr_get(x_32, 0);
x_39 = lean::cnstr_get(x_38, 2);
lean::inc(x_39);
x_40 = lean::cnstr_get(x_39, 2);
lean::inc(x_40);
lean::dec(x_39);
x_41 = l___private_init_lean_syntax_1__updateInfo___main(x_38, x_2);
lean::cnstr_set(x_32, 0, x_41);
x_42 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_42, 0, x_1);
x_43 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_43, 0, x_42);
lean::cnstr_set(x_43, 1, x_40);
return x_43;
}
else
{
obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48; obj* x_49; obj* x_50;
x_44 = lean::cnstr_get(x_32, 0);
lean::inc(x_44);
lean::dec(x_32);
x_45 = lean::cnstr_get(x_44, 2);
lean::inc(x_45);
x_46 = lean::cnstr_get(x_45, 2);
lean::inc(x_46);
lean::dec(x_45);
x_47 = l___private_init_lean_syntax_1__updateInfo___main(x_44, x_2);
x_48 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_48, 0, x_47);
lean::cnstr_set(x_1, 0, x_48);
x_49 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_49, 0, x_1);
x_50 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_50, 0, x_49);
lean::cnstr_set(x_50, 1, x_46);
return x_50;
}
}
else
{
obj* x_51; 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_61; obj* x_62; obj* x_63;
x_51 = lean::cnstr_get(x_1, 1);
x_52 = lean::cnstr_get(x_1, 2);
x_53 = lean::cnstr_get(x_1, 3);
x_54 = lean::cnstr_get(x_1, 4);
lean::inc(x_54);
lean::inc(x_53);
lean::inc(x_52);
lean::inc(x_51);
lean::dec(x_1);
x_55 = lean::cnstr_get(x_32, 0);
lean::inc(x_55);
if (lean::is_exclusive(x_32)) {
lean::cnstr_release(x_32, 0);
x_56 = x_32;
} else {
lean::dec_ref(x_32);
x_56 = lean::box(0);
}
x_57 = lean::cnstr_get(x_55, 2);
lean::inc(x_57);
x_58 = lean::cnstr_get(x_57, 2);
lean::inc(x_58);
lean::dec(x_57);
x_59 = l___private_init_lean_syntax_1__updateInfo___main(x_55, x_2);
if (lean::is_scalar(x_56)) {
x_60 = lean::alloc_cnstr(1, 1, 0);
} else {
x_60 = x_56;
}
lean::cnstr_set(x_60, 0, x_59);
x_61 = lean::alloc_cnstr(3, 5, 0);
lean::cnstr_set(x_61, 0, x_60);
lean::cnstr_set(x_61, 1, x_51);
lean::cnstr_set(x_61, 2, x_52);
lean::cnstr_set(x_61, 3, x_53);
lean::cnstr_set(x_61, 4, x_54);
x_62 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_62, 0, x_61);
x_63 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_63, 0, x_62);
lean::cnstr_set(x_63, 1, x_58);
return x_63;
}
}
}
default:
{
obj* x_36;
x_36 = lean::cnstr_get(x_1, 0);
lean::inc(x_36);
if (lean::obj_tag(x_36) == 0)
{
obj* x_37; obj* x_38;
obj* x_64; obj* x_65;
lean::dec(x_1);
x_37 = lean::box(0);
x_38 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_38, 0, x_37);
lean::cnstr_set(x_38, 1, x_2);
return x_38;
}
else
{
uint8 x_39;
x_39 = !lean::is_exclusive(x_1);
if (x_39 == 0)
{
obj* x_40; uint8 x_41;
x_40 = lean::cnstr_get(x_1, 0);
lean::dec(x_40);
x_41 = !lean::is_exclusive(x_36);
if (x_41 == 0)
{
obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47;
x_42 = lean::cnstr_get(x_36, 0);
x_43 = lean::cnstr_get(x_42, 2);
lean::inc(x_43);
x_44 = lean::cnstr_get(x_43, 2);
lean::inc(x_44);
lean::dec(x_43);
x_45 = l___private_init_lean_syntax_1__updateInfo___main(x_42, x_2);
lean::cnstr_set(x_36, 0, x_45);
x_46 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_46, 0, x_1);
x_47 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_47, 0, x_46);
lean::cnstr_set(x_47, 1, x_44);
return x_47;
}
else
{
obj* x_48; obj* x_49; obj* x_50; obj* x_51; obj* x_52; obj* x_53; obj* x_54;
x_48 = lean::cnstr_get(x_36, 0);
lean::inc(x_48);
lean::dec(x_36);
x_49 = lean::cnstr_get(x_48, 2);
lean::inc(x_49);
x_50 = lean::cnstr_get(x_49, 2);
lean::inc(x_50);
lean::dec(x_49);
x_51 = l___private_init_lean_syntax_1__updateInfo___main(x_48, x_2);
x_52 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_52, 0, x_51);
lean::cnstr_set(x_1, 0, x_52);
x_53 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_53, 0, x_1);
x_54 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_54, 0, x_53);
lean::cnstr_set(x_54, 1, x_50);
return x_54;
}
}
else
{
obj* x_55; obj* x_56; obj* x_57; obj* x_58; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_63; obj* x_64; obj* x_65; obj* x_66; obj* x_67;
x_55 = lean::cnstr_get(x_1, 1);
x_56 = lean::cnstr_get(x_1, 2);
x_57 = lean::cnstr_get(x_1, 3);
x_58 = lean::cnstr_get(x_1, 4);
lean::inc(x_58);
lean::inc(x_57);
lean::inc(x_56);
lean::inc(x_55);
lean::dec(x_1);
x_59 = lean::cnstr_get(x_36, 0);
lean::inc(x_59);
if (lean::is_exclusive(x_36)) {
lean::cnstr_release(x_36, 0);
x_60 = x_36;
} else {
lean::dec_ref(x_36);
x_60 = lean::box(0);
}
x_61 = lean::cnstr_get(x_59, 2);
lean::inc(x_61);
x_62 = lean::cnstr_get(x_61, 2);
lean::inc(x_62);
lean::dec(x_61);
x_63 = l___private_init_lean_syntax_1__updateInfo___main(x_59, x_2);
if (lean::is_scalar(x_60)) {
x_64 = lean::alloc_cnstr(1, 1, 0);
} else {
x_64 = x_60;
}
lean::cnstr_set(x_64, 0, x_63);
x_65 = lean::alloc_cnstr(3, 5, 0);
x_64 = lean::box(0);
x_65 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_65, 0, x_64);
lean::cnstr_set(x_65, 1, x_55);
lean::cnstr_set(x_65, 2, x_56);
lean::cnstr_set(x_65, 3, x_57);
lean::cnstr_set(x_65, 4, x_58);
x_66 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_66, 0, x_65);
x_67 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_67, 0, x_66);
lean::cnstr_set(x_67, 1, x_62);
return x_67;
}
}
lean::cnstr_set(x_65, 1, x_2);
return x_65;
}
}
}
@ -4455,38 +4433,32 @@ obj* l_Lean_Syntax_isIdOrAtom___main(obj* x_1) {
_start:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_2;
x_2 = lean::box(0);
return x_2;
}
case 1:
{
obj* x_3;
x_3 = lean::box(0);
return x_3;
}
case 2:
{
obj* x_4; obj* x_5;
obj* x_2; obj* x_3;
x_2 = lean::cnstr_get(x_1, 1);
lean::inc(x_2);
x_3 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_3, 0, x_2);
return x_3;
}
case 3:
{
obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_4 = lean::cnstr_get(x_1, 1);
lean::inc(x_4);
x_5 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_5, 0, x_4);
return x_5;
x_5 = lean::cnstr_get(x_4, 0);
x_6 = lean::cnstr_get(x_4, 1);
x_7 = lean::cnstr_get(x_4, 2);
x_8 = lean::string_utf8_extract(x_5, x_6, x_7);
x_9 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_9, 0, x_8);
return x_9;
}
default:
{
obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_6 = lean::cnstr_get(x_1, 1);
x_7 = lean::cnstr_get(x_6, 0);
x_8 = lean::cnstr_get(x_6, 1);
x_9 = lean::cnstr_get(x_6, 2);
x_10 = lean::string_utf8_extract(x_7, x_8, x_9);
x_11 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_11, 0, x_10);
return x_11;
obj* x_10;
x_10 = lean::box(0);
return x_10;
}
}
}