chore(boot): update

This commit is contained in:
Leonardo de Moura 2019-03-06 11:07:02 -08:00
parent 6d7411cc07
commit 801f55faf0
19 changed files with 20538 additions and 9291 deletions

View file

@ -34,8 +34,8 @@ obj* l_coroutine_monad___lambda__6(obj*, obj*);
obj* l_coroutine_resume___boxed(obj*, obj*, obj*);
obj* l_coroutine_resume___rarg(obj*, obj*);
obj* l_coroutine_monad__reader___boxed(obj*, obj*);
obj* l_function_const___rarg(obj*, obj*);
obj* l_coroutine_read___rarg(obj*);
obj* l_function_const___rarg___boxed(obj*, obj*);
obj* l_coroutine_monad___lambda__7(obj*, obj*, obj*, obj*);
obj* l_coroutine_yield___rarg___lambda__1___boxed(obj*);
obj* l_coroutine_monad___lambda__5___boxed(obj*, obj*, obj*);
@ -681,7 +681,7 @@ obj* l_coroutine_monad___lambda__2(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6; obj* x_7;
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_function_const___rarg), 2, 1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_function_const___rarg___boxed), 2, 1);
lean::closure_set(x_4, 0, x_2);
x_5 = l_coroutine_monad___lambda__1___closed__1;
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_function_comp___rarg), 3, 2);

View file

@ -39,7 +39,6 @@ obj* l_option_alternative___lambda__1___boxed(obj*);
obj* l_option_to__monad___boxed(obj*, obj*);
obj* l_option_to__bool___rarg___boxed(obj*);
obj* l_option_monad___lambda__4(obj*, obj*, obj*, obj*);
obj* l_function_const___rarg___boxed(obj*, obj*);
uint8 l_option_is__some___rarg(obj*);
obj* l_option_orelse___main___rarg(obj*, obj*);
obj* l_option_get___main___rarg___boxed(obj*, obj*);
@ -726,12 +725,32 @@ return x_2;
obj* l_option_monad___lambda__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5;
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_function_const___rarg___boxed), 2, 1);
lean::closure_set(x_4, 0, x_2);
x_5 = l_option_map___rarg(x_4, x_3);
if (lean::obj_tag(x_3) == 0)
{
obj* x_5;
lean::dec(x_2);
x_5 = lean::box(0);
return x_5;
}
else
{
obj* x_6; obj* x_7;
if (lean::is_exclusive(x_3)) {
lean::cnstr_release(x_3, 0);
x_6 = x_3;
} else {
lean::dec(x_3);
x_6 = lean::box(0);
}
if (lean::is_scalar(x_6)) {
x_7 = lean::alloc_cnstr(1, 1, 0);
} else {
x_7 = x_6;
}
lean::cnstr_set(x_7, 0, x_2);
return x_7;
}
}
}
obj* l_option_monad___lambda__2(obj* x_0, obj* x_1) {
_start:
@ -754,12 +773,36 @@ return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_2, 0);
lean::inc(x_6);
if (lean::obj_tag(x_3) == 0)
{
obj* x_7;
lean::dec(x_2);
x_9 = l_option_map___rarg(x_6, x_3);
return x_9;
x_7 = lean::box(0);
return x_7;
}
else
{
obj* x_8; obj* x_11; obj* x_13; obj* x_14; obj* x_15;
x_8 = lean::cnstr_get(x_2, 0);
lean::inc(x_8);
lean::dec(x_2);
x_11 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_13 = x_3;
} else {
lean::inc(x_11);
lean::dec(x_3);
x_13 = lean::box(0);
}
x_14 = lean::apply_1(x_8, x_11);
if (lean::is_scalar(x_13)) {
x_15 = lean::alloc_cnstr(1, 1, 0);
} else {
x_15 = x_13;
}
lean::cnstr_set(x_15, 0, x_14);
return x_15;
}
}
}
}

View file

@ -26,6 +26,7 @@ obj* l_io_println___at_io_println_x_27___spec__1(obj*, obj*);
obj* l_coroutine__io_monad___boxed(obj*, obj*);
obj* l_from__eio(obj*, obj*);
obj* l_io_print___boxed(obj*, obj*);
obj* l_id___boxed(obj*);
obj* l_io_fs_handle_read__to__end___boxed(obj*, obj*);
obj* l_io_prim_lift__eio___rarg___lambda__1(obj*, obj*, obj*, obj*);
obj* l_io;
@ -50,7 +51,6 @@ obj* l_io_fs_handle_close___boxed(obj*, obj*);
obj* l_coroutine__io_resume___rarg(obj*, obj*, obj*);
obj* l_io_prim_iterate___rarg(obj*, obj*, obj*);
obj* l_io_fs_handle_get__line___at_io_fs_handle_read__to__end___spec__2___boxed(obj*, obj*);
obj* l_id_monad___lambda__1(obj*, obj*, obj*, obj*);
obj* l_io_has__eval___rarg(obj*, obj*, obj*);
obj* l_eio__unit_has__eval___boxed(obj*);
extern "C" obj* lean_io_prim_put_str(obj*, obj*);
@ -72,12 +72,12 @@ obj* l_io_fs_handle_mk___boxed(obj*, obj*);
obj* l_io_prim_iterate__eio___at_io_fs_handle_read__to__end___spec__3___boxed(obj*, obj*);
obj* l_io_fs_handle_is__eof___at_io_fs_handle_read__to__end___spec__1___boxed(obj*, obj*);
obj* l_coroutine__io_monad___lambda__5___boxed(obj*, obj*, obj*, obj*);
obj* l_function_const___rarg(obj*, obj*);
obj* l___private_init_io_12__put__str(obj*, obj*);
obj* l_io_println_x_27___boxed(obj*, obj*);
obj* l_coroutine__io_monad___lambda__1___boxed(obj*, obj*, obj*, obj*);
obj* l_coroutine__io_yield___boxed(obj*, obj*);
obj* l_coroutine__io_monad__reader___rarg(obj*, obj*);
obj* l_function_const___rarg___boxed(obj*, obj*);
obj* l_io_fs_handle_get__line___at_io_fs_handle_read__to__end___spec__2(obj*, obj*);
obj* l_io_println___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_coroutine__io_monad___lambda__8(obj*, obj*, obj*, obj*);
@ -103,7 +103,6 @@ obj* l_coroutine__io_mk__st___rarg(obj*);
obj* l_io_prim_iterate___main___at_io_prim_iterate__eio___spec__1(obj*, obj*, obj*);
obj* l_io_fs_read__file___rarg___lambda__2(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_io_fs_handle_read__to__end(obj*, obj*);
obj* l_id_bind(obj*, obj*);
obj* l_io_prim_put__str___boxed(obj*, obj*);
obj* l_coroutine__io_monad___lambda__7(obj*, obj*, obj*, obj*);
obj* l_io_prim_iterate___main___at_io_prim_iterate__eio___spec__1___boxed(obj*, obj*, obj*);
@ -127,7 +126,6 @@ obj* l_io_prim_iterate___boxed(obj*, obj*);
obj* l_coroutine__io_yield___rarg___lambda__1___boxed(obj*, obj*);
obj* l_io_prim_iterate__eio___rarg(obj*, obj*, obj*);
obj* l_has__repr_has__eval(obj*);
obj* l_id(obj*);
obj* l_io_println___rarg___closed__1;
obj* l_io_print(obj*, obj*);
obj* l_io_fs_handle_is__eof(obj*, obj*);
@ -138,13 +136,13 @@ obj* l_coroutine__io_monad__reader(obj*, obj*);
obj* l_coroutine__io_monad___lambda__1(obj*, obj*, obj*, obj*);
obj* l_io_fs_handle_close___rarg(obj*, obj*, obj*, obj*, obj*);
obj* l_coroutine__io_pure___rarg(obj*, obj*, obj*);
obj* l_id_monad___lambda__3(obj*, obj*, obj*, obj*);
obj* l_coroutine__io_yield___rarg___lambda__1(obj*, obj*);
extern "C" obj* lean_io_prim_handle_flush(obj*, obj*);
obj* l_io_fs_read__file___rarg___lambda__1(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_io_monad;
obj* l_coroutine__io_monad__io___boxed(obj*, obj*, obj*);
obj* l_io_println___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_id_monad___lambda__1___boxed(obj*, obj*, obj*, obj*);
obj* l_coroutine__io_read(obj*, obj*);
obj* l_state__t_monad___rarg(obj*);
obj* l_coroutine__io_monad__coroutine(obj*, obj*);
@ -181,6 +179,7 @@ obj* l_coroutine__io_bind___main(obj*, obj*, obj*, obj*);
obj* l_coroutine__io_resume___main___rarg(obj*, obj*, obj*);
extern obj* l_coroutine_yield___rarg___lambda__1___closed__1;
obj* l_io_prim_handle_close___boxed(obj*, obj*);
obj* l_id_bind___boxed(obj*, obj*);
obj* l_coroutine__io_yield___rarg___boxed(obj*, obj*, obj*);
obj* l_io_println(obj*, obj*);
obj* l_coroutine__io_monad__io___rarg(obj*, obj*, obj*);
@ -190,7 +189,6 @@ obj* l_io_print___at_io_println_x_27___spec__2(obj*, obj*);
obj* l_coroutine__io_bind___boxed(obj*, obj*, obj*, obj*);
obj* l_io_fs_handle_mk___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
extern "C" obj* lean_io_timeit(obj*, obj*, obj*, obj*);
obj* l_id_monad___lambda__2(obj*, obj*, obj*, obj*);
obj* l_io_fs_handle_mk___at_io_fs_read__file___spec__1___rarg(obj*, obj*, obj*, obj*, obj*, uint8, uint8);
obj* l_coroutine__io_pipe___rarg(obj*, obj*);
obj* l_io_fs_handle_close(obj*, obj*);
@ -204,10 +202,12 @@ extern "C" obj* lean_io_prim_handle_is_eof(obj*, obj*);
obj* l_eio_has__eval___boxed(obj*, obj*);
obj* l_eio_has__eval___rarg___closed__1;
obj* l_reader__t_monad___rarg___lambda__3___boxed(obj*, obj*, obj*);
obj* l_id_monad___lambda__2___boxed(obj*, obj*, obj*, obj*);
obj* l_string_has__lift(obj*);
obj* l_io_fs_handle_get__line(obj*, obj*);
obj* l_io_fs_handle_mk___at_io_fs_read__file___spec__1___boxed(obj*, obj*);
obj* l_coroutine__io_monad__io(obj*, obj*, obj*);
obj* l_id_monad___lambda__3___boxed(obj*, obj*, obj*, obj*);
obj* l_io_prim_iterate__eio___at_io_fs_handle_read__to__end___spec__3(obj*, obj*);
obj* l_coroutine__io_pure___boxed(obj*, obj*, obj*);
obj* l_coroutine__io_monad___lambda__7___boxed(obj*, obj*, obj*, obj*);
@ -219,22 +219,22 @@ obj* _init_l_io_monad() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -2663,7 +2663,7 @@ obj* l_coroutine__io_monad___lambda__2(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6; obj* x_7;
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_function_const___rarg), 2, 1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_function_const___rarg___boxed), 2, 1);
lean::closure_set(x_4, 0, x_2);
x_5 = l_coroutine__io_monad___lambda__1___closed__1;
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_function_comp___rarg), 3, 2);

File diff suppressed because it is too large Load diff

View file

