blob: 988043c648e05694829eaadd5b7d929d61804dc2 [file]
// Lean compiler output
// Module: init.lean.parser.module
// Imports: init.lean.parser.command init.control.coroutine
#include "runtime/object.h"
#include "runtime/apply.h"
typedef lean::object obj; typedef lean::usize usize;
typedef lean::uint8 uint8; typedef lean::uint16 uint16;
typedef lean::uint32 uint32; typedef lean::uint64 uint64;
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
obj* l_lean_parser_module_yield__command___rarg(obj*, obj*, obj*, obj*);
obj* l_lean_parser_parsec__t_bind__mk__res___rarg(obj*, obj*);
obj* l_lean_parser_module_header_parser_lean_parser_has__view;
obj* l_lean_parser_module_import__path_parser___closed__1;
obj* l_lean_parser_module_prelude_has__view_x_27;
obj* l_list_map___main___rarg(obj*, obj*);
obj* l_lean_parser_module_import_has__view;
obj* l_lean_parser_command__parser__config__coe__parser__config___boxed(obj*);
extern uint8 l_true_decidable;
obj* l_lean_parser_monad__parsec_str__core___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__3(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_symbol__core___at_lean_parser_unicode__symbol_lean_parser_has__tokens___spec__1___boxed(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_commands_parser_has__view___lambda__2(obj*);
obj* l_coe__trans___rarg(obj*, obj*, obj*);
extern obj* l_lean_parser_combinators_many___rarg___closed__1;
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___boxed(obj*);
namespace lean {
obj* nat_add(obj*, obj*);
}
obj* l_lean_parser_module_tokens;
obj* l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__2(obj*);
obj* l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2;
obj* l_coe__b___rarg(obj*, obj*);
obj* l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__4;
obj* l_lean_parser_module_import__path;
obj* l_lean_parser_module_import_parser___closed__1;
obj* l_lean_parser_module_header_has__view_x_27___lambda__1___closed__6;
extern obj* l_lean_parser_basic__parser__m_monad;
obj* l_lean_parser_with__trailing___rarg___lambda__1(obj*, obj*);
obj* l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4;
obj* l_lean_parser_string__lit_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_list_cons_tokens___rarg(obj*, obj*);
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__1___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__5___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_parsec__t_try__mk__res___rarg(obj*);
obj* l___private_init_lean_parser_module_1__commands__aux___main___boxed(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_header_has__view_x_27___lambda__2___closed__1;
extern "C" obj* lean_name_mk_string(obj*, obj*);
obj* l_lean_parser_module_import;
obj* l_lean_parser_module__parser__m_lift__parser__t___boxed(obj*);
obj* l_lean_parser_parsec__t_labels__mk__res___rarg(obj*, obj*);
extern obj* l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___boxed(obj*, obj*, obj*, obj*, obj*);
obj* l___private_init_lean_parser_module_1__commands__aux___main(uint8, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
obj* l_lean_parser_module__parser__config__coe___boxed(obj*);
obj* l_lean_parser_module_header_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_combinators_many___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__1(obj*, obj*, obj*, obj*);
namespace lean {
obj* string_iterator_next(obj*);
}
obj* l_lean_parser_message__of__parsec__message___rarg(obj*, obj*);
obj* l_lean_parser_module_header_parser(obj*, obj*, obj*);
obj* l_lean_parser_module_yield__command___rarg___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1(obj*);
obj* l_coe__t___rarg(obj*, obj*);
obj* l_lean_parser_module_import_has__view_x_27;
obj* l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__1(obj*);
namespace lean {
uint32 string_iterator_curr(obj*);
}
obj* l_lean_parser_module_parser(obj*, obj*, obj*, obj*);
extern obj* l_lean_name_to__string___closed__1;
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
namespace lean {
obj* string_append(obj*, obj*);
}
obj* l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2;
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*);
obj* l_lean_parser_module_import__path_has__view_x_27;
extern obj* l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
obj* l_lean_parser_module_yield__command___boxed(obj*);
obj* l_reader__t_bind___at_lean_parser_with__trailing___spec__2___rarg(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_prelude_has__view;
obj* l_lean_parser_tokens___rarg(obj*);
extern obj* l_lean_parser_command_parser_lean_parser_has__tokens;
obj* l_option_get__or__else___main___rarg(obj*, obj*);
obj* l_lean_parser_module_header;
extern obj* l_lean_parser_no__kind;
obj* l_lean_parser_syntax_as__node___main(obj*);
obj* l_lean_parser_module_prelude;
obj* l_lean_parser_module_eoi;
obj* l_lean_parser_module_prelude_parser_lean_parser_has__tokens;
obj* l_lean_parser_module_import_parser_lean_parser_has__view;
namespace lean {
uint8 string_iterator_has_next(obj*);
}
obj* l_lean_parser_module_prelude_parser(obj*, obj*, obj*);
obj* l_lean_parser_symbol_tokens___rarg(obj*, obj*);
obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___boxed(obj*, obj*, obj*, obj*, obj*);
namespace lean {
uint8 nat_dec_eq(obj*, obj*);
}
obj* l_lean_parser_mk__raw__res(obj*, obj*);
obj* l_lean_parser_module_import__path_parser_lean_parser_has__view;
extern obj* l_char_has__repr___closed__1;
obj* l_lean_parser_module__parser;
obj* l_lean_parser_module_yield__command(obj*);
obj* l_lean_parser_command__parser_run(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_combinators_node_view___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_string_join___closed__1;
obj* l_reader__t_lift___at_lean_parser_with__trailing___spec__1___rarg___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3(obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
obj* l_lean_parser_command_parser___boxed(obj*);
obj* l_lean_parser_ident_parser___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__2(obj*, obj*, obj*);
obj* l_lean_parser_syntax_mk__node(obj*, obj*);
obj* l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1(obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_commands_tokens;
obj* l_lean_parser_combinators_many1___at_lean_parser_ident__univ__spec_parser_lean_parser_has__tokens___spec__1(obj*, obj*, obj*, obj*);
obj* l_lean_parser_token(obj*, obj*, obj*);
obj* l_lean_parser_whitespace(obj*, obj*, obj*);
obj* l_lean_parser_module_commands_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_import_has__view_x_27___lambda__2(obj*);
obj* l___private_init_lean_parser_module_1__commands__aux___main___closed__1;
obj* l_lean_parser_combinators_node___at_lean_parser_detail__ident__part_parser_lean_parser_has__tokens___spec__15(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_header_parser_lean_parser_has__tokens;
obj* l___private_init_lean_parser_module_1__commands__aux___boxed(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_commands_parser_has__view___lambda__1(obj*);
obj* l_lean_parser_combinators_optional___at_lean_parser_module_header_parser_lean_parser_has__view___spec__1(obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_header_has__view;
obj* l_lean_parser_module_commands_parser_has__view;
obj* l___private_init_lean_parser_module_1__commands__aux(uint8, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_import_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__3;
obj* l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2;
obj* l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__2(obj*);
obj* l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__1;
namespace lean {
obj* string_iterator_remaining(obj*);
}
extern obj* l_lean_parser_basic__parser__m_alternative;
obj* l_lean_parser_module_import_parser(obj*, obj*, obj*);
obj* l_lean_parser_module__parser__m_lift__parser__t___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_import__path_has__view_x_27___lambda__1(obj*);
obj* l_string_trim(obj*);
obj* l_option_get___main___at_lean_parser_run___spec__2(obj*);
obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_ident__univ__spec_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_module_import_parser_lean_parser_has__tokens;
obj* l_lean_parser_module_header_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_module_import_has__view_x_27___lambda__2___closed__1;
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l___private_init_lean_parser_module_1__commands__aux___main___closed__2;
obj* l_lean_parser_module_prelude_parser_lean_parser_has__view;
obj* l_lean_parser_module_prelude_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3;
obj* l_lean_parser_module_header_has__view_x_27___lambda__1___closed__5;
obj* l_lean_parser_module_header_parser___closed__1;
obj* l_lean_parser_module__parser__m_basic__parser__m;
obj* l_lean_parser_module_import__path_has__view;
namespace lean {
obj* nat_sub(obj*, obj*);
}
obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_import__path_parser(obj*, obj*, obj*);
extern obj* l_lean_parser_basic__parser__m_lean_parser_monad__parsec;
extern obj* l_lean_parser_basic__parser__m_monad__except;
obj* l_lean_parser_parsec__t_orelse__mk__res___rarg(obj*, obj*);
obj* l_list_append___rarg(obj*, obj*);
obj* l_option_map___rarg(obj*, obj*);
obj* l_lean_parser_module__parser__m;
obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1;
obj* l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__1(obj*);
obj* l_lean_parser_substring_of__string(obj*);
obj* l_char_quote__core(uint32);
obj* l_lean_parser_module_header_has__view_x_27;
obj* l_lean_parser_module_prelude_parser___closed__1;
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_lean_parser_module__parser__config__coe(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
return x_1;
}
}
obj* l_lean_parser_module__parser__config__coe___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_module__parser__config__coe(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_module__parser__m() {
_start:
{
obj* x_0;
x_0 = lean::box(0);
return x_0;
}
}
obj* _init_l_lean_parser_module__parser() {
_start:
{
obj* x_0;
x_0 = lean::box(0);
return x_0;
}
}
obj* l_lean_parser_module__parser__m_lift__parser__t___rarg(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5, obj* x_6) {
_start:
{
obj* x_7; obj* x_8; obj* x_9;
x_7 = lean::apply_1(x_0, x_4);
x_8 = lean::apply_3(x_2, x_7, x_5, x_6);
x_9 = lean::cnstr_get(x_8, 0);
lean::inc(x_9);
if (lean::obj_tag(x_9) == 0)
{
obj* x_11; obj* x_13; obj* x_14; obj* x_16; obj* x_18; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25;
x_11 = lean::cnstr_get(x_8, 1);
if (lean::is_exclusive(x_8)) {
lean::cnstr_release(x_8, 0);
x_13 = x_8;
} else {
lean::inc(x_11);
lean::dec(x_8);
x_13 = lean::box(0);
}
x_14 = lean::cnstr_get(x_9, 0);
x_16 = lean::cnstr_get(x_9, 1);
x_18 = lean::cnstr_get(x_9, 2);
if (lean::is_exclusive(x_9)) {
x_20 = x_9;
} else {
lean::inc(x_14);
lean::inc(x_16);
lean::inc(x_18);
lean::dec(x_9);
x_20 = lean::box(0);
}
if (lean::is_scalar(x_13)) {
x_21 = lean::alloc_cnstr(0, 2, 0);
} else {
x_21 = x_13;
}
lean::cnstr_set(x_21, 0, x_14);
lean::cnstr_set(x_21, 1, x_3);
x_22 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_20)) {
x_23 = lean::alloc_cnstr(0, 3, 0);
} else {
x_23 = x_20;
}
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_16);
lean::cnstr_set(x_23, 2, x_22);
x_24 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_18, x_23);
x_25 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_25, 0, x_24);
lean::cnstr_set(x_25, 1, x_11);
return x_25;
}
else
{
obj* x_27; obj* x_29; obj* x_30; uint8 x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36;
lean::dec(x_3);
x_27 = lean::cnstr_get(x_8, 1);
if (lean::is_exclusive(x_8)) {
lean::cnstr_release(x_8, 0);
x_29 = x_8;
} else {
lean::inc(x_27);
lean::dec(x_8);
x_29 = lean::box(0);
}
x_30 = lean::cnstr_get(x_9, 0);
x_32 = lean::cnstr_get_scalar<uint8>(x_9, sizeof(void*)*1);
if (lean::is_exclusive(x_9)) {
x_33 = x_9;
} else {
lean::inc(x_30);
lean::dec(x_9);
x_33 = lean::box(0);
}
if (lean::is_scalar(x_33)) {
x_34 = lean::alloc_cnstr(1, 1, 1);
} else {
x_34 = x_33;
}
lean::cnstr_set(x_34, 0, x_30);
lean::cnstr_set_scalar(x_34, sizeof(void*)*1, x_32);
x_35 = x_34;
if (lean::is_scalar(x_29)) {
x_36 = lean::alloc_cnstr(0, 2, 0);
} else {
x_36 = x_29;
}
lean::cnstr_set(x_36, 0, x_35);
lean::cnstr_set(x_36, 1, x_27);
return x_36;
}
}
}
obj* l_lean_parser_module__parser__m_lift__parser__t(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___boxed), 7, 0);
return x_1;
}
}
obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5, obj* x_6) {
_start:
{
obj* x_7;
x_7 = l_lean_parser_module__parser__m_lift__parser__t___rarg(x_0, x_1, x_2, x_3, x_4, x_5, x_6);
lean::dec(x_1);
return x_7;
}
}
obj* l_lean_parser_module__parser__m_lift__parser__t___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_module__parser__m_lift__parser__t(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_module__parser__m_basic__parser__m() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command__parser__config__coe__parser__config___boxed), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_coe__b___rarg), 2, 1);
lean::closure_set(x_1, 0, x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__config__coe___boxed), 1, 0);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_coe__trans___rarg), 3, 2);
lean::closure_set(x_3, 0, x_2);
lean::closure_set(x_3, 1, x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_coe__t___rarg), 2, 1);
lean::closure_set(x_4, 0, x_3);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___boxed), 7, 1);
lean::closure_set(x_5, 0, x_4);
return x_5;
}
}
obj* l_lean_parser_module_yield__command___rarg(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; obj* x_8;
x_4 = lean::box(0);
x_5 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_5, 0, x_4);
lean::cnstr_set(x_5, 1, x_0);
x_6 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_7 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_2);
lean::cnstr_set(x_7, 2, x_6);
x_8 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_8, 0, x_7);
lean::cnstr_set(x_8, 1, x_3);
return x_8;
}
}
obj* l_lean_parser_module_yield__command(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___rarg___boxed), 4, 0);
return x_1;
}
}
obj* l_lean_parser_module_yield__command___rarg___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4;
x_4 = l_lean_parser_module_yield__command___rarg(x_0, x_1, x_2, x_3);
lean::dec(x_1);
return x_4;
}
}
obj* l_lean_parser_module_yield__command___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_module_yield__command(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_module_prelude() {
_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;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("module");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("prelude");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
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;
}
}
obj* _init_l_lean_parser_module_prelude_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_string__lit_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_prelude_has__view_x_27___lambda__1), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_module_prelude_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_module_prelude_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_module_prelude_parser_lean_parser_has__view() {
_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; obj* x_12; obj* x_13;
x_0 = lean::mk_string("prelude");
x_1 = l_string_trim(x_0);
x_2 = lean::mk_nat_obj(0u);
x_3 = lean::box(0);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_unicode__symbol_lean_parser_has__tokens___spec__1___boxed), 6, 3);
lean::closure_set(x_4, 0, x_1);
lean::closure_set(x_4, 1, x_2);
lean::closure_set(x_4, 2, x_3);
x_5 = lean::box(0);
x_6 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_6, 0, x_4);
lean::cnstr_set(x_6, 1, x_5);
x_7 = l_lean_parser_basic__parser__m_monad;
x_8 = l_lean_parser_basic__parser__m_monad__except;
x_9 = l_lean_parser_basic__parser__m_lean_parser_monad__parsec;
x_10 = l_lean_parser_basic__parser__m_alternative;
x_11 = l_lean_parser_module_prelude;
x_12 = l_lean_parser_module_prelude_has__view;
x_13 = l_lean_parser_combinators_node_view___rarg(x_7, x_8, x_9, x_10, x_11, x_6, x_12);
lean::dec(x_6);
return x_13;
}
}
obj* _init_l_lean_parser_module_prelude_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_6;
x_0 = lean::mk_string("prelude");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
x_3 = lean::box(0);
x_4 = l_lean_parser_list_cons_tokens___rarg(x_2, x_3);
lean::dec(x_2);
x_6 = l_lean_parser_tokens___rarg(x_4);
lean::dec(x_4);
return x_6;
}
}
obj* _init_l_lean_parser_module_prelude_parser___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::mk_string("prelude");
x_1 = l_string_trim(x_0);
x_2 = lean::mk_nat_obj(0u);
x_3 = lean::box(0);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_unicode__symbol_lean_parser_has__tokens___spec__1___boxed), 6, 3);
lean::closure_set(x_4, 0, x_1);
lean::closure_set(x_4, 1, x_2);
lean::closure_set(x_4, 2, x_3);
x_5 = lean::box(0);
x_6 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_6, 0, x_4);
lean::cnstr_set(x_6, 1, x_5);
return x_6;
}
}
obj* l_lean_parser_module_prelude_parser(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_4; obj* x_5;
x_3 = l_lean_parser_module_prelude;
x_4 = l_lean_parser_module_prelude_parser___closed__1;
x_5 = l_lean_parser_combinators_node___at_lean_parser_detail__ident__part_parser_lean_parser_has__tokens___spec__15(x_3, x_4, x_0, x_1, x_2);
return x_5;
}
}
obj* _init_l_lean_parser_module_import__path() {
_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;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("module");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("import_path");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
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);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__1(x_4);
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_8; obj* x_11; obj* x_12;
x_8 = lean::cnstr_get(x_2, 0);
lean::inc(x_8);
lean::dec(x_2);
x_11 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_11, 0, x_8);
if (lean::is_scalar(x_6)) {
x_12 = lean::alloc_cnstr(1, 2, 0);
} else {
x_12 = x_6;
}
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_7);
return x_12;
}
case 3:
{
obj* x_13; obj* x_14;
x_13 = lean::box(0);
if (lean::is_scalar(x_6)) {
x_14 = lean::alloc_cnstr(1, 2, 0);
} else {
x_14 = x_6;
}
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_7);
return x_14;
}
default:
{
obj* x_16; obj* x_17;
lean::dec(x_2);
x_16 = lean::box(0);
if (lean::is_scalar(x_6)) {
x_17 = lean::alloc_cnstr(1, 2, 0);
} else {
x_17 = x_6;
}
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_7);
return x_17;
}
}
}
}
}
obj* l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__2(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
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;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
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);
if (lean::is_scalar(x_6)) {
x_13 = lean::alloc_cnstr(1, 2, 0);
} else {
x_13 = x_6;
}
lean::cnstr_set(x_13, 0, x_10);
lean::cnstr_set(x_13, 1, x_12);
return x_13;
}
}
}
obj* _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
x_3 = lean::mk_string("NOT_AN_IDENT");
lean::inc(x_3);
x_5 = l_lean_parser_substring_of__string(x_3);
x_6 = lean::box(0);
x_7 = lean_name_mk_string(x_6, x_3);
x_8 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_8, 0, x_0);
lean::cnstr_set(x_8, 1, x_5);
lean::cnstr_set(x_8, 2, x_7);
lean::cnstr_set(x_8, 3, x_1);
lean::cnstr_set(x_8, 4, x_1);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_2);
lean::cnstr_set(x_9, 1, x_8);
return x_9;
}
}
obj* _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__1;
return x_0;
}
}
obj* _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__3() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__4() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
x_5 = l_lean_parser_syntax_as__node___main(x_1);
if (lean::obj_tag(x_5) == 0)
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_6;
x_6 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2;
return x_6;
}
else
{
obj* x_7;
x_7 = lean::cnstr_get(x_0, 0);
lean::inc(x_7);
lean::dec(x_0);
switch (lean::obj_tag(x_7)) {
case 1:
{
obj* x_10; obj* x_13; obj* x_14;
x_10 = lean::cnstr_get(x_7, 0);
lean::inc(x_10);
lean::dec(x_7);
x_13 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__3;
x_14 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_10);
return x_14;
}
case 3:
{
obj* x_15;
x_15 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2;
return x_15;
}
default:
{
obj* x_17;
lean::dec(x_7);
x_17 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2;
return x_17;
}
}
}
}
else
{
obj* x_18; obj* x_21; obj* x_24;
x_18 = lean::cnstr_get(x_5, 0);
lean::inc(x_18);
lean::dec(x_5);
x_21 = lean::cnstr_get(x_18, 1);
lean::inc(x_21);
lean::dec(x_18);
x_24 = l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__1(x_21);
if (lean::obj_tag(x_0) == 0)
{
obj* x_25; obj* x_26;
x_25 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_26 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_26, 0, x_24);
lean::cnstr_set(x_26, 1, x_25);
return x_26;
}
else
{
obj* x_27;
x_27 = lean::cnstr_get(x_0, 0);
lean::inc(x_27);
lean::dec(x_0);
switch (lean::obj_tag(x_27)) {
case 1:
{
obj* x_30; obj* x_33;
x_30 = lean::cnstr_get(x_27, 0);
lean::inc(x_30);
lean::dec(x_27);
x_33 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_33, 0, x_24);
lean::cnstr_set(x_33, 1, x_30);
return x_33;
}
case 3:
{
obj* x_34; obj* x_35;
x_34 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_24);
lean::cnstr_set(x_35, 1, x_34);
return x_35;
}
default:
{
obj* x_37; obj* x_38;
lean::dec(x_27);
x_37 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_38 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_38, 0, x_24);
lean::cnstr_set(x_38, 1, x_37);
return x_38;
}
}
}
}
}
}
}
obj* l_lean_parser_module_import__path_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__4;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
x_18 = l_lean_parser_syntax_as__node___main(x_2);
if (lean::obj_tag(x_18) == 0)
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_19;
x_19 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2;
return x_19;
}
else
{
obj* x_20;
x_20 = lean::cnstr_get(x_1, 0);
lean::inc(x_20);
lean::dec(x_1);
switch (lean::obj_tag(x_20)) {
case 1:
{
obj* x_23; obj* x_26; obj* x_27;
x_23 = lean::cnstr_get(x_20, 0);
lean::inc(x_23);
lean::dec(x_20);
x_26 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__3;
x_27 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_27, 0, x_26);
lean::cnstr_set(x_27, 1, x_23);
return x_27;
}
case 3:
{
obj* x_28;
x_28 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2;
return x_28;
}
default:
{
obj* x_30;
lean::dec(x_20);
x_30 = l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2;
return x_30;
}
}
}
}
else
{
obj* x_31; obj* x_34; obj* x_37;
x_31 = lean::cnstr_get(x_18, 0);
lean::inc(x_31);
lean::dec(x_18);
x_34 = lean::cnstr_get(x_31, 1);
lean::inc(x_34);
lean::dec(x_31);
x_37 = l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__1(x_34);
if (lean::obj_tag(x_1) == 0)
{
obj* x_38; obj* x_39;
x_38 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_39 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_39, 0, x_37);
lean::cnstr_set(x_39, 1, x_38);
return x_39;
}
else
{
obj* x_40;
x_40 = lean::cnstr_get(x_1, 0);
lean::inc(x_40);
lean::dec(x_1);
switch (lean::obj_tag(x_40)) {
case 1:
{
obj* x_43; obj* x_46;
x_43 = lean::cnstr_get(x_40, 0);
lean::inc(x_43);
lean::dec(x_40);
x_46 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_46, 0, x_37);
lean::cnstr_set(x_46, 1, x_43);
return x_46;
}
case 3:
{
obj* x_47; obj* x_48;
x_47 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_48 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_48, 0, x_37);
lean::cnstr_set(x_48, 1, x_47);
return x_48;
}
default:
{
obj* x_50; obj* x_51;
lean::dec(x_40);
x_50 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_51 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_51, 0, x_37);
lean::cnstr_set(x_51, 1, x_50);
return x_51;
}
}
}
}
}
}
}
obj* l_lean_parser_module_import__path_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_10; obj* x_11; 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);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__2(x_1);
x_7 = l_lean_parser_no__kind;
x_8 = l_lean_parser_syntax_mk__node(x_7, x_6);
x_9 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_9, 0, x_3);
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);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_8);
lean::cnstr_set(x_12, 1, x_11);
x_13 = l_lean_parser_module_import__path;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
return x_14;
}
}
obj* _init_l_lean_parser_module_import__path_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import__path_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import__path_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_module_import__path_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_module_import__path_has__view_x_27;
return x_0;
}
}
obj* l_lean_parser_combinators_many___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_5; obj* x_6;
lean::inc(x_2);
x_5 = l_lean_parser_combinators_many1___at_lean_parser_ident__univ__spec_parser_lean_parser_has__tokens___spec__1(x_0, x_1, x_2, x_3);
x_6 = lean::cnstr_get(x_5, 0);
lean::inc(x_6);
if (lean::obj_tag(x_6) == 0)
{
obj* x_9; obj* x_11; obj* x_12;
lean::dec(x_2);
x_9 = lean::cnstr_get(x_5, 1);
if (lean::is_exclusive(x_5)) {
lean::cnstr_release(x_5, 0);
x_11 = x_5;
} else {
lean::inc(x_9);
lean::dec(x_5);
x_11 = lean::box(0);
}
if (lean::is_scalar(x_11)) {
x_12 = lean::alloc_cnstr(0, 2, 0);
} else {
x_12 = x_11;
}
lean::cnstr_set(x_12, 0, x_6);
lean::cnstr_set(x_12, 1, x_9);
return x_12;
}
else
{
uint8 x_13;
x_13 = lean::cnstr_get_scalar<uint8>(x_6, sizeof(void*)*1);
if (x_13 == 0)
{
obj* x_15; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21;
lean::dec(x_6);
x_15 = lean::cnstr_get(x_5, 1);
if (lean::is_exclusive(x_5)) {
lean::cnstr_release(x_5, 0);
x_17 = x_5;
} else {
lean::inc(x_15);
lean::dec(x_5);
x_17 = lean::box(0);
}
x_18 = l_lean_parser_combinators_many___rarg___closed__1;
x_19 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_20 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_20, 0, x_18);
lean::cnstr_set(x_20, 1, x_2);
lean::cnstr_set(x_20, 2, x_19);
if (lean::is_scalar(x_17)) {
x_21 = lean::alloc_cnstr(0, 2, 0);
} else {
x_21 = x_17;
}
lean::cnstr_set(x_21, 0, x_20);
lean::cnstr_set(x_21, 1, x_15);
return x_21;
}
else
{
obj* x_23; obj* x_25; obj* x_26;
lean::dec(x_2);
x_23 = lean::cnstr_get(x_5, 1);
if (lean::is_exclusive(x_5)) {
lean::cnstr_release(x_5, 0);
x_25 = x_5;
} else {
lean::inc(x_23);
lean::dec(x_5);
x_25 = lean::box(0);
}
if (lean::is_scalar(x_25)) {
x_26 = lean::alloc_cnstr(0, 2, 0);
} else {
x_26 = x_25;
}
lean::cnstr_set(x_26, 0, x_6);
lean::cnstr_set(x_26, 1, x_23);
return x_26;
}
}
}
}
obj* l_lean_parser_ident_parser___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__2(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_5; obj* x_6;
lean::inc(x_1);
lean::inc(x_0);
x_5 = l_lean_parser_token(x_0, x_1, x_2);
x_6 = lean::cnstr_get(x_5, 0);
lean::inc(x_6);
if (lean::obj_tag(x_6) == 0)
{
obj* x_8; obj* x_10; obj* x_11; obj* x_13; obj* x_15; obj* x_17; obj* x_18;
x_8 = lean::cnstr_get(x_5, 1);
if (lean::is_exclusive(x_5)) {
lean::cnstr_release(x_5, 0);
lean::cnstr_set(x_5, 1, lean::box(0));
x_10 = x_5;
} else {
lean::inc(x_8);
lean::dec(x_5);
x_10 = lean::box(0);
}
x_11 = lean::cnstr_get(x_6, 0);
x_13 = lean::cnstr_get(x_6, 1);
x_15 = lean::cnstr_get(x_6, 2);
if (lean::is_exclusive(x_6)) {
lean::cnstr_set(x_6, 0, lean::box(0));
lean::cnstr_set(x_6, 1, lean::box(0));
lean::cnstr_set(x_6, 2, lean::box(0));
x_17 = x_6;
} else {
lean::inc(x_11);
lean::inc(x_13);
lean::inc(x_15);
lean::dec(x_6);
x_17 = lean::box(0);
}
switch (lean::obj_tag(x_11)) {
case 1:
{
obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29;
lean::dec(x_1);
lean::dec(x_0);
x_22 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_17)) {
x_23 = lean::alloc_cnstr(0, 3, 0);
} else {
x_23 = x_17;
}
lean::cnstr_set(x_23, 0, x_11);
lean::cnstr_set(x_23, 1, x_13);
lean::cnstr_set(x_23, 2, x_22);
x_24 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_15, x_23);
x_25 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_22, x_24);
x_26 = lean::box(0);
x_27 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_25, x_26);
x_28 = l_lean_parser_parsec__t_try__mk__res___rarg(x_27);
if (lean::is_scalar(x_10)) {
x_29 = lean::alloc_cnstr(0, 2, 0);
} else {
x_29 = x_10;
}
lean::cnstr_set(x_29, 0, x_28);
lean::cnstr_set(x_29, 1, x_8);
return x_29;
}
case 3:
{
obj* x_32;
lean::dec(x_17);
lean::dec(x_10);
x_32 = lean::box(0);
x_18 = x_32;
goto lbl_19;
}
default:
{
obj* x_36;
lean::dec(x_17);
lean::dec(x_10);
lean::dec(x_11);
x_36 = lean::box(0);
x_18 = x_36;
goto lbl_19;
}
}
lbl_19:
{
obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_46; 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_18);
x_38 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_38, 0, x_1);
x_39 = lean::box(0);
x_40 = l_string_join___closed__1;
x_41 = lean::box(0);
x_42 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__1___rarg(x_40, x_41, x_38, x_39, x_0, x_13, x_8);
lean::dec(x_13);
lean::dec(x_0);
lean::dec(x_38);
x_46 = lean::cnstr_get(x_42, 0);
x_48 = lean::cnstr_get(x_42, 1);
if (lean::is_exclusive(x_42)) {
x_50 = x_42;
} else {
lean::inc(x_46);
lean::inc(x_48);
lean::dec(x_42);
x_50 = lean::box(0);
}
x_51 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_15, x_46);
x_52 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_53 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_52, x_51);
x_54 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_53, x_41);
x_55 = l_lean_parser_parsec__t_try__mk__res___rarg(x_54);
if (lean::is_scalar(x_50)) {
x_56 = lean::alloc_cnstr(0, 2, 0);
} else {
x_56 = x_50;
}
lean::cnstr_set(x_56, 0, x_55);
lean::cnstr_set(x_56, 1, x_48);
return x_56;
}
}
else
{
obj* x_59; obj* x_61; obj* x_62; uint8 x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_71; obj* x_72; obj* x_73;
lean::dec(x_1);
lean::dec(x_0);
x_59 = lean::cnstr_get(x_5, 1);
if (lean::is_exclusive(x_5)) {
lean::cnstr_release(x_5, 0);
x_61 = x_5;
} else {
lean::inc(x_59);
lean::dec(x_5);
x_61 = lean::box(0);
}
x_62 = lean::cnstr_get(x_6, 0);
x_64 = lean::cnstr_get_scalar<uint8>(x_6, sizeof(void*)*1);
if (lean::is_exclusive(x_6)) {
x_65 = x_6;
} else {
lean::inc(x_62);
lean::dec(x_6);
x_65 = lean::box(0);
}
if (lean::is_scalar(x_65)) {
x_66 = lean::alloc_cnstr(1, 1, 1);
} else {
x_66 = x_65;
}
lean::cnstr_set(x_66, 0, x_62);
lean::cnstr_set_scalar(x_66, sizeof(void*)*1, x_64);
x_67 = x_66;
x_68 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_69 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_68, x_67);
x_70 = lean::box(0);
x_71 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_69, x_70);
x_72 = l_lean_parser_parsec__t_try__mk__res___rarg(x_71);
if (lean::is_scalar(x_61)) {
x_73 = lean::alloc_cnstr(0, 2, 0);
} else {
x_73 = x_61;
}
lean::cnstr_set(x_73, 0, x_72);
lean::cnstr_set(x_73, 1, x_59);
return x_73;
}
}
}
obj* l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1(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 = l_lean_name_to__string___closed__1;
x_5 = lean::box(0);
x_6 = l_lean_parser_monad__parsec_str__core___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__3(x_4, x_5, x_1, x_2, x_3);
x_7 = lean::cnstr_get(x_6, 0);
lean::inc(x_7);
if (lean::obj_tag(x_7) == 0)
{
obj* x_9; obj* x_11; obj* x_12; obj* x_14; obj* x_16; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22;
x_9 = lean::cnstr_get(x_6, 1);
if (lean::is_exclusive(x_6)) {
lean::cnstr_release(x_6, 0);
x_11 = x_6;
} else {
lean::inc(x_9);
lean::dec(x_6);
x_11 = lean::box(0);
}
x_12 = lean::cnstr_get(x_7, 1);
x_14 = lean::cnstr_get(x_7, 2);
if (lean::is_exclusive(x_7)) {
lean::cnstr_release(x_7, 0);
x_16 = x_7;
} else {
lean::inc(x_12);
lean::inc(x_14);
lean::dec(x_7);
x_16 = lean::box(0);
}
lean::inc(x_12);
x_18 = l_lean_parser_mk__raw__res(x_0, x_12);
x_19 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_16)) {
x_20 = lean::alloc_cnstr(0, 3, 0);
} else {
x_20 = x_16;
}
lean::cnstr_set(x_20, 0, x_18);
lean::cnstr_set(x_20, 1, x_12);
lean::cnstr_set(x_20, 2, x_19);
x_21 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_14, x_20);
if (lean::is_scalar(x_11)) {
x_22 = lean::alloc_cnstr(0, 2, 0);
} else {
x_22 = x_11;
}
lean::cnstr_set(x_22, 0, x_21);
lean::cnstr_set(x_22, 1, x_9);
return x_22;
}
else
{
obj* x_24; obj* x_26; obj* x_27; uint8 x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33;
lean::dec(x_0);
x_24 = lean::cnstr_get(x_6, 1);
if (lean::is_exclusive(x_6)) {
lean::cnstr_release(x_6, 0);
x_26 = x_6;
} else {
lean::inc(x_24);
lean::dec(x_6);
x_26 = lean::box(0);
}
x_27 = lean::cnstr_get(x_7, 0);
x_29 = lean::cnstr_get_scalar<uint8>(x_7, sizeof(void*)*1);
if (lean::is_exclusive(x_7)) {
x_30 = x_7;
} else {
lean::inc(x_27);
lean::dec(x_7);
x_30 = lean::box(0);
}
if (lean::is_scalar(x_30)) {
x_31 = lean::alloc_cnstr(1, 1, 1);
} else {
x_31 = x_30;
}
lean::cnstr_set(x_31, 0, x_27);
lean::cnstr_set_scalar(x_31, sizeof(void*)*1, x_29);
x_32 = x_31;
if (lean::is_scalar(x_26)) {
x_33 = lean::alloc_cnstr(0, 2, 0);
} else {
x_33 = x_26;
}
lean::cnstr_set(x_33, 0, x_32);
lean::cnstr_set(x_33, 1, x_24);
return x_33;
}
}
}
obj* _init_l_lean_parser_module_import__path_parser_lean_parser_has__view() {
_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; obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_with__trailing___rarg___lambda__1), 2, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_lift___at_lean_parser_with__trailing___spec__1___rarg___boxed), 4, 1);
lean::closure_set(x_1, 0, x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1___boxed), 4, 0);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_bind___at_lean_parser_with__trailing___spec__2___rarg), 5, 2);
lean::closure_set(x_3, 0, x_1);
lean::closure_set(x_3, 1, x_2);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__1), 4, 1);
lean::closure_set(x_4, 0, x_3);
x_5 = lean::box(0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__2), 3, 0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_6);
lean::cnstr_set(x_7, 1, x_5);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_4);
lean::cnstr_set(x_8, 1, x_7);
x_9 = l_lean_parser_basic__parser__m_monad;
x_10 = l_lean_parser_basic__parser__m_monad__except;
x_11 = l_lean_parser_basic__parser__m_lean_parser_monad__parsec;
x_12 = l_lean_parser_basic__parser__m_alternative;
x_13 = l_lean_parser_module_import__path;
x_14 = l_lean_parser_module_import__path_has__view;
x_15 = l_lean_parser_combinators_node_view___rarg(x_9, x_10, x_11, x_12, x_13, x_8, x_14);
lean::dec(x_8);
return x_15;
}
}
obj* l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4;
x_4 = l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1(x_0, x_1, x_2, x_3);
lean::dec(x_1);
return x_4;
}
}
obj* _init_l_lean_parser_module_import__path_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_6;
x_0 = lean::box(0);
x_1 = l_lean_parser_tokens___rarg(x_0);
x_2 = l_lean_parser_list_cons_tokens___rarg(x_0, x_0);
x_3 = l_lean_parser_list_cons_tokens___rarg(x_1, x_2);
lean::dec(x_2);
lean::dec(x_1);
x_6 = l_lean_parser_tokens___rarg(x_3);
lean::dec(x_3);
return x_6;
}
}
obj* _init_l_lean_parser_module_import__path_parser___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;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_with__trailing___rarg___lambda__1), 2, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_lift___at_lean_parser_with__trailing___spec__1___rarg___boxed), 4, 1);
lean::closure_set(x_1, 0, x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1___boxed), 4, 0);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_bind___at_lean_parser_with__trailing___spec__2___rarg), 5, 2);
lean::closure_set(x_3, 0, x_1);
lean::closure_set(x_3, 1, x_2);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__1), 4, 1);
lean::closure_set(x_4, 0, x_3);
x_5 = lean::box(0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__2), 3, 0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_6);
lean::cnstr_set(x_7, 1, x_5);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_4);
lean::cnstr_set(x_8, 1, x_7);
return x_8;
}
}
obj* l_lean_parser_module_import__path_parser(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_4; obj* x_5;
x_3 = l_lean_parser_module_import__path;
x_4 = l_lean_parser_module_import__path_parser___closed__1;
x_5 = l_lean_parser_combinators_node___at_lean_parser_detail__ident__part_parser_lean_parser_has__tokens___spec__15(x_3, x_4, x_0, x_1, x_2);
return x_5;
}
}
obj* _init_l_lean_parser_module_import() {
_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;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("module");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("import");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7;
x_0 = l_lean_parser_module_import__path_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::box(0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_6);
return x_7;
}
}
obj* _init_l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_module_import__path_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3() {
_start:
{
obj* x_0; obj* x_2;
x_2 = lean::box(0);
x_0 = x_2;
goto lbl_1;
lbl_1:
{
obj* x_3; obj* x_4;
x_3 = lean::box(3);
x_4 = l_lean_parser_syntax_as__node___main(x_3);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5; obj* x_6;
x_5 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1;
x_6 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_6, 0, x_0);
lean::cnstr_set(x_6, 1, x_5);
return x_6;
}
else
{
obj* x_7; obj* x_10; obj* x_13; obj* x_14; obj* x_15;
x_7 = lean::cnstr_get(x_4, 0);
lean::inc(x_7);
lean::dec(x_4);
x_10 = lean::cnstr_get(x_7, 1);
lean::inc(x_10);
lean::dec(x_7);
x_13 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2;
x_14 = l_list_map___main___rarg(x_13, x_10);
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_0);
lean::cnstr_set(x_15, 1, x_14);
return x_15;
}
}
}
}
obj* l_lean_parser_module_import_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_4; obj* x_6;
x_6 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_6) == 0)
{
obj* x_7;
x_7 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3;
return x_7;
}
else
{
obj* x_8; obj* x_10; obj* x_11;
x_8 = lean::cnstr_get(x_6, 0);
if (lean::is_exclusive(x_6)) {
lean::cnstr_set(x_6, 0, lean::box(0));
x_10 = x_6;
} else {
lean::inc(x_8);
lean::dec(x_6);
x_10 = lean::box(0);
}
x_11 = lean::cnstr_get(x_8, 1);
lean::inc(x_11);
lean::dec(x_8);
if (lean::obj_tag(x_11) == 0)
{
lean::dec(x_10);
if (lean::obj_tag(x_11) == 0)
{
obj* x_15;
x_15 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3;
return x_15;
}
else
{
obj* x_16; obj* x_19;
x_16 = lean::cnstr_get(x_11, 0);
lean::inc(x_16);
lean::dec(x_11);
x_19 = lean::box(0);
x_3 = x_19;
x_4 = x_16;
goto lbl_5;
}
}
else
{
obj* x_20;
x_20 = lean::cnstr_get(x_11, 0);
lean::inc(x_20);
switch (lean::obj_tag(x_20)) {
case 0:
{
obj* x_22; obj* x_25; obj* x_28;
x_22 = lean::cnstr_get(x_11, 1);
lean::inc(x_22);
lean::dec(x_11);
x_25 = lean::cnstr_get(x_20, 0);
lean::inc(x_25);
lean::dec(x_20);
if (lean::is_scalar(x_10)) {
x_28 = lean::alloc_cnstr(1, 1, 0);
} else {
x_28 = x_10;
}
lean::cnstr_set(x_28, 0, x_25);
if (lean::obj_tag(x_22) == 0)
{
x_1 = x_28;
goto lbl_2;
}
else
{
obj* x_29;
x_29 = lean::cnstr_get(x_22, 0);
lean::inc(x_29);
lean::dec(x_22);
x_3 = x_28;
x_4 = x_29;
goto lbl_5;
}
}
case 3:
{
obj* x_33;
lean::dec(x_10);
x_33 = lean::cnstr_get(x_11, 1);
lean::inc(x_33);
lean::dec(x_11);
if (lean::obj_tag(x_33) == 0)
{
obj* x_36;
x_36 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3;
return x_36;
}
else
{
obj* x_37; obj* x_40;
x_37 = lean::cnstr_get(x_33, 0);
lean::inc(x_37);
lean::dec(x_33);
x_40 = lean::box(0);
x_3 = x_40;
x_4 = x_37;
goto lbl_5;
}
}
default:
{
obj* x_43;
lean::dec(x_10);
lean::dec(x_20);
x_43 = lean::cnstr_get(x_11, 1);
lean::inc(x_43);
lean::dec(x_11);
if (lean::obj_tag(x_43) == 0)
{
obj* x_46;
x_46 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3;
return x_46;
}
else
{
obj* x_47; obj* x_50;
x_47 = lean::cnstr_get(x_43, 0);
lean::inc(x_47);
lean::dec(x_43);
x_50 = lean::box(0);
x_3 = x_50;
x_4 = x_47;
goto lbl_5;
}
}
}
}
}
lbl_2:
{
obj* x_51; obj* x_52;
x_51 = lean::box(3);
x_52 = l_lean_parser_syntax_as__node___main(x_51);
if (lean::obj_tag(x_52) == 0)
{
obj* x_53; obj* x_54;
x_53 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1;
x_54 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_54, 0, x_1);
lean::cnstr_set(x_54, 1, x_53);
return x_54;
}
else
{
obj* x_55; obj* x_58; obj* x_61; obj* x_62; obj* x_63;
x_55 = lean::cnstr_get(x_52, 0);
lean::inc(x_55);
lean::dec(x_52);
x_58 = lean::cnstr_get(x_55, 1);
lean::inc(x_58);
lean::dec(x_55);
x_61 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2;
x_62 = l_list_map___main___rarg(x_61, x_58);
x_63 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_63, 0, x_1);
lean::cnstr_set(x_63, 1, x_62);
return x_63;
}
}
lbl_5:
{
obj* x_64;
x_64 = l_lean_parser_syntax_as__node___main(x_4);
if (lean::obj_tag(x_64) == 0)
{
obj* x_65; obj* x_66;
x_65 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1;
x_66 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_66, 0, x_3);
lean::cnstr_set(x_66, 1, x_65);
return x_66;
}
else
{
obj* x_67; obj* x_70; obj* x_73; obj* x_74; obj* x_75;
x_67 = lean::cnstr_get(x_64, 0);
lean::inc(x_67);
lean::dec(x_64);
x_70 = lean::cnstr_get(x_67, 1);
lean::inc(x_70);
lean::dec(x_67);
x_73 = l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2;
x_74 = l_list_map___main___rarg(x_73, x_70);
x_75 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_75, 0, x_3);
lean::cnstr_set(x_75, 1, x_74);
return x_75;
}
}
}
}
obj* _init_l_lean_parser_module_import_has__view_x_27___lambda__2___closed__1() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_module_import__path_has__view;
x_1 = lean::cnstr_get(x_0, 1);
lean::inc(x_1);
lean::dec(x_0);
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;
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;
}
}
obj* _init_l_lean_parser_module_import_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_module_import_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_module_import_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_module_import_parser_lean_parser_has__view() {
_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; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
x_0 = lean::mk_string("import");
x_1 = l_string_trim(x_0);
x_2 = lean::mk_nat_obj(0u);
x_3 = lean::box(0);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_unicode__symbol_lean_parser_has__tokens___spec__1___boxed), 6, 3);
lean::closure_set(x_4, 0, x_1);
lean::closure_set(x_4, 1, x_2);
lean::closure_set(x_4, 2, x_3);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import__path_parser), 3, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_ident__univ__spec_parser_lean_parser_has__tokens___spec__1), 4, 1);
lean::closure_set(x_6, 0, x_5);
x_7 = lean::box(0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_4);
lean::cnstr_set(x_9, 1, x_8);
x_10 = l_lean_parser_basic__parser__m_monad;
x_11 = l_lean_parser_basic__parser__m_monad__except;
x_12 = l_lean_parser_basic__parser__m_lean_parser_monad__parsec;
x_13 = l_lean_parser_basic__parser__m_alternative;
x_14 = l_lean_parser_module_import;
x_15 = l_lean_parser_module_import_has__view;
x_16 = l_lean_parser_combinators_node_view___rarg(x_10, x_11, x_12, x_13, x_14, x_9, x_15);
lean::dec(x_9);
return x_16;
}
}
obj* _init_l_lean_parser_module_import_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_11;
x_0 = lean::mk_string("import");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
x_3 = l_lean_parser_module_import__path_parser_lean_parser_has__tokens;
x_4 = l_lean_parser_tokens___rarg(x_3);
x_5 = lean::box(0);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_4, x_5);
lean::dec(x_4);
x_8 = l_lean_parser_list_cons_tokens___rarg(x_2, x_6);
lean::dec(x_6);
lean::dec(x_2);
x_11 = l_lean_parser_tokens___rarg(x_8);
lean::dec(x_8);
return x_11;
}
}
obj* _init_l_lean_parser_module_import_parser___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;
x_0 = lean::mk_string("import");
x_1 = l_string_trim(x_0);
x_2 = lean::mk_nat_obj(0u);
x_3 = lean::box(0);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_unicode__symbol_lean_parser_has__tokens___spec__1___boxed), 6, 3);
lean::closure_set(x_4, 0, x_1);
lean::closure_set(x_4, 1, x_2);
lean::closure_set(x_4, 2, x_3);
x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import__path_parser), 3, 0);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_ident__univ__spec_parser_lean_parser_has__tokens___spec__1), 4, 1);
lean::closure_set(x_6, 0, x_5);
x_7 = lean::box(0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_4);
lean::cnstr_set(x_9, 1, x_8);
return x_9;
}
}
obj* l_lean_parser_module_import_parser(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_4; obj* x_5;
x_3 = l_lean_parser_module_import;
x_4 = l_lean_parser_module_import_parser___closed__1;
x_5 = l_lean_parser_combinators_node___at_lean_parser_detail__ident__part_parser_lean_parser_has__tokens___spec__15(x_3, x_4, x_0, x_1, x_2);
return x_5;
}
}
obj* _init_l_lean_parser_module_header() {
_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;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("module");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("header");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7;
x_0 = l_lean_parser_module_import_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::box(0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_6);
return x_7;
}
}
obj* _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_module_import_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3() {
_start:
{
obj* x_0; obj* x_2; obj* x_3; obj* x_6; obj* x_7; obj* x_8;
x_2 = l_lean_parser_module_prelude_has__view;
x_3 = lean::cnstr_get(x_2, 0);
lean::inc(x_3);
lean::dec(x_2);
x_6 = lean::box(3);
x_7 = lean::apply_1(x_3, x_6);
x_8 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_8, 0, x_7);
x_0 = x_8;
goto lbl_1;
lbl_1:
{
obj* x_9; obj* x_10;
x_9 = lean::box(3);
x_10 = l_lean_parser_syntax_as__node___main(x_9);
if (lean::obj_tag(x_10) == 0)
{
obj* x_11; obj* x_12;
x_11 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1;
x_12 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_12, 0, x_0);
lean::cnstr_set(x_12, 1, x_11);
return x_12;
}
else
{
obj* x_13; obj* x_16; obj* x_19; obj* x_20; obj* x_21;
x_13 = lean::cnstr_get(x_10, 0);
lean::inc(x_13);
lean::dec(x_10);
x_16 = lean::cnstr_get(x_13, 1);
lean::inc(x_16);
lean::dec(x_13);
x_19 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2;
x_20 = l_list_map___main___rarg(x_19, x_16);
x_21 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_21, 0, x_0);
lean::cnstr_set(x_21, 1, x_20);
return x_21;
}
}
}
}
obj* _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6;
x_0 = l_lean_parser_module_prelude_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_6, 0, x_5);
return x_6;
}
}
obj* _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__5() {
_start:
{
obj* x_0; obj* x_2;
x_2 = lean::box(0);
x_0 = x_2;
goto lbl_1;
lbl_1:
{
obj* x_3; obj* x_4;
x_3 = lean::box(3);
x_4 = l_lean_parser_syntax_as__node___main(x_3);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5; obj* x_6;
x_5 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1;
x_6 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_6, 0, x_0);
lean::cnstr_set(x_6, 1, x_5);
return x_6;
}
else
{
obj* x_7; obj* x_10; obj* x_13; obj* x_14; obj* x_15;
x_7 = lean::cnstr_get(x_4, 0);
lean::inc(x_7);
lean::dec(x_4);
x_10 = lean::cnstr_get(x_7, 1);
lean::inc(x_10);
lean::dec(x_7);
x_13 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2;
x_14 = l_list_map___main___rarg(x_13, x_10);
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_0);
lean::cnstr_set(x_15, 1, x_14);
return x_15;
}
}
}
}
obj* _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__6() {
_start:
{
obj* x_0; obj* x_2; obj* x_3; obj* x_5; obj* x_6; obj* x_8; obj* x_9;
x_8 = lean::box(0);
x_9 = lean::box(3);
x_5 = x_8;
x_6 = x_9;
goto lbl_7;
lbl_1:
{
obj* x_10; obj* x_11;
x_10 = lean::box(3);
x_11 = l_lean_parser_syntax_as__node___main(x_10);
if (lean::obj_tag(x_11) == 0)
{
obj* x_12; obj* x_13;
x_12 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1;
x_13 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_13, 0, x_0);
lean::cnstr_set(x_13, 1, x_12);
return x_13;
}
else
{
obj* x_14; obj* x_17; obj* x_20; obj* x_21; obj* x_22;
x_14 = lean::cnstr_get(x_11, 0);
lean::inc(x_14);
lean::dec(x_11);
x_17 = lean::cnstr_get(x_14, 1);
lean::inc(x_17);
lean::dec(x_14);
x_20 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2;
x_21 = l_list_map___main___rarg(x_20, x_17);
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_0);
lean::cnstr_set(x_22, 1, x_21);
return x_22;
}
}
lbl_4:
{
obj* x_23;
x_23 = l_lean_parser_syntax_as__node___main(x_3);
if (lean::obj_tag(x_23) == 0)
{
obj* x_24; obj* x_25;
x_24 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1;
x_25 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_25, 0, x_2);
lean::cnstr_set(x_25, 1, x_24);
return x_25;
}
else
{
obj* x_26; obj* x_29; obj* x_32; obj* x_33; obj* x_34;
x_26 = lean::cnstr_get(x_23, 0);
lean::inc(x_26);
lean::dec(x_23);
x_29 = lean::cnstr_get(x_26, 1);
lean::inc(x_29);
lean::dec(x_26);
x_32 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2;
x_33 = l_list_map___main___rarg(x_32, x_29);
x_34 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_34, 0, x_2);
lean::cnstr_set(x_34, 1, x_33);
return x_34;
}
}
lbl_7:
{
obj* x_35;
x_35 = l_lean_parser_syntax_as__node___main(x_6);
if (lean::obj_tag(x_35) == 0)
{
if (lean::obj_tag(x_5) == 0)
{
obj* x_36;
x_36 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3;
return x_36;
}
else
{
obj* x_37; obj* x_40;
x_37 = lean::cnstr_get(x_5, 0);
lean::inc(x_37);
lean::dec(x_5);
x_40 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4;
x_2 = x_40;
x_3 = x_37;
goto lbl_4;
}
}
else
{
obj* x_41; obj* x_43; obj* x_44;
x_41 = lean::cnstr_get(x_35, 0);
if (lean::is_exclusive(x_35)) {
lean::cnstr_set(x_35, 0, lean::box(0));
x_43 = x_35;
} else {
lean::inc(x_41);
lean::dec(x_35);
x_43 = lean::box(0);
}
x_44 = lean::cnstr_get(x_41, 1);
lean::inc(x_44);
lean::dec(x_41);
if (lean::obj_tag(x_44) == 0)
{
lean::dec(x_43);
if (lean::obj_tag(x_5) == 0)
{
obj* x_48;
x_48 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__5;
return x_48;
}
else
{
obj* x_49; obj* x_52;
x_49 = lean::cnstr_get(x_5, 0);
lean::inc(x_49);
lean::dec(x_5);
x_52 = lean::box(0);
x_2 = x_52;
x_3 = x_49;
goto lbl_4;
}
}
else
{
obj* x_53;
x_53 = lean::cnstr_get(x_44, 1);
lean::inc(x_53);
if (lean::obj_tag(x_53) == 0)
{
obj* x_55; obj* x_58; obj* x_59; obj* x_62; obj* x_63;
x_55 = lean::cnstr_get(x_44, 0);
lean::inc(x_55);
lean::dec(x_44);
x_58 = l_lean_parser_module_prelude_has__view;
x_59 = lean::cnstr_get(x_58, 0);
lean::inc(x_59);
lean::dec(x_58);
x_62 = lean::apply_1(x_59, x_55);
if (lean::is_scalar(x_43)) {
x_63 = lean::alloc_cnstr(1, 1, 0);
} else {
x_63 = x_43;
}
lean::cnstr_set(x_63, 0, x_62);
if (lean::obj_tag(x_5) == 0)
{
x_0 = x_63;
goto lbl_1;
}
else
{
obj* x_64;
x_64 = lean::cnstr_get(x_5, 0);
lean::inc(x_64);
lean::dec(x_5);
x_2 = x_63;
x_3 = x_64;
goto lbl_4;
}
}
else
{
lean::dec(x_43);
lean::dec(x_44);
lean::dec(x_53);
if (lean::obj_tag(x_5) == 0)
{
obj* x_70;
x_70 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3;
return x_70;
}
else
{
obj* x_71; obj* x_74;
x_71 = lean::cnstr_get(x_5, 0);
lean::inc(x_71);
lean::dec(x_5);
x_74 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4;
x_2 = x_74;
x_3 = x_71;
goto lbl_4;
}
}
}
}
}
}
}
obj* l_lean_parser_module_header_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_4; obj* x_6; obj* x_7; obj* x_9;
x_9 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_9) == 0)
{
obj* x_10;
x_10 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__6;
return x_10;
}
else
{
obj* x_11; obj* x_14;
x_11 = lean::cnstr_get(x_9, 0);
lean::inc(x_11);
lean::dec(x_9);
x_14 = lean::cnstr_get(x_11, 1);
lean::inc(x_14);
lean::dec(x_11);
if (lean::obj_tag(x_14) == 0)
{
obj* x_17;
x_17 = lean::box(3);
x_6 = x_14;
x_7 = x_17;
goto lbl_8;
}
else
{
obj* x_18; obj* x_20;
x_18 = lean::cnstr_get(x_14, 0);
lean::inc(x_18);
x_20 = lean::cnstr_get(x_14, 1);
lean::inc(x_20);
lean::dec(x_14);
x_6 = x_20;
x_7 = x_18;
goto lbl_8;
}
}
lbl_2:
{
obj* x_23; obj* x_24;
x_23 = lean::box(3);
x_24 = l_lean_parser_syntax_as__node___main(x_23);
if (lean::obj_tag(x_24) == 0)
{
obj* x_25; obj* x_26;
x_25 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1;
x_26 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_26, 0, x_1);
lean::cnstr_set(x_26, 1, x_25);
return x_26;
}
else
{
obj* x_27; obj* x_30; obj* x_33; obj* x_34; obj* x_35;
x_27 = lean::cnstr_get(x_24, 0);
lean::inc(x_27);
lean::dec(x_24);
x_30 = lean::cnstr_get(x_27, 1);
lean::inc(x_30);
lean::dec(x_27);
x_33 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2;
x_34 = l_list_map___main___rarg(x_33, x_30);
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_1);
lean::cnstr_set(x_35, 1, x_34);
return x_35;
}
}
lbl_5:
{
obj* x_36;
x_36 = l_lean_parser_syntax_as__node___main(x_4);
if (lean::obj_tag(x_36) == 0)
{
obj* x_37; obj* x_38;
x_37 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1;
x_38 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_38, 0, x_3);
lean::cnstr_set(x_38, 1, x_37);
return x_38;
}
else
{
obj* x_39; obj* x_42; obj* x_45; obj* x_46; obj* x_47;
x_39 = lean::cnstr_get(x_36, 0);
lean::inc(x_39);
lean::dec(x_36);
x_42 = lean::cnstr_get(x_39, 1);
lean::inc(x_42);
lean::dec(x_39);
x_45 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2;
x_46 = l_list_map___main___rarg(x_45, x_42);
x_47 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_47, 0, x_3);
lean::cnstr_set(x_47, 1, x_46);
return x_47;
}
}
lbl_8:
{
obj* x_48;
x_48 = l_lean_parser_syntax_as__node___main(x_7);
if (lean::obj_tag(x_48) == 0)
{
if (lean::obj_tag(x_6) == 0)
{
obj* x_49;
x_49 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3;
return x_49;
}
else
{
obj* x_50; obj* x_53;
x_50 = lean::cnstr_get(x_6, 0);
lean::inc(x_50);
lean::dec(x_6);
x_53 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4;
x_3 = x_53;
x_4 = x_50;
goto lbl_5;
}
}
else
{
obj* x_54; obj* x_56; obj* x_57;
x_54 = lean::cnstr_get(x_48, 0);
if (lean::is_exclusive(x_48)) {
lean::cnstr_set(x_48, 0, lean::box(0));
x_56 = x_48;
} else {
lean::inc(x_54);
lean::dec(x_48);
x_56 = lean::box(0);
}
x_57 = lean::cnstr_get(x_54, 1);
lean::inc(x_57);
lean::dec(x_54);
if (lean::obj_tag(x_57) == 0)
{
lean::dec(x_56);
if (lean::obj_tag(x_6) == 0)
{
obj* x_61;
x_61 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__5;
return x_61;
}
else
{
obj* x_62; obj* x_65;
x_62 = lean::cnstr_get(x_6, 0);
lean::inc(x_62);
lean::dec(x_6);
x_65 = lean::box(0);
x_3 = x_65;
x_4 = x_62;
goto lbl_5;
}
}
else
{
obj* x_66;
x_66 = lean::cnstr_get(x_57, 1);
lean::inc(x_66);
if (lean::obj_tag(x_66) == 0)
{
obj* x_68; obj* x_71; obj* x_72; obj* x_75; obj* x_76;
x_68 = lean::cnstr_get(x_57, 0);
lean::inc(x_68);
lean::dec(x_57);
x_71 = l_lean_parser_module_prelude_has__view;
x_72 = lean::cnstr_get(x_71, 0);
lean::inc(x_72);
lean::dec(x_71);
x_75 = lean::apply_1(x_72, x_68);
if (lean::is_scalar(x_56)) {
x_76 = lean::alloc_cnstr(1, 1, 0);
} else {
x_76 = x_56;
}
lean::cnstr_set(x_76, 0, x_75);
if (lean::obj_tag(x_6) == 0)
{
x_1 = x_76;
goto lbl_2;
}
else
{
obj* x_77;
x_77 = lean::cnstr_get(x_6, 0);
lean::inc(x_77);
lean::dec(x_6);
x_3 = x_76;
x_4 = x_77;
goto lbl_5;
}
}
else
{
lean::dec(x_66);
lean::dec(x_56);
lean::dec(x_57);
if (lean::obj_tag(x_6) == 0)
{
obj* x_83;
x_83 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3;
return x_83;
}
else
{
obj* x_84; obj* x_87;
x_84 = lean::cnstr_get(x_6, 0);
lean::inc(x_84);
lean::dec(x_6);
x_87 = l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4;
x_3 = x_87;
x_4 = x_84;
goto lbl_5;
}
}
}
}
}
}
}
obj* _init_l_lean_parser_module_header_has__view_x_27___lambda__2___closed__1() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_module_import_has__view;
x_1 = lean::cnstr_get(x_0, 1);
lean::inc(x_1);
lean::dec(x_0);
return x_1;
}
}
obj* l_lean_parser_module_header_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_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_module_header_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_combinators_many___rarg___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_header;
x_15 = l_lean_parser_syntax_mk__node(x_14, x_13);
return x_15;
}
else
{
obj* x_16; obj* x_19; obj* x_20; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28;
x_16 = lean::cnstr_get(x_1, 0);
lean::inc(x_16);
lean::dec(x_1);
x_19 = l_lean_parser_module_prelude_has__view;
x_20 = lean::cnstr_get(x_19, 1);
lean::inc(x_20);
lean::dec(x_19);
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_10);
x_25 = l_lean_parser_syntax_mk__node(x_8, x_24);
x_26 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_26, 0, x_25);
lean::cnstr_set(x_26, 1, x_11);
x_27 = l_lean_parser_module_header;
x_28 = l_lean_parser_syntax_mk__node(x_27, x_26);
return x_28;
}
}
}
obj* _init_l_lean_parser_module_header_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_header_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_header_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_module_header_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_module_header_has__view_x_27;
return x_0;
}
}
obj* l_lean_parser_combinators_optional___at_lean_parser_module_header_parser_lean_parser_has__view___spec__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_7; obj* x_8; obj* x_9; obj* x_12; obj* x_13;
x_7 = lean::box(0);
lean::inc(x_2);
x_12 = lean::apply_3(x_0, x_1, x_2, x_3);
x_13 = lean::cnstr_get(x_12, 0);
lean::inc(x_13);
if (lean::obj_tag(x_13) == 0)
{
if (lean::obj_tag(x_13) == 0)
{
obj* x_15; obj* x_18; obj* x_20; obj* x_22; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28;
x_15 = lean::cnstr_get(x_12, 1);
lean::inc(x_15);
lean::dec(x_12);
x_18 = lean::cnstr_get(x_13, 0);
x_20 = lean::cnstr_get(x_13, 1);
x_22 = lean::cnstr_get(x_13, 2);
if (lean::is_exclusive(x_13)) {
x_24 = x_13;
} else {
lean::inc(x_18);
lean::inc(x_20);
lean::inc(x_22);
lean::dec(x_13);
x_24 = lean::box(0);
}
x_25 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_25, 0, x_18);
x_26 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_24)) {
x_27 = lean::alloc_cnstr(0, 3, 0);
} else {
x_27 = x_24;
}
lean::cnstr_set(x_27, 0, x_25);
lean::cnstr_set(x_27, 1, x_20);
lean::cnstr_set(x_27, 2, x_26);
x_28 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_22, x_27);
x_8 = x_28;
x_9 = x_15;
goto lbl_10;
}
else
{
obj* x_29; obj* x_32; uint8 x_34; obj* x_35; obj* x_36; obj* x_37;
x_29 = lean::cnstr_get(x_12, 1);
lean::inc(x_29);
lean::dec(x_12);
x_32 = lean::cnstr_get(x_13, 0);
x_34 = lean::cnstr_get_scalar<uint8>(x_13, sizeof(void*)*1);
if (lean::is_exclusive(x_13)) {
x_35 = x_13;
} else {
lean::inc(x_32);
lean::dec(x_13);
x_35 = lean::box(0);
}
if (lean::is_scalar(x_35)) {
x_36 = lean::alloc_cnstr(1, 1, 1);
} else {
x_36 = x_35;
}
lean::cnstr_set(x_36, 0, x_32);
lean::cnstr_set_scalar(x_36, sizeof(void*)*1, x_34);
x_37 = x_36;
x_8 = x_37;
x_9 = x_29;
goto lbl_10;
}
}
else
{
obj* x_38; obj* x_41; uint8 x_43; obj* x_44; obj* x_45; obj* x_47; obj* x_49; obj* x_51; obj* x_54; obj* x_56; obj* x_57; obj* x_58; obj* x_59; obj* x_60; obj* x_61;
x_38 = lean::cnstr_get(x_12, 1);
lean::inc(x_38);
lean::dec(x_12);
x_41 = lean::cnstr_get(x_13, 0);
x_43 = lean::cnstr_get_scalar<uint8>(x_13, sizeof(void*)*1);
if (lean::is_exclusive(x_13)) {
lean::cnstr_set(x_13, 0, lean::box(0));
x_44 = x_13;
} else {
lean::inc(x_41);
lean::dec(x_13);
x_44 = lean::box(0);
}
x_45 = lean::cnstr_get(x_41, 0);
lean::inc(x_45);
x_47 = lean::cnstr_get(x_41, 1);
lean::inc(x_47);
x_49 = lean::cnstr_get(x_41, 2);
lean::inc(x_49);
x_51 = lean::cnstr_get(x_41, 3);
lean::inc(x_51);
lean::dec(x_41);
x_54 = l_option_get___main___at_lean_parser_run___spec__2(x_51);
lean::dec(x_51);
x_56 = lean::box(0);
x_57 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_57, 0, x_54);
lean::cnstr_set(x_57, 1, x_56);
x_58 = l_lean_parser_no__kind;
x_59 = l_lean_parser_syntax_mk__node(x_58, x_57);
x_60 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_60, 0, x_59);
x_61 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_61, 0, x_45);
lean::cnstr_set(x_61, 1, x_47);
lean::cnstr_set(x_61, 2, x_49);
lean::cnstr_set(x_61, 3, x_60);
if (x_43 == 0)
{
uint8 x_62; obj* x_63; obj* x_64;
x_62 = 0;
if (lean::is_scalar(x_44)) {
x_63 = lean::alloc_cnstr(1, 1, 1);
} else {
x_63 = x_44;
}
lean::cnstr_set(x_63, 0, x_61);
lean::cnstr_set_scalar(x_63, sizeof(void*)*1, x_62);
x_64 = x_63;
x_8 = x_64;
x_9 = x_38;
goto lbl_10;
}
else
{
obj* x_65; obj* x_66;
if (lean::is_scalar(x_44)) {
x_65 = lean::alloc_cnstr(1, 1, 1);
} else {
x_65 = x_44;
}
lean::cnstr_set(x_65, 0, x_61);
lean::cnstr_set_scalar(x_65, sizeof(void*)*1, x_43);
x_66 = x_65;
x_8 = x_66;
x_9 = x_38;
goto lbl_10;
}
}
lbl_6:
{
if (lean::obj_tag(x_4) == 0)
{
obj* x_67;
x_67 = lean::cnstr_get(x_4, 0);
lean::inc(x_67);
if (lean::obj_tag(x_67) == 0)
{
obj* x_69; obj* x_71; obj* x_73; obj* x_74; obj* x_75; obj* x_76; obj* x_77; obj* x_78;
x_69 = lean::cnstr_get(x_4, 1);
x_71 = lean::cnstr_get(x_4, 2);
if (lean::is_exclusive(x_4)) {
lean::cnstr_release(x_4, 0);
x_73 = x_4;
} else {
lean::inc(x_69);
lean::inc(x_71);
lean::dec(x_4);
x_73 = lean::box(0);
}
x_74 = l_lean_parser_combinators_many___rarg___closed__1;
x_75 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_73)) {
x_76 = lean::alloc_cnstr(0, 3, 0);
} else {
x_76 = x_73;
}
lean::cnstr_set(x_76, 0, x_74);
lean::cnstr_set(x_76, 1, x_69);
lean::cnstr_set(x_76, 2, x_75);
x_77 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_71, x_76);
x_78 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_78, 0, x_77);
lean::cnstr_set(x_78, 1, x_5);
return x_78;
}
else
{
obj* x_79; obj* x_81; obj* x_83; obj* x_84; obj* x_87; obj* x_88; obj* x_89; obj* x_90; obj* x_91; obj* x_92; obj* x_93; obj* x_94;
x_79 = lean::cnstr_get(x_4, 1);
x_81 = lean::cnstr_get(x_4, 2);
if (lean::is_exclusive(x_4)) {
lean::cnstr_release(x_4, 0);
x_83 = x_4;
} else {
lean::inc(x_79);
lean::inc(x_81);
lean::dec(x_4);
x_83 = lean::box(0);
}
x_84 = lean::cnstr_get(x_67, 0);
lean::inc(x_84);
lean::dec(x_67);
x_87 = lean::box(0);
x_88 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_88, 0, x_84);
lean::cnstr_set(x_88, 1, x_87);
x_89 = l_lean_parser_no__kind;
x_90 = l_lean_parser_syntax_mk__node(x_89, x_88);
x_91 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_83)) {
x_92 = lean::alloc_cnstr(0, 3, 0);
} else {
x_92 = x_83;
}
lean::cnstr_set(x_92, 0, x_90);
lean::cnstr_set(x_92, 1, x_79);
lean::cnstr_set(x_92, 2, x_91);
x_93 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_81, x_92);
x_94 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_94, 0, x_93);
lean::cnstr_set(x_94, 1, x_5);
return x_94;
}
}
else
{
obj* x_95; uint8 x_97; obj* x_98; obj* x_99; obj* x_100; obj* x_101;
x_95 = lean::cnstr_get(x_4, 0);
x_97 = lean::cnstr_get_scalar<uint8>(x_4, sizeof(void*)*1);
if (lean::is_exclusive(x_4)) {
x_98 = x_4;
} else {
lean::inc(x_95);
lean::dec(x_4);
x_98 = lean::box(0);
}
if (lean::is_scalar(x_98)) {
x_99 = lean::alloc_cnstr(1, 1, 1);
} else {
x_99 = x_98;
}
lean::cnstr_set(x_99, 0, x_95);
lean::cnstr_set_scalar(x_99, sizeof(void*)*1, x_97);
x_100 = x_99;
x_101 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_101, 0, x_100);
lean::cnstr_set(x_101, 1, x_5);
return x_101;
}
}
lbl_10:
{
if (lean::obj_tag(x_8) == 0)
{
lean::dec(x_2);
x_4 = x_8;
x_5 = x_9;
goto lbl_6;
}
else
{
uint8 x_103;
x_103 = lean::cnstr_get_scalar<uint8>(x_8, sizeof(void*)*1);
if (x_103 == 0)
{
obj* x_105; obj* x_106;
lean::dec(x_8);
x_105 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_106 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_106, 0, x_7);
lean::cnstr_set(x_106, 1, x_2);
lean::cnstr_set(x_106, 2, x_105);
x_4 = x_106;
x_5 = x_9;
goto lbl_6;
}
else
{
lean::dec(x_2);
x_4 = x_8;
x_5 = x_9;
goto lbl_6;
}
}
}
}
}
obj* _init_l_lean_parser_module_header_parser_lean_parser_has__view() {
_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; obj* x_12; obj* x_13;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_prelude_parser), 3, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_module_header_parser_lean_parser_has__view___spec__1), 4, 1);
lean::closure_set(x_1, 0, x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import_parser), 3, 0);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__1), 4, 1);
lean::closure_set(x_3, 0, x_2);
x_4 = lean::box(0);
x_5 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_5, 0, x_3);
lean::cnstr_set(x_5, 1, x_4);
x_6 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_6, 0, x_1);
lean::cnstr_set(x_6, 1, x_5);
x_7 = l_lean_parser_basic__parser__m_monad;
x_8 = l_lean_parser_basic__parser__m_monad__except;
x_9 = l_lean_parser_basic__parser__m_lean_parser_monad__parsec;
x_10 = l_lean_parser_basic__parser__m_alternative;
x_11 = l_lean_parser_module_header;
x_12 = l_lean_parser_module_header_has__view;
x_13 = l_lean_parser_combinators_node_view___rarg(x_7, x_8, x_9, x_10, x_11, x_6, x_12);
lean::dec(x_6);
return x_13;
}
}
obj* _init_l_lean_parser_module_header_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_7; obj* x_10;
x_0 = l_lean_parser_module_prelude_parser_lean_parser_has__tokens;
x_1 = l_lean_parser_tokens___rarg(x_0);
x_2 = l_lean_parser_module_import_parser_lean_parser_has__tokens;
x_3 = l_lean_parser_tokens___rarg(x_2);
x_4 = lean::box(0);
x_5 = l_lean_parser_list_cons_tokens___rarg(x_3, x_4);
lean::dec(x_3);
x_7 = l_lean_parser_list_cons_tokens___rarg(x_1, x_5);
lean::dec(x_5);
lean::dec(x_1);
x_10 = l_lean_parser_tokens___rarg(x_7);
lean::dec(x_7);
return x_10;
}
}
obj* _init_l_lean_parser_module_header_parser___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::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_prelude_parser), 3, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_module_header_parser_lean_parser_has__view___spec__1), 4, 1);
lean::closure_set(x_1, 0, x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_import_parser), 3, 0);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many___at_lean_parser_module_import__path_parser_lean_parser_has__view___spec__1), 4, 1);
lean::closure_set(x_3, 0, x_2);
x_4 = lean::box(0);
x_5 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_5, 0, x_3);
lean::cnstr_set(x_5, 1, x_4);
x_6 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_6, 0, x_1);
lean::cnstr_set(x_6, 1, x_5);
return x_6;
}
}
obj* l_lean_parser_module_header_parser(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_4; obj* x_5;
x_3 = l_lean_parser_module_header;
x_4 = l_lean_parser_module_header_parser___closed__1;
x_5 = l_lean_parser_combinators_node___at_lean_parser_detail__ident__part_parser_lean_parser_has__tokens___spec__15(x_3, x_4, x_0, x_1, x_2);
return x_5;
}
}
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5, obj* x_6, obj* x_7) {
_start:
{
obj* x_8; obj* x_9; uint8 x_10; obj* x_11; obj* x_12; obj* x_13;
x_8 = l_option_get__or__else___main___rarg(x_2, x_6);
x_9 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_0);
lean::cnstr_set(x_9, 2, x_1);
lean::cnstr_set(x_9, 3, x_3);
x_10 = 0;
x_11 = lean::alloc_cnstr(1, 1, 1);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set_scalar(x_11, sizeof(void*)*1, x_10);
x_12 = x_11;
x_13 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_7);
return x_13;
}
}
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg___boxed), 8, 0);
return x_1;
}
}
obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(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_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20;
x_5 = lean::cnstr_get(x_2, 0);
lean::inc(x_5);
lean::dec(x_2);
x_8 = lean::cnstr_get(x_5, 0);
lean::inc(x_8);
lean::dec(x_5);
x_11 = lean::cnstr_get(x_8, 0);
lean::inc(x_11);
lean::dec(x_8);
x_14 = l_lean_parser_message__of__parsec__message___rarg(x_11, x_0);
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_14);
lean::cnstr_set(x_15, 1, x_1);
x_16 = lean::box(0);
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 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_19 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_19, 0, x_17);
lean::cnstr_set(x_19, 1, x_3);
lean::cnstr_set(x_19, 2, x_18);
x_20 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_20, 0, x_19);
lean::cnstr_set(x_20, 1, x_4);
return x_20;
}
}
obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
uint8 x_4;
x_4 = lean::string_iterator_has_next(x_2);
if (x_4 == 0)
{
obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_11; obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18;
x_5 = lean::box(0);
x_6 = l_lean_parser_monad__parsec_eoi__error___rarg___closed__1;
x_7 = lean::box(0);
x_8 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_6, x_7, x_5, x_5, x_0, x_1, x_2, x_3);
lean::dec(x_2);
lean::dec(x_0);
x_11 = lean::cnstr_get(x_8, 0);
x_13 = lean::cnstr_get(x_8, 1);
if (lean::is_exclusive(x_8)) {
x_15 = x_8;
} else {
lean::inc(x_11);
lean::inc(x_13);
lean::dec(x_8);
x_15 = lean::box(0);
}
x_16 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_17 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_16, x_11);
if (lean::is_scalar(x_15)) {
x_18 = lean::alloc_cnstr(0, 2, 0);
} else {
x_18 = x_15;
}
lean::cnstr_set(x_18, 0, x_17);
lean::cnstr_set(x_18, 1, x_13);
return x_18;
}
else
{
uint32 x_19; uint8 x_20;
x_19 = lean::string_iterator_curr(x_2);
x_20 = l_true_decidable;
if (x_20 == 0)
{
obj* x_21; obj* x_22; obj* x_23; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_31; obj* x_33; obj* x_35; obj* x_36; obj* x_37; obj* x_38;
x_21 = l_char_quote__core(x_19);
x_22 = l_char_has__repr___closed__1;
x_23 = lean::string_append(x_22, x_21);
lean::dec(x_21);
x_25 = lean::string_append(x_23, x_22);
x_26 = lean::box(0);
x_27 = lean::box(0);
x_28 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_25, x_27, x_26, x_26, x_0, x_1, x_2, x_3);
lean::dec(x_2);
lean::dec(x_0);
x_31 = lean::cnstr_get(x_28, 0);
x_33 = lean::cnstr_get(x_28, 1);
if (lean::is_exclusive(x_28)) {
x_35 = x_28;
} else {
lean::inc(x_31);
lean::inc(x_33);
lean::dec(x_28);
x_35 = lean::box(0);
}
x_36 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_37 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_36, x_31);
if (lean::is_scalar(x_35)) {
x_38 = lean::alloc_cnstr(0, 2, 0);
} else {
x_38 = x_35;
}
lean::cnstr_set(x_38, 0, x_37);
lean::cnstr_set(x_38, 1, x_33);
return x_38;
}
else
{
obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44;
x_39 = lean::string_iterator_next(x_2);
x_40 = lean::box(0);
x_41 = lean::box_uint32(x_19);
x_42 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_42, 0, x_41);
lean::cnstr_set(x_42, 1, x_0);
x_43 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_43, 0, x_42);
lean::cnstr_set(x_43, 1, x_39);
lean::cnstr_set(x_43, 2, x_40);
x_44 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_44, 0, x_43);
lean::cnstr_set(x_44, 1, x_3);
return x_44;
}
}
}
}
obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4(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_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20;
x_5 = lean::cnstr_get(x_2, 0);
lean::inc(x_5);
lean::dec(x_2);
x_8 = lean::cnstr_get(x_5, 0);
lean::inc(x_8);
lean::dec(x_5);
x_11 = lean::cnstr_get(x_8, 0);
lean::inc(x_11);
lean::dec(x_8);
x_14 = l_lean_parser_message__of__parsec__message___rarg(x_11, x_0);
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_14);
lean::cnstr_set(x_15, 1, x_1);
x_16 = lean::box(0);
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 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_19 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_19, 0, x_17);
lean::cnstr_set(x_19, 1, x_3);
lean::cnstr_set(x_19, 2, x_18);
x_20 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_20, 0, x_19);
lean::cnstr_set(x_20, 1, x_4);
return x_20;
}
}
obj* l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; uint8 x_6;
x_4 = lean::string_iterator_remaining(x_2);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::nat_dec_eq(x_4, x_5);
lean::dec(x_4);
if (x_6 == 0)
{
uint32 x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_19; obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_26;
x_8 = lean::string_iterator_curr(x_2);
x_9 = l_char_quote__core(x_8);
x_10 = l_char_has__repr___closed__1;
x_11 = lean::string_append(x_10, x_9);
lean::dec(x_9);
x_13 = lean::string_append(x_11, x_10);
x_14 = lean::box(0);
x_15 = lean::box(0);
x_16 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_13, x_15, x_14, x_14, x_0, x_1, x_2, x_3);
lean::dec(x_2);
lean::dec(x_0);
x_19 = lean::cnstr_get(x_16, 0);
x_21 = lean::cnstr_get(x_16, 1);
if (lean::is_exclusive(x_16)) {
x_23 = x_16;
} else {
lean::inc(x_19);
lean::inc(x_21);
lean::dec(x_16);
x_23 = lean::box(0);
}
x_24 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_25 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_24, x_19);
if (lean::is_scalar(x_23)) {
x_26 = lean::alloc_cnstr(0, 2, 0);
} else {
x_26 = x_23;
}
lean::cnstr_set(x_26, 0, x_25);
lean::cnstr_set(x_26, 1, x_21);
return x_26;
}
else
{
obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31;
x_27 = lean::box(0);
x_28 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_28, 0, x_27);
lean::cnstr_set(x_28, 1, x_0);
x_29 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_30 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_30, 0, x_28);
lean::cnstr_set(x_30, 1, x_2);
lean::cnstr_set(x_30, 2, x_29);
x_31 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_31, 0, x_30);
lean::cnstr_set(x_31, 1, x_3);
return x_31;
}
}
}
obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___closed__1() {
_start:
{
obj* x_0; uint8 x_1; obj* x_2; obj* x_3;
x_0 = lean::box(0);
x_1 = 1;
x_2 = lean::box(x_1);
x_3 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_3, 0, x_2);
lean::cnstr_set(x_3, 1, x_0);
return x_3;
}
}
obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___closed__2() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_parser___boxed), 1, 0);
return x_0;
}
}
obj* l___private_init_lean_parser_module_1__commands__aux___main(uint8 x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) {
_start:
{
obj* x_6; uint8 x_7;
x_6 = lean::mk_nat_obj(0u);
x_7 = lean::nat_dec_eq(x_1, x_6);
if (x_7 == 0)
{
obj* x_8; obj* x_9; uint8 x_10; obj* x_11; obj* x_12; obj* x_16;
x_8 = lean::mk_nat_obj(1u);
x_9 = lean::nat_sub(x_1, x_8);
lean::inc(x_4);
lean::inc(x_2);
x_16 = l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(x_2, x_3, x_4, x_5);
if (x_0 == 0)
{
obj* x_17; obj* x_19; uint8 x_22;
x_17 = lean::cnstr_get(x_16, 0);
lean::inc(x_17);
x_19 = lean::cnstr_get(x_16, 1);
lean::inc(x_19);
lean::dec(x_16);
x_22 = 1;
x_10 = x_22;
x_11 = x_17;
x_12 = x_19;
goto lbl_13;
}
else
{
obj* x_23; obj* x_25; uint8 x_28;
x_23 = lean::cnstr_get(x_16, 0);
lean::inc(x_23);
x_25 = lean::cnstr_get(x_16, 1);
lean::inc(x_25);
lean::dec(x_16);
x_28 = 0;
x_10 = x_28;
x_11 = x_23;
x_12 = x_25;
goto lbl_13;
}
lbl_13:
{
if (lean::obj_tag(x_11) == 0)
{
obj* x_33;
lean::dec(x_9);
lean::dec(x_4);
lean::dec(x_3);
lean::dec(x_2);
x_33 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_33, 0, x_11);
lean::cnstr_set(x_33, 1, x_12);
return x_33;
}
else
{
obj* x_34; uint8 x_36; obj* x_37; obj* x_38; obj* x_40; obj* x_41; obj* x_43; obj* x_44;
x_34 = lean::cnstr_get(x_11, 0);
lean::inc(x_34);
x_36 = lean::cnstr_get_scalar<uint8>(x_11, sizeof(void*)*1);
if (x_36 == 0)
{
obj* x_47; obj* x_49; obj* x_51; obj* x_53; obj* x_54;
lean::dec(x_11);
x_47 = lean::cnstr_get(x_3, 1);
lean::inc(x_47);
x_49 = lean::cnstr_get(x_3, 0);
lean::inc(x_49);
x_51 = l___private_init_lean_parser_module_1__commands__aux___main___closed__2;
lean::inc(x_4);
x_53 = l_lean_parser_command__parser_run(x_47, x_51, x_49, x_4, x_12);
x_54 = lean::cnstr_get(x_53, 0);
lean::inc(x_54);
if (lean::obj_tag(x_54) == 0)
{
obj* x_56; obj* x_58; obj* x_59; obj* x_61; obj* x_63; obj* x_65; obj* x_67; obj* x_68; obj* x_69; obj* x_70;
x_56 = lean::cnstr_get(x_53, 1);
if (lean::is_exclusive(x_53)) {
lean::cnstr_release(x_53, 0);
x_58 = x_53;
} else {
lean::inc(x_56);
lean::dec(x_53);
x_58 = lean::box(0);
}
x_59 = lean::cnstr_get(x_54, 0);
x_61 = lean::cnstr_get(x_54, 1);
x_63 = lean::cnstr_get(x_54, 2);
if (lean::is_exclusive(x_54)) {
x_65 = x_54;
} else {
lean::inc(x_59);
lean::inc(x_61);
lean::inc(x_63);
lean::dec(x_54);
x_65 = lean::box(0);
}
lean::inc(x_2);
if (lean::is_scalar(x_58)) {
x_67 = lean::alloc_cnstr(0, 2, 0);
} else {
x_67 = x_58;
}
lean::cnstr_set(x_67, 0, x_59);
lean::cnstr_set(x_67, 1, x_2);
x_68 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_65)) {
x_69 = lean::alloc_cnstr(0, 3, 0);
} else {
x_69 = x_65;
}
lean::cnstr_set(x_69, 0, x_67);
lean::cnstr_set(x_69, 1, x_61);
lean::cnstr_set(x_69, 2, x_68);
x_70 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_63, x_69);
if (lean::obj_tag(x_70) == 0)
{
obj* x_71; obj* x_73; obj* x_75; obj* x_77; obj* x_78; obj* x_80; obj* x_82; obj* x_83; uint8 x_84; obj* x_85; obj* x_86; obj* x_87; obj* x_88; obj* x_89; obj* x_90;
x_71 = lean::cnstr_get(x_70, 0);
x_73 = lean::cnstr_get(x_70, 1);
x_75 = lean::cnstr_get(x_70, 2);
if (lean::is_exclusive(x_70)) {
x_77 = x_70;
} else {
lean::inc(x_71);
lean::inc(x_73);
lean::inc(x_75);
lean::dec(x_70);
x_77 = lean::box(0);
}
x_78 = lean::cnstr_get(x_71, 0);
x_80 = lean::cnstr_get(x_71, 1);
if (lean::is_exclusive(x_71)) {
x_82 = x_71;
} else {
lean::inc(x_78);
lean::inc(x_80);
lean::dec(x_71);
x_82 = lean::box(0);
}
x_83 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_83, 0, x_78);
x_84 = 0;
x_85 = lean::box(x_84);
if (lean::is_scalar(x_82)) {
x_86 = lean::alloc_cnstr(0, 2, 0);
} else {
x_86 = x_82;
}
lean::cnstr_set(x_86, 0, x_85);
lean::cnstr_set(x_86, 1, x_83);
x_87 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_87, 0, x_86);
lean::cnstr_set(x_87, 1, x_80);
if (lean::is_scalar(x_77)) {
x_88 = lean::alloc_cnstr(0, 3, 0);
} else {
x_88 = x_77;
}
lean::cnstr_set(x_88, 0, x_87);
lean::cnstr_set(x_88, 1, x_73);
lean::cnstr_set(x_88, 2, x_68);
x_89 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_75, x_88);
x_90 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_68, x_89);
x_43 = x_90;
x_44 = x_56;
goto lbl_45;
}
else
{
obj* x_91; uint8 x_93; obj* x_94; obj* x_95; obj* x_96; obj* x_97;
x_91 = lean::cnstr_get(x_70, 0);
x_93 = lean::cnstr_get_scalar<uint8>(x_70, sizeof(void*)*1);
if (lean::is_exclusive(x_70)) {
x_94 = x_70;
} else {
lean::inc(x_91);
lean::dec(x_70);
x_94 = lean::box(0);
}
if (lean::is_scalar(x_94)) {
x_95 = lean::alloc_cnstr(1, 1, 1);
} else {
x_95 = x_94;
}
lean::cnstr_set(x_95, 0, x_91);
lean::cnstr_set_scalar(x_95, sizeof(void*)*1, x_93);
x_96 = x_95;
x_97 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_68, x_96);
x_43 = x_97;
x_44 = x_56;
goto lbl_45;
}
}
else
{
obj* x_98; obj* x_101; uint8 x_103; obj* x_104; obj* x_105; obj* x_106; obj* x_107; obj* x_108;
x_98 = lean::cnstr_get(x_53, 1);
lean::inc(x_98);
lean::dec(x_53);
x_101 = lean::cnstr_get(x_54, 0);
x_103 = lean::cnstr_get_scalar<uint8>(x_54, sizeof(void*)*1);
if (lean::is_exclusive(x_54)) {
x_104 = x_54;
} else {
lean::inc(x_101);
lean::dec(x_54);
x_104 = lean::box(0);
}
if (lean::is_scalar(x_104)) {
x_105 = lean::alloc_cnstr(1, 1, 1);
} else {
x_105 = x_104;
}
lean::cnstr_set(x_105, 0, x_101);
lean::cnstr_set_scalar(x_105, sizeof(void*)*1, x_103);
x_106 = x_105;
x_107 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_108 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_107, x_106);
x_43 = x_108;
x_44 = x_98;
goto lbl_45;
}
}
else
{
obj* x_114;
lean::dec(x_9);
lean::dec(x_4);
lean::dec(x_3);
lean::dec(x_2);
lean::dec(x_34);
x_114 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_114, 0, x_11);
lean::cnstr_set(x_114, 1, x_12);
return x_114;
}
lbl_39:
{
if (lean::obj_tag(x_37) == 0)
{
obj* x_115; obj* x_117; obj* x_119;
x_115 = lean::cnstr_get(x_37, 0);
lean::inc(x_115);
x_117 = lean::cnstr_get(x_115, 0);
lean::inc(x_117);
x_119 = lean::cnstr_get(x_117, 1);
lean::inc(x_119);
if (lean::obj_tag(x_119) == 0)
{
obj* x_121; obj* x_123; obj* x_126; obj* x_129; uint8 x_132; obj* x_133; obj* x_135; obj* x_137; obj* x_139; obj* x_140; obj* x_141; obj* x_142;
x_121 = lean::cnstr_get(x_37, 1);
lean::inc(x_121);
x_123 = lean::cnstr_get(x_37, 2);
lean::inc(x_123);
lean::dec(x_37);
x_126 = lean::cnstr_get(x_115, 1);
lean::inc(x_126);
lean::dec(x_115);
x_129 = lean::cnstr_get(x_117, 0);
lean::inc(x_129);
lean::dec(x_117);
x_132 = lean::unbox(x_129);
x_133 = l___private_init_lean_parser_module_1__commands__aux___main(x_132, x_9, x_126, x_3, x_121, x_38);
lean::dec(x_9);
x_135 = lean::cnstr_get(x_133, 0);
x_137 = lean::cnstr_get(x_133, 1);
if (lean::is_exclusive(x_133)) {
x_139 = x_133;
} else {
lean::inc(x_135);
lean::inc(x_137);
lean::dec(x_133);
x_139 = lean::box(0);
}
x_140 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_123, x_135);
x_141 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_34, x_140);
if (lean::is_scalar(x_139)) {
x_142 = lean::alloc_cnstr(0, 2, 0);
} else {
x_142 = x_139;
}
lean::cnstr_set(x_142, 0, x_141);
lean::cnstr_set(x_142, 1, x_137);
return x_142;
}
else
{
obj* x_144; obj* x_146; obj* x_149; obj* x_152; obj* x_155; obj* x_156;
lean::dec(x_119);
x_144 = lean::cnstr_get(x_37, 1);
lean::inc(x_144);
x_146 = lean::cnstr_get(x_37, 2);
lean::inc(x_146);
lean::dec(x_37);
x_149 = lean::cnstr_get(x_115, 1);
lean::inc(x_149);
lean::dec(x_115);
x_152 = lean::cnstr_get(x_117, 0);
lean::inc(x_152);
lean::dec(x_117);
x_155 = l_lean_parser_module_yield__command___rarg(x_149, x_3, x_144, x_38);
x_156 = lean::cnstr_get(x_155, 0);
lean::inc(x_156);
if (lean::obj_tag(x_156) == 0)
{
obj* x_158; obj* x_160; obj* x_163; obj* x_165; obj* x_168; uint8 x_171; obj* x_172; obj* x_174; obj* x_176; obj* x_178; obj* x_179; obj* x_180; obj* x_181; obj* x_182;
x_158 = lean::cnstr_get(x_156, 0);
lean::inc(x_158);
x_160 = lean::cnstr_get(x_155, 1);
lean::inc(x_160);
lean::dec(x_155);
x_163 = lean::cnstr_get(x_156, 1);
lean::inc(x_163);
x_165 = lean::cnstr_get(x_156, 2);
lean::inc(x_165);
lean::dec(x_156);
x_168 = lean::cnstr_get(x_158, 1);
lean::inc(x_168);
lean::dec(x_158);
x_171 = lean::unbox(x_152);
x_172 = l___private_init_lean_parser_module_1__commands__aux___main(x_171, x_9, x_168, x_3, x_163, x_160);
lean::dec(x_9);
x_174 = lean::cnstr_get(x_172, 0);
x_176 = lean::cnstr_get(x_172, 1);
if (lean::is_exclusive(x_172)) {
x_178 = x_172;
} else {
lean::inc(x_174);
lean::inc(x_176);
lean::dec(x_172);
x_178 = lean::box(0);
}
x_179 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_165, x_174);
x_180 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_146, x_179);
x_181 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_34, x_180);
if (lean::is_scalar(x_178)) {
x_182 = lean::alloc_cnstr(0, 2, 0);
} else {
x_182 = x_178;
}
lean::cnstr_set(x_182, 0, x_181);
lean::cnstr_set(x_182, 1, x_176);
return x_182;
}
else
{
obj* x_186; obj* x_188; obj* x_189; uint8 x_191; obj* x_192; obj* x_193; obj* x_194; obj* x_195; obj* x_196; obj* x_197;
lean::dec(x_9);
lean::dec(x_3);
lean::dec(x_152);
x_186 = lean::cnstr_get(x_155, 1);
if (lean::is_exclusive(x_155)) {
lean::cnstr_release(x_155, 0);
x_188 = x_155;
} else {
lean::inc(x_186);
lean::dec(x_155);
x_188 = lean::box(0);
}
x_189 = lean::cnstr_get(x_156, 0);
x_191 = lean::cnstr_get_scalar<uint8>(x_156, sizeof(void*)*1);
if (lean::is_exclusive(x_156)) {
x_192 = x_156;
} else {
lean::inc(x_189);
lean::dec(x_156);
x_192 = lean::box(0);
}
if (lean::is_scalar(x_192)) {
x_193 = lean::alloc_cnstr(1, 1, 1);
} else {
x_193 = x_192;
}
lean::cnstr_set(x_193, 0, x_189);
lean::cnstr_set_scalar(x_193, sizeof(void*)*1, x_191);
x_194 = x_193;
x_195 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_146, x_194);
x_196 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_34, x_195);
if (lean::is_scalar(x_188)) {
x_197 = lean::alloc_cnstr(0, 2, 0);
} else {
x_197 = x_188;
}
lean::cnstr_set(x_197, 0, x_196);
lean::cnstr_set(x_197, 1, x_186);
return x_197;
}
}
}
else
{
obj* x_200; uint8 x_202; obj* x_203; obj* x_204; obj* x_205; obj* x_206; obj* x_207;
lean::dec(x_9);
lean::dec(x_3);
x_200 = lean::cnstr_get(x_37, 0);
x_202 = lean::cnstr_get_scalar<uint8>(x_37, sizeof(void*)*1);
if (lean::is_exclusive(x_37)) {
x_203 = x_37;
} else {
lean::inc(x_200);
lean::dec(x_37);
x_203 = lean::box(0);
}
if (lean::is_scalar(x_203)) {
x_204 = lean::alloc_cnstr(1, 1, 1);
} else {
x_204 = x_203;
}
lean::cnstr_set(x_204, 0, x_200);
lean::cnstr_set_scalar(x_204, sizeof(void*)*1, x_202);
x_205 = x_204;
x_206 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_34, x_205);
x_207 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_207, 0, x_206);
lean::cnstr_set(x_207, 1, x_38);
return x_207;
}
}
lbl_42:
{
if (lean::obj_tag(x_40) == 0)
{
lean::dec(x_2);
x_37 = x_40;
x_38 = x_41;
goto lbl_39;
}
else
{
obj* x_209; uint8 x_211; obj* x_213; obj* x_216; obj* x_217;
x_209 = lean::cnstr_get(x_40, 0);
lean::inc(x_209);
x_211 = lean::cnstr_get_scalar<uint8>(x_40, sizeof(void*)*1);
lean::dec(x_40);
x_213 = lean::cnstr_get(x_209, 0);
lean::inc(x_213);
lean::inc(x_3);
x_216 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(x_209, x_2, x_3, x_213, x_41);
x_217 = lean::cnstr_get(x_216, 0);
lean::inc(x_217);
if (lean::obj_tag(x_217) == 0)
{
obj* x_219; obj* x_221; obj* x_223; obj* x_224; obj* x_226; obj* x_228; obj* x_229; obj* x_231; obj* x_232; obj* x_235; obj* x_237; uint8 x_238; obj* x_239; obj* x_240; obj* x_241; obj* x_242; obj* x_243; obj* x_244;
x_219 = lean::cnstr_get(x_217, 0);
lean::inc(x_219);
x_221 = lean::cnstr_get(x_216, 1);
if (lean::is_exclusive(x_216)) {
lean::cnstr_release(x_216, 0);
x_223 = x_216;
} else {
lean::inc(x_221);
lean::dec(x_216);
x_223 = lean::box(0);
}
x_224 = lean::cnstr_get(x_217, 1);
x_226 = lean::cnstr_get(x_217, 2);
if (lean::is_exclusive(x_217)) {
lean::cnstr_release(x_217, 0);
x_228 = x_217;
} else {
lean::inc(x_224);
lean::inc(x_226);
lean::dec(x_217);
x_228 = lean::box(0);
}
x_229 = lean::cnstr_get(x_219, 1);
if (lean::is_exclusive(x_219)) {
lean::cnstr_release(x_219, 0);
x_231 = x_219;
} else {
lean::inc(x_229);
lean::dec(x_219);
x_231 = lean::box(0);
}
x_232 = lean::cnstr_get(x_209, 3);
lean::inc(x_232);
lean::dec(x_209);
x_235 = l_option_get___main___at_lean_parser_run___spec__2(x_232);
lean::dec(x_232);
x_237 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_237, 0, x_235);
x_238 = 1;
x_239 = lean::box(x_238);
if (lean::is_scalar(x_231)) {
x_240 = lean::alloc_cnstr(0, 2, 0);
} else {
x_240 = x_231;
}
lean::cnstr_set(x_240, 0, x_239);
lean::cnstr_set(x_240, 1, x_237);
if (lean::is_scalar(x_223)) {
x_241 = lean::alloc_cnstr(0, 2, 0);
} else {
x_241 = x_223;
}
lean::cnstr_set(x_241, 0, x_240);
lean::cnstr_set(x_241, 1, x_229);
x_242 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_228)) {
x_243 = lean::alloc_cnstr(0, 3, 0);
} else {
x_243 = x_228;
}
lean::cnstr_set(x_243, 0, x_241);
lean::cnstr_set(x_243, 1, x_224);
lean::cnstr_set(x_243, 2, x_242);
x_244 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_226, x_243);
if (lean::obj_tag(x_244) == 0)
{
x_37 = x_244;
x_38 = x_221;
goto lbl_39;
}
else
{
uint8 x_245;
x_245 = lean::cnstr_get_scalar<uint8>(x_244, sizeof(void*)*1);
if (x_211 == 0)
{
obj* x_246; obj* x_248; obj* x_249; obj* x_250;
x_246 = lean::cnstr_get(x_244, 0);
if (lean::is_exclusive(x_244)) {
x_248 = x_244;
} else {
lean::inc(x_246);
lean::dec(x_244);
x_248 = lean::box(0);
}
if (lean::is_scalar(x_248)) {
x_249 = lean::alloc_cnstr(1, 1, 1);
} else {
x_249 = x_248;
}
lean::cnstr_set(x_249, 0, x_246);
lean::cnstr_set_scalar(x_249, sizeof(void*)*1, x_245);
x_250 = x_249;
x_37 = x_250;
x_38 = x_221;
goto lbl_39;
}
else
{
obj* x_251; obj* x_253; obj* x_254; obj* x_255;
x_251 = lean::cnstr_get(x_244, 0);
if (lean::is_exclusive(x_244)) {
x_253 = x_244;
} else {
lean::inc(x_251);
lean::dec(x_244);
x_253 = lean::box(0);
}
if (lean::is_scalar(x_253)) {
x_254 = lean::alloc_cnstr(1, 1, 1);
} else {
x_254 = x_253;
}
lean::cnstr_set(x_254, 0, x_251);
lean::cnstr_set_scalar(x_254, sizeof(void*)*1, x_211);
x_255 = x_254;
x_37 = x_255;
x_38 = x_221;
goto lbl_39;
}
}
}
else
{
uint8 x_257;
lean::dec(x_209);
x_257 = lean::cnstr_get_scalar<uint8>(x_217, sizeof(void*)*1);
if (x_211 == 0)
{
obj* x_258; obj* x_261; obj* x_263; obj* x_264; obj* x_265;
x_258 = lean::cnstr_get(x_216, 1);
lean::inc(x_258);
lean::dec(x_216);
x_261 = lean::cnstr_get(x_217, 0);
if (lean::is_exclusive(x_217)) {
x_263 = x_217;
} else {
lean::inc(x_261);
lean::dec(x_217);
x_263 = lean::box(0);
}
if (lean::is_scalar(x_263)) {
x_264 = lean::alloc_cnstr(1, 1, 1);
} else {
x_264 = x_263;
}
lean::cnstr_set(x_264, 0, x_261);
lean::cnstr_set_scalar(x_264, sizeof(void*)*1, x_257);
x_265 = x_264;
x_37 = x_265;
x_38 = x_258;
goto lbl_39;
}
else
{
obj* x_266; obj* x_269; obj* x_271; obj* x_272; obj* x_273;
x_266 = lean::cnstr_get(x_216, 1);
lean::inc(x_266);
lean::dec(x_216);
x_269 = lean::cnstr_get(x_217, 0);
if (lean::is_exclusive(x_217)) {
x_271 = x_217;
} else {
lean::inc(x_269);
lean::dec(x_217);
x_271 = lean::box(0);
}
if (lean::is_scalar(x_271)) {
x_272 = lean::alloc_cnstr(1, 1, 1);
} else {
x_272 = x_271;
}
lean::cnstr_set(x_272, 0, x_269);
lean::cnstr_set_scalar(x_272, sizeof(void*)*1, x_211);
x_273 = x_272;
x_37 = x_273;
x_38 = x_266;
goto lbl_39;
}
}
}
}
lbl_45:
{
if (lean::obj_tag(x_43) == 0)
{
lean::dec(x_4);
x_40 = x_43;
x_41 = x_44;
goto lbl_42;
}
else
{
obj* x_275; uint8 x_277; obj* x_278; obj* x_279;
x_275 = lean::cnstr_get(x_43, 0);
lean::inc(x_275);
x_277 = lean::cnstr_get_scalar<uint8>(x_43, sizeof(void*)*1);
if (x_277 == 0)
{
lean::dec(x_43);
if (x_10 == 0)
{
obj* x_282; obj* x_284; obj* x_285; obj* x_286;
x_282 = lean::box(0);
lean::inc(x_2);
x_284 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_284, 0, x_282);
lean::cnstr_set(x_284, 1, x_2);
x_285 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_286 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_286, 0, x_284);
lean::cnstr_set(x_286, 1, x_4);
lean::cnstr_set(x_286, 2, x_285);
x_278 = x_286;
x_279 = x_44;
goto lbl_280;
}
else
{
obj* x_287; obj* x_288; obj* x_289; obj* x_291; obj* x_294; obj* x_296; obj* x_298; obj* x_301;
x_287 = l_string_join___closed__1;
x_288 = lean::box(0);
x_289 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
lean::inc(x_4);
x_291 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_291, 0, x_4);
lean::cnstr_set(x_291, 1, x_287);
lean::cnstr_set(x_291, 2, x_288);
lean::cnstr_set(x_291, 3, x_289);
lean::inc(x_3);
lean::inc(x_2);
x_294 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4(x_291, x_2, x_3, x_4, x_44);
lean::dec(x_291);
x_296 = lean::cnstr_get(x_294, 0);
lean::inc(x_296);
x_298 = lean::cnstr_get(x_294, 1);
lean::inc(x_298);
lean::dec(x_294);
x_301 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_289, x_296);
x_278 = x_301;
x_279 = x_298;
goto lbl_280;
}
}
else
{
lean::dec(x_4);
lean::dec(x_275);
x_40 = x_43;
x_41 = x_44;
goto lbl_42;
}
lbl_280:
{
if (lean::obj_tag(x_278) == 0)
{
obj* x_304; obj* x_306; obj* x_308; obj* x_311; obj* x_312; obj* x_314; obj* x_317; obj* x_318; obj* x_320; obj* x_322; obj* x_326; obj* x_327;
x_304 = lean::cnstr_get(x_278, 0);
lean::inc(x_304);
x_306 = lean::cnstr_get(x_278, 1);
lean::inc(x_306);
x_308 = lean::cnstr_get(x_278, 2);
lean::inc(x_308);
lean::dec(x_278);
x_314 = lean::cnstr_get(x_304, 1);
lean::inc(x_314);
lean::dec(x_304);
x_320 = lean::cnstr_get(x_3, 0);
lean::inc(x_320);
x_322 = lean::cnstr_get(x_320, 0);
lean::inc(x_322);
lean::dec(x_320);
lean::inc(x_306);
x_326 = l_lean_parser_token(x_322, x_306, x_279);
x_327 = lean::cnstr_get(x_326, 0);
lean::inc(x_327);
if (lean::obj_tag(x_327) == 0)
{
obj* x_329; obj* x_331; obj* x_332; obj* x_334; obj* x_336; obj* x_338; obj* x_340; obj* x_341; obj* x_342; obj* x_343;
x_329 = lean::cnstr_get(x_326, 1);
if (lean::is_exclusive(x_326)) {
lean::cnstr_release(x_326, 0);
x_331 = x_326;
} else {
lean::inc(x_329);
lean::dec(x_326);
x_331 = lean::box(0);
}
x_332 = lean::cnstr_get(x_327, 0);
x_334 = lean::cnstr_get(x_327, 1);
x_336 = lean::cnstr_get(x_327, 2);
if (lean::is_exclusive(x_327)) {
x_338 = x_327;
} else {
lean::inc(x_332);
lean::inc(x_334);
lean::inc(x_336);
lean::dec(x_327);
x_338 = lean::box(0);
}
lean::inc(x_314);
if (lean::is_scalar(x_331)) {
x_340 = lean::alloc_cnstr(0, 2, 0);
} else {
x_340 = x_331;
}
lean::cnstr_set(x_340, 0, x_332);
lean::cnstr_set(x_340, 1, x_314);
x_341 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_338)) {
x_342 = lean::alloc_cnstr(0, 3, 0);
} else {
x_342 = x_338;
}
lean::cnstr_set(x_342, 0, x_340);
lean::cnstr_set(x_342, 1, x_334);
lean::cnstr_set(x_342, 2, x_341);
x_343 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_336, x_342);
if (lean::obj_tag(x_343) == 0)
{
obj* x_344; obj* x_346; obj* x_348; obj* x_350; obj* x_351; obj* x_353; obj* x_354; obj* x_355; obj* x_356; obj* x_357; obj* x_358;
x_344 = lean::cnstr_get(x_343, 0);
x_346 = lean::cnstr_get(x_343, 1);
x_348 = lean::cnstr_get(x_343, 2);
if (lean::is_exclusive(x_343)) {
x_350 = x_343;
} else {
lean::inc(x_344);
lean::inc(x_346);
lean::inc(x_348);
lean::dec(x_343);
x_350 = lean::box(0);
}
x_351 = lean::cnstr_get(x_344, 1);
if (lean::is_exclusive(x_344)) {
lean::cnstr_release(x_344, 0);
x_353 = x_344;
} else {
lean::inc(x_351);
lean::dec(x_344);
x_353 = lean::box(0);
}
x_354 = lean::box(0);
if (lean::is_scalar(x_353)) {
x_355 = lean::alloc_cnstr(0, 2, 0);
} else {
x_355 = x_353;
}
lean::cnstr_set(x_355, 0, x_354);
lean::cnstr_set(x_355, 1, x_351);
if (lean::is_scalar(x_350)) {
x_356 = lean::alloc_cnstr(0, 3, 0);
} else {
x_356 = x_350;
}
lean::cnstr_set(x_356, 0, x_355);
lean::cnstr_set(x_356, 1, x_346);
lean::cnstr_set(x_356, 2, x_341);
x_357 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_348, x_356);
x_358 = l_lean_parser_parsec__t_try__mk__res___rarg(x_357);
x_317 = x_358;
x_318 = x_329;
goto lbl_319;
}
else
{
obj* x_359; obj* x_361; uint8 x_362; obj* x_363; obj* x_364;
x_359 = lean::cnstr_get(x_343, 0);
if (lean::is_exclusive(x_343)) {
x_361 = x_343;
} else {
lean::inc(x_359);
lean::dec(x_343);
x_361 = lean::box(0);
}
x_362 = 0;
if (lean::is_scalar(x_361)) {
x_363 = lean::alloc_cnstr(1, 1, 1);
} else {
x_363 = x_361;
}
lean::cnstr_set(x_363, 0, x_359);
lean::cnstr_set_scalar(x_363, sizeof(void*)*1, x_362);
x_364 = x_363;
x_317 = x_364;
x_318 = x_329;
goto lbl_319;
}
}
else
{
obj* x_365; obj* x_368; obj* x_370; uint8 x_371; obj* x_372; obj* x_373;
x_365 = lean::cnstr_get(x_326, 1);
lean::inc(x_365);
lean::dec(x_326);
x_368 = lean::cnstr_get(x_327, 0);
if (lean::is_exclusive(x_327)) {
x_370 = x_327;
} else {
lean::inc(x_368);
lean::dec(x_327);
x_370 = lean::box(0);
}
x_371 = 0;
if (lean::is_scalar(x_370)) {
x_372 = lean::alloc_cnstr(1, 1, 1);
} else {
x_372 = x_370;
}
lean::cnstr_set(x_372, 0, x_368);
lean::cnstr_set_scalar(x_372, sizeof(void*)*1, x_371);
x_373 = x_372;
x_317 = x_373;
x_318 = x_365;
goto lbl_319;
}
lbl_313:
{
if (lean::obj_tag(x_311) == 0)
{
obj* x_374; obj* x_376; obj* x_378; obj* x_380; obj* x_381; obj* x_383; obj* x_384; obj* x_385; obj* x_386; obj* x_387; obj* x_388; obj* x_389; obj* x_390;
x_374 = lean::cnstr_get(x_311, 0);
x_376 = lean::cnstr_get(x_311, 1);
x_378 = lean::cnstr_get(x_311, 2);
if (lean::is_exclusive(x_311)) {
x_380 = x_311;
} else {
lean::inc(x_374);
lean::inc(x_376);
lean::inc(x_378);
lean::dec(x_311);
x_380 = lean::box(0);
}
x_381 = lean::cnstr_get(x_374, 1);
if (lean::is_exclusive(x_374)) {
lean::cnstr_release(x_374, 0);
x_383 = x_374;
} else {
lean::inc(x_381);
lean::dec(x_374);
x_383 = lean::box(0);
}
x_384 = l___private_init_lean_parser_module_1__commands__aux___main___closed__1;
if (lean::is_scalar(x_383)) {
x_385 = lean::alloc_cnstr(0, 2, 0);
} else {
x_385 = x_383;
}
lean::cnstr_set(x_385, 0, x_384);
lean::cnstr_set(x_385, 1, x_381);
x_386 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_380)) {
x_387 = lean::alloc_cnstr(0, 3, 0);
} else {
x_387 = x_380;
}
lean::cnstr_set(x_387, 0, x_385);
lean::cnstr_set(x_387, 1, x_376);
lean::cnstr_set(x_387, 2, x_386);
x_388 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_378, x_387);
x_389 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_308, x_388);
x_390 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_275, x_389);
x_40 = x_390;
x_41 = x_312;
goto lbl_42;
}
else
{
obj* x_391; uint8 x_393; obj* x_394; obj* x_395; obj* x_396; obj* x_397; obj* x_398;
x_391 = lean::cnstr_get(x_311, 0);
x_393 = lean::cnstr_get_scalar<uint8>(x_311, sizeof(void*)*1);
if (lean::is_exclusive(x_311)) {
x_394 = x_311;
} else {
lean::inc(x_391);
lean::dec(x_311);
x_394 = lean::box(0);
}
if (lean::is_scalar(x_394)) {
x_395 = lean::alloc_cnstr(1, 1, 1);
} else {
x_395 = x_394;
}
lean::cnstr_set(x_395, 0, x_391);
lean::cnstr_set_scalar(x_395, sizeof(void*)*1, x_393);
x_396 = x_395;
x_397 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_308, x_396);
x_398 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_275, x_397);
x_40 = x_398;
x_41 = x_312;
goto lbl_42;
}
}
lbl_319:
{
if (lean::obj_tag(x_317) == 0)
{
lean::dec(x_314);
lean::dec(x_306);
x_311 = x_317;
x_312 = x_318;
goto lbl_313;
}
else
{
uint8 x_401;
x_401 = lean::cnstr_get_scalar<uint8>(x_317, sizeof(void*)*1);
if (x_401 == 0)
{
obj* x_402; obj* x_405; obj* x_406;
x_402 = lean::cnstr_get(x_317, 0);
lean::inc(x_402);
lean::dec(x_317);
x_405 = l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3(x_314, x_3, x_306, x_318);
x_406 = lean::cnstr_get(x_405, 0);
lean::inc(x_406);
if (lean::obj_tag(x_406) == 0)
{
obj* x_408; obj* x_410; obj* x_413; obj* x_415; obj* x_417; obj* x_418; obj* x_420; obj* x_421; obj* x_422; obj* x_423; obj* x_424; obj* x_425; obj* x_426;
x_408 = lean::cnstr_get(x_406, 0);
lean::inc(x_408);
x_410 = lean::cnstr_get(x_405, 1);
lean::inc(x_410);
lean::dec(x_405);
x_413 = lean::cnstr_get(x_406, 1);
x_415 = lean::cnstr_get(x_406, 2);
if (lean::is_exclusive(x_406)) {
lean::cnstr_release(x_406, 0);
x_417 = x_406;
} else {
lean::inc(x_413);
lean::inc(x_415);
lean::dec(x_406);
x_417 = lean::box(0);
}
x_418 = lean::cnstr_get(x_408, 1);
if (lean::is_exclusive(x_408)) {
lean::cnstr_release(x_408, 0);
x_420 = x_408;
} else {
lean::inc(x_418);
lean::dec(x_408);
x_420 = lean::box(0);
}
x_421 = lean::box(0);
if (lean::is_scalar(x_420)) {
x_422 = lean::alloc_cnstr(0, 2, 0);
} else {
x_422 = x_420;
}
lean::cnstr_set(x_422, 0, x_421);
lean::cnstr_set(x_422, 1, x_418);
x_423 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_417)) {
x_424 = lean::alloc_cnstr(0, 3, 0);
} else {
x_424 = x_417;
}
lean::cnstr_set(x_424, 0, x_422);
lean::cnstr_set(x_424, 1, x_413);
lean::cnstr_set(x_424, 2, x_423);
x_425 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_415, x_424);
x_426 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_402, x_425);
x_311 = x_426;
x_312 = x_410;
goto lbl_313;
}
else
{
obj* x_427; obj* x_430; uint8 x_432; obj* x_433; obj* x_434; obj* x_435; obj* x_436;
x_427 = lean::cnstr_get(x_405, 1);
lean::inc(x_427);
lean::dec(x_405);
x_430 = lean::cnstr_get(x_406, 0);
x_432 = lean::cnstr_get_scalar<uint8>(x_406, sizeof(void*)*1);
if (lean::is_exclusive(x_406)) {
x_433 = x_406;
} else {
lean::inc(x_430);
lean::dec(x_406);
x_433 = lean::box(0);
}
if (lean::is_scalar(x_433)) {
x_434 = lean::alloc_cnstr(1, 1, 1);
} else {
x_434 = x_433;
}
lean::cnstr_set(x_434, 0, x_430);
lean::cnstr_set_scalar(x_434, sizeof(void*)*1, x_432);
x_435 = x_434;
x_436 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_402, x_435);
x_311 = x_436;
x_312 = x_427;
goto lbl_313;
}
}
else
{
lean::dec(x_314);
lean::dec(x_306);
x_311 = x_317;
x_312 = x_318;
goto lbl_313;
}
}
}
}
else
{
obj* x_439; uint8 x_441; obj* x_442; obj* x_443; obj* x_444; obj* x_445;
x_439 = lean::cnstr_get(x_278, 0);
x_441 = lean::cnstr_get_scalar<uint8>(x_278, sizeof(void*)*1);
if (lean::is_exclusive(x_278)) {
x_442 = x_278;
} else {
lean::inc(x_439);
lean::dec(x_278);
x_442 = lean::box(0);
}
if (lean::is_scalar(x_442)) {
x_443 = lean::alloc_cnstr(1, 1, 1);
} else {
x_443 = x_442;
}
lean::cnstr_set(x_443, 0, x_439);
lean::cnstr_set_scalar(x_443, sizeof(void*)*1, x_441);
x_444 = x_443;
x_445 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_275, x_444);
x_40 = x_445;
x_41 = x_279;
goto lbl_42;
}
}
}
}
}
}
}
else
{
obj* x_446; obj* x_447; obj* x_448; obj* x_449;
x_446 = lean::box(0);
x_447 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1;
x_448 = lean::box(0);
x_449 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_447, x_448, x_446, x_446, x_2, x_3, x_4, x_5);
lean::dec(x_4);
lean::dec(x_3);
lean::dec(x_2);
return x_449;
}
}
}
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5, obj* x_6, obj* x_7) {
_start:
{
obj* x_8;
x_8 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_0, x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean::dec(x_2);
lean::dec(x_4);
lean::dec(x_5);
lean::dec(x_6);
return x_8;
}
}
obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
obj* x_5;
x_5 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(x_0, x_1, x_2, x_3, x_4);
lean::dec(x_0);
return x_5;
}
}
obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4;
x_4 = l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3(x_0, x_1, x_2, x_3);
lean::dec(x_1);
return x_4;
}
}
obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
obj* x_5;
x_5 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4(x_0, x_1, x_2, x_3, x_4);
lean::dec(x_0);
return x_5;
}
}
obj* l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__5___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4;
x_4 = l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(x_0, x_1, x_2, x_3);
lean::dec(x_1);
return x_4;
}
}
obj* l___private_init_lean_parser_module_1__commands__aux___main___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) {
_start:
{
uint8 x_6; obj* x_7;
x_6 = lean::unbox(x_0);
x_7 = l___private_init_lean_parser_module_1__commands__aux___main(x_6, x_1, x_2, x_3, x_4, x_5);
lean::dec(x_1);
return x_7;
}
}
obj* l___private_init_lean_parser_module_1__commands__aux(uint8 x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) {
_start:
{
obj* x_6;
x_6 = l___private_init_lean_parser_module_1__commands__aux___main(x_0, x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
obj* l___private_init_lean_parser_module_1__commands__aux___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) {
_start:
{
uint8 x_6; obj* x_7;
x_6 = lean::unbox(x_0);
x_7 = l___private_init_lean_parser_module_1__commands__aux(x_6, x_1, x_2, x_3, x_4, x_5);
lean::dec(x_1);
return x_7;
}
}
obj* l_lean_parser_module_commands_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6; uint8 x_8; obj* x_9; obj* x_11; obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18;
x_4 = lean::string_iterator_remaining(x_2);
x_5 = lean::mk_nat_obj(1u);
x_6 = lean::nat_add(x_4, x_5);
lean::dec(x_4);
x_8 = 0;
x_9 = l___private_init_lean_parser_module_1__commands__aux___main(x_8, x_6, x_0, x_1, x_2, x_3);
lean::dec(x_6);
x_11 = lean::cnstr_get(x_9, 0);
x_13 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
x_15 = x_9;
} else {
lean::inc(x_11);
lean::inc(x_13);
lean::dec(x_9);
x_15 = lean::box(0);
}
x_16 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_17 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_16, x_11);
if (lean::is_scalar(x_15)) {
x_18 = lean::alloc_cnstr(0, 2, 0);
} else {
x_18 = x_15;
}
lean::cnstr_set(x_18, 0, x_17);
lean::cnstr_set(x_18, 1, x_13);
return x_18;
}
}
obj* _init_l_lean_parser_module_commands_tokens() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_command_parser_lean_parser_has__tokens;
x_1 = l_lean_parser_tokens___rarg(x_0);
return x_1;
}
}
obj* l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__1(x_4);
if (lean::is_scalar(x_6)) {
x_8 = lean::alloc_cnstr(1, 2, 0);
} else {
x_8 = x_6;
}
lean::cnstr_set(x_8, 0, x_2);
lean::cnstr_set(x_8, 1, x_7);
return x_8;
}
}
}
obj* l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__2(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__2(x_4);
if (lean::is_scalar(x_6)) {
x_8 = lean::alloc_cnstr(1, 2, 0);
} else {
x_8 = x_6;
}
lean::cnstr_set(x_8, 0, x_2);
lean::cnstr_set(x_8, 1, x_7);
return x_8;
}
}
}
obj* l_lean_parser_module_commands_parser_has__view___lambda__1(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_1) == 0)
{
obj* x_2;
x_2 = l_lean_parser_ident__univ__spec_has__view_x_27___lambda__1___closed__1;
return x_2;
}
else
{
obj* x_3; obj* x_6; obj* x_9;
x_3 = lean::cnstr_get(x_1, 0);
lean::inc(x_3);
lean::dec(x_1);
x_6 = lean::cnstr_get(x_3, 1);
lean::inc(x_6);
lean::dec(x_3);
x_9 = l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__1(x_6);
return x_9;
}
}
}
obj* l_lean_parser_module_commands_parser_has__view___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_3;
x_1 = l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__2(x_0);
x_2 = l_lean_parser_no__kind;
x_3 = l_lean_parser_syntax_mk__node(x_2, x_1);
return x_3;
}
}
obj* _init_l_lean_parser_module_commands_parser_has__view() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_commands_parser_has__view___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_commands_parser_has__view___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_module_eoi() {
_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;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("module");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("eoi");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* l_lean_parser_module_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_7; obj* x_8; obj* x_10; obj* x_11; obj* x_13; obj* x_15; obj* x_18; obj* x_20;
x_13 = lean::cnstr_get(x_1, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_13, 0);
lean::inc(x_15);
lean::dec(x_13);
x_18 = l_lean_parser_whitespace(x_15, x_2, x_3);
lean::dec(x_15);
x_20 = lean::cnstr_get(x_18, 0);
lean::inc(x_20);
if (lean::obj_tag(x_20) == 0)
{
obj* x_22; obj* x_24; obj* x_25; obj* x_27; obj* x_29; obj* x_31; obj* x_33; obj* x_34; obj* x_35; obj* x_36;
x_22 = lean::cnstr_get(x_18, 1);
if (lean::is_exclusive(x_18)) {
lean::cnstr_release(x_18, 0);
x_24 = x_18;
} else {
lean::inc(x_22);
lean::dec(x_18);
x_24 = lean::box(0);
}
x_25 = lean::cnstr_get(x_20, 0);
x_27 = lean::cnstr_get(x_20, 1);
x_29 = lean::cnstr_get(x_20, 2);
if (lean::is_exclusive(x_20)) {
x_31 = x_20;
} else {
lean::inc(x_25);
lean::inc(x_27);
lean::inc(x_29);
lean::dec(x_20);
x_31 = lean::box(0);
}
lean::inc(x_0);
if (lean::is_scalar(x_24)) {
x_33 = lean::alloc_cnstr(0, 2, 0);
} else {
x_33 = x_24;
}
lean::cnstr_set(x_33, 0, x_25);
lean::cnstr_set(x_33, 1, x_0);
x_34 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_31)) {
x_35 = lean::alloc_cnstr(0, 3, 0);
} else {
x_35 = x_31;
}
lean::cnstr_set(x_35, 0, x_33);
lean::cnstr_set(x_35, 1, x_27);
lean::cnstr_set(x_35, 2, x_34);
x_36 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_29, x_35);
x_10 = x_36;
x_11 = x_22;
goto lbl_12;
}
else
{
obj* x_37; obj* x_40; uint8 x_42; obj* x_43; obj* x_44; obj* x_45;
x_37 = lean::cnstr_get(x_18, 1);
lean::inc(x_37);
lean::dec(x_18);
x_40 = lean::cnstr_get(x_20, 0);
x_42 = lean::cnstr_get_scalar<uint8>(x_20, sizeof(void*)*1);
if (lean::is_exclusive(x_20)) {
x_43 = x_20;
} else {
lean::inc(x_40);
lean::dec(x_20);
x_43 = lean::box(0);
}
if (lean::is_scalar(x_43)) {
x_44 = lean::alloc_cnstr(1, 1, 1);
} else {
x_44 = x_43;
}
lean::cnstr_set(x_44, 0, x_40);
lean::cnstr_set_scalar(x_44, sizeof(void*)*1, x_42);
x_45 = x_44;
x_10 = x_45;
x_11 = x_37;
goto lbl_12;
}
lbl_6:
{
if (lean::obj_tag(x_4) == 0)
{
obj* x_46; obj* x_48; obj* x_50; obj* x_53; obj* x_56; obj* x_58; obj* x_60; obj* x_62; obj* x_63; obj* x_64; obj* x_65; obj* x_66;
x_46 = lean::cnstr_get(x_4, 0);
lean::inc(x_46);
x_48 = lean::cnstr_get(x_4, 1);
lean::inc(x_48);
x_50 = lean::cnstr_get(x_4, 2);
lean::inc(x_50);
lean::dec(x_4);
x_53 = lean::cnstr_get(x_46, 1);
lean::inc(x_53);
lean::dec(x_46);
x_56 = l_lean_parser_module_yield__command___rarg(x_53, x_1, x_48, x_5);
lean::dec(x_1);
x_58 = lean::cnstr_get(x_56, 0);
x_60 = lean::cnstr_get(x_56, 1);
if (lean::is_exclusive(x_56)) {
x_62 = x_56;
} else {
lean::inc(x_58);
lean::inc(x_60);
lean::dec(x_56);
x_62 = lean::box(0);
}
x_63 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_64 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_63, x_58);
x_65 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_50, x_64);
if (lean::is_scalar(x_62)) {
x_66 = lean::alloc_cnstr(0, 2, 0);
} else {
x_66 = x_62;
}
lean::cnstr_set(x_66, 0, x_65);
lean::cnstr_set(x_66, 1, x_60);
return x_66;
}
else
{
obj* x_68; uint8 x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74;
lean::dec(x_1);
x_68 = lean::cnstr_get(x_4, 0);
x_70 = lean::cnstr_get_scalar<uint8>(x_4, sizeof(void*)*1);
if (lean::is_exclusive(x_4)) {
x_71 = x_4;
} else {
lean::inc(x_68);
lean::dec(x_4);
x_71 = lean::box(0);
}
if (lean::is_scalar(x_71)) {
x_72 = lean::alloc_cnstr(1, 1, 1);
} else {
x_72 = x_71;
}
lean::cnstr_set(x_72, 0, x_68);
lean::cnstr_set_scalar(x_72, sizeof(void*)*1, x_70);
x_73 = x_72;
x_74 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_74, 0, x_73);
lean::cnstr_set(x_74, 1, x_5);
return x_74;
}
}
lbl_9:
{
if (lean::obj_tag(x_7) == 0)
{
lean::dec(x_0);
x_4 = x_7;
x_5 = x_8;
goto lbl_6;
}
else
{
obj* x_76; uint8 x_78; obj* x_80; obj* x_83; obj* x_85;
x_76 = lean::cnstr_get(x_7, 0);
lean::inc(x_76);
x_78 = lean::cnstr_get_scalar<uint8>(x_7, sizeof(void*)*1);
lean::dec(x_7);
x_80 = lean::cnstr_get(x_76, 0);
lean::inc(x_80);
lean::inc(x_1);
x_83 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(x_76, x_0, x_1, x_80, x_8);
lean::dec(x_76);
x_85 = lean::cnstr_get(x_83, 0);
lean::inc(x_85);
if (lean::obj_tag(x_85) == 0)
{
obj* x_87; obj* x_89; obj* x_92; obj* x_94; obj* x_97; obj* x_100; obj* x_101; obj* x_103; obj* x_106;
x_87 = lean::cnstr_get(x_85, 0);
lean::inc(x_87);
x_89 = lean::cnstr_get(x_83, 1);
lean::inc(x_89);
lean::dec(x_83);
x_92 = lean::cnstr_get(x_85, 1);
lean::inc(x_92);
x_94 = lean::cnstr_get(x_85, 2);
lean::inc(x_94);
lean::dec(x_85);
x_97 = lean::cnstr_get(x_87, 1);
lean::inc(x_97);
lean::dec(x_87);
x_100 = l_lean_parser_module_yield__command___rarg(x_97, x_1, x_92, x_89);
x_101 = lean::cnstr_get(x_100, 0);
lean::inc(x_101);
x_103 = lean::cnstr_get(x_100, 1);
lean::inc(x_103);
lean::dec(x_100);
x_106 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_94, x_101);
if (lean::obj_tag(x_106) == 0)
{
x_4 = x_106;
x_5 = x_103;
goto lbl_6;
}
else
{
uint8 x_107;
x_107 = lean::cnstr_get_scalar<uint8>(x_106, sizeof(void*)*1);
if (x_78 == 0)
{
obj* x_108; obj* x_110; obj* x_111; obj* x_112;
x_108 = lean::cnstr_get(x_106, 0);
if (lean::is_exclusive(x_106)) {
x_110 = x_106;
} else {
lean::inc(x_108);
lean::dec(x_106);
x_110 = lean::box(0);
}
if (lean::is_scalar(x_110)) {
x_111 = lean::alloc_cnstr(1, 1, 1);
} else {
x_111 = x_110;
}
lean::cnstr_set(x_111, 0, x_108);
lean::cnstr_set_scalar(x_111, sizeof(void*)*1, x_107);
x_112 = x_111;
x_4 = x_112;
x_5 = x_103;
goto lbl_6;
}
else
{
obj* x_113; obj* x_115; obj* x_116; obj* x_117;
x_113 = lean::cnstr_get(x_106, 0);
if (lean::is_exclusive(x_106)) {
x_115 = x_106;
} else {
lean::inc(x_113);
lean::dec(x_106);
x_115 = lean::box(0);
}
if (lean::is_scalar(x_115)) {
x_116 = lean::alloc_cnstr(1, 1, 1);
} else {
x_116 = x_115;
}
lean::cnstr_set(x_116, 0, x_113);
lean::cnstr_set_scalar(x_116, sizeof(void*)*1, x_78);
x_117 = x_116;
x_4 = x_117;
x_5 = x_103;
goto lbl_6;
}
}
}
else
{
uint8 x_118;
x_118 = lean::cnstr_get_scalar<uint8>(x_85, sizeof(void*)*1);
if (x_78 == 0)
{
obj* x_119; obj* x_122; obj* x_124; obj* x_125; obj* x_126;
x_119 = lean::cnstr_get(x_83, 1);
lean::inc(x_119);
lean::dec(x_83);
x_122 = lean::cnstr_get(x_85, 0);
if (lean::is_exclusive(x_85)) {
x_124 = x_85;
} else {
lean::inc(x_122);
lean::dec(x_85);
x_124 = lean::box(0);
}
if (lean::is_scalar(x_124)) {
x_125 = lean::alloc_cnstr(1, 1, 1);
} else {
x_125 = x_124;
}
lean::cnstr_set(x_125, 0, x_122);
lean::cnstr_set_scalar(x_125, sizeof(void*)*1, x_118);
x_126 = x_125;
x_4 = x_126;
x_5 = x_119;
goto lbl_6;
}
else
{
obj* x_127; obj* x_130; obj* x_132; obj* x_133; obj* x_134;
x_127 = lean::cnstr_get(x_83, 1);
lean::inc(x_127);
lean::dec(x_83);
x_130 = lean::cnstr_get(x_85, 0);
if (lean::is_exclusive(x_85)) {
x_132 = x_85;
} else {
lean::inc(x_130);
lean::dec(x_85);
x_132 = lean::box(0);
}
if (lean::is_scalar(x_132)) {
x_133 = lean::alloc_cnstr(1, 1, 1);
} else {
x_133 = x_132;
}
lean::cnstr_set(x_133, 0, x_130);
lean::cnstr_set_scalar(x_133, sizeof(void*)*1, x_78);
x_134 = x_133;
x_4 = x_134;
x_5 = x_127;
goto lbl_6;
}
}
}
}
lbl_12:
{
if (lean::obj_tag(x_10) == 0)
{
obj* x_135; obj* x_137; obj* x_139; obj* x_142; obj* x_143; obj* x_145; obj* x_148; obj* x_150; obj* x_153; obj* x_154; obj* x_155; obj* x_156;
x_135 = lean::cnstr_get(x_10, 0);
lean::inc(x_135);
x_137 = lean::cnstr_get(x_10, 1);
lean::inc(x_137);
x_139 = lean::cnstr_get(x_10, 2);
lean::inc(x_139);
lean::dec(x_10);
x_145 = lean::cnstr_get(x_135, 1);
lean::inc(x_145);
lean::dec(x_135);
x_148 = lean::cnstr_get(x_1, 0);
lean::inc(x_148);
x_150 = lean::cnstr_get(x_148, 0);
lean::inc(x_150);
lean::dec(x_148);
x_153 = l_lean_parser_module_header;
x_154 = l_lean_parser_module_header_parser___closed__1;
x_155 = l_lean_parser_combinators_node___at_lean_parser_detail__ident__part_parser_lean_parser_has__tokens___spec__15(x_153, x_154, x_150, x_137, x_11);
x_156 = lean::cnstr_get(x_155, 0);
lean::inc(x_156);
if (lean::obj_tag(x_156) == 0)
{
obj* x_158; obj* x_160; obj* x_161; obj* x_163; obj* x_165; obj* x_167; obj* x_168; obj* x_169; obj* x_170; obj* x_171;
x_158 = lean::cnstr_get(x_155, 1);
if (lean::is_exclusive(x_155)) {
lean::cnstr_release(x_155, 0);
x_160 = x_155;
} else {
lean::inc(x_158);
lean::dec(x_155);
x_160 = lean::box(0);
}
x_161 = lean::cnstr_get(x_156, 0);
x_163 = lean::cnstr_get(x_156, 1);
x_165 = lean::cnstr_get(x_156, 2);
if (lean::is_exclusive(x_156)) {
x_167 = x_156;
} else {
lean::inc(x_161);
lean::inc(x_163);
lean::inc(x_165);
lean::dec(x_156);
x_167 = lean::box(0);
}
if (lean::is_scalar(x_160)) {
x_168 = lean::alloc_cnstr(0, 2, 0);
} else {
x_168 = x_160;
}
lean::cnstr_set(x_168, 0, x_161);
lean::cnstr_set(x_168, 1, x_145);
x_169 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_167)) {
x_170 = lean::alloc_cnstr(0, 3, 0);
} else {
x_170 = x_167;
}
lean::cnstr_set(x_170, 0, x_168);
lean::cnstr_set(x_170, 1, x_163);
lean::cnstr_set(x_170, 2, x_169);
x_171 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_165, x_170);
if (lean::obj_tag(x_171) == 0)
{
obj* x_172; obj* x_174; obj* x_176; obj* x_179; obj* x_182; obj* x_183; obj* x_185; obj* x_188;
x_172 = lean::cnstr_get(x_171, 0);
lean::inc(x_172);
x_174 = lean::cnstr_get(x_171, 1);
lean::inc(x_174);
x_176 = lean::cnstr_get(x_171, 2);
lean::inc(x_176);
lean::dec(x_171);
x_179 = lean::cnstr_get(x_172, 1);
lean::inc(x_179);
lean::dec(x_172);
x_182 = l_lean_parser_module_yield__command___rarg(x_179, x_1, x_174, x_158);
x_183 = lean::cnstr_get(x_182, 0);
lean::inc(x_183);
x_185 = lean::cnstr_get(x_182, 1);
lean::inc(x_185);
lean::dec(x_182);
x_188 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_176, x_183);
x_142 = x_188;
x_143 = x_185;
goto lbl_144;
}
else
{
obj* x_189; uint8 x_191; obj* x_192; obj* x_193; obj* x_194;
x_189 = lean::cnstr_get(x_171, 0);
x_191 = lean::cnstr_get_scalar<uint8>(x_171, sizeof(void*)*1);
if (lean::is_exclusive(x_171)) {
x_192 = x_171;
} else {
lean::inc(x_189);
lean::dec(x_171);
x_192 = lean::box(0);
}
if (lean::is_scalar(x_192)) {
x_193 = lean::alloc_cnstr(1, 1, 1);
} else {
x_193 = x_192;
}
lean::cnstr_set(x_193, 0, x_189);
lean::cnstr_set_scalar(x_193, sizeof(void*)*1, x_191);
x_194 = x_193;
x_142 = x_194;
x_143 = x_158;
goto lbl_144;
}
}
else
{
obj* x_196; obj* x_199; uint8 x_201; obj* x_202; obj* x_203; obj* x_204;
lean::dec(x_145);
x_196 = lean::cnstr_get(x_155, 1);
lean::inc(x_196);
lean::dec(x_155);
x_199 = lean::cnstr_get(x_156, 0);
x_201 = lean::cnstr_get_scalar<uint8>(x_156, sizeof(void*)*1);
if (lean::is_exclusive(x_156)) {
x_202 = x_156;
} else {
lean::inc(x_199);
lean::dec(x_156);
x_202 = lean::box(0);
}
if (lean::is_scalar(x_202)) {
x_203 = lean::alloc_cnstr(1, 1, 1);
} else {
x_203 = x_202;
}
lean::cnstr_set(x_203, 0, x_199);
lean::cnstr_set_scalar(x_203, sizeof(void*)*1, x_201);
x_204 = x_203;
x_142 = x_204;
x_143 = x_196;
goto lbl_144;
}
lbl_144:
{
if (lean::obj_tag(x_142) == 0)
{
obj* x_205; obj* x_207; obj* x_209; obj* x_212; obj* x_216; obj* x_217;
x_205 = lean::cnstr_get(x_142, 0);
lean::inc(x_205);
x_207 = lean::cnstr_get(x_142, 1);
lean::inc(x_207);
x_209 = lean::cnstr_get(x_142, 2);
lean::inc(x_209);
lean::dec(x_142);
x_212 = lean::cnstr_get(x_205, 1);
lean::inc(x_212);
lean::dec(x_205);
lean::inc(x_1);
x_216 = l_lean_parser_module_commands_parser(x_212, x_1, x_207, x_143);
x_217 = lean::cnstr_get(x_216, 0);
lean::inc(x_217);
if (lean::obj_tag(x_217) == 0)
{
obj* x_219; obj* x_221; obj* x_224; obj* x_226; obj* x_229; obj* x_232; obj* x_233; obj* x_235; obj* x_238; obj* x_239; obj* x_240;
x_219 = lean::cnstr_get(x_217, 0);
lean::inc(x_219);
x_221 = lean::cnstr_get(x_216, 1);
lean::inc(x_221);
lean::dec(x_216);
x_224 = lean::cnstr_get(x_217, 1);
lean::inc(x_224);
x_226 = lean::cnstr_get(x_217, 2);
lean::inc(x_226);
lean::dec(x_217);
x_229 = lean::cnstr_get(x_219, 1);
lean::inc(x_229);
lean::dec(x_219);
x_232 = l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(x_229, x_1, x_224, x_221);
x_233 = lean::cnstr_get(x_232, 0);
lean::inc(x_233);
x_235 = lean::cnstr_get(x_232, 1);
lean::inc(x_235);
lean::dec(x_232);
x_238 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_226, x_233);
x_239 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_209, x_238);
x_240 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_139, x_239);
x_7 = x_240;
x_8 = x_235;
goto lbl_9;
}
else
{
obj* x_241; obj* x_244; uint8 x_246; obj* x_247; obj* x_248; obj* x_249; obj* x_250; obj* x_251;
x_241 = lean::cnstr_get(x_216, 1);
lean::inc(x_241);
lean::dec(x_216);
x_244 = lean::cnstr_get(x_217, 0);
x_246 = lean::cnstr_get_scalar<uint8>(x_217, sizeof(void*)*1);
if (lean::is_exclusive(x_217)) {
x_247 = x_217;
} else {
lean::inc(x_244);
lean::dec(x_217);
x_247 = lean::box(0);
}
if (lean::is_scalar(x_247)) {
x_248 = lean::alloc_cnstr(1, 1, 1);
} else {
x_248 = x_247;
}
lean::cnstr_set(x_248, 0, x_244);
lean::cnstr_set_scalar(x_248, sizeof(void*)*1, x_246);
x_249 = x_248;
x_250 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_209, x_249);
x_251 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_139, x_250);
x_7 = x_251;
x_8 = x_241;
goto lbl_9;
}
}
else
{
obj* x_252; uint8 x_254; obj* x_255; obj* x_256; obj* x_257; obj* x_258;
x_252 = lean::cnstr_get(x_142, 0);
x_254 = lean::cnstr_get_scalar<uint8>(x_142, sizeof(void*)*1);
if (lean::is_exclusive(x_142)) {
x_255 = x_142;
} else {
lean::inc(x_252);
lean::dec(x_142);
x_255 = lean::box(0);
}
if (lean::is_scalar(x_255)) {
x_256 = lean::alloc_cnstr(1, 1, 1);
} else {
x_256 = x_255;
}
lean::cnstr_set(x_256, 0, x_252);
lean::cnstr_set_scalar(x_256, sizeof(void*)*1, x_254);
x_257 = x_256;
x_258 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_139, x_257);
x_7 = x_258;
x_8 = x_143;
goto lbl_9;
}
}
}
else
{
obj* x_259; uint8 x_261; obj* x_262; obj* x_263; obj* x_264;
x_259 = lean::cnstr_get(x_10, 0);
x_261 = lean::cnstr_get_scalar<uint8>(x_10, sizeof(void*)*1);
if (lean::is_exclusive(x_10)) {
x_262 = x_10;
} else {
lean::inc(x_259);
lean::dec(x_10);
x_262 = lean::box(0);
}
if (lean::is_scalar(x_262)) {
x_263 = lean::alloc_cnstr(1, 1, 1);
} else {
x_263 = x_262;
}
lean::cnstr_set(x_263, 0, x_259);
lean::cnstr_set_scalar(x_263, sizeof(void*)*1, x_261);
x_264 = x_263;
x_7 = x_264;
x_8 = x_11;
goto lbl_9;
}
}
}
}
obj* _init_l_lean_parser_module_tokens() {
_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;
x_0 = l_lean_parser_module_prelude_parser_lean_parser_has__tokens;
x_1 = l_lean_parser_tokens___rarg(x_0);
x_2 = l_lean_parser_module_import_parser_lean_parser_has__tokens;
x_3 = l_lean_parser_tokens___rarg(x_2);
x_4 = l_list_append___rarg(x_1, x_3);
x_5 = l_lean_parser_module_commands_tokens;
x_6 = l_lean_parser_tokens___rarg(x_5);
x_7 = l_list_append___rarg(x_4, x_6);
return x_7;
}
}
void initialize_init_lean_parser_command();
void initialize_init_control_coroutine();
static bool _G_initialized = false;
void initialize_init_lean_parser_module() {
if (_G_initialized) return;
_G_initialized = true;
initialize_init_lean_parser_command();
initialize_init_control_coroutine();
l_lean_parser_module__parser__m = _init_l_lean_parser_module__parser__m();
lean::mark_persistent(l_lean_parser_module__parser__m);
l_lean_parser_module__parser = _init_l_lean_parser_module__parser();
lean::mark_persistent(l_lean_parser_module__parser);
l_lean_parser_module__parser__m_basic__parser__m = _init_l_lean_parser_module__parser__m_basic__parser__m();
lean::mark_persistent(l_lean_parser_module__parser__m_basic__parser__m);
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 = _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();
lean::mark_persistent(l_lean_parser_module_prelude_has__view);
l_lean_parser_module_prelude_parser_lean_parser_has__view = _init_l_lean_parser_module_prelude_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_module_prelude_parser_lean_parser_has__view);
l_lean_parser_module_prelude_parser_lean_parser_has__tokens = _init_l_lean_parser_module_prelude_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_module_prelude_parser_lean_parser_has__tokens);
l_lean_parser_module_prelude_parser___closed__1 = _init_l_lean_parser_module_prelude_parser___closed__1();
lean::mark_persistent(l_lean_parser_module_prelude_parser___closed__1);
l_lean_parser_module_import__path = _init_l_lean_parser_module_import__path();
lean::mark_persistent(l_lean_parser_module_import__path);
l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__1);
l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__2);
l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__3 = _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__3();
lean::mark_persistent(l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__3);
l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__4 = _init_l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__4();
lean::mark_persistent(l_lean_parser_module_import__path_has__view_x_27___lambda__1___closed__4);
l_lean_parser_module_import__path_has__view_x_27 = _init_l_lean_parser_module_import__path_has__view_x_27();
lean::mark_persistent(l_lean_parser_module_import__path_has__view_x_27);
l_lean_parser_module_import__path_has__view = _init_l_lean_parser_module_import__path_has__view();
lean::mark_persistent(l_lean_parser_module_import__path_has__view);
l_lean_parser_module_import__path_parser_lean_parser_has__view = _init_l_lean_parser_module_import__path_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_module_import__path_parser_lean_parser_has__view);
l_lean_parser_module_import__path_parser_lean_parser_has__tokens = _init_l_lean_parser_module_import__path_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_module_import__path_parser_lean_parser_has__tokens);
l_lean_parser_module_import__path_parser___closed__1 = _init_l_lean_parser_module_import__path_parser___closed__1();
lean::mark_persistent(l_lean_parser_module_import__path_parser___closed__1);
l_lean_parser_module_import = _init_l_lean_parser_module_import();
lean::mark_persistent(l_lean_parser_module_import);
l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1);
l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_module_import_has__view_x_27___lambda__1___closed__2);
l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3 = _init_l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3();
lean::mark_persistent(l_lean_parser_module_import_has__view_x_27___lambda__1___closed__3);
l_lean_parser_module_import_has__view_x_27___lambda__2___closed__1 = _init_l_lean_parser_module_import_has__view_x_27___lambda__2___closed__1();
lean::mark_persistent(l_lean_parser_module_import_has__view_x_27___lambda__2___closed__1);
l_lean_parser_module_import_has__view_x_27 = _init_l_lean_parser_module_import_has__view_x_27();
lean::mark_persistent(l_lean_parser_module_import_has__view_x_27);
l_lean_parser_module_import_has__view = _init_l_lean_parser_module_import_has__view();
lean::mark_persistent(l_lean_parser_module_import_has__view);
l_lean_parser_module_import_parser_lean_parser_has__view = _init_l_lean_parser_module_import_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_module_import_parser_lean_parser_has__view);
l_lean_parser_module_import_parser_lean_parser_has__tokens = _init_l_lean_parser_module_import_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_module_import_parser_lean_parser_has__tokens);
l_lean_parser_module_import_parser___closed__1 = _init_l_lean_parser_module_import_parser___closed__1();
lean::mark_persistent(l_lean_parser_module_import_parser___closed__1);
l_lean_parser_module_header = _init_l_lean_parser_module_header();
lean::mark_persistent(l_lean_parser_module_header);
l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_module_header_has__view_x_27___lambda__1___closed__1);
l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_module_header_has__view_x_27___lambda__1___closed__2);
l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3 = _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3();
lean::mark_persistent(l_lean_parser_module_header_has__view_x_27___lambda__1___closed__3);
l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4 = _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4();
lean::mark_persistent(l_lean_parser_module_header_has__view_x_27___lambda__1___closed__4);
l_lean_parser_module_header_has__view_x_27___lambda__1___closed__5 = _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__5();
lean::mark_persistent(l_lean_parser_module_header_has__view_x_27___lambda__1___closed__5);
l_lean_parser_module_header_has__view_x_27___lambda__1___closed__6 = _init_l_lean_parser_module_header_has__view_x_27___lambda__1___closed__6();
lean::mark_persistent(l_lean_parser_module_header_has__view_x_27___lambda__1___closed__6);
l_lean_parser_module_header_has__view_x_27___lambda__2___closed__1 = _init_l_lean_parser_module_header_has__view_x_27___lambda__2___closed__1();
lean::mark_persistent(l_lean_parser_module_header_has__view_x_27___lambda__2___closed__1);
l_lean_parser_module_header_has__view_x_27 = _init_l_lean_parser_module_header_has__view_x_27();
lean::mark_persistent(l_lean_parser_module_header_has__view_x_27);
l_lean_parser_module_header_has__view = _init_l_lean_parser_module_header_has__view();
lean::mark_persistent(l_lean_parser_module_header_has__view);
l_lean_parser_module_header_parser_lean_parser_has__view = _init_l_lean_parser_module_header_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_module_header_parser_lean_parser_has__view);
l_lean_parser_module_header_parser_lean_parser_has__tokens = _init_l_lean_parser_module_header_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_module_header_parser_lean_parser_has__tokens);
l_lean_parser_module_header_parser___closed__1 = _init_l_lean_parser_module_header_parser___closed__1();
lean::mark_persistent(l_lean_parser_module_header_parser___closed__1);
l___private_init_lean_parser_module_1__commands__aux___main___closed__1 = _init_l___private_init_lean_parser_module_1__commands__aux___main___closed__1();
lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___closed__1);
l___private_init_lean_parser_module_1__commands__aux___main___closed__2 = _init_l___private_init_lean_parser_module_1__commands__aux___main___closed__2();
lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___closed__2);
l_lean_parser_module_commands_tokens = _init_l_lean_parser_module_commands_tokens();
lean::mark_persistent(l_lean_parser_module_commands_tokens);
l_lean_parser_module_commands_parser_has__view = _init_l_lean_parser_module_commands_parser_has__view();
lean::mark_persistent(l_lean_parser_module_commands_parser_has__view);
l_lean_parser_module_eoi = _init_l_lean_parser_module_eoi();
lean::mark_persistent(l_lean_parser_module_eoi);
l_lean_parser_module_tokens = _init_l_lean_parser_module_tokens();
lean::mark_persistent(l_lean_parser_module_tokens);
}