@ -30,6 +30,7 @@ obj* l_lean_expander_coe__name__ident(obj*);
obj* l_lean_expander_variable_transform___boxed(obj*, obj*);
obj* l_lean_expander_expand__bracketed__binder(obj*, obj*);
obj* l_lean_expander_sorry_transform___closed__1;
obj* l_id___boxed(obj*);
obj* l_lean_expander_pi_transform___lambda__1(obj*, obj*, obj*);
extern obj* l_lean_parser_term_binder__ident_has__view;
obj* l_lean_expander_if_transform___closed__1;
@ -65,7 +66,6 @@ extern obj* l_lean_parser_command_variable;
extern obj* l_lean_parser_term_match_has__view;
obj* l_lean_expander_mixfix_transform___closed__1;
obj* l_lean_expander_coe__binders__ext___rarg(obj*, obj*);
obj* l_id_monad___lambda__1(obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_term_if_has__view;
extern obj* l_lean_parser_term_bracketed__binders;
obj* l_lean_parser_string__lit_has__view_x_27___lambda__1(obj*);
@ -88,7 +88,6 @@ extern "C" obj* lean_name_mk_string(obj*, obj*);
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__6(obj*, obj*);
obj* l_lean_expander_binding__annotation__update_has__view;
obj* l_coe___at_lean_expander_coe__binders__ext___spec__1(obj*);
obj* l_lean_expander_mixfix__to__notation__spec___lambda__2___boxed(obj*);
extern obj* l_lean_parser_command_mixfix_has__view;
obj* l_lean_expander_intro__rule_transform(obj*, obj*);
extern obj* l_lean_parser_command_universes_has__view;
@ -104,7 +103,6 @@ obj* l_lean_expander_transform__m_monad;
obj* l_lean_expander_expand__bracketed__binder___main___closed__4;
obj* l_list_mfoldr___main___at_lean_expander_expand__binders___spec__6___closed__3;
obj* l_lean_expander_error___at___private_init_lean_expander_1__pop__stx__arg___spec__1___rarg___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_expander_mixfix__to__notation__spec___lambda__1___closed__1;
extern obj* l_lean_parser_command_variable_has__view;
obj* l_lean_expander_arrow_transform___closed__1;
obj* l_lean_expander_error___at___private_init_lean_expander_1__pop__stx__arg___spec__1___boxed(obj*);
@ -126,7 +124,6 @@ extern obj* l_lean_parser_ident__univs;
obj* l_list_assoc___main___at_lean_expander_mk__notation__transformer___spec__7(obj*, obj*);
obj* l_list_foldr___main___at_lean_expander_expand__binders___spec__2(obj*, obj*, obj*, obj*);
obj* l_list_map___main___at_lean_expander_let_transform___spec__1(obj*);
obj* l_lean_expander_mixfix__to__notation__spec___lambda__2(obj*);
extern obj* l_lean_parser_term_sorry;
obj* l___private_init_lean_expander_1__pop__stx__arg(obj*, obj*);
obj* l_lean_expander_reserve__mixfix_transform___closed__1;
@ -155,7 +152,6 @@ obj* l_lean_expander_error___at_lean_expander_mk__notation__transformer___spec__
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__15___boxed(obj*, obj*, obj*);
obj* l_list_join___main___rarg(obj*);
obj* l_rbnode_find___main___at_lean_parser_token__map_insert___spec__2___rarg(obj*, obj*);
obj* l_id_bind(obj*, obj*);
obj* l_coe___at_lean_expander_mk__notation__transformer___spec__2(obj*);
obj* l_list_mmap___main___at_lean_expander_variables_transform___spec__1___closed__1;
obj* l_lean_parser_syntax_get__pos(obj*);
@ -196,7 +192,6 @@ uint8 nat_dec_eq(obj*, obj*);
}
extern obj* l_lean_parser_term__parser__m_lean_parser_monad__parsec;
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__3___closed__1;
obj* l_id(obj*);
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__2(uint8, obj*, obj*);
obj* l_lean_expander_error___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_expander_binding__annotation__update;
@ -228,6 +223,7 @@ obj* l_lean_expander_declaration_transform(obj*, obj*);
obj* l_lean_expander_error___at___private_init_lean_expander_2__expand__core___main___spec__1___rarg(obj*, obj*, obj*, obj*);
obj* l_lean_expander_arrow_transform___closed__2;
obj* l_lean_expander_no__expansion(obj*);
obj* l_lean_expander_binding__annotation__update_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_syntax_mk__node(obj*, obj*);
obj* l_lean_expander_declaration_transform___closed__2;
obj* l_rbnode_balance2___main___rarg(obj*, obj*);
@ -245,7 +241,6 @@ obj* l_lean_expander_error___at___private_init_lean_expander_1__pop__stx__arg___
obj* l_list_mmap___main___at_lean_expander_bracketed__binders_transform___spec__1(obj*, obj*);
obj* l_list_foldr1__opt___main___at_lean_expander_paren_transform___spec__2(obj*, obj*);
obj* l_list_map___main___at_lean_expander_mk__notation__transformer___spec__3(obj*);
obj* l_id_monad___lambda__3(obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_ident__univs_has__view;
obj* l_list_foldr___main___at_lean_expander_expand__binders___spec__2___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_expander_subtype_transform___boxed(obj*, obj*);
@ -255,6 +250,7 @@ obj* l_lean_expander_mk__simple__binder___closed__6;
obj* l_lean_parser_try__view___at_lean_expander_mk__notation__transformer___spec__6(obj*);
extern obj* l_lean_parser_term_assume_has__view;
extern obj* l_lean_parser_command_intro__rule;
obj* l_id_monad___lambda__1___boxed(obj*, obj*, obj*, obj*);
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__1(obj*);
obj* l_lean_expander_binder__ident__to__ident___main___closed__1;
obj* l_lean_expander_transform__m_monad__except;
@ -280,6 +276,7 @@ obj* l_lean_expander_coe__binders__ext__binders(obj*);
obj* l_lean_expander_mixfix_transform(obj*, obj*);
obj* l_lean_parser_symbol__core___at_lean_parser_command_notation__spec_precedence__term_parser_lean_parser_has__tokens___spec__1___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_expander_expand__bracketed__binder___main___closed__1;
obj* l_lean_expander_mixfix__to__notation__spec___closed__7;
obj* l_lean_expander_paren_transform___closed__1;
obj* l_rbnode_balance1___main___rarg(obj*, obj*);
obj* l_lean_expander_coe__ident__ident__univs(obj*);
@ -320,6 +317,7 @@ obj* l_lean_expander_mk__simple__binder___closed__1;
extern obj* l_lean_parser_command_notation__spec_precedence_has__view;
obj* l_lean_expander_variable_transform(obj*, obj*);
obj* l_lean_expander_expand__bracketed__binder___main___closed__5;
obj* l_id_bind___boxed(obj*, obj*);
obj* l_lean_expander_expand__binders(obj*, obj*, obj*, obj*);
obj* l_lean_expander_mk__scope___boxed(obj*, obj*);
obj* l_lean_expander_mk__simple__binder___closed__5;
@ -334,7 +332,6 @@ extern obj* l_lean_parser_term_lambda;
extern obj* l_lean_parser_term_arrow;
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__2___boxed(obj*, obj*, obj*);
obj* l_lean_expander_get__opt__type(obj*);
obj* l_id_monad___lambda__2(obj*, obj*, obj*, obj*);
obj* l_lean_expander_reserve__mixfix_transform(obj*, obj*);
obj* l_list_foldr1___main___at_lean_expander_paren_transform___spec__3___closed__1;
obj* l_lean_expander_level_leading_transform(obj*, obj*);
@ -354,17 +351,16 @@ obj* l_lean_expander_mixfix__to__notation__spec___closed__4;
obj* l_lean_parser_combinators_node___at_lean_parser_command_notation__spec_precedence__lit_parser___spec__1(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_expander_coe__binder__bracketed__binder(obj*);
obj* l_list_foldl___main___at_lean_expander_builtin__transformers___spec__5(obj*, obj*);
obj* l_option_map___rarg(obj*, obj*);
obj* l_lean_expander_no__expansion___closed__1;
obj* l_list_mfoldr___main___at_lean_expander_expand__binders___spec__6(obj*, obj*, obj*, obj*);
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__21(uint8, obj*, obj*, obj*);
obj* l_list_mfoldr___main___at_lean_expander_expand__binders___spec__6___closed__4;
extern obj* l_lean_parser_term__parser__m_monad__except;
obj* l_lean_expander_mixfix__to__notation__spec___lambda__1(obj*);
obj* l_list_foldl___main___at_lean_parser_term_mk__app___spec__1(obj*, obj*);
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__6___boxed(obj*, obj*);
obj* l_lean_parser_substring_of__string(obj*);
obj* l_lean_expander_mk__simple__binder___closed__3;
obj* l_id_monad___lambda__2___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_expander_let_transform(obj*, obj*);
extern obj* l_lean_parser_term_let;
obj* l_lean_expander_expand__bracketed__binder___main___closed__7;
@ -373,13 +369,13 @@ obj* l_list_mmap___main___at___private_init_lean_expander_2__expand__core___main
extern obj* l_lean_parser_command_notation_has__view;
obj* l_list_map___main___at___private_init_lean_expander_2__expand__core___main___spec__4(obj*, obj*);
obj* l_list_mmap___main___at_lean_expander_variables_transform___spec__1(obj*, obj*);
obj* l_id_monad___lambda__3___boxed(obj*, obj*, obj*, obj*);
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__4___boxed(obj*, obj*, obj*);
obj* l_lean_expander_constant_transform(obj*, obj*);
obj* l_lean_expander_binder__ident__to__ident___boxed(obj*);
obj* l_list_map___main___at_lean_expander_expand__bracketed__binder___main___spec__11(obj*, obj*, obj*);
obj* l_rbnode_set__black___main___rarg(obj*);
extern obj* l_lean_parser_term__parser__m_alternative;
extern obj* l_lean_parser_raw_view___rarg___lambda__3___closed__1;
obj* l_lean_expander_transformer__config__coe__frontend__config(obj* x_0) {
_start:
{
@ -400,22 +396,22 @@ obj* _init_l_lean_expander_transform__m_monad() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -428,22 +424,22 @@ obj* _init_l_lean_expander_transform__m_monad__reader() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -457,22 +453,22 @@ obj* _init_l_lean_expander_transform__m_monad__except() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -2842,43 +2838,6 @@ lean::dec(x_1);
return x_2;
}
}
obj* _init_l_lean_expander_mixfix__to__notation__spec___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4;
x_0 = lean::box(0);
x_1 = lean::mk_string(":");
x_2 = l_string_trim(x_1);
x_3 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_3, 0, x_0);
lean::cnstr_set(x_3, 1, x_2);
x_4 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_4, 0, x_3);
return x_4;
}
}
obj* l_lean_expander_mixfix__to__notation__spec___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_3;
x_1 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_1, 0, x_0);
x_2 = l_lean_expander_mixfix__to__notation__spec___lambda__1___closed__1;
x_3 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_3, 0, x_2);
lean::cnstr_set(x_3, 1, x_1);
return x_3;
}
}
obj* l_lean_expander_mixfix__to__notation__spec___lambda__2(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::cnstr_get(x_0, 1);
lean::inc(x_1);
return x_1;
}
}
obj* _init_l_lean_expander_mixfix__to__notation__spec___closed__1() {
_start:
{
@ -2930,22 +2889,81 @@ return x_11;
obj* _init_l_lean_expander_mixfix__to__notation__spec___closed__3() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_expander_mixfix__to__notation__spec___lambda__2___boxed), 1, 0);
return x_0;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_7; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::box(0);
x_3 = lean::mk_string("b");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string(".");
lean::inc(x_4);
x_7 = l_lean_name_to__string__with__sep___main(x_5, x_4);
lean::dec(x_5);
x_9 = l_lean_parser_substring_of__string(x_7);
x_10 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_10, 0, x_0);
lean::cnstr_set(x_10, 1, x_9);
lean::cnstr_set(x_10, 2, x_4);
lean::cnstr_set(x_10, 3, x_1);
lean::cnstr_set(x_10, 4, x_1);
x_11 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_11, 0, x_10);
lean::cnstr_set(x_11, 1, x_0);
x_12 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_12, 0, x_11);
x_13 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_13, 0, x_12);
return x_13;
}
}
obj* _init_l_lean_expander_mixfix__to__notation__spec___closed__4() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_expander_mixfix__to__notation__spec___lambda__1), 1, 0);
return x_0;
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4;
x_0 = lean::box(0);
x_1 = lean::mk_string(":");
x_2 = l_string_trim(x_1);
x_3 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_3, 0, x_0);
lean::cnstr_set(x_3, 1, x_2);
x_4 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_4, 0, x_3);
return x_4;
}
}
obj* _init_l_lean_expander_mixfix__to__notation__spec___closed__5() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_6; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::mk_string("b");
x_3 = lean_name_mk_string(x_1, x_2);
x_4 = lean::mk_string(".");
lean::inc(x_3);
x_6 = l_lean_name_to__string__with__sep___main(x_4, x_3);
lean::dec(x_4);
x_8 = l_lean_parser_substring_of__string(x_6);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_10, 0, x_0);
lean::cnstr_set(x_10, 1, x_8);
lean::cnstr_set(x_10, 2, x_3);
lean::cnstr_set(x_10, 3, x_9);
lean::cnstr_set(x_10, 4, x_9);
x_11 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_11, 0, x_10);
lean::cnstr_set(x_11, 1, x_0);
x_12 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_12, 0, x_11);
x_13 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_13, 0, x_12);
return x_13;
}
}
obj* _init_l_lean_expander_mixfix__to__notation__spec___closed__6() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_6; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::box(0);
x_1 = lean::box(0);
@ -2966,7 +2984,7 @@ lean::cnstr_set(x_10, 4, x_9);
return x_10;
}
}
obj* _init_l_lean_expander_mixfix__to__notation__spec___closed__6() {
obj* _init_l_lean_expander_mixfix__to__notation__spec___closed__7() {
_start:
{
obj* x_0;
@ -2983,130 +3001,170 @@ lean::inc(x_5);
switch (lean::obj_tag(x_0)) {
case 0:
{
obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23;
obj* x_10; obj* x_11;
lean::dec(x_2);
x_10 = lean::box(0);
x_11 = lean::box(0);
x_12 = l_lean_expander_mixfix__to__notation__spec___closed__3;
x_13 = l_option_map___rarg(x_12, x_5);
x_14 = l_lean_expander_mixfix__to__notation__spec___closed__4;
x_15 = l_option_map___rarg(x_14, x_13);
x_16 = l_lean_expander_mixfix__to__notation__spec___closed__5;
x_17 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_15);
x_18 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_18, 0, x_17);
x_19 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_19, 0, x_18);
x_20 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_20, 0, x_1);
lean::cnstr_set(x_20, 1, x_19);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_20);
lean::cnstr_set(x_21, 1, x_11);
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_10);
lean::cnstr_set(x_22, 1, x_21);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_22);
return x_23;
if (lean::obj_tag(x_5) == 0)
{
obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
x_12 = l_lean_expander_mixfix__to__notation__spec___closed__5;
x_13 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_13, 0, x_1);
lean::cnstr_set(x_13, 1, x_12);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_11);
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_10);
lean::cnstr_set(x_15, 1, x_14);
x_16 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_16, 0, x_15);
return x_16;
}
else
{
obj* x_17; obj* x_19; obj* x_20; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34;
x_17 = lean::cnstr_get(x_5, 0);
if (lean::is_exclusive(x_5)) {
x_19 = x_5;
} else {
lean::inc(x_17);
lean::dec(x_5);
x_19 = lean::box(0);
}
x_20 = lean::cnstr_get(x_17, 1);
lean::inc(x_20);
lean::dec(x_17);
x_23 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_24 = l_lean_expander_mixfix__to__notation__spec___closed__4;
x_25 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_25, 0, x_24);
lean::cnstr_set(x_25, 1, x_23);
if (lean::is_scalar(x_19)) {
x_26 = lean::alloc_cnstr(1, 1, 0);
} else {
x_26 = x_19;
}
lean::cnstr_set(x_26, 0, x_25);
x_27 = l_lean_expander_mixfix__to__notation__spec___closed__6;
x_28 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_28, 0, x_27);
lean::cnstr_set(x_28, 1, x_26);
x_29 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_29, 0, x_28);
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_1);
lean::cnstr_set(x_31, 1, x_30);
x_32 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_32, 0, x_31);
lean::cnstr_set(x_32, 1, x_11);
x_33 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_33, 0, x_10);
lean::cnstr_set(x_33, 1, x_32);
x_34 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_34, 0, x_33);
return x_34;
}
}
case 3:
{
if (lean::obj_tag(x_5) == 0)
{
obj* x_25;
obj* x_36;
lean::dec(x_2);
x_25 = lean::box(0);
x_3 = x_25;
x_36 = lean::box(0);
x_3 = x_36;
goto lbl_4;
}
else
{
obj* x_26; obj* x_28; obj* x_29; obj* x_31; obj* x_32; uint8 x_33;
x_26 = lean::cnstr_get(x_5, 0);
obj* x_37; obj* x_39; obj* x_40; obj* x_42; obj* x_43; uint8 x_44;
x_37 = lean::cnstr_get(x_5, 0);
if (lean::is_exclusive(x_5)) {
lean::cnstr_set(x_5, 0, lean::box(0));
x_28 = x_5;
x_39 = x_5;
} else {
lean::inc(x_26);
lean::inc(x_37);
lean::dec(x_5);
x_28 = lean::box(0);
x_39 = lean::box(0);
}
x_29 = lean::cnstr_get(x_26, 1);
lean::inc(x_29);
x_31 = l_lean_parser_command_notation__spec_precedence__term_view_to__nat___main(x_29);
x_32 = lean::mk_nat_obj(0u);
x_33 = lean::nat_dec_eq(x_31, x_32);
if (x_33 == 0)
x_40 = lean::cnstr_get(x_37, 1);
lean::inc(x_40);
x_42 = l_lean_parser_command_notation__spec_precedence__term_view_to__nat___main(x_40);
x_43 = lean::mk_nat_obj(0u);
x_44 = lean::nat_dec_eq(x_42, x_43);
if (x_44 == 0)
{
obj* x_36; obj* x_37; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45;
obj* x_47; obj* x_48; obj* x_50; obj* x_51; obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56;
lean::dec(x_2);
lean::dec(x_26);
x_36 = lean::mk_nat_obj(1u);
x_37 = lean::nat_sub(x_31, x_36);
lean::dec(x_31);
x_39 = l_lean_parser_number_view_of__nat(x_37);
x_40 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_40, 0, x_39);
x_41 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_41, 0, x_40);
x_42 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_42, 0, x_41);
x_43 = l_lean_expander_mixfix__to__notation__spec___lambda__1___closed__1;
x_44 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_44, 0, x_43);
lean::cnstr_set(x_44, 1, x_42);
if (lean::is_scalar(x_28)) {
x_45 = lean::alloc_cnstr(1, 1, 0);
lean::dec(x_37);
x_47 = lean::mk_nat_obj(1u);
x_48 = lean::nat_sub(x_42, x_47);
lean::dec(x_42);
x_50 = l_lean_parser_number_view_of__nat(x_48);
x_51 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_51, 0, x_50);
x_52 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_52, 0, x_51);
x_53 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_53, 0, x_52);
x_54 = l_lean_expander_mixfix__to__notation__spec___closed__4;
x_55 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_55, 0, x_54);
lean::cnstr_set(x_55, 1, x_53);
if (lean::is_scalar(x_39)) {
x_56 = lean::alloc_cnstr(1, 1, 0);
} else {
x_45 = x_28;
x_56 = x_39;
}
lean::cnstr_set(x_45, 0, x_44);
x_3 = x_45;
lean::cnstr_set(x_56, 0, x_55);
x_3 = x_56;
goto lbl_4;
}
else
{
obj* x_48; obj* x_49; obj* x_52; obj* x_53; obj* x_54;
lean::dec(x_28);
lean::dec(x_31);
x_48 = l_lean_parser_command_notation__spec_precedence_has__view;
x_49 = lean::cnstr_get(x_48, 1);
lean::inc(x_49);
lean::dec(x_48);
x_52 = lean::apply_1(x_49, x_26);
x_53 = l_lean_expander_mixfix__to__notation__spec___closed__6;
x_54 = l_lean_expander_error___at_lean_expander_mk__notation__transformer___spec__1___rarg(x_52, x_53, x_2);
lean::dec(x_52);
if (lean::obj_tag(x_54) == 0)
obj* x_59; obj* x_60; obj* x_63; obj* x_64; obj* x_65;
lean::dec(x_42);
lean::dec(x_39);
x_59 = l_lean_parser_command_notation__spec_precedence_has__view;
x_60 = lean::cnstr_get(x_59, 1);
lean::inc(x_60);
lean::dec(x_59);
x_63 = lean::apply_1(x_60, x_37);
x_64 = l_lean_expander_mixfix__to__notation__spec___closed__7;
x_65 = l_lean_expander_error___at_lean_expander_mk__notation__transformer___spec__1___rarg(x_63, x_64, x_2);
lean::dec(x_63);
if (lean::obj_tag(x_65) == 0)
{
obj* x_57; obj* x_59; obj* x_60;
obj* x_68; obj* x_70; obj* x_71;
lean::dec(x_1);
x_57 = lean::cnstr_get(x_54, 0);
if (lean::is_exclusive(x_54)) {
x_59 = x_54;
x_68 = lean::cnstr_get(x_65, 0);
if (lean::is_exclusive(x_65)) {
x_70 = x_65;
} else {
lean::inc(x_57);
lean::dec(x_54);
x_59 = lean::box(0);
lean::inc(x_68);
lean::dec(x_65);
x_70 = lean::box(0);
}
if (lean::is_scalar(x_59)) {
x_60 = lean::alloc_cnstr(0, 1, 0);
if (lean::is_scalar(x_70)) {
x_71 = lean::alloc_cnstr(0, 1, 0);
} else {
x_60 = x_59;
x_71 = x_70;
}
lean::cnstr_set(x_60, 0, x_57);
return x_60;
lean::cnstr_set(x_71, 0, x_68);
return x_71;
}
else
{
obj* x_61;
x_61 = lean::cnstr_get(x_54, 0);
lean::inc(x_61);
lean::dec(x_54);
x_3 = x_61;
obj* x_72;
x_72 = lean::cnstr_get(x_65, 0);
lean::inc(x_72);
lean::dec(x_65);
x_3 = x_72;
goto lbl_4;
}
}
@ -3114,100 +3172,132 @@ goto lbl_4;
}
case 4:
{
obj* x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_71; obj* x_72;
obj* x_77; obj* x_78; obj* x_79; obj* x_80; obj* x_81; obj* x_82; obj* x_83;
lean::dec(x_5);
lean::dec(x_2);
x_66 = lean::box(0);
x_67 = lean::box(0);
x_68 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_68, 0, x_1);
lean::cnstr_set(x_68, 1, x_66);
x_69 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_69, 0, x_68);
lean::cnstr_set(x_69, 1, x_67);
x_70 = l_lean_expander_mixfix__to__notation__spec___closed__2;
x_71 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_71, 0, x_70);
lean::cnstr_set(x_71, 1, x_69);
x_72 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_72, 0, x_71);
return x_72;
x_77 = lean::box(0);
x_78 = lean::box(0);
x_79 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_79, 0, x_1);
lean::cnstr_set(x_79, 1, x_77);
x_80 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_80, 0, x_79);
lean::cnstr_set(x_80, 1, x_78);
x_81 = l_lean_expander_mixfix__to__notation__spec___closed__2;
x_82 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_82, 0, x_81);
lean::cnstr_set(x_82, 1, x_80);
x_83 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_83, 0, x_82);
return x_83;
}
default:
{
obj* x_74;
obj* x_85;
lean::dec(x_2);
x_74 = lean::box(0);
x_7 = x_74;
x_85 = lean::box(0);
x_7 = x_85;
goto lbl_8;
}
}
lbl_4:
{
obj* x_75; obj* x_76; obj* x_77; obj* x_78; obj* x_79; obj* x_80; obj* x_81; obj* x_82; obj* x_83; obj* x_84;
x_75 = lean::box(0);
x_76 = l_lean_expander_mixfix__to__notation__spec___closed__1;
x_77 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_77, 0, x_76);
lean::cnstr_set(x_77, 1, x_3);
x_78 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_78, 0, x_77);
x_79 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_79, 0, x_78);
x_80 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_80, 0, x_1);
lean::cnstr_set(x_80, 1, x_79);
x_81 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_81, 0, x_80);
lean::cnstr_set(x_81, 1, x_75);
x_82 = l_lean_expander_mixfix__to__notation__spec___closed__2;
x_83 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_83, 0, x_82);
lean::cnstr_set(x_83, 1, x_81);
x_84 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_84, 0, x_83);
return x_84;
obj* x_86; obj* x_87; obj* x_88; obj* x_89; obj* x_90; obj* x_91; obj* x_92; obj* x_93; obj* x_94; obj* x_95;
x_86 = lean::box(0);
x_87 = l_lean_expander_mixfix__to__notation__spec___closed__1;
x_88 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_88, 0, x_87);
lean::cnstr_set(x_88, 1, x_3);
x_89 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_89, 0, x_88);
x_90 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_90, 0, x_89);
x_91 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_91, 0, x_1);
lean::cnstr_set(x_91, 1, x_90);
x_92 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_92, 0, x_91);
lean::cnstr_set(x_92, 1, x_86);
x_93 = l_lean_expander_mixfix__to__notation__spec___closed__2;
x_94 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_94, 0, x_93);
lean::cnstr_set(x_94, 1, x_92);
x_95 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_95, 0, x_94);
return x_95;
}
lbl_8:
{
obj* x_86; obj* x_87; obj* x_88; obj* x_89; obj* x_90; obj* x_91; obj* x_92; obj* x_93; obj* x_94; obj* x_95; obj* x_96; obj* x_97; obj* x_98; obj* x_99;
obj* x_97;
lean::dec(x_7);
x_86 = lean::box(0);
x_87 = l_lean_expander_mixfix__to__notation__spec___closed__3;
x_88 = l_option_map___rarg(x_87, x_5);
x_89 = l_lean_expander_mixfix__to__notation__spec___closed__4;
x_90 = l_option_map___rarg(x_89, x_88);
x_91 = l_lean_expander_mixfix__to__notation__spec___closed__1;
x_92 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_92, 0, x_91);
lean::cnstr_set(x_92, 1, x_90);
x_93 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_93, 0, x_92);
x_94 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_94, 0, x_93);
x_95 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_95, 0, x_1);
lean::cnstr_set(x_95, 1, x_94);
x_96 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_96, 0, x_95);
lean::cnstr_set(x_96, 1, x_86);
x_97 = l_lean_expander_mixfix__to__notation__spec___closed__2;
x_98 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_98, 0, x_97);
lean::cnstr_set(x_98, 1, x_96);
x_99 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_99, 0, x_98);
return x_99;
}
}
}
obj* l_lean_expander_mixfix__to__notation__spec___lambda__2___boxed(obj* x_0) {
_start:
x_97 = lean::box(0);
if (lean::obj_tag(x_5) == 0)
{
obj* x_1;
x_1 = l_lean_expander_mixfix__to__notation__spec___lambda__2(x_0);
lean::dec(x_0);
return x_1;
obj* x_98; obj* x_99; obj* x_100; obj* x_101; obj* x_102; obj* x_103;
x_98 = l_lean_expander_mixfix__to__notation__spec___closed__3;
x_99 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_99, 0, x_1);
lean::cnstr_set(x_99, 1, x_98);
x_100 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_100, 0, x_99);
lean::cnstr_set(x_100, 1, x_97);
x_101 = l_lean_expander_mixfix__to__notation__spec___closed__2;
x_102 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_102, 0, x_101);
lean::cnstr_set(x_102, 1, x_100);
x_103 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_103, 0, x_102);
return x_103;
}
else
{
obj* x_104; obj* x_106; obj* x_107; obj* x_110; obj* x_111; obj* x_112; obj* x_113; obj* x_114; obj* x_115; obj* x_116; obj* x_117; obj* x_118; obj* x_119; obj* x_120; obj* x_121; obj* x_122;
x_104 = lean::cnstr_get(x_5, 0);
if (lean::is_exclusive(x_5)) {
x_106 = x_5;
} else {
lean::inc(x_104);
lean::dec(x_5);
x_106 = lean::box(0);
}
x_107 = lean::cnstr_get(x_104, 1);
lean::inc(x_107);
lean::dec(x_104);
x_110 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_110, 0, x_107);
x_111 = l_lean_expander_mixfix__to__notation__spec___closed__4;
x_112 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_112, 0, x_111);
lean::cnstr_set(x_112, 1, x_110);
if (lean::is_scalar(x_106)) {
x_113 = lean::alloc_cnstr(1, 1, 0);
} else {
x_113 = x_106;
}
lean::cnstr_set(x_113, 0, x_112);
x_114 = l_lean_expander_mixfix__to__notation__spec___closed__1;
x_115 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_115, 0, x_114);
lean::cnstr_set(x_115, 1, x_113);
x_116 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_116, 0, x_115);
x_117 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_117, 0, x_116);
x_118 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_118, 0, x_1);
lean::cnstr_set(x_118, 1, x_117);
x_119 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_119, 0, x_118);
lean::cnstr_set(x_119, 1, x_97);
x_120 = l_lean_expander_mixfix__to__notation__spec___closed__2;
x_121 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_121, 0, x_120);
lean::cnstr_set(x_121, 1, x_119);
x_122 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_122, 0, x_121);
return x_122;
}
}
}
}
obj* l_lean_expander_mixfix__to__notation__spec___boxed(obj* x_0, obj* x_1, obj* x_2) {
@ -9146,22 +9236,61 @@ x_6 = lean_name_mk_string(x_4, x_5);
return x_6;
}
}
obj* _init_l_lean_expander_binding__annotation__update_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::box(3);
x_3 = l_option_get__or__else___main___rarg(x_1, x_2);
x_4 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_4, 0, x_3);
lean::cnstr_set(x_4, 1, x_0);
x_5 = l_lean_expander_binding__annotation__update;
x_6 = l_lean_parser_syntax_mk__node(x_5, x_4);
return x_6;
}
}
obj* l_lean_expander_binding__annotation__update_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_1 = l_lean_parser_raw_view___rarg___lambda__3___closed__1;
x_2 = l_option_map___rarg(x_1, x_0);
x_3 = lean::box(3);
x_4 = l_option_get__or__else___main___rarg(x_2, x_3);
lean::dec(x_2);
x_6 = lean::box(0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_6);
x_8 = l_lean_expander_binding__annotation__update;
x_9 = l_lean_parser_syntax_mk__node(x_8, x_7);
return x_9;
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = l_lean_expander_binding__annotation__update_has__view_x_27___lambda__1___closed__1;
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13;
x_2 = lean::cnstr_get(x_0, 0);
if (lean::is_exclusive(x_0)) {
x_4 = x_0;
} else {
lean::inc(x_2);
lean::dec(x_0);
x_4 = lean::box(0);
}
x_5 = lean::box(0);
x_6 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_6, 0, x_2);
if (lean::is_scalar(x_4)) {
x_7 = lean::alloc_cnstr(1, 1, 0);
} else {
x_7 = x_4;
}
lean::cnstr_set(x_7, 0, x_6);
x_8 = lean::box(3);
x_9 = l_option_get__or__else___main___rarg(x_7, x_8);
lean::dec(x_7);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set(x_11, 1, x_5);
x_12 = l_lean_expander_binding__annotation__update;
x_13 = l_lean_parser_syntax_mk__node(x_12, x_11);
return x_13;
}
}
}
obj* _init_l_lean_expander_binding__annotation__update_has__view_x_27() {
@ -11165,8 +11294,6 @@ lean::mark_persistent(l_list_mmap_x_27___main___at_lean_expander_mk__notation__t
lean::mark_persistent(l_list_mmap_x_27___main___at_lean_expander_mk__notation__transformer___spec__4___closed__2);
l_list_mmap_x_27___main___at_lean_expander_mk__notation__transformer___spec__4___closed__3 = _init_l_list_mmap_x_27___main___at_lean_expander_mk__notation__transformer___spec__4___closed__3();
lean::mark_persistent(l_list_mmap_x_27___main___at_lean_expander_mk__notation__transformer___spec__4___closed__3);
l_lean_expander_mixfix__to__notation__spec___lambda__1___closed__1 = _init_l_lean_expander_mixfix__to__notation__spec___lambda__1___closed__1();
lean::mark_persistent(l_lean_expander_mixfix__to__notation__spec___lambda__1___closed__1);
l_lean_expander_mixfix__to__notation__spec___closed__1 = _init_l_lean_expander_mixfix__to__notation__spec___closed__1();
lean::mark_persistent(l_lean_expander_mixfix__to__notation__spec___closed__1);
l_lean_expander_mixfix__to__notation__spec___closed__2 = _init_l_lean_expander_mixfix__to__notation__spec___closed__2();
@ -11179,6 +11306,8 @@ lean::mark_persistent(l_lean_expander_mixfix__to__notation__spec___closed__4);
lean::mark_persistent(l_lean_expander_mixfix__to__notation__spec___closed__5);
l_lean_expander_mixfix__to__notation__spec___closed__6 = _init_l_lean_expander_mixfix__to__notation__spec___closed__6();
lean::mark_persistent(l_lean_expander_mixfix__to__notation__spec___closed__6);
l_lean_expander_mixfix__to__notation__spec___closed__7 = _init_l_lean_expander_mixfix__to__notation__spec___closed__7();
lean::mark_persistent(l_lean_expander_mixfix__to__notation__spec___closed__7);
l_lean_expander_mixfix_transform___closed__1 = _init_l_lean_expander_mixfix_transform___closed__1();
lean::mark_persistent(l_lean_expander_mixfix_transform___closed__1);
l_lean_expander_mixfix_transform___closed__2 = _init_l_lean_expander_mixfix_transform___closed__2();
@ -11273,6 +11402,8 @@ lean::mark_persistent(l_lean_expander_declaration_transform___closed__3);
lean::mark_persistent(l_lean_expander_variable_transform___closed__1);
l_lean_expander_binding__annotation__update = _init_l_lean_expander_binding__annotation__update();
lean::mark_persistent(l_lean_expander_binding__annotation__update);
l_lean_expander_binding__annotation__update_has__view_x_27___lambda__1___closed__1 = _init_l_lean_expander_binding__annotation__update_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_expander_binding__annotation__update_has__view_x_27___lambda__1___closed__1);
l_lean_expander_binding__annotation__update_has__view_x_27 = _init_l_lean_expander_binding__annotation__update_has__view_x_27();
lean::mark_persistent(l_lean_expander_binding__annotation__update_has__view_x_27);
l_lean_expander_binding__annotation__update_has__view = _init_l_lean_expander_binding__annotation__update_has__view();

View file

@ -14,7 +14,6 @@ typedef lean::uint32 uint32; typedef lean::uint64 uint64;
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
obj* l_lean_level_to__nat___main___closed__4;
obj* l_lean_level_of__nat___boxed(obj*);
obj* l_lean_level__to__format_paren__if__false___boxed(obj*, obj*);
obj* l_lean_level__to__format_result_to__format___main___closed__2;
@ -37,7 +36,6 @@ obj* l_lean_level_has__param___boxed(obj*);
obj* l_lean_has__repr___lambda__1(obj*);
obj* l_lean_level__to__format_paren__if__false___main___boxed(obj*, obj*);
obj* l_lean_level__to__format_level__has__to__format;
obj* l_lean_level_to__nat___main___lambda__1___boxed(obj*);
obj* l_lean_level_has__param(obj*);
obj* l_lean_level_has__mvar(obj*);
obj* l_lean_level__to__format_result_to__format___main___boxed(obj*, obj*);
@ -62,14 +60,12 @@ obj* l_lean_level_of__nat(obj*);
obj* l_lean_level_has__param___main(obj*);
extern "C" obj* level_mk_succ(obj*);
obj* l_lean_level__to__format_level_to__result___main___closed__1;
obj* l_lean_level_to__nat___main___closed__2;
obj* l_lean_level__to__format_result_to__format___boxed(obj*, obj*);
obj* l_lean_to__fmt___at_lean_level__to__format_level_to__result___main___spec__1(obj*);
obj* l_lean_level_has__mvar___boxed(obj*);
obj* l_lean_format_group___main(obj*);
obj* l_lean_level__to__format_result_to__format(obj*, uint8);
extern obj* l_lean_format_paren___closed__3;
obj* l_lean_level_to__nat___main___lambda__1(obj*);
obj* l_lean_level__to__format_result_max___main(obj*, obj*);
obj* l_lean_level__to__format_level_to__result(obj*);
extern "C" obj* level_mk_max(obj*, obj*);
@ -84,7 +80,6 @@ obj* l_lean_nat_imax___boxed(obj*, obj*);
obj* l_lean_level__to__format_result__list_to__format___main(obj*);
extern "C" usize lean_level_hash(obj*);
obj* l_lean_level_to__nat(obj*);
obj* l_nat_max___boxed(obj*, obj*);
obj* l_lean_level_has__mvar___main___boxed(obj*);
obj* l_lean_level_one;
obj* l_nat_repr(obj*);
@ -94,9 +89,7 @@ obj* nat_sub(obj*, obj*);
}
obj* l_lean_level_hash___boxed(obj*);
obj* l_lean_level_to__offset___main(obj*);
obj* l_option_map___rarg(obj*, obj*);
obj* l_lean_level_of__nat___main___boxed(obj*);
obj* l_lean_level_to__nat___main___closed__3;
obj* _init_l_lean_level__is__inhabited() {
_start:
{
@ -372,15 +365,6 @@ lean::dec(x_1);
return x_2;
}
}
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);
return x_2;
}
}
obj* _init_l_lean_level_to__nat___main___closed__1() {
_start:
{
@ -391,30 +375,6 @@ lean::cnstr_set(x_1, 0, x_0);
return x_1;
}
}
obj* _init_l_lean_level_to__nat___main___closed__2() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_level_to__nat___main___lambda__1___boxed), 1, 0);
return x_0;
}
}
obj* _init_l_lean_level_to__nat___main___closed__3() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_nat_max___boxed), 2, 0);
return x_0;
}
}
obj* _init_l_lean_level_to__nat___main___closed__4() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_nat_imax___boxed), 2, 0);
return x_0;
}
}
obj* l_lean_level_to__nat___main(obj* x_0) {
_start:
{
@ -427,79 +387,145 @@ return x_1;
}
case 1:
{
obj* x_2; obj* x_3; obj* x_4; obj* x_5;
obj* x_2; obj* x_3;
x_2 = lean::cnstr_get(x_0, 0);
x_3 = l_lean_level_to__nat___main(x_2);
x_4 = l_lean_level_to__nat___main___closed__2;
x_5 = l_option_map___rarg(x_4, x_3);
return x_5;
if (lean::obj_tag(x_3) == 0)
{
obj* x_4;
x_4 = lean::box(0);
return x_4;
}
else
{
obj* x_5; obj* x_7; obj* x_8; obj* x_9; obj* x_11;
x_5 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_7 = x_3;
} else {
lean::inc(x_5);
lean::dec(x_3);
x_7 = lean::box(0);
}
x_8 = lean::mk_nat_obj(1u);
x_9 = lean::nat_add(x_5, x_8);
lean::dec(x_5);
if (lean::is_scalar(x_7)) {
x_11 = lean::alloc_cnstr(1, 1, 0);
} else {
x_11 = x_7;
}
lean::cnstr_set(x_11, 0, x_9);
return x_11;
}
}
case 2:
{
obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_6 = lean::cnstr_get(x_0, 0);
x_7 = lean::cnstr_get(x_0, 1);
x_8 = l_lean_level_to__nat___main(x_6);
x_9 = l_lean_level_to__nat___main___closed__3;
x_10 = l_option_map___rarg(x_9, x_8);
if (lean::obj_tag(x_10) == 0)
obj* x_12; obj* x_13; obj* x_14;
x_12 = lean::cnstr_get(x_0, 0);
x_13 = lean::cnstr_get(x_0, 1);
x_14 = l_lean_level_to__nat___main(x_12);
if (lean::obj_tag(x_14) == 0)
{
obj* x_11;
x_11 = lean::box(0);
return x_11;
obj* x_15;
x_15 = lean::box(0);
return x_15;
}
else
{
obj* x_12; obj* x_15; obj* x_16;
x_12 = lean::cnstr_get(x_10, 0);
lean::inc(x_12);
lean::dec(x_10);
x_15 = l_lean_level_to__nat___main(x_7);
x_16 = l_option_map___rarg(x_12, x_15);
return x_16;
}
}
case 3:
obj* x_16; obj* x_19;
x_16 = lean::cnstr_get(x_14, 0);
lean::inc(x_16);
lean::dec(x_14);
x_19 = l_lean_level_to__nat___main(x_13);
if (lean::obj_tag(x_19) == 0)
{
obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21;
x_17 = lean::cnstr_get(x_0, 0);
x_18 = lean::cnstr_get(x_0, 1);
x_19 = l_lean_level_to__nat___main(x_17);
x_20 = l_lean_level_to__nat___main___closed__4;
x_21 = l_option_map___rarg(x_20, x_19);
if (lean::obj_tag(x_21) == 0)
{
obj* x_22;
x_22 = lean::box(0);
return x_22;
obj* x_21;
lean::dec(x_16);
x_21 = lean::box(0);
return x_21;
}
else
{
obj* x_23; obj* x_26; obj* x_27;
x_23 = lean::cnstr_get(x_21, 0);
lean::inc(x_23);
lean::dec(x_21);
x_26 = l_lean_level_to__nat___main(x_18);
x_27 = l_option_map___rarg(x_23, x_26);
return x_27;
obj* x_22; obj* x_24; obj* x_25; obj* x_28;
x_22 = lean::cnstr_get(x_19, 0);
if (lean::is_exclusive(x_19)) {
x_24 = x_19;
} else {
lean::inc(x_22);
lean::dec(x_19);
x_24 = lean::box(0);
}
x_25 = l_nat_max(x_16, x_22);
lean::dec(x_22);
lean::dec(x_16);
if (lean::is_scalar(x_24)) {
x_28 = lean::alloc_cnstr(1, 1, 0);
} else {
x_28 = x_24;
}
default:
{
obj* x_28;
x_28 = lean::box(0);
lean::cnstr_set(x_28, 0, x_25);
return x_28;
}
}
}
}
obj* l_lean_level_to__nat___main___lambda__1___boxed(obj* x_0) {
_start:
case 3:
{
obj* x_1;
x_1 = l_lean_level_to__nat___main___lambda__1(x_0);
lean::dec(x_0);
return x_1;
obj* x_29; obj* x_30; obj* x_31;
x_29 = lean::cnstr_get(x_0, 0);
x_30 = lean::cnstr_get(x_0, 1);
x_31 = l_lean_level_to__nat___main(x_29);
if (lean::obj_tag(x_31) == 0)
{
obj* x_32;
x_32 = lean::box(0);
return x_32;
}
else
{
obj* x_33; obj* x_36;
x_33 = lean::cnstr_get(x_31, 0);
lean::inc(x_33);
lean::dec(x_31);
x_36 = l_lean_level_to__nat___main(x_30);
if (lean::obj_tag(x_36) == 0)
{
obj* x_38;
lean::dec(x_33);
x_38 = lean::box(0);
return x_38;
}
else
{
obj* x_39; obj* x_41; obj* x_42; obj* x_45;
x_39 = lean::cnstr_get(x_36, 0);
if (lean::is_exclusive(x_36)) {
x_41 = x_36;
} else {
lean::inc(x_39);
lean::dec(x_36);
x_41 = lean::box(0);
}
x_42 = l_lean_nat_imax(x_33, x_39);
lean::dec(x_39);
lean::dec(x_33);
if (lean::is_scalar(x_41)) {
x_45 = lean::alloc_cnstr(1, 1, 0);
} else {
x_45 = x_41;
}
lean::cnstr_set(x_45, 0, x_42);
return x_45;
}
}
}
default:
{
obj* x_46;
x_46 = lean::box(0);
return x_46;
}
}
}
}
obj* l_lean_level_to__nat___main___boxed(obj* x_0) {
@ -1264,12 +1290,6 @@ lean::mark_persistent(l_lean_level__is__inhabited);
lean::mark_persistent(l_lean_level_one);
l_lean_level_to__nat___main___closed__1 = _init_l_lean_level_to__nat___main___closed__1();
lean::mark_persistent(l_lean_level_to__nat___main___closed__1);
l_lean_level_to__nat___main___closed__2 = _init_l_lean_level_to__nat___main___closed__2();
lean::mark_persistent(l_lean_level_to__nat___main___closed__2);
l_lean_level_to__nat___main___closed__3 = _init_l_lean_level_to__nat___main___closed__3();
lean::mark_persistent(l_lean_level_to__nat___main___closed__3);
l_lean_level_to__nat___main___closed__4 = _init_l_lean_level_to__nat___main___closed__4();
lean::mark_persistent(l_lean_level_to__nat___main___closed__4);
l_lean_level__to__format_result_to__format___main___closed__1 = _init_l_lean_level__to__format_result_to__format___main___closed__1();
lean::mark_persistent(l_lean_level__to__format_result_to__format___main___closed__1);
l_lean_level__to__format_result_to__format___main___closed__2 = _init_l_lean_level__to__format_result_to__format___main___closed__2();

View file

@ -46,6 +46,7 @@ uint8 l_char_is__digit(uint32);
obj* l_lean_parser_parsec__t_labels__mk__res___rarg(obj*, obj*);
uint32 l_char_of__nat(obj*);
obj* l___private_init_lean_parser_parsec_4__take__while__aux___main___at___private_init_lean_name__mangling_5__parse__mangled__name__aux___main___spec__5(obj*, obj*, obj*);
obj* l_id___rarg___boxed(obj*);
obj* l_string_quote(obj*);
extern obj* l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
obj* l_lean_parser_monad__parsec_take__while1___at___private_init_lean_name__mangling_5__parse__mangled__name__aux___main___spec__3(obj*);
@ -95,7 +96,6 @@ obj* l_lean_parser_monad__parsec_digit___at___private_init_lean_name__mangling_2
obj* l___private_init_lean_parser_parsec_4__take__while__aux___main___at___private_init_lean_name__mangling_5__parse__mangled__name__aux___main___spec__9(obj*, obj*, obj*);
obj* l___private_init_lean_name__mangling_4__name_mangle__aux(obj*, obj*);
extern obj* l_string_join___closed__1;
obj* l_id___rarg(obj*);
namespace lean {
obj* uint32_to_nat(uint32);
}
@ -1027,7 +1027,7 @@ obj* _init_l_lean_parser_monad__parsec_eoi___at___private_init_lean_name__mangli
_start:
{
obj* x_0; obj* x_2; obj* x_3;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg), 1, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg___boxed), 1, 0);
lean::inc(x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_function_comp___rarg), 3, 2);
lean::closure_set(x_2, 0, x_0);
@ -1465,7 +1465,7 @@ lean::dec(x_163);
x_171 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_166);
if (lean::obj_tag(x_171) == 0)
{
obj* x_172; obj* x_174; obj* x_176; obj* x_179; obj* x_180; obj* x_182; uint32 x_185; obj* x_187; obj* x_188; obj* x_189; obj* x_190; obj* x_191;
obj* x_172; obj* x_174; obj* x_176; obj* x_179; obj* x_180; obj* x_182; uint32 x_185; obj* x_188; obj* x_189; obj* x_190; obj* x_191; obj* x_192;
x_172 = lean::cnstr_get(x_171, 0);
lean::inc(x_172);
x_174 = lean::cnstr_get(x_171, 1);
@ -1480,442 +1480,444 @@ x_182 = lean::nat_add(x_180, x_172);
lean::dec(x_172);
lean::dec(x_180);
x_185 = l_char_of__nat(x_182);
lean::dec(x_182);
lean::inc(x_1);
x_187 = lean::string_push(x_1, x_185);
x_188 = l___private_init_lean_name__mangling_2__parse__mangled__string__aux___main(x_6, x_187, x_174);
x_189 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_176, x_188);
x_190 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_168, x_189);
x_191 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_160, x_190);
if (lean::obj_tag(x_191) == 0)
x_188 = lean::string_push(x_1, x_185);
x_189 = l___private_init_lean_name__mangling_2__parse__mangled__string__aux___main(x_6, x_188, x_174);
x_190 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_176, x_189);
x_191 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_168, x_190);
x_192 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_160, x_191);
if (lean::obj_tag(x_192) == 0)
{
obj* x_195; obj* x_196; obj* x_197; obj* x_198;
obj* x_196; obj* x_197; obj* x_198; obj* x_199;
lean::dec(x_6);
lean::dec(x_1);
lean::dec(x_2);
x_195 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_191);
x_196 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_195);
x_197 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_196);
x_198 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_197);
return x_198;
x_196 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_192);
x_197 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_196);
x_198 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_197);
x_199 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_198);
return x_199;
}
else
{
obj* x_199; uint8 x_201;
x_199 = lean::cnstr_get(x_191, 0);
lean::inc(x_199);
x_201 = lean::cnstr_get_scalar<uint8>(x_191, sizeof(void*)*1);
x_149 = x_191;
x_150 = x_199;
x_151 = x_201;
obj* x_200; uint8 x_202;
x_200 = lean::cnstr_get(x_192, 0);
lean::inc(x_200);
x_202 = lean::cnstr_get_scalar<uint8>(x_192, sizeof(void*)*1);
x_149 = x_192;
x_150 = x_200;
x_151 = x_202;
goto lbl_152;
}
}
else
{
obj* x_203; uint8 x_205; obj* x_206; obj* x_207; obj* x_208; obj* x_209; obj* x_210;
obj* x_204; uint8 x_206; obj* x_207; obj* x_208; obj* x_209; obj* x_210; obj* x_211;
lean::dec(x_164);
x_203 = lean::cnstr_get(x_171, 0);
x_205 = lean::cnstr_get_scalar<uint8>(x_171, sizeof(void*)*1);
x_204 = lean::cnstr_get(x_171, 0);
x_206 = lean::cnstr_get_scalar<uint8>(x_171, sizeof(void*)*1);
if (lean::is_exclusive(x_171)) {
x_206 = x_171;
x_207 = x_171;
} else {
lean::inc(x_203);
lean::inc(x_204);
lean::dec(x_171);
x_206 = lean::box(0);
x_207 = lean::box(0);
}
if (lean::is_scalar(x_206)) {
x_207 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_207)) {
x_208 = lean::alloc_cnstr(1, 1, 1);
} else {
x_207 = x_206;
x_208 = x_207;
}
lean::cnstr_set(x_207, 0, x_203);
lean::cnstr_set_scalar(x_207, sizeof(void*)*1, x_205);
x_208 = x_207;
x_209 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_168, x_208);
x_210 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_160, x_209);
if (lean::obj_tag(x_210) == 0)
lean::cnstr_set(x_208, 0, x_204);
lean::cnstr_set_scalar(x_208, sizeof(void*)*1, x_206);
x_209 = x_208;
x_210 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_168, x_209);
x_211 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_160, x_210);
if (lean::obj_tag(x_211) == 0)
{
obj* x_214; obj* x_215; obj* x_216; obj* x_217;
obj* x_215; obj* x_216; obj* x_217; obj* x_218;
lean::dec(x_6);
lean::dec(x_1);
lean::dec(x_2);
x_214 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_210);
x_215 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_214);
x_216 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_215);
x_217 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_216);
return x_217;
x_215 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_211);
x_216 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_215);
x_217 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_216);
x_218 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_217);
return x_218;
}
else
{
obj* x_218; uint8 x_220;
x_218 = lean::cnstr_get(x_210, 0);
lean::inc(x_218);
x_220 = lean::cnstr_get_scalar<uint8>(x_210, sizeof(void*)*1);
x_149 = x_210;
x_150 = x_218;
x_151 = x_220;
obj* x_219; uint8 x_221;
x_219 = lean::cnstr_get(x_211, 0);
lean::inc(x_219);
x_221 = lean::cnstr_get_scalar<uint8>(x_211, sizeof(void*)*1);
x_149 = x_211;
x_150 = x_219;
x_151 = x_221;
goto lbl_152;
}
}
}
else
{
obj* x_221; uint8 x_223; obj* x_224; obj* x_225; obj* x_226; obj* x_227;
x_221 = lean::cnstr_get(x_163, 0);
x_223 = lean::cnstr_get_scalar<uint8>(x_163, sizeof(void*)*1);
obj* x_222; uint8 x_224; obj* x_225; obj* x_226; obj* x_227; obj* x_228;
x_222 = lean::cnstr_get(x_163, 0);
x_224 = lean::cnstr_get_scalar<uint8>(x_163, sizeof(void*)*1);
if (lean::is_exclusive(x_163)) {
x_224 = x_163;
x_225 = x_163;
} else {
lean::inc(x_221);
lean::inc(x_222);
lean::dec(x_163);
x_224 = lean::box(0);
x_225 = lean::box(0);
}
if (lean::is_scalar(x_224)) {
x_225 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_225)) {
x_226 = lean::alloc_cnstr(1, 1, 1);
} else {
x_225 = x_224;
x_226 = x_225;
}
lean::cnstr_set(x_225, 0, x_221);
lean::cnstr_set_scalar(x_225, sizeof(void*)*1, x_223);
x_226 = x_225;
x_227 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_160, x_226);
if (lean::obj_tag(x_227) == 0)
lean::cnstr_set(x_226, 0, x_222);
lean::cnstr_set_scalar(x_226, sizeof(void*)*1, x_224);
x_227 = x_226;
x_228 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_160, x_227);
if (lean::obj_tag(x_228) == 0)
{
obj* x_231; obj* x_232; obj* x_233; obj* x_234;
obj* x_232; obj* x_233; obj* x_234; obj* x_235;
lean::dec(x_6);
lean::dec(x_1);
lean::dec(x_2);
x_231 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_227);
x_232 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_231);
x_233 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_232);
x_234 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_233);
return x_234;
x_232 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_228);
x_233 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_232);
x_234 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_233);
x_235 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_234);
return x_235;
}
else
{
obj* x_235; uint8 x_237;
x_235 = lean::cnstr_get(x_227, 0);
lean::inc(x_235);
x_237 = lean::cnstr_get_scalar<uint8>(x_227, sizeof(void*)*1);
x_149 = x_227;
x_150 = x_235;
x_151 = x_237;
obj* x_236; uint8 x_238;
x_236 = lean::cnstr_get(x_228, 0);
lean::inc(x_236);
x_238 = lean::cnstr_get_scalar<uint8>(x_228, sizeof(void*)*1);
x_149 = x_228;
x_150 = x_236;
x_151 = x_238;
goto lbl_152;
}
}
}
else
{
obj* x_238; uint8 x_240; obj* x_241; obj* x_243; obj* x_244;
x_238 = lean::cnstr_get(x_157, 0);
x_240 = lean::cnstr_get_scalar<uint8>(x_157, sizeof(void*)*1);
obj* x_239; uint8 x_241; obj* x_242; obj* x_244; obj* x_245;
x_239 = lean::cnstr_get(x_157, 0);
x_241 = lean::cnstr_get_scalar<uint8>(x_157, sizeof(void*)*1);
if (lean::is_exclusive(x_157)) {
x_241 = x_157;
x_242 = x_157;
} else {
lean::inc(x_238);
lean::inc(x_239);
lean::dec(x_157);
x_241 = lean::box(0);
x_242 = lean::box(0);
}
lean::inc(x_238);
if (lean::is_scalar(x_241)) {
x_243 = lean::alloc_cnstr(1, 1, 1);
lean::inc(x_239);
if (lean::is_scalar(x_242)) {
x_244 = lean::alloc_cnstr(1, 1, 1);
} else {
x_243 = x_241;
x_244 = x_242;
}
lean::cnstr_set(x_243, 0, x_238);
lean::cnstr_set_scalar(x_243, sizeof(void*)*1, x_240);
x_244 = x_243;
x_149 = x_244;
x_150 = x_238;
x_151 = x_240;
lean::cnstr_set(x_244, 0, x_239);
lean::cnstr_set_scalar(x_244, sizeof(void*)*1, x_241);
x_245 = x_244;
x_149 = x_245;
x_150 = x_239;
x_151 = x_241;
goto lbl_152;
}
}
else
{
obj* x_249; obj* x_250; obj* x_251;
obj* x_250; obj* x_251; obj* x_252;
lean::dec(x_109);
lean::dec(x_6);
lean::dec(x_1);
lean::dec(x_2);
x_249 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_108);
x_250 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_249);
x_251 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_250);
return x_251;
x_250 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_108);
x_251 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_250);
x_252 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_251);
return x_252;
}
lbl_152:
{
if (x_151 == 0)
{
obj* x_253; obj* x_254; obj* x_255;
obj* x_254; obj* x_255; obj* x_256;
lean::dec(x_149);
x_253 = l___private_init_lean_name__mangling_1__string_mangle__aux___main___closed__1;
x_254 = l___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___closed__1;
x_255 = l_lean_parser_monad__parsec_str__core___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__1(x_253, x_254, x_2);
if (lean::obj_tag(x_255) == 0)
x_254 = l___private_init_lean_name__mangling_1__string_mangle__aux___main___closed__1;
x_255 = l___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___closed__1;
x_256 = l_lean_parser_monad__parsec_str__core___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__1(x_254, x_255, x_2);
if (lean::obj_tag(x_256) == 0)
{
obj* x_256; obj* x_258; obj* x_261;
x_256 = lean::cnstr_get(x_255, 1);
lean::inc(x_256);
x_258 = lean::cnstr_get(x_255, 2);
lean::inc(x_258);
lean::dec(x_255);
x_261 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_256);
if (lean::obj_tag(x_261) == 0)
obj* x_257; obj* x_259; obj* x_262;
x_257 = lean::cnstr_get(x_256, 1);
lean::inc(x_257);
x_259 = lean::cnstr_get(x_256, 2);
lean::inc(x_259);
lean::dec(x_256);
x_262 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_257);
if (lean::obj_tag(x_262) == 0)
{
obj* x_262; obj* x_264; obj* x_266; obj* x_269;
x_262 = lean::cnstr_get(x_261, 0);
lean::inc(x_262);
x_264 = lean::cnstr_get(x_261, 1);
lean::inc(x_264);
x_266 = lean::cnstr_get(x_261, 2);
lean::inc(x_266);
lean::dec(x_261);
x_269 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_264);
if (lean::obj_tag(x_269) == 0)
{
obj* x_270; obj* x_272; obj* x_274; obj* x_277;
x_270 = lean::cnstr_get(x_269, 0);
lean::inc(x_270);
x_272 = lean::cnstr_get(x_269, 1);
lean::inc(x_272);
x_274 = lean::cnstr_get(x_269, 2);
lean::inc(x_274);
lean::dec(x_269);
x_277 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_272);
if (lean::obj_tag(x_277) == 0)
{
obj* x_278; obj* x_280; obj* x_282; obj* x_285;
x_278 = lean::cnstr_get(x_277, 0);
lean::inc(x_278);
x_280 = lean::cnstr_get(x_277, 1);
lean::inc(x_280);
x_282 = lean::cnstr_get(x_277, 2);
lean::inc(x_282);
lean::dec(x_277);
x_285 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_280);
if (lean::obj_tag(x_285) == 0)
{
obj* x_286; obj* x_288; obj* x_290; obj* x_293; obj* x_294; obj* x_296; obj* x_297; obj* x_299; obj* x_302; obj* x_303; obj* x_305; obj* x_308; uint32 x_311; obj* x_312; obj* x_313; obj* x_315; obj* x_316; obj* x_317; obj* x_318; obj* x_319; obj* x_320; obj* x_321; obj* x_322; obj* x_323; obj* x_324;
x_286 = lean::cnstr_get(x_285, 0);
lean::inc(x_286);
x_288 = lean::cnstr_get(x_285, 1);
lean::inc(x_288);
x_290 = lean::cnstr_get(x_285, 2);
lean::inc(x_290);
lean::dec(x_285);
x_293 = lean::mk_nat_obj(4096u);
x_294 = lean::nat_mul(x_262, x_293);
obj* x_263; obj* x_265; obj* x_267; obj* x_270;
x_263 = lean::cnstr_get(x_262, 0);
lean::inc(x_263);
x_265 = lean::cnstr_get(x_262, 1);
lean::inc(x_265);
x_267 = lean::cnstr_get(x_262, 2);
lean::inc(x_267);
lean::dec(x_262);
x_296 = lean::mk_nat_obj(256u);
x_297 = lean::nat_mul(x_270, x_296);
x_270 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_265);
if (lean::obj_tag(x_270) == 0)
{
obj* x_271; obj* x_273; obj* x_275; obj* x_278;
x_271 = lean::cnstr_get(x_270, 0);
lean::inc(x_271);
x_273 = lean::cnstr_get(x_270, 1);
lean::inc(x_273);
x_275 = lean::cnstr_get(x_270, 2);
lean::inc(x_275);
lean::dec(x_270);
x_299 = lean::nat_add(x_294, x_297);
lean::dec(x_297);
lean::dec(x_294);
x_302 = lean::mk_nat_obj(16u);
x_303 = lean::nat_mul(x_278, x_302);
x_278 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_273);
if (lean::obj_tag(x_278) == 0)
{
obj* x_279; obj* x_281; obj* x_283; obj* x_286;
x_279 = lean::cnstr_get(x_278, 0);
lean::inc(x_279);
x_281 = lean::cnstr_get(x_278, 1);
lean::inc(x_281);
x_283 = lean::cnstr_get(x_278, 2);
lean::inc(x_283);
lean::dec(x_278);
x_305 = lean::nat_add(x_299, x_303);
lean::dec(x_303);
lean::dec(x_299);
x_308 = lean::nat_add(x_305, x_286);
x_286 = l_lean_parser_parse__hex__digit___at___private_init_lean_name__mangling_2__parse__mangled__string__aux___main___spec__2(x_281);
if (lean::obj_tag(x_286) == 0)
{
obj* x_287; obj* x_289; obj* x_291; obj* x_294; obj* x_295; obj* x_297; obj* x_298; obj* x_300; obj* x_303; obj* x_304; obj* x_306; obj* x_309; uint32 x_312; obj* x_314; obj* x_315; obj* x_317; obj* x_318; obj* x_319; obj* x_320; obj* x_321; obj* x_322; obj* x_323; obj* x_324; obj* x_325; obj* x_326;
x_287 = lean::cnstr_get(x_286, 0);
lean::inc(x_287);
x_289 = lean::cnstr_get(x_286, 1);
lean::inc(x_289);
x_291 = lean::cnstr_get(x_286, 2);
lean::inc(x_291);
lean::dec(x_286);
lean::dec(x_305);
x_311 = l_char_of__nat(x_308);
x_312 = lean::string_push(x_1, x_311);
x_313 = l___private_init_lean_name__mangling_2__parse__mangled__string__aux___main(x_6, x_312, x_288);
x_294 = lean::mk_nat_obj(4096u);
x_295 = lean::nat_mul(x_263, x_294);
lean::dec(x_263);
x_297 = lean::mk_nat_obj(256u);
x_298 = lean::nat_mul(x_271, x_297);
lean::dec(x_271);
x_300 = lean::nat_add(x_295, x_298);
lean::dec(x_298);
lean::dec(x_295);
x_303 = lean::mk_nat_obj(16u);
x_304 = lean::nat_mul(x_279, x_303);
lean::dec(x_279);
x_306 = lean::nat_add(x_300, x_304);
lean::dec(x_304);
lean::dec(x_300);
x_309 = lean::nat_add(x_306, x_287);
lean::dec(x_287);
lean::dec(x_306);
x_312 = l_char_of__nat(x_309);
lean::dec(x_309);
x_314 = lean::string_push(x_1, x_312);
x_315 = l___private_init_lean_name__mangling_2__parse__mangled__string__aux___main(x_6, x_314, x_289);
lean::dec(x_6);
x_315 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_290, x_313);
x_316 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_282, x_315);
x_317 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_274, x_316);
x_318 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_266, x_317);
x_319 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_258, x_318);
x_320 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_319);
x_321 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_320);
x_322 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_321);
x_323 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_322);
x_324 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_323);
return x_324;
x_317 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_291, x_315);
x_318 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_283, x_317);
x_319 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_275, x_318);
x_320 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_267, x_319);
x_321 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_259, x_320);
x_322 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_321);
x_323 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_322);
x_324 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_323);
x_325 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_324);
x_326 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_325);
return x_326;
}
else
{
obj* x_330; uint8 x_332; obj* x_333; obj* x_334; obj* x_335; obj* x_336; obj* x_337; obj* x_338; obj* x_339; obj* x_340; obj* x_341; obj* x_342; obj* x_343; obj* x_344;
obj* x_332; uint8 x_334; obj* x_335; obj* x_336; obj* x_337; obj* x_338; obj* x_339; obj* x_340; obj* x_341; obj* x_342; obj* x_343; obj* x_344; obj* x_345; obj* x_346;
lean::dec(x_6);
lean::dec(x_1);
lean::dec(x_278);
lean::dec(x_270);
lean::dec(x_262);
x_330 = lean::cnstr_get(x_285, 0);
x_332 = lean::cnstr_get_scalar<uint8>(x_285, sizeof(void*)*1);
if (lean::is_exclusive(x_285)) {
x_333 = x_285;
lean::dec(x_263);
lean::dec(x_279);
lean::dec(x_271);
x_332 = lean::cnstr_get(x_286, 0);
x_334 = lean::cnstr_get_scalar<uint8>(x_286, sizeof(void*)*1);
if (lean::is_exclusive(x_286)) {
x_335 = x_286;
} else {
lean::inc(x_330);
lean::dec(x_285);
x_333 = lean::box(0);
lean::inc(x_332);
lean::dec(x_286);
x_335 = lean::box(0);
}
if (lean::is_scalar(x_333)) {
x_334 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_335)) {
x_336 = lean::alloc_cnstr(1, 1, 1);
} else {
x_334 = x_333;
x_336 = x_335;
}
lean::cnstr_set(x_334, 0, x_330);
lean::cnstr_set_scalar(x_334, sizeof(void*)*1, x_332);
x_335 = x_334;
x_336 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_282, x_335);
x_337 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_274, x_336);
x_338 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_266, x_337);
x_339 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_258, x_338);
x_340 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_339);
x_341 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_340);
x_342 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_341);
x_343 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_342);
x_344 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_343);
return x_344;
lean::cnstr_set(x_336, 0, x_332);
lean::cnstr_set_scalar(x_336, sizeof(void*)*1, x_334);
x_337 = x_336;
x_338 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_283, x_337);
x_339 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_275, x_338);
x_340 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_267, x_339);
x_341 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_259, x_340);
x_342 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_341);
x_343 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_342);
x_344 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_343);
x_345 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_344);
x_346 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_345);
return x_346;
}
}
else
{
obj* x_349; uint8 x_351; obj* x_352; obj* x_353; obj* x_354; obj* x_355; obj* x_356; obj* x_357; obj* x_358; obj* x_359; obj* x_360; obj* x_361; obj* x_362;
obj* x_351; uint8 x_353; obj* x_354; obj* x_355; obj* x_356; obj* x_357; obj* x_358; obj* x_359; obj* x_360; obj* x_361; obj* x_362; obj* x_363; obj* x_364;
lean::dec(x_6);
lean::dec(x_1);
lean::dec(x_270);
lean::dec(x_262);
x_349 = lean::cnstr_get(x_277, 0);
x_351 = lean::cnstr_get_scalar<uint8>(x_277, sizeof(void*)*1);
if (lean::is_exclusive(x_277)) {
x_352 = x_277;
lean::dec(x_263);
lean::dec(x_271);
x_351 = lean::cnstr_get(x_278, 0);
x_353 = lean::cnstr_get_scalar<uint8>(x_278, sizeof(void*)*1);
if (lean::is_exclusive(x_278)) {
x_354 = x_278;
} else {
lean::inc(x_349);
lean::dec(x_277);
x_352 = lean::box(0);
lean::inc(x_351);
lean::dec(x_278);
x_354 = lean::box(0);
}
if (lean::is_scalar(x_352)) {
x_353 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_354)) {
x_355 = lean::alloc_cnstr(1, 1, 1);
} else {
x_353 = x_352;
x_355 = x_354;
}
lean::cnstr_set(x_353, 0, x_349);
lean::cnstr_set_scalar(x_353, sizeof(void*)*1, x_351);
x_354 = x_353;
x_355 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_274, x_354);
x_356 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_266, x_355);
x_357 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_258, x_356);
x_358 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_357);
x_359 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_358);
x_360 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_359);
x_361 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_360);
x_362 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_361);
return x_362;
lean::cnstr_set(x_355, 0, x_351);
lean::cnstr_set_scalar(x_355, sizeof(void*)*1, x_353);
x_356 = x_355;
x_357 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_275, x_356);
x_358 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_267, x_357);
x_359 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_259, x_358);
x_360 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_359);
x_361 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_360);
x_362 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_361);
x_363 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_362);
x_364 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_363);
return x_364;
}
}
else
{
obj* x_366; uint8 x_368; obj* x_369; obj* x_370; obj* x_371; obj* x_372; obj* x_373; obj* x_374; obj* x_375; obj* x_376; obj* x_377; obj* x_378;
obj* x_368; uint8 x_370; obj* x_371; obj* x_372; obj* x_373; obj* x_374; obj* x_375; obj* x_376; obj* x_377; obj* x_378; obj* x_379; obj* x_380;
lean::dec(x_6);
lean::dec(x_1);
lean::dec(x_262);
x_366 = lean::cnstr_get(x_269, 0);
x_368 = lean::cnstr_get_scalar<uint8>(x_269, sizeof(void*)*1);
if (lean::is_exclusive(x_269)) {
x_369 = x_269;
lean::dec(x_263);
x_368 = lean::cnstr_get(x_270, 0);
x_370 = lean::cnstr_get_scalar<uint8>(x_270, sizeof(void*)*1);
if (lean::is_exclusive(x_270)) {
x_371 = x_270;
} else {
lean::inc(x_366);
lean::dec(x_269);
x_369 = lean::box(0);
lean::inc(x_368);
lean::dec(x_270);
x_371 = lean::box(0);
}
if (lean::is_scalar(x_369)) {
x_370 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_371)) {
x_372 = lean::alloc_cnstr(1, 1, 1);
} else {
x_370 = x_369;
x_372 = x_371;
}
lean::cnstr_set(x_370, 0, x_366);
lean::cnstr_set_scalar(x_370, sizeof(void*)*1, x_368);
x_371 = x_370;
x_372 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_266, x_371);
x_373 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_258, x_372);
x_374 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_373);
x_375 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_374);
x_376 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_375);
x_377 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_376);
x_378 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_377);
return x_378;
lean::cnstr_set(x_372, 0, x_368);
lean::cnstr_set_scalar(x_372, sizeof(void*)*1, x_370);
x_373 = x_372;
x_374 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_267, x_373);
x_375 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_259, x_374);
x_376 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_375);
x_377 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_376);
x_378 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_377);
x_379 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_378);
x_380 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_379);
return x_380;
}
}
else
{
obj* x_381; uint8 x_383; obj* x_384; obj* x_385; obj* x_386; obj* x_387; obj* x_388; obj* x_389; obj* x_390; obj* x_391; obj* x_392;
obj* x_383; uint8 x_385; obj* x_386; obj* x_387; obj* x_388; obj* x_389; obj* x_390; obj* x_391; obj* x_392; obj* x_393; obj* x_394;
lean::dec(x_6);
lean::dec(x_1);
x_381 = lean::cnstr_get(x_261, 0);
x_383 = lean::cnstr_get_scalar<uint8>(x_261, sizeof(void*)*1);
if (lean::is_exclusive(x_261)) {
x_384 = x_261;
x_383 = lean::cnstr_get(x_262, 0);
x_385 = lean::cnstr_get_scalar<uint8>(x_262, sizeof(void*)*1);
if (lean::is_exclusive(x_262)) {
x_386 = x_262;
} else {
lean::inc(x_381);
lean::dec(x_261);
x_384 = lean::box(0);
lean::inc(x_383);
lean::dec(x_262);
x_386 = lean::box(0);
}
if (lean::is_scalar(x_384)) {
x_385 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_386)) {
x_387 = lean::alloc_cnstr(1, 1, 1);
} else {
x_385 = x_384;
x_387 = x_386;
}
lean::cnstr_set(x_385, 0, x_381);
lean::cnstr_set_scalar(x_385, sizeof(void*)*1, x_383);
x_386 = x_385;
x_387 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_258, x_386);
x_388 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_387);
x_389 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_388);
x_390 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_389);
x_391 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_390);
x_392 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_391);
return x_392;
lean::cnstr_set(x_387, 0, x_383);
lean::cnstr_set_scalar(x_387, sizeof(void*)*1, x_385);
x_388 = x_387;
x_389 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_259, x_388);
x_390 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_389);
x_391 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_390);
x_392 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_391);
x_393 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_392);
x_394 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_393);
return x_394;
}
}
else
{
obj* x_395; uint8 x_397; obj* x_398; obj* x_399; obj* x_400; obj* x_401; obj* x_402; obj* x_403; obj* x_404; obj* x_405;
obj* x_397; uint8 x_399; obj* x_400; obj* x_401; obj* x_402; obj* x_403; obj* x_404; obj* x_405; obj* x_406; obj* x_407;
lean::dec(x_6);
lean::dec(x_1);
x_395 = lean::cnstr_get(x_255, 0);
x_397 = lean::cnstr_get_scalar<uint8>(x_255, sizeof(void*)*1);
if (lean::is_exclusive(x_255)) {
x_398 = x_255;
x_397 = lean::cnstr_get(x_256, 0);
x_399 = lean::cnstr_get_scalar<uint8>(x_256, sizeof(void*)*1);
if (lean::is_exclusive(x_256)) {
x_400 = x_256;
} else {
lean::inc(x_395);
lean::dec(x_255);
x_398 = lean::box(0);
lean::inc(x_397);
lean::dec(x_256);
x_400 = lean::box(0);
}
if (lean::is_scalar(x_398)) {
x_399 = lean::alloc_cnstr(1, 1, 1);
if (lean::is_scalar(x_400)) {
x_401 = lean::alloc_cnstr(1, 1, 1);
} else {
x_399 = x_398;
x_401 = x_400;
}
lean::cnstr_set(x_399, 0, x_395);
lean::cnstr_set_scalar(x_399, sizeof(void*)*1, x_397);
x_400 = x_399;
x_401 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_400);
x_402 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_401);
x_403 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_402);
x_404 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_403);
x_405 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_404);
return x_405;
lean::cnstr_set(x_401, 0, x_397);
lean::cnstr_set_scalar(x_401, sizeof(void*)*1, x_399);
x_402 = x_401;
x_403 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_150, x_402);
x_404 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_403);
x_405 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_404);
x_406 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_405);
x_407 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_406);
return x_407;
}
}
else
{
obj* x_410; obj* x_411; obj* x_412; obj* x_413;
obj* x_412; obj* x_413; obj* x_414; obj* x_415;
lean::dec(x_6);
lean::dec(x_1);
lean::dec(x_2);
lean::dec(x_150);
x_410 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_149);
x_411 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_410);
x_412 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_411);
x_413 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_412);
return x_413;
x_412 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_109, x_149);
x_413 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_70, x_412);
x_414 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_33, x_413);
x_415 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_29, x_414);
return x_415;
}
}
}
@ -1926,13 +1928,13 @@ return x_413;
}
else
{
obj* x_414; obj* x_415;
x_414 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_415 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_415, 0, x_1);
lean::cnstr_set(x_415, 1, x_2);
lean::cnstr_set(x_415, 2, x_414);
return x_415;
obj* x_416; obj* x_417;
x_416 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_417 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_417, 0, x_1);
lean::cnstr_set(x_417, 1, x_2);
lean::cnstr_set(x_417, 2, x_416);
return x_417;
}
}
}

View file

@ -24,6 +24,7 @@ obj* l_lean_parser_command__parser__config__coe__parser__config___boxed(obj*);
obj* l_lean_parser_parser__core__t_lean_parser_monad__parsec(obj*);
obj* l_rbnode_ins___main___at_lean_parser_token__map_insert___spec__5___rarg(obj*, obj*, obj*);
obj* l_lean_parser_trailing__term__parser;
obj* l_id___boxed(obj*);
obj* l_lean_parser_parser__t_monad__except___boxed(obj*, obj*);
obj* l_lean_parser_monad__basic__parser;
obj* l_lean_parser_parser__core__t;
@ -43,7 +44,6 @@ extern obj* l_mjoin___rarg___closed__1;
obj* l_lean_parser_token__map__cons_tokens___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_basic__parser__m_monad;
obj* l_list_mfoldl___main___at_lean_parser_mk__token__trie___spec__1(obj*, obj*);
obj* l_id_monad___lambda__1(obj*, obj*, obj*, obj*);
obj* l_list_mfoldl___main___at_lean_parser_mk__token__trie___spec__1___closed__2;
obj* l_rbmap_find___main___at_lean_parser_token__map_insert___spec__1___rarg(obj*, obj*);
obj* l_lean_parser_command__parser__m;
@ -63,6 +63,7 @@ obj* l_lean_parser_command__parser__m_monad__reader__adapter(obj*, obj*);
obj* l_rbnode_insert___at_lean_parser_token__map_insert___spec__8___boxed(obj*);
uint8 l_lean_parser_syntax_is__of__kind___main(obj*, obj*);
obj* l_rbnode_ins___main___at_lean_parser_token__map_insert___spec__5(obj*);
obj* l_id___rarg___boxed(obj*);
obj* l_rbnode_ins___main___at_lean_parser_token__map_insert___spec__9___rarg(obj*, obj*, obj*);
obj* l_lean_parser_has__tokens_inhabited___boxed(obj*, obj*);
obj* l_lean_parser_command__parser__m_basic__parser___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
@ -102,7 +103,6 @@ obj* l_rbmap_insert___main___at_lean_parser_token__map_insert___spec__7___boxed(
obj* l_lean_parser_parser__core__t_alternative(obj*);
obj* l_rbnode_find___main___at_lean_parser_token__map_insert___spec__2___rarg(obj*, obj*);
obj* l_rbnode_insert___at_lean_parser_token__map_insert___spec__8(obj*);
obj* l_id_bind(obj*, obj*);
obj* l_lean_parser_token__map_of__list(obj*);
obj* l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__1;
obj* l_lean_parser_parser__core__t_monad___boxed(obj*);
@ -128,7 +128,6 @@ uint8 nat_dec_eq(obj*, obj*);
obj* l_lean_parser_token__map__cons_tokens___rarg(obj*, obj*);
obj* l_lean_parser_command__parser__m_basic__parser(obj*);
obj* l_lean_parser_term__parser__m_lean_parser_monad__parsec;
obj* l_id(obj*);
obj* l_rbnode_ins___main___at_lean_parser_token__map_insert___spec__5___boxed(obj*);
obj* l_lean_parser_parser__core__t_monad___rarg(obj*);
obj* l_lean_parser_basic__parser__m_monad__reader;
@ -138,7 +137,6 @@ obj* l_lean_parser_trailing__term__parser__m;
obj* l_lean_parser_tokens___rarg___boxed(obj*);
obj* l_rbmap_find___main___at_lean_parser_token__map_insert___spec__1___rarg___boxed(obj*, obj*);
extern obj* l_string_join___closed__1;
obj* l_id___rarg(obj*);
obj* l_lean_parser_list_nil_tokens___boxed(obj*);
obj* l_lean_parser_monad__rec_trans___rarg___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command__parser__m_alternative___boxed(obj*);
@ -157,7 +155,6 @@ obj* l_rbmap_insert___main___at_lean_parser_token__map_insert___spec__3(obj*);
obj* l_lean_parser_run___rarg___closed__1;
obj* l_lean_parser_command__parser__config__coe__parser__config(obj*);
obj* l_lean_parser_try__view___rarg(obj*, obj*, obj*);
obj* l_id_monad___lambda__3(obj*, obj*, obj*, obj*);
obj* l_reader__t_monad__reader__adapter___boxed(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_mk__token__trie___closed__1;
obj* l_lean_parser_has__view_default___boxed(obj*);
@ -169,6 +166,7 @@ obj* l_lean_parser_parsec_message_text___rarg(obj*);
namespace lean {
obj* string_iterator_offset(obj*);
}
obj* l_id_monad___lambda__1___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_list_cons_tokens___rarg___boxed(obj*, obj*);
obj* l_lean_parser_token__map_of__list___main(obj*);
obj* l_rbnode_ins___main___at_lean_parser_token__map_insert___spec__10___rarg(obj*, obj*, obj*);
@ -209,6 +207,7 @@ obj* l_lean_parser_parser__config__coe(obj*);
obj* l_lean_parser_try__view___boxed(obj*);
obj* l_lean_parser_parser__core__t_lean_parser_monad__parsec___rarg(obj*);
obj* l_lean_parser_log__message___boxed(obj*, obj*, obj*);
obj* l_has__monad__lift__t__trans___rarg___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_parsec__t_run___at_lean_parser_run___spec__1___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_parser__t_monad__except___rarg(obj*);
obj* l_rbnode_find___main___at_lean_parser_token__map_insert___spec__2___rarg___boxed(obj*, obj*);
@ -216,9 +215,9 @@ obj* l_reader__t_monad___rarg(obj*);
obj* l_lean_parser_trailing__term__parser__m_alternative;
obj* l_lean_parser_basic__parser;
obj* l_nat_repr(obj*);
obj* l_has__monad__lift__t__trans___rarg(obj*, obj*, obj*, obj*);
obj* l_rbnode_ins___main___at_lean_parser_token__map_insert___spec__6___boxed(obj*);
obj* l_lean_parser_command__parser__m_monad___boxed(obj*);
obj* l_id_bind___boxed(obj*, obj*);
obj* l_lean_parser_parser__t_monad___boxed(obj*, obj*);
obj* l_lean_parser_command__parser__m_lean_parser_monad__rec___closed__1;
obj* l_lean_parser_term__parser__m_lean_parser_monad__rec;
@ -227,7 +226,6 @@ obj* l_rbnode_ins___main___at_lean_parser_token__map_insert___spec__10(obj*);
obj* l_lean_parser_token__map_insert(obj*);
obj* l_lean_parser_parsec__t_run___at_lean_parser_run___spec__1(obj*);
obj* l_rbmap_insert___main___at_lean_parser_token__map_insert___spec__3___boxed(obj*);
obj* l_id_monad___lambda__2(obj*, obj*, obj*, obj*);
obj* l_lean_parser_trailing__term__parser__m_lean_parser_monad__rec;
obj* l_lean_parser_parser__t_monad__reader(obj*, obj*);
obj* l_lean_file__map_to__position(obj*, obj*);
@ -248,7 +246,9 @@ obj* l_lean_parser_tokens(obj*, obj*);
obj* l_lean_parser_term__parser;
obj* l_lean_parser_term__parser__m_monad__reader;
obj* l_lean_parser_log__message(obj*, obj*, obj*);
obj* l_id_monad___lambda__2___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command__parser__m_alternative(obj*);
obj* l_id_monad___lambda__3___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_run___rarg___lambda__1(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command__parser__m_monad__reader___boxed(obj*);
obj* l_rbnode_set__black___main___rarg(obj*);
@ -557,22 +557,22 @@ obj* _init_l_lean_parser_basic__parser__m_monad() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -584,22 +584,22 @@ obj* _init_l_lean_parser_basic__parser__m_alternative() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -611,22 +611,22 @@ obj* _init_l_lean_parser_basic__parser__m_monad__reader() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -638,22 +638,22 @@ obj* _init_l_lean_parser_basic__parser__m_lean_parser_monad__parsec() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -665,22 +665,22 @@ obj* _init_l_lean_parser_basic__parser__m_monad__except() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -1584,22 +1584,22 @@ obj* _init_l_lean_parser_command__parser__m_monad___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -1630,22 +1630,22 @@ obj* _init_l_lean_parser_command__parser__m_alternative___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -1680,22 +1680,22 @@ obj* _init_l_lean_parser_command__parser__m_monad__reader___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -1727,22 +1727,22 @@ obj* _init_l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_13; obj* x_15; obj* x_17; obj* x_18; obj* x_19; obj* x_20;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -1789,22 +1789,22 @@ obj* _init_l_lean_parser_command__parser__m_monad__except___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -1835,22 +1835,22 @@ obj* _init_l_lean_parser_command__parser__m_lean_parser_monad__rec___closed__1()
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_12; obj* x_14; obj* x_15; obj* x_16;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -1900,22 +1900,22 @@ obj* _init_l_lean_parser_command__parser__m_monad__reader__adapter___closed__1()
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2), 4, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__1___boxed), 4, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__2___boxed), 4, 0);
lean::inc(x_1);
lean::inc(x_0);
x_4 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_4, 0, x_0);
lean::cnstr_set(x_4, 1, x_1);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3), 4, 0);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_id___boxed), 1, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_id_monad___lambda__3___boxed), 4, 0);
x_7 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_5);
lean::cnstr_set(x_7, 2, x_0);
lean::cnstr_set(x_7, 3, x_1);
lean::cnstr_set(x_7, 4, x_6);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind), 2, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_id_bind___boxed), 2, 0);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
@ -2050,10 +2050,10 @@ x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_lift___boxed), 4,
lean::closure_set(x_1, 0, lean::box(0));
lean::closure_set(x_1, 1, lean::box(0));
lean::closure_set(x_1, 2, x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg), 1, 0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg___boxed), 1, 0);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command__parser__m_basic__parser___rarg___boxed), 7, 1);
lean::closure_set(x_3, 0, x_2);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__trans___rarg), 4, 2);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__trans___rarg___boxed), 4, 2);
lean::closure_set(x_4, 0, x_1);
lean::closure_set(x_4, 1, x_3);
return x_4;
@ -2160,7 +2160,7 @@ lean::closure_set(x_1, 0, lean::box(0));
lean::closure_set(x_1, 1, lean::box(0));
lean::closure_set(x_1, 2, x_0);
x_2 = l_lean_parser_term__parser__m_lean_parser_monad__basic__parser;
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__trans___rarg), 4, 2);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__trans___rarg___boxed), 4, 2);
lean::closure_set(x_3, 0, x_1);
lean::closure_set(x_3, 1, x_2);
return x_3;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -16,7 +16,6 @@ typedef lean::uint32 uint32; typedef lean::uint64 uint64;
#endif
obj* l_lean_parser_monad__parsec_error___at_lean_parser_level_trailing_parser_lean_parser_has__tokens___spec__2___boxed(obj*);
obj* l_lean_parser_trailing__level__parser__m_monad__except;
extern obj* l_lean_parser_match__token___closed__2;
obj* l_lean_parser_parsec__t_bind__mk__res___rarg(obj*, obj*);
obj* l_lean_parser_level__parser__m;
obj* l_lean_parser_trie_match__prefix___rarg(obj*, obj*);
@ -24,8 +23,8 @@ obj* l_lean_parser_level_parser_lean_parser_has__view(obj*);
obj* l_lean_parser_level__parser_run_lean_parser_has__view(obj*);
obj* l_lean_parser_level_app_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_monad__parsec_error___at_lean_parser_level_trailing_parser_lean_parser_has__tokens___spec__2(obj*);
extern obj* l_lean_parser_number_has__view_x_27___lambda__2___closed__1;
obj* l_lean_parser_number_parser___at_lean_parser_level_leading_parser_lean_parser_has__tokens___spec__2___rarg(obj*, obj*, obj*);
obj* l_has__monad__lift__t__refl___boxed(obj*, obj*);
obj* l_lean_parser_trailing__level__parser__m_lean_parser_monad__parsec;
obj* l_lean_parser_level_add__lit_parser_lean_parser_has__tokens;
obj* l_lean_parser_level_trailing_has__view_x_27___lambda__1___closed__1;
@ -41,7 +40,6 @@ extern obj* l_mjoin___rarg___closed__1;
extern obj* l_lean_parser_basic__parser__m_monad;
obj* l_lean_parser_level_app;
obj* l_lean_parser_number_parser___at_lean_parser_level_add__lit_parser_lean_parser_has__tokens___spec__2(obj*, obj*);
obj* l_has__monad__lift__t__refl(obj*, obj*);
obj* l_list_mfoldl___main___at_lean_parser_level_paren_parser___spec__2(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_trailing__level__parser__coe___boxed(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l___private_init_lean_parser_rec_1__run__aux___at_lean_parser_level__parser_run___spec__7___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
@ -60,6 +58,7 @@ obj* l_list_reverse___rarg(obj*);
extern "C" obj* lean_name_mk_string(obj*, obj*);
obj* l_reader__t_alternative___rarg(obj*, obj*);
obj* l_lean_parser_rec__t_recurse___at_lean_parser_level_parser_lean_parser_has__tokens___spec__1(obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_number_has__view_x_27___lambda__2___closed__6;
obj* l_lean_parser_combinators_node___at_lean_parser_level_paren_parser___spec__1(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_level_parser___closed__1;
obj* l_lean_parser_level__parser__m_monad__reader;
@ -68,6 +67,7 @@ obj* l_lean_parser_level_add__lit_has__view_x_27___lambda__1___closed__1;
extern obj* l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
obj* l_lean_parser_combinators_choice__aux___main___at_lean_parser_level_trailing_parser_lean_parser_has__tokens___spec__1(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_level_trailing_parser_lean_parser_has__tokens;
obj* l_id___rarg___boxed(obj*);
obj* l_lean_parser_level_paren_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_curr__lbp___at_lean_parser_level__parser_run___spec__4(obj*, obj*, obj*, obj*);
obj* l_lean_parser_combinators_choice__aux___main___at_lean_parser_level_leading_parser_lean_parser_has__tokens___spec__4(obj*, obj*, obj*, obj*, obj*, obj*);
@ -101,11 +101,12 @@ obj* l_lean_parser_level_trailing_has__view_x_27___lambda__1(obj*);
extern obj* l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__1;
extern obj* l_lean_parser_curr__lbp___rarg___lambda__1___closed__1;
obj* l___private_init_lean_parser_rec_1__run__aux___at_lean_parser_level__parser_run___spec__7(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_match__token___closed__1;
obj* l_lean_parser_level_trailing_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__1;
extern obj* l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__3;
extern obj* l_lean_parser_number_has__view;
obj* l_lean_parser_level__parser_run(obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_number_has__view_x_27___lambda__2___closed__2;
obj* l_lean_parser_level__parser__m_monad;
obj* l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__2;
obj* l_lean_parser_tokens___rarg(obj*);
@ -144,7 +145,6 @@ extern obj* l_lean_parser_finish__comment__block___closed__2;
obj* l_lean_parser_number_parser___at_lean_parser_level_add__lit_parser_lean_parser_has__tokens___spec__2___boxed(obj*, obj*);
extern obj* l_string_join___closed__1;
obj* l_lean_parser_level_leading_parser(obj*, obj*, obj*, obj*);
obj* l_id___rarg(obj*);
obj* l_lean_parser_monad__rec_trans___rarg___boxed(obj*, obj*, obj*, obj*);
obj* l_reader__t_read___rarg(obj*, obj*);
extern obj* l_lean_parser_max__prec;
@ -152,6 +152,7 @@ obj* l_lean_parser_rec__t_lean_parser_monad__parsec___rarg(obj*, obj*, obj*);
obj* l_lean_parser_level_app_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_syntax_mk__node(obj*, obj*);
obj* l_lean_parser_level_add__lit_parser_lean_parser_has__view;
extern obj* l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
obj* l_lean_parser_level_parser_lean_parser_has__tokens(obj*);
extern obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_detail__ident_parser___spec__1___closed__1;
obj* l_lean_parser_symbol__core___at_lean_parser_level_paren_parser_lean_parser_has__tokens___spec__1(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
@ -179,6 +180,7 @@ uint8 string_dec_eq(obj*, obj*);
}
obj* l_lean_parser_level_paren_has__view;
extern obj* l_lean_parser_combinators_choice__aux___main___rarg___closed__1;
obj* l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__3;
obj* l_lean_parser_level_leading_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_monad__parsec_error___at_lean_parser_level__parser_run___spec__3(obj*);
obj* l_lean_parser_level__parser_run_lean_parser_has__view___closed__2;
@ -200,12 +202,12 @@ obj* l_string_trim(obj*);
obj* l_list_mfoldl___main___at_lean_parser_level_app_parser___spec__2(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_option_get___main___at_lean_parser_run___spec__2(obj*);
extern obj* l_lean_parser_curr__lbp___rarg___lambda__3___closed__1;
obj* l_has__monad__lift__t__trans___rarg___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_ident_parser___at_lean_parser_level_leading_parser_lean_parser_has__tokens___spec__3___rarg(obj*, obj*, obj*);
obj* l_reader__t_monad___rarg(obj*);
obj* l_lean_parser_monad__parsec_error___at_lean_parser_level_leading_parser_lean_parser_has__tokens___spec__5___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_level_leading_has__view_x_27___lambda__1___closed__5;
extern "C" obj* lean_name_mk_numeral(obj*, obj*);
obj* l_has__monad__lift__t__trans___rarg(obj*, obj*, obj*, obj*);
obj* l_lean_parser_level_add__lit_has__view;
obj* l_lean_parser_monad__parsec_error___at_lean_parser_level_trailing_parser_lean_parser_has__tokens___spec__2___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_level_app_parser(obj*, obj*, obj*, obj*, obj*);
@ -224,7 +226,6 @@ obj* l_lean_parser_level_app_has__view_x_27;
obj* l_lean_parser_monad__parsec_error___at_lean_parser_level_leading_parser_lean_parser_has__tokens___spec__5___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_pratt__parser___at_lean_parser_level__parser_run___spec__1___lambda__1___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_number_parser___at_lean_parser_level_add__lit_parser_lean_parser_has__tokens___spec__2___rarg(obj*, obj*, obj*);
extern obj* l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__2;
extern obj* l_lean_parser_basic__parser__m_lean_parser_monad__parsec;
obj* l_lean_parser_level_add__lit_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_level_lean_parser_has__view;
@ -237,12 +238,13 @@ obj* l_lean_parser_symbol__core___at_lean_parser_level_add__lit_parser_lean_pars
obj* l_lean_parser_level_app_parser_lean_parser_has__view___lambda__1___boxed(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_level_paren_has__view_x_27___lambda__1(obj*);
extern obj* l_lean_parser_number_has__view_x_27___lambda__1___closed__6;
obj* l_option_map___rarg(obj*, obj*);
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_level__parser_run___spec__5(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_ident_parser___at_lean_parser_level_leading_parser_lean_parser_has__tokens___spec__3___rarg___closed__1;
extern obj* l_lean_parser_raw_view___rarg___lambda__2___closed__1;
obj* l_lean_parser_level_leading_parser___closed__1;
obj* l_lean_parser_substring_of__string(obj*);
obj* l___private_init_lean_parser_pratt_1__trailing__loop___main___at_lean_parser_level__parser_run___spec__2___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_number_has__view_x_27___lambda__2___closed__4;
namespace lean {
uint8 nat_dec_lt(obj*, obj*);
}
@ -251,7 +253,6 @@ obj* l_lean_parser_level_trailing_has__view_x_27;
obj* l___private_init_lean_parser_rec_1__run__aux___main___rarg(obj*, obj*, obj*, obj*);
obj* l_lean_parser_number_parser___at_lean_parser_level_leading_parser_lean_parser_has__tokens___spec__2___boxed(obj*);
obj* l_lean_parser_ident_parser___at_lean_parser_level_leading_parser_lean_parser_has__tokens___spec__3___boxed(obj*);
extern obj* l_lean_parser_raw_view___rarg___lambda__3___closed__1;
obj* _init_l_lean_parser_level__parser__m_monad() {
_start:
{
@ -319,9 +320,9 @@ x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_lift___boxed), 4,
lean::closure_set(x_1, 0, lean::box(0));
lean::closure_set(x_1, 1, lean::box(0));
lean::closure_set(x_1, 2, x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__refl), 2, 1);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__refl___boxed), 2, 1);
lean::closure_set(x_2, 0, lean::box(0));
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__trans___rarg), 4, 2);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__trans___rarg___boxed), 4, 2);
lean::closure_set(x_3, 0, x_1);
lean::closure_set(x_3, 1, x_2);
return x_3;
@ -428,7 +429,7 @@ lean::closure_set(x_1, 0, lean::box(0));
lean::closure_set(x_1, 1, lean::box(0));
lean::closure_set(x_1, 2, x_0);
x_2 = l_lean_parser_level__parser__m_lean_parser_monad__basic__parser;
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__trans___rarg), 4, 2);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__trans___rarg___boxed), 4, 2);
lean::closure_set(x_3, 0, x_1);
lean::closure_set(x_3, 1, x_2);
return x_3;
@ -620,7 +621,7 @@ obj* _init_l_lean_parser_level_lean_parser_has__view() {
_start:
{
obj* x_0; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg), 1, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg___boxed), 1, 0);
lean::inc(x_0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
@ -1097,7 +1098,7 @@ return x_79;
obj* l_lean_parser_level_paren_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_13; obj* x_14; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21;
obj* x_1; obj* x_3; obj* x_5; obj* x_8;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
@ -1105,27 +1106,132 @@ lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
lean::dec(x_0);
x_8 = l_lean_parser_raw_view___rarg___lambda__3___closed__1;
x_9 = l_option_map___rarg(x_8, x_1);
x_10 = lean::box(3);
x_11 = l_option_get__or__else___main___rarg(x_9, x_10);
lean::dec(x_9);
x_13 = l_option_map___rarg(x_8, x_5);
x_14 = l_option_get__or__else___main___rarg(x_13, x_10);
lean::dec(x_13);
x_16 = lean::box(0);
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_14);
lean::cnstr_set(x_17, 1, x_16);
x_18 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_18, 0, x_3);
lean::cnstr_set(x_18, 1, x_17);
x_19 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_19, 0, x_11);
lean::cnstr_set(x_19, 1, x_18);
x_20 = l_lean_parser_level_paren;
x_21 = l_lean_parser_syntax_mk__node(x_20, x_19);
return x_21;
x_8 = lean::box(0);
if (lean::obj_tag(x_1) == 0)
{
if (lean::obj_tag(x_5) == 0)
{
obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_9 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_3);
lean::cnstr_set(x_10, 1, x_9);
x_11 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_10);
x_13 = l_lean_parser_level_paren;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
return x_14;
}
else
{
obj* x_15; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28;
x_15 = lean::cnstr_get(x_5, 0);
if (lean::is_exclusive(x_5)) {
x_17 = x_5;
} else {
lean::inc(x_15);
lean::dec(x_5);
x_17 = lean::box(0);
}
x_18 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_18, 0, x_15);
if (lean::is_scalar(x_17)) {
x_19 = lean::alloc_cnstr(1, 1, 0);
} else {
x_19 = x_17;
}
lean::cnstr_set(x_19, 0, x_18);
x_20 = lean::box(3);
x_21 = l_option_get__or__else___main___rarg(x_19, x_20);
lean::dec(x_19);
x_23 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_8);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_3);
lean::cnstr_set(x_24, 1, x_23);
x_25 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_26 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_26, 0, x_25);
lean::cnstr_set(x_26, 1, x_24);
x_27 = l_lean_parser_level_paren;
x_28 = l_lean_parser_syntax_mk__node(x_27, x_26);
return x_28;
}
}
else
{
obj* x_29; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35;
x_29 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_31 = x_1;
} else {
lean::inc(x_29);
lean::dec(x_1);
x_31 = lean::box(0);
}
x_32 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_32, 0, x_29);
if (lean::is_scalar(x_31)) {
x_33 = lean::alloc_cnstr(1, 1, 0);
} else {
x_33 = x_31;
}
lean::cnstr_set(x_33, 0, x_32);
x_34 = lean::box(3);
x_35 = l_option_get__or__else___main___rarg(x_33, x_34);
lean::dec(x_33);
if (lean::obj_tag(x_5) == 0)
{
obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41;
x_37 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_38 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_38, 0, x_3);
lean::cnstr_set(x_38, 1, x_37);
x_39 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_39, 0, x_35);
lean::cnstr_set(x_39, 1, x_38);
x_40 = l_lean_parser_level_paren;
x_41 = l_lean_parser_syntax_mk__node(x_40, x_39);
return x_41;
}
else
{
obj* x_42; obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_49; obj* x_50; obj* x_51; obj* x_52; obj* x_53;
x_42 = lean::cnstr_get(x_5, 0);
if (lean::is_exclusive(x_5)) {
x_44 = x_5;
} else {
lean::inc(x_42);
lean::dec(x_5);
x_44 = lean::box(0);
}
x_45 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_45, 0, x_42);
if (lean::is_scalar(x_44)) {
x_46 = lean::alloc_cnstr(1, 1, 0);
} else {
x_46 = x_44;
}
lean::cnstr_set(x_46, 0, x_45);
x_47 = l_option_get__or__else___main___rarg(x_46, x_34);
lean::dec(x_46);
x_49 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_49, 0, x_47);
lean::cnstr_set(x_49, 1, x_8);
x_50 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_50, 0, x_3);
lean::cnstr_set(x_50, 1, x_49);
x_51 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_51, 0, x_35);
lean::cnstr_set(x_51, 1, x_50);
x_52 = l_lean_parser_level_paren;
x_53 = l_lean_parser_syntax_mk__node(x_52, x_51);
return x_53;
}
}
}
}
obj* _init_l_lean_parser_level_paren_has__view_x_27() {
@ -2474,6 +2580,29 @@ return x_108;
obj* _init_l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::mk_nat_obj(2u);
x_3 = lean_name_mk_numeral(x_1, x_2);
x_4 = lean::box(0);
x_5 = lean::box(3);
x_6 = l_option_get__or__else___main___rarg(x_4, x_5);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_6);
lean::cnstr_set(x_7, 1, x_0);
x_8 = l_lean_parser_syntax_mk__node(x_3, x_7);
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_0);
x_10 = l_lean_parser_level_leading;
x_11 = l_lean_parser_syntax_mk__node(x_10, x_9);
return x_11;
}
}
obj* _init_l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__2() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::box(0);
x_1 = lean::mk_nat_obj(4u);
@ -2481,7 +2610,7 @@ x_2 = lean_name_mk_numeral(x_0, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__2() {
obj* _init_l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__3() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
@ -2524,7 +2653,7 @@ lean::dec(x_0);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_11);
lean::cnstr_set(x_14, 1, x_1);
x_15 = l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__2;
x_15 = l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__3;
x_16 = l_lean_parser_syntax_mk__node(x_15, x_14);
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_16);
@ -2535,92 +2664,116 @@ return x_19;
}
case 2:
{
obj* x_20; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33;
obj* x_20;
x_20 = lean::cnstr_get(x_0, 0);
lean::inc(x_20);
lean::dec(x_0);
x_23 = l_lean_parser_raw_view___rarg___lambda__3___closed__1;
x_24 = l_option_map___rarg(x_23, x_20);
x_25 = lean::box(3);
x_26 = l_option_get__or__else___main___rarg(x_24, x_25);
lean::dec(x_24);
x_28 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_28, 0, x_26);
lean::cnstr_set(x_28, 1, x_1);
x_29 = l_lean_parser_number_has__view_x_27___lambda__2___closed__1;
x_30 = l_lean_parser_syntax_mk__node(x_29, x_28);
x_31 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_31, 0, x_30);
lean::cnstr_set(x_31, 1, x_1);
x_32 = l_lean_parser_level_leading;
x_33 = l_lean_parser_syntax_mk__node(x_32, x_31);
return x_33;
if (lean::obj_tag(x_20) == 0)
{
obj* x_23;
x_23 = l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__1;
return x_23;
}
else
{
obj* x_24; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; obj* x_37;
x_24 = lean::cnstr_get(x_20, 0);
if (lean::is_exclusive(x_20)) {
x_26 = x_20;
} else {
lean::inc(x_24);
lean::dec(x_20);
x_26 = lean::box(0);
}
x_27 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_27, 0, x_24);
if (lean::is_scalar(x_26)) {
x_28 = lean::alloc_cnstr(1, 1, 0);
} else {
x_28 = x_26;
}
lean::cnstr_set(x_28, 0, x_27);
x_29 = lean::box(3);
x_30 = l_option_get__or__else___main___rarg(x_28, x_29);
lean::dec(x_28);
x_32 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_32, 0, x_30);
lean::cnstr_set(x_32, 1, x_1);
x_33 = l_lean_parser_number_has__view_x_27___lambda__2___closed__4;
x_34 = l_lean_parser_syntax_mk__node(x_33, x_32);
x_35 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_35, 0, x_34);
lean::cnstr_set(x_35, 1, x_1);
x_36 = l_lean_parser_level_leading;
x_37 = l_lean_parser_syntax_mk__node(x_36, x_35);
return x_37;
}
}
case 3:
{
obj* x_34; obj* x_37; obj* x_38; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47;
x_34 = lean::cnstr_get(x_0, 0);
lean::inc(x_34);
lean::dec(x_0);
x_37 = l_lean_parser_level_paren_has__view;
x_38 = lean::cnstr_get(x_37, 1);
obj* x_38; obj* x_41; obj* x_42; obj* x_45; obj* x_46; obj* x_47; obj* x_48; obj* x_49; obj* x_50; obj* x_51;
x_38 = lean::cnstr_get(x_0, 0);
lean::inc(x_38);
lean::dec(x_37);
x_41 = lean::apply_1(x_38, x_34);
x_42 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_42, 0, x_41);
lean::cnstr_set(x_42, 1, x_1);
x_43 = l_lean_parser_number_has__view_x_27___lambda__2___closed__2;
x_44 = l_lean_parser_syntax_mk__node(x_43, x_42);
x_45 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_45, 0, x_44);
lean::cnstr_set(x_45, 1, x_1);
x_46 = l_lean_parser_level_leading;
x_47 = l_lean_parser_syntax_mk__node(x_46, x_45);
return x_47;
lean::dec(x_0);
x_41 = l_lean_parser_level_paren_has__view;
x_42 = lean::cnstr_get(x_41, 1);
lean::inc(x_42);
lean::dec(x_41);
x_45 = lean::apply_1(x_42, x_38);
x_46 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_46, 0, x_45);
lean::cnstr_set(x_46, 1, x_1);
x_47 = l_lean_parser_number_has__view_x_27___lambda__2___closed__6;
x_48 = l_lean_parser_syntax_mk__node(x_47, x_46);
x_49 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_49, 0, x_48);
lean::cnstr_set(x_49, 1, x_1);
x_50 = l_lean_parser_level_leading;
x_51 = l_lean_parser_syntax_mk__node(x_50, x_49);
return x_51;
}
case 4:
{
obj* x_48; obj* x_51; obj* x_52; obj* x_55; obj* x_56; obj* x_57; obj* x_58; obj* x_59; obj* x_60; obj* x_61;
x_48 = lean::cnstr_get(x_0, 0);
lean::inc(x_48);
lean::dec(x_0);
x_51 = l_lean_parser_number_has__view;
x_52 = lean::cnstr_get(x_51, 1);
obj* x_52; obj* x_55; obj* x_56; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_63; obj* x_64; obj* x_65;
x_52 = lean::cnstr_get(x_0, 0);
lean::inc(x_52);
lean::dec(x_51);
x_55 = lean::apply_1(x_52, x_48);
x_56 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_56, 0, x_55);
lean::cnstr_set(x_56, 1, x_1);
x_57 = l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__1;
x_58 = l_lean_parser_syntax_mk__node(x_57, x_56);
x_59 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_59, 0, x_58);
lean::cnstr_set(x_59, 1, x_1);
x_60 = l_lean_parser_level_leading;
x_61 = l_lean_parser_syntax_mk__node(x_60, x_59);
return x_61;
lean::dec(x_0);
x_55 = l_lean_parser_number_has__view;
x_56 = lean::cnstr_get(x_55, 1);
lean::inc(x_56);
lean::dec(x_55);
x_59 = lean::apply_1(x_56, x_52);
x_60 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_60, 0, x_59);
lean::cnstr_set(x_60, 1, x_1);
x_61 = l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__2;
x_62 = l_lean_parser_syntax_mk__node(x_61, x_60);
x_63 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_63, 0, x_62);
lean::cnstr_set(x_63, 1, x_1);
x_64 = l_lean_parser_level_leading;
x_65 = l_lean_parser_syntax_mk__node(x_64, x_63);
return x_65;
}
default:
{
obj* x_62; obj* x_65; obj* x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_71;
x_62 = lean::cnstr_get(x_0, 0);
lean::inc(x_62);
obj* x_66; obj* x_69; obj* x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75;
x_66 = lean::cnstr_get(x_0, 0);
lean::inc(x_66);
lean::dec(x_0);
x_65 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_65, 0, x_62);
x_66 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_66, 0, x_65);
lean::cnstr_set(x_66, 1, x_1);
x_67 = l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__2;
x_68 = l_lean_parser_syntax_mk__node(x_67, x_66);
x_69 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_69, 0, x_68);
lean::cnstr_set(x_69, 1, x_1);
x_70 = l_lean_parser_level_leading;
x_71 = l_lean_parser_syntax_mk__node(x_70, x_69);
return x_71;
x_69 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_69, 0, x_66);
x_70 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_70, 0, x_69);
lean::cnstr_set(x_70, 1, x_1);
x_71 = l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__3;
x_72 = l_lean_parser_syntax_mk__node(x_71, x_70);
x_73 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_73, 0, x_72);
lean::cnstr_set(x_73, 1, x_1);
x_74 = l_lean_parser_level_leading;
x_75 = l_lean_parser_syntax_mk__node(x_74, x_73);
return x_75;
}
}
}
@ -4741,7 +4894,7 @@ return x_66;
obj* l_lean_parser_level_add__lit_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_13; obj* x_14; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23;
obj* x_1; obj* x_3; obj* x_5; obj* x_8; obj* x_9; obj* x_12; obj* x_13; obj* x_14;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
@ -4749,29 +4902,61 @@ lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
lean::dec(x_0);
x_8 = l_lean_parser_raw_view___rarg___lambda__3___closed__1;
x_9 = l_option_map___rarg(x_8, x_3);
x_10 = lean::box(3);
x_11 = l_option_get__or__else___main___rarg(x_9, x_10);
lean::dec(x_9);
x_13 = l_lean_parser_number_has__view;
x_14 = lean::cnstr_get(x_13, 1);
lean::inc(x_14);
lean::dec(x_13);
x_17 = lean::apply_1(x_14, x_5);
x_18 = lean::box(0);
x_19 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_19, 0, x_17);
lean::cnstr_set(x_19, 1, x_18);
x_20 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_20, 0, x_11);
lean::cnstr_set(x_20, 1, x_19);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_1);
lean::cnstr_set(x_21, 1, x_20);
x_22 = l_lean_parser_level_add__lit;
x_23 = l_lean_parser_syntax_mk__node(x_22, x_21);
return x_23;
x_8 = l_lean_parser_number_has__view;
x_9 = lean::cnstr_get(x_8, 1);
lean::inc(x_9);
lean::dec(x_8);
x_12 = lean::apply_1(x_9, x_5);
x_13 = lean::box(0);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_12);
lean::cnstr_set(x_14, 1, x_13);
if (lean::obj_tag(x_3) == 0)
{
obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19;
x_15 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_15);
lean::cnstr_set(x_16, 1, x_14);
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_1);
lean::cnstr_set(x_17, 1, x_16);
x_18 = l_lean_parser_level_add__lit;
x_19 = l_lean_parser_syntax_mk__node(x_18, x_17);
return x_19;
}
else
{
obj* x_20; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_28; obj* x_29; obj* x_30; obj* x_31;
x_20 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_22 = x_3;
} else {
lean::inc(x_20);
lean::dec(x_3);
x_22 = lean::box(0);
}
x_23 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
if (lean::is_scalar(x_22)) {
x_24 = lean::alloc_cnstr(1, 1, 0);
} else {
x_24 = x_22;
}
lean::cnstr_set(x_24, 0, x_23);
x_25 = lean::box(3);
x_26 = l_option_get__or__else___main___rarg(x_24, x_25);
lean::dec(x_24);
x_28 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_28, 0, x_26);
lean::cnstr_set(x_28, 1, x_14);
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_1);
lean::cnstr_set(x_29, 1, x_28);
x_30 = l_lean_parser_level_add__lit;
x_31 = l_lean_parser_syntax_mk__node(x_30, x_29);
return x_31;
}
}
}
obj* _init_l_lean_parser_level_add__lit_has__view_x_27() {
@ -5664,7 +5849,7 @@ x_23 = lean::apply_1(x_20, x_16);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_23);
lean::cnstr_set(x_24, 1, x_1);
x_25 = l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__2;
x_25 = l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__3;
x_26 = l_lean_parser_syntax_mk__node(x_25, x_24);
x_27 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_27, 0, x_26);
@ -6081,7 +6266,7 @@ obj* _init_l_lean_parser_level__parser_run_lean_parser_has__view___closed__1() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__refl), 2, 1);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_has__monad__lift__t__refl___boxed), 2, 1);
lean::closure_set(x_0, 0, lean::box(0));
return x_0;
}
@ -6302,7 +6487,7 @@ if (lean::is_exclusive(x_64)) {
x_70 = lean::cnstr_get(x_67, 1);
lean::inc(x_70);
lean::dec(x_67);
x_73 = l_lean_parser_match__token___closed__2;
x_73 = l_lean_parser_match__token___closed__1;
if (lean::is_scalar(x_38)) {
x_74 = lean::alloc_cnstr(0, 3, 0);
} else {
@ -7106,6 +7291,8 @@ lean::mark_persistent(l_lean_parser_level_leading_has__view_x_27___lambda__1___c
lean::mark_persistent(l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__1);
l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__2 = _init_l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__2();
lean::mark_persistent(l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__2);
l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__3 = _init_l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__3();
lean::mark_persistent(l_lean_parser_level_leading_has__view_x_27___lambda__2___closed__3);
l_lean_parser_level_leading_has__view_x_27 = _init_l_lean_parser_level_leading_has__view_x_27();
lean::mark_persistent(l_lean_parser_level_leading_has__view_x_27);
l_lean_parser_level_leading_has__view = _init_l_lean_parser_level_leading_has__view();

View file

@ -131,6 +131,7 @@ obj* string_append(obj*, obj*);
obj* l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_module_yield__command___lambda__5___boxed(obj*, obj*, obj*, obj*);
obj* l_function_comp___rarg(obj*, obj*, obj*);
obj* l_lean_parser_module_prelude_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_module__parser__config__coe(obj*);
obj* l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3;
obj* l_lean_parser_module_import__path_has__view_x_27___lambda__2(obj*);
@ -319,10 +320,10 @@ obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__c
obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__14___closed__2;
obj* l_list_append___rarg(obj*, obj*);
obj* l_lean_parser_module_parser___lambda__6___closed__1;
obj* l_option_map___rarg(obj*, obj*);
obj* l_lean_parser_module__parser__m_alternative;
obj* l_lean_parser_module__parser__m;
obj* l_lean_parser_module_yield__command___lambda__11(obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_raw_view___rarg___lambda__2___closed__1;
obj* l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_parser__core__t_monad__except___rarg(obj*);
obj* l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__1(obj*);
@ -341,7 +342,6 @@ obj* l_lean_parser_module_prelude_parser___closed__1;
obj* l_lean_parser_module_yield__command___lambda__1(obj*, obj*, obj*);
obj* l_lean_parser_module_import__path_parser_lean_parser_has__tokens;
obj* l_lean_parser_module__parser__m_lift__parser__t(obj*);
extern obj* l_lean_parser_raw_view___rarg___lambda__3___closed__1;
obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__12___closed__1;
obj* l_lean_parser_module__parser__config__coe(obj* x_0) {
_start:
@ -1794,22 +1794,61 @@ x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_module_prelude_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::box(3);
x_3 = l_option_get__or__else___main___rarg(x_1, x_2);
x_4 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_4, 0, x_3);
lean::cnstr_set(x_4, 1, x_0);
x_5 = l_lean_parser_module_prelude;
x_6 = l_lean_parser_syntax_mk__node(x_5, x_4);
return x_6;
}
}
obj* l_lean_parser_module_prelude_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_1 = l_lean_parser_raw_view___rarg___lambda__3___closed__1;
x_2 = l_option_map___rarg(x_1, x_0);
x_3 = lean::box(3);
x_4 = l_option_get__or__else___main___rarg(x_2, x_3);
lean::dec(x_2);
x_6 = lean::box(0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_4);
lean::cnstr_set(x_7, 1, x_6);
x_8 = l_lean_parser_module_prelude;
x_9 = l_lean_parser_syntax_mk__node(x_8, x_7);
return x_9;
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = l_lean_parser_module_prelude_has__view_x_27___lambda__1___closed__1;
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13;
x_2 = lean::cnstr_get(x_0, 0);
if (lean::is_exclusive(x_0)) {
x_4 = x_0;
} else {
lean::inc(x_2);
lean::dec(x_0);
x_4 = lean::box(0);
}
x_5 = lean::box(0);
x_6 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_6, 0, x_2);
if (lean::is_scalar(x_4)) {
x_7 = lean::alloc_cnstr(1, 1, 0);
} else {
x_7 = x_4;
}
lean::cnstr_set(x_7, 0, x_6);
x_8 = lean::box(3);
x_9 = l_option_get__or__else___main___rarg(x_7, x_8);
lean::dec(x_7);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set(x_11, 1, x_5);
x_12 = l_lean_parser_module_prelude;
x_13 = l_lean_parser_syntax_mk__node(x_12, x_11);
return x_13;
}
}
}
obj* _init_l_lean_parser_module_prelude_has__view_x_27() {
@ -2008,10 +2047,12 @@ return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_12; obj* x_13;
obj* x_2; obj* x_4; obj* x_6; obj* x_7;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
lean::cnstr_set(x_0, 0, lean::box(0));
lean::cnstr_set(x_0, 1, lean::box(0));
x_6 = x_0;
} else {
lean::inc(x_2);
@ -2019,20 +2060,51 @@ if (lean::is_exclusive(x_0)) {
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_lean_parser_raw_view___rarg___lambda__3___closed__1;
x_8 = l_option_map___rarg(x_7, x_2);
x_9 = lean::box(3);
x_10 = l_option_get__or__else___main___rarg(x_8, x_9);
lean::dec(x_8);
x_12 = l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__2(x_4);
x_7 = l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__2(x_4);
if (lean::obj_tag(x_2) == 0)
{
obj* x_8; obj* x_9;
x_8 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
if (lean::is_scalar(x_6)) {
x_13 = lean::alloc_cnstr(1, 2, 0);
x_9 = lean::alloc_cnstr(1, 2, 0);
} else {
x_13 = x_6;
x_9 = x_6;
}
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_7);
return x_9;
}
else
{
obj* x_10; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_18;
x_10 = lean::cnstr_get(x_2, 0);
if (lean::is_exclusive(x_2)) {
x_12 = x_2;
} else {
lean::inc(x_10);
lean::dec(x_2);
x_12 = lean::box(0);
}
x_13 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_13, 0, x_10);
lean::cnstr_set(x_13, 1, x_12);
return x_13;
if (lean::is_scalar(x_12)) {
x_14 = lean::alloc_cnstr(1, 1, 0);
} else {
x_14 = x_12;
}
lean::cnstr_set(x_14, 0, x_13);
x_15 = lean::box(3);
x_16 = l_option_get__or__else___main___rarg(x_14, x_15);
lean::dec(x_14);
if (lean::is_scalar(x_6)) {
x_18 = lean::alloc_cnstr(1, 2, 0);
} else {
x_18 = x_6;
}
lean::cnstr_set(x_18, 0, x_16);
lean::cnstr_set(x_18, 1, x_7);
return x_18;
}
}
}
}
@ -3156,31 +3228,60 @@ return x_1;
obj* l_lean_parser_module_import_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19;
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_lean_parser_raw_view___rarg___lambda__3___closed__1;
x_7 = l_option_map___rarg(x_6, x_1);
x_8 = lean::box(3);
x_9 = l_option_get__or__else___main___rarg(x_7, x_8);
lean::dec(x_7);
x_11 = l_lean_parser_module_import_has__view_x_27___lambda__2___closed__1;
x_12 = l_list_map___main___rarg(x_11, x_3);
x_13 = l_lean_parser_no__kind;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
x_15 = lean::box(0);
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_14);
lean::cnstr_set(x_16, 1, x_15);
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_9);
lean::cnstr_set(x_17, 1, x_16);
x_18 = l_lean_parser_module_import;
x_19 = l_lean_parser_syntax_mk__node(x_18, x_17);
return x_19;
x_6 = l_lean_parser_module_import_has__view_x_27___lambda__2___closed__1;
x_7 = l_list_map___main___rarg(x_6, x_3);
x_8 = l_lean_parser_no__kind;
x_9 = l_lean_parser_syntax_mk__node(x_8, x_7);
x_10 = lean::box(0);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set(x_11, 1, x_10);
if (lean::obj_tag(x_1) == 0)
{
obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_12 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_13 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_11);
x_14 = l_lean_parser_module_import;
x_15 = l_lean_parser_syntax_mk__node(x_14, x_13);
return x_15;
}
else
{
obj* x_16; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_24; obj* x_25; obj* x_26;
x_16 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_18 = x_1;
} else {
lean::inc(x_16);
lean::dec(x_1);
x_18 = lean::box(0);
}
x_19 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_19, 0, x_16);
if (lean::is_scalar(x_18)) {
x_20 = lean::alloc_cnstr(1, 1, 0);
} else {
x_20 = x_18;
}
lean::cnstr_set(x_20, 0, x_19);
x_21 = lean::box(3);
x_22 = l_option_get__or__else___main___rarg(x_20, x_21);
lean::dec(x_20);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_22);
lean::cnstr_set(x_24, 1, x_11);
x_25 = l_lean_parser_module_import;
x_26 = l_lean_parser_syntax_mk__node(x_25, x_24);
return x_26;
}
}
}
obj* _init_l_lean_parser_module_import_has__view_x_27() {
@ -6712,6 +6813,8 @@ lean::mark_persistent(l_lean_parser_module_yield__command___closed__1);
lean::mark_persistent(l_lean_parser_module_yield__command___closed__2);
l_lean_parser_module_prelude = _init_l_lean_parser_module_prelude();
lean::mark_persistent(l_lean_parser_module_prelude);
l_lean_parser_module_prelude_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_module_prelude_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_module_prelude_has__view_x_27___lambda__1___closed__1);
l_lean_parser_module_prelude_has__view_x_27 = _init_l_lean_parser_module_prelude_has__view_x_27();
lean::mark_persistent(l_lean_parser_module_prelude_has__view_x_27);
l_lean_parser_module_prelude_has__view = _init_l_lean_parser_module_prelude_has__view();

File diff suppressed because it is too large Load diff

View file

@ -202,6 +202,7 @@ obj* l_lean_parser_monad__parsec_error___at_lean_parser_monad__parsec_take__unti
obj* l_lean_parser_monad__parsec_error___at_lean_parser_monad__parsec_upper___spec__1___boxed(obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_lookahead___boxed(obj*, obj*, obj*);
obj* l___private_init_lean_parser_parsec_2__take__aux___rarg(obj*, obj*, obj*);
obj* l_id___rarg___boxed(obj*);
obj* l_string_quote(obj*);
obj* l_lean_parser_parsec__t_try___rarg___boxed(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
@ -437,7 +438,6 @@ obj* l_lean_parser_monad__parsec_error___at_lean_parser_monad__parsec_any___spec
obj* l_lean_parser_parsec__t_has__monad__lift___boxed(obj*);
obj* l___private_init_lean_parser_parsec_6__take__while__aux_x_27___main___at_lean_parser_monad__parsec_whitespace___spec__2___rarg___boxed(obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_alpha(obj*, obj*);
obj* l_id___rarg(obj*);
obj* l_lean_parser_monad__parsec_foldr__aux___main___rarg(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_sep__by1___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_list_mfoldr___main___at_lean_parser_monad__parsec_longest__match___spec__2___rarg___lambda__1(obj*, obj*, obj*, obj*);
@ -1202,7 +1202,7 @@ obj* _init_l_lean_parser_parsec_result_mk__eps___rarg___closed__1() {
_start:
{
obj* x_0; obj* x_1;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg), 1, 0);
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg___boxed), 1, 0);
x_1 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_1, 0, x_0);
return x_1;

View file

@ -952,7 +952,7 @@ return x_2;
obj* l_lean_parser_parse__quoted__char___rarg___lambda__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
obj* x_5; obj* x_8; obj* x_11; obj* x_12; obj* x_13; obj* x_15; obj* x_17; obj* x_19; obj* x_21; uint32 x_23; obj* x_24; obj* x_25;
obj* x_5; obj* x_8; obj* x_11; obj* x_12; obj* x_13; obj* x_15; obj* x_17; obj* x_19; obj* x_21; uint32 x_23; obj* x_25; obj* x_26;
x_5 = lean::cnstr_get(x_0, 0);
lean::inc(x_5);
lean::dec(x_0);
@ -972,9 +972,10 @@ lean::dec(x_17);
x_21 = lean::nat_add(x_19, x_4);
lean::dec(x_19);
x_23 = l_char_of__nat(x_21);
x_24 = lean::box_uint32(x_23);
x_25 = lean::apply_2(x_8, lean::box(0), x_24);
return x_25;
lean::dec(x_21);
x_25 = lean::box_uint32(x_23);
x_26 = lean::apply_2(x_8, lean::box(0), x_25);
return x_26;
}
}
obj* l_lean_parser_parse__quoted__char___rarg___lambda__2(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) {
@ -1024,7 +1025,7 @@ return x_7;
obj* l_lean_parser_parse__quoted__char___rarg___lambda__5(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_6; obj* x_9; obj* x_10; obj* x_11; uint32 x_13; obj* x_14; obj* x_15;
obj* x_3; obj* x_6; obj* x_9; obj* x_10; obj* x_11; uint32 x_13; obj* x_15; obj* x_16;
x_3 = lean::cnstr_get(x_0, 0);
lean::inc(x_3);
lean::dec(x_0);
@ -1036,9 +1037,10 @@ x_10 = lean::nat_mul(x_9, x_1);
x_11 = lean::nat_add(x_10, x_2);
lean::dec(x_10);
x_13 = l_char_of__nat(x_11);
x_14 = lean::box_uint32(x_13);
x_15 = lean::apply_2(x_6, lean::box(0), x_14);
return x_15;
lean::dec(x_11);
x_15 = lean::box_uint32(x_13);
x_16 = lean::apply_2(x_6, lean::box(0), x_15);
return x_16;
}
}
obj* l_lean_parser_parse__quoted__char___rarg___lambda__6(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {

View file

@ -44,7 +44,6 @@ uint8 l_lean_parser_syntax_is__of__kind___main(obj*, obj*);
obj* l_string_quote(obj*);
obj* l_lean_parser_syntax_update__leading___closed__1;
obj* l_lean_parser_macro__scopes_flip___boxed(obj*, obj*);
obj* l_lean_parser_syntax_reprint___main___closed__2;
obj* l_lean_parser_macro__scopes;
obj* l_lean_parser_syntax_mreplace__lst___boxed(obj*);
obj* l_lean_parser_syntax_to__format___main___closed__7;
@ -98,6 +97,7 @@ obj* l_lean_parser_inhabited;
obj* l_lean_parser_syntax_to__format___main(obj*);
extern obj* l_string_join___closed__1;
obj* l_lean_to__fmt___at_lean_parser_syntax_to__format___main___spec__2(obj*);
obj* l_list_foldl___main___at_string_join___spec__1(obj*, obj*);
obj* l_lean_parser_syntax_mreplace___main___at_lean_parser_syntax_update__leading___spec__1(obj*, obj*, obj*);
obj* l_lean_parser_syntax_update__leading(obj*, obj*);
obj* l_lean_parser_syntax_to__format__lst___main(obj*);
@ -160,7 +160,6 @@ obj* nat_sub(obj*, obj*);
obj* l_lean_parser_syntax_get__head__info___main___boxed(obj*);
obj* l_list_append___rarg(obj*, obj*);
obj* l___private_init_lean_parser_syntax_1__update__leading__aux___main(obj*, obj*);
obj* l_option_map___rarg(obj*, obj*);
obj* l_lean_parser_syntax_mreplace___rarg(obj*, obj*, obj*);
obj* l_lean_parser_syntax_to__format___main___closed__3;
obj* l_lean_parser_substring_of__string(obj*);
@ -168,7 +167,6 @@ obj* l_lean_parser_syntax_get__head__info___main(obj*);
obj* l_list_foldr___main___at_lean_parser_syntax_reprint___main___spec__1___boxed(obj*, obj*);
obj* l_lean_parser_macro__scopes_flip___main___boxed(obj*, obj*);
obj* l_lean_parser_syntax_reprint__atom___boxed(obj*);
obj* l_string_join___boxed(obj*);
obj* _init_l_lean_parser_choice() {
_start:
{
@ -1731,14 +1729,6 @@ goto _start;
obj* _init_l_lean_parser_syntax_reprint___main___closed__1() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_string_join___boxed), 1, 0);
return x_0;
}
}
obj* _init_l_lean_parser_syntax_reprint___main___closed__2() {
_start:
{
obj* x_0; obj* x_1;
x_0 = lean::mk_string("");
x_1 = lean::alloc_cnstr(1, 1, 0);
@ -1875,50 +1865,61 @@ x_69 = lean_name_dec_eq(x_66, x_68);
lean::dec(x_66);
if (x_69 == 0)
{
obj* x_71; obj* x_74; obj* x_75; obj* x_76;
obj* x_71; obj* x_74;
x_71 = lean::cnstr_get(x_63, 1);
lean::inc(x_71);
lean::dec(x_63);
x_74 = l_lean_parser_syntax_reprint__lst___main(x_71);
x_75 = l_lean_parser_syntax_reprint___main___closed__1;
x_76 = l_option_map___rarg(x_75, x_74);
return x_76;
if (lean::obj_tag(x_74) == 0)
{
obj* x_75;
x_75 = lean::box(0);
return x_75;
}
else
{
obj* x_77;
x_77 = lean::cnstr_get(x_63, 1);
lean::inc(x_77);
lean::dec(x_63);
if (lean::obj_tag(x_77) == 0)
{
obj* x_80;
x_80 = lean::box(0);
return x_80;
obj* x_76; obj* x_78; obj* x_79; obj* x_80; obj* x_82;
x_76 = lean::cnstr_get(x_74, 0);
if (lean::is_exclusive(x_74)) {
x_78 = x_74;
} else {
lean::inc(x_76);
lean::dec(x_74);
x_78 = lean::box(0);
}
x_79 = l_string_join___closed__1;
x_80 = l_list_foldl___main___at_string_join___spec__1(x_79, x_76);
lean::dec(x_76);
if (lean::is_scalar(x_78)) {
x_82 = lean::alloc_cnstr(1, 1, 0);
} else {
x_82 = x_78;
}
lean::cnstr_set(x_82, 0, x_80);
return x_82;
}
}
else
{
obj* x_81; obj* x_83; obj* x_86;
x_81 = lean::cnstr_get(x_77, 0);
lean::inc(x_81);
x_83 = lean::cnstr_get(x_77, 1);
obj* x_83;
x_83 = lean::cnstr_get(x_63, 1);
lean::inc(x_83);
lean::dec(x_77);
x_86 = l_lean_parser_syntax_reprint___main(x_81);
if (lean::obj_tag(x_86) == 0)
lean::dec(x_63);
if (lean::obj_tag(x_83) == 0)
{
obj* x_88;
lean::dec(x_83);
x_88 = lean::box(0);
return x_88;
obj* x_86;
x_86 = lean::box(0);
return x_86;
}
else
{
obj* x_89; obj* x_92;
x_89 = lean::cnstr_get(x_86, 0);
obj* x_87; obj* x_89; obj* x_92;
x_87 = lean::cnstr_get(x_83, 0);
lean::inc(x_87);
x_89 = lean::cnstr_get(x_83, 1);
lean::inc(x_89);
lean::dec(x_86);
x_92 = l_lean_parser_syntax_reprint__lst___main(x_83);
lean::dec(x_83);
x_92 = l_lean_parser_syntax_reprint___main(x_87);
if (lean::obj_tag(x_92) == 0)
{
obj* x_94;
@ -1928,37 +1929,51 @@ return x_94;
}
else
{
obj* x_95; obj* x_97; obj* x_98; uint8 x_100;
obj* x_95; obj* x_98;
x_95 = lean::cnstr_get(x_92, 0);
if (lean::is_exclusive(x_92)) {
lean::cnstr_set(x_92, 0, lean::box(0));
x_97 = x_92;
} else {
lean::inc(x_95);
lean::dec(x_92);
x_97 = lean::box(0);
}
x_98 = l_list_foldr___main___at_lean_parser_syntax_reprint___main___spec__1(x_89, x_95);
lean::dec(x_95);
x_100 = lean::unbox(x_98);
if (x_100 == 0)
lean::inc(x_95);
lean::dec(x_92);
x_98 = l_lean_parser_syntax_reprint__lst___main(x_89);
if (lean::obj_tag(x_98) == 0)
{
obj* x_103;
lean::dec(x_89);
lean::dec(x_97);
x_103 = lean::box(0);
return x_103;
obj* x_100;
lean::dec(x_95);
x_100 = lean::box(0);
return x_100;
}
else
{
obj* x_104;
if (lean::is_scalar(x_97)) {
x_104 = lean::alloc_cnstr(1, 1, 0);
obj* x_101; obj* x_103; obj* x_104; uint8 x_106;
x_101 = lean::cnstr_get(x_98, 0);
if (lean::is_exclusive(x_98)) {
lean::cnstr_set(x_98, 0, lean::box(0));
x_103 = x_98;
} else {
x_104 = x_97;
lean::inc(x_101);
lean::dec(x_98);
x_103 = lean::box(0);
}
lean::cnstr_set(x_104, 0, x_89);
return x_104;
x_104 = l_list_foldr___main___at_lean_parser_syntax_reprint___main___spec__1(x_95, x_101);
lean::dec(x_101);
x_106 = lean::unbox(x_104);
if (x_106 == 0)
{
obj* x_109;
lean::dec(x_103);
lean::dec(x_95);
x_109 = lean::box(0);
return x_109;
}
else
{
obj* x_110;
if (lean::is_scalar(x_103)) {
x_110 = lean::alloc_cnstr(1, 1, 0);
} else {
x_110 = x_103;
}
lean::cnstr_set(x_110, 0, x_95);
return x_110;
}
}
}
@ -1967,9 +1982,9 @@ return x_104;
}
default:
{
obj* x_105;
x_105 = l_lean_parser_syntax_reprint___main___closed__2;
return x_105;
obj* x_111;
x_111 = l_lean_parser_syntax_reprint___main___closed__1;
return x_111;
}
}
}
@ -2805,8 +2820,6 @@ lean::mark_persistent(l_lean_parser_substring_has__to__string);
lean::mark_persistent(l_lean_parser_syntax_update__leading___closed__1);
l_lean_parser_syntax_reprint___main___closed__1 = _init_l_lean_parser_syntax_reprint___main___closed__1();
lean::mark_persistent(l_lean_parser_syntax_reprint___main___closed__1);
l_lean_parser_syntax_reprint___main___closed__2 = _init_l_lean_parser_syntax_reprint___main___closed__2();
lean::mark_persistent(l_lean_parser_syntax_reprint___main___closed__2);
l_lean_parser_syntax_reprint__lst___main___closed__1 = _init_l_lean_parser_syntax_reprint__lst___main___closed__1();
lean::mark_persistent(l_lean_parser_syntax_reprint__lst___main___closed__1);
l_lean_parser_syntax_to__format___main___closed__1 = _init_l_lean_parser_syntax_to__format___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

@ -34,7 +34,6 @@ obj* l_rbnode_find___main___at___private_init_lean_parser_trie_1__insert__aux___
obj* l_lean_parser_trie_find___boxed(obj*);
obj* l_lean_parser_trie_match__prefix(obj*);
obj* l___private_init_lean_parser_trie_4__to__string__aux___main___rarg___boxed(obj*);
obj* l_list_zip___rarg___lambda__1(obj*, obj*);
namespace lean {
obj* string_iterator_next(obj*);
}
@ -106,7 +105,6 @@ obj* l___private_init_lean_parser_trie_3__match__prefix__aux___main(obj*);
uint8 l_rbnode_is__red___main___rarg(obj*);
obj* l_rbnode_ins___main___at___private_init_lean_parser_trie_1__insert__aux___main___spec__3___rarg(obj*, uint32, obj*);
obj* l_rbnode_fold___main___at___private_init_lean_parser_trie_4__to__string__aux___main___spec__3___rarg___boxed(obj*, obj*);
obj* l_option_map___rarg(obj*, obj*);
obj* l_rbnode_ins___main___at___private_init_lean_parser_trie_1__insert__aux___main___spec__3(obj*);
obj* l_rbnode_insert___at___private_init_lean_parser_trie_1__insert__aux___main___spec__2___boxed(obj*);
obj* l_rbnode_fold___main___at___private_init_lean_parser_trie_4__to__string__aux___main___spec__3___rarg(obj*, obj*);
@ -1072,58 +1070,129 @@ x_4 = lean::mk_nat_obj(0u);
x_5 = lean::nat_dec_eq(x_0, x_4);
if (x_5 == 0)
{
obj* x_6; obj* x_8; obj* x_12; obj* x_13; obj* x_14; uint32 x_17; obj* x_18;
obj* x_6; obj* x_8; obj* x_11; obj* x_12; uint32 x_14; obj* x_15;
x_6 = lean::cnstr_get(x_1, 0);
lean::inc(x_6);
x_8 = lean::cnstr_get(x_1, 1);
lean::inc(x_8);
lean::dec(x_1);
lean::inc(x_2);
x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_list_zip___rarg___lambda__1), 2, 1);
lean::closure_set(x_12, 0, x_2);
x_13 = l_option_map___rarg(x_12, x_6);
x_14 = l_option_orelse___main___rarg(x_13, x_3);
lean::dec(x_3);
lean::dec(x_13);
x_17 = lean::string_iterator_curr(x_2);
x_18 = l_rbnode_find___main___at___private_init_lean_parser_trie_1__insert__aux___main___spec__1___rarg(x_8, x_17);
if (lean::obj_tag(x_18) == 0)
{
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_2);
x_15 = l_rbnode_find___main___at___private_init_lean_parser_trie_1__insert__aux___main___spec__1___rarg(x_8, x_14);
if (lean::obj_tag(x_6) == 0)
{
obj* x_16; obj* x_17;
x_16 = lean::box(0);
x_17 = l_option_orelse___main___rarg(x_16, x_3);
lean::dec(x_3);
if (lean::obj_tag(x_15) == 0)
{
lean::dec(x_12);
lean::dec(x_2);
return x_14;
return x_17;
}
else
{
obj* x_21; obj* x_24; obj* x_25; obj* x_27;
x_21 = lean::cnstr_get(x_18, 0);
obj* x_21; obj* x_24;
x_21 = lean::cnstr_get(x_15, 0);
lean::inc(x_21);
lean::dec(x_18);
x_24 = lean::mk_nat_obj(1u);
x_25 = lean::nat_sub(x_0, x_24);
lean::dec(x_0);
x_27 = lean::string_iterator_next(x_2);
x_0 = x_25;
lean::dec(x_15);
x_24 = lean::string_iterator_next(x_2);
x_0 = x_12;
x_1 = x_21;
x_2 = x_27;
x_3 = x_14;
x_2 = x_24;
x_3 = x_17;
goto _start;
}
}
else
{
obj* x_30; obj* x_33; obj* x_34; obj* x_35;
lean::dec(x_0);
x_30 = lean::cnstr_get(x_1, 0);
lean::inc(x_30);
lean::dec(x_1);
x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_list_zip___rarg___lambda__1), 2, 1);
lean::closure_set(x_33, 0, x_2);
x_34 = l_option_map___rarg(x_33, x_30);
x_35 = l_option_orelse___main___rarg(x_34, x_3);
obj* x_26; obj* x_28; obj* x_30; obj* x_31; obj* x_32;
x_26 = lean::cnstr_get(x_6, 0);
if (lean::is_exclusive(x_6)) {
x_28 = x_6;
} else {
lean::inc(x_26);
lean::dec(x_6);
x_28 = lean::box(0);
}
lean::inc(x_2);
x_30 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_30, 0, x_2);
lean::cnstr_set(x_30, 1, x_26);
if (lean::is_scalar(x_28)) {
x_31 = lean::alloc_cnstr(1, 1, 0);
} else {
x_31 = x_28;
}
lean::cnstr_set(x_31, 0, x_30);
x_32 = l_option_orelse___main___rarg(x_31, x_3);
lean::dec(x_3);
lean::dec(x_34);
return x_35;
lean::dec(x_31);
if (lean::obj_tag(x_15) == 0)
{
lean::dec(x_12);
lean::dec(x_2);
return x_32;
}
else
{
obj* x_37; obj* x_40;
x_37 = lean::cnstr_get(x_15, 0);
lean::inc(x_37);
lean::dec(x_15);
x_40 = lean::string_iterator_next(x_2);
x_0 = x_12;
x_1 = x_37;
x_2 = x_40;
x_3 = x_32;
goto _start;
}
}
}
else
{
obj* x_43;
lean::dec(x_0);
x_43 = lean::cnstr_get(x_1, 0);
lean::inc(x_43);
lean::dec(x_1);
if (lean::obj_tag(x_43) == 0)
{
obj* x_47; obj* x_48;
lean::dec(x_2);
x_47 = lean::box(0);
x_48 = l_option_orelse___main___rarg(x_47, x_3);
lean::dec(x_3);
return x_48;
}
else
{
obj* x_50; obj* x_52; obj* x_53; obj* x_54; obj* x_55;
x_50 = lean::cnstr_get(x_43, 0);
if (lean::is_exclusive(x_43)) {
x_52 = x_43;
} else {
lean::inc(x_50);
lean::dec(x_43);
x_52 = lean::box(0);
}
x_53 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_53, 0, x_2);
lean::cnstr_set(x_53, 1, x_50);
if (lean::is_scalar(x_52)) {
x_54 = lean::alloc_cnstr(1, 1, 0);
} else {
x_54 = x_52;
}
lean::cnstr_set(x_54, 0, x_53);
x_55 = l_option_orelse___main___rarg(x_54, x_3);
lean::dec(x_3);
lean::dec(x_54);
return x_55;
}
}
}
}