just parse
diff --git a/library/init/lean/frontend.lean b/library/init/lean/frontend.lean index a507b78..12cacec 100644 --- a/library/init/lean/frontend.lean +++ b/library/init/lean/frontend.lean
@@ -33,7 +33,9 @@ except_t string io (list module_parser_output) := do parser_cfg ← monad_except.lift_except $ mk_config filename input, let expander_cfg : expander_config := {filename := filename, input := input, transformers := builtin_transformers}, - let parser_k := parser.run parser_cfg input (λ st _, module.parser st), + (_, msgs) ← pure $ parser.run parser_cfg input module.parser, + msgs.to_list.mfor print_msg, + pure []/-, let elab_k := elaborator.run {filename := filename, input := input, initial_parser_cfg := parser_cfg}, io.prim.iterate_eio (parser_k, elab_k, parser_cfg, expander_cfg, ([] : list module_parser_output)) $ λ ⟨parser_k, elab_k, parser_cfg, expander_cfg, outs⟩, match run_parser parser_k.resume parser_cfg with | coroutine_result_core.done p := do { @@ -71,7 +73,7 @@ } } | except.error e := print_msg e *> pure (sum.inl (parser_k, elab_k, parser_cfg, expander_cfg, out :: outs)) - } + }-/ @[export lean_process_file] def process_file (f s : string) (json : bool) : io bool := do
diff --git a/library/init/lean/parser/module.lean b/library/init/lean/parser/module.lean index 40d337b..f90418b 100644 --- a/library/init/lean/parser/module.lean +++ b/library/init/lean/parser/module.lean
@@ -32,33 +32,25 @@ (cache : parser_cache) section -local attribute [reducible] parser_core_t -/- NOTE: missing the `reader_t` from `parser_t` because the `coroutine` already provides - `monad_reader module_parser_config`. -/ -@[derive monad alternative monad_reader monad_state monad_parsec monad_except monad_coroutine] -def module_parser_m := state_t parser_state $ parser_core_t $ coroutine module_parser_config module_parser_output +abbreviation module_parser_m := state_t parser_state $ parser_t module_parser_config id abbreviation module_parser := module_parser_m syntax end -instance module_parser_m.lift_parser_t (ρ : Type) [has_lift_t module_parser_config ρ] : +@[priority 0] instance module_parser_m.lift_parser_t (ρ : Type) [has_lift_t module_parser_config ρ] : has_monad_lift (parser_t ρ id) module_parser_m := -{ monad_lift := λ α x st it nb_st, do - cfg ← read, - pure (((((λ a, (a, st)) <$> x).run ↑cfg) it).run nb_st) } +{ monad_lift := λ α x st cfg, do + ((λ a, (a, st)) <$> x).run ↑cfg } section local attribute [reducible] basic_parser_m -instance module_parser_m.basic_parser_m (ρ : Type) [has_lift_t module_parser_config ρ] : +@[priority 0] instance module_parser_m.basic_parser_m : has_monad_lift basic_parser_m module_parser_m := infer_instance end namespace module def yield_command (cmd : syntax) : module_parser_m unit := -do st ← get, - cache ← monad_lift get_cache, - yield {cmd := cmd, messages := st.messages, cache := cache}, - put {st with messages := message_log.empty} +pure () @[derive parser.has_view parser.has_tokens] def prelude.parser : basic_parser :=
diff --git a/src/boot/CMakeLists.txt b/src/boot/CMakeLists.txt index 5b39c76..93af0e8 100644 --- a/src/boot/CMakeLists.txt +++ b/src/boot/CMakeLists.txt
@@ -1 +1 @@ -add_library (boot OBJECT ./init/coe.cpp ./init/control/alternative.cpp ./init/control/applicative.cpp ./init/control/combinators.cpp ./init/control/coroutine.cpp ./init/control/default.cpp ./init/control/except.cpp ./init/control/functor.cpp ./init/control/id.cpp ./init/control/lift.cpp ./init/control/monad.cpp ./init/control/monad_fail.cpp ./init/control/option.cpp ./init/control/reader.cpp ./init/control/state.cpp ./init/core.cpp ./init/data/array/basic.cpp ./init/data/array/default.cpp ./init/data/basic.cpp ./init/data/char/basic.cpp ./init/data/char/default.cpp ./init/data/default.cpp ./init/data/dlist.cpp ./init/data/fin/basic.cpp ./init/data/fin/default.cpp ./init/data/hashable.cpp ./init/data/hashmap/basic.cpp ./init/data/int/basic.cpp ./init/data/int/default.cpp ./init/data/list/basic.cpp ./init/data/list/default.cpp ./init/data/list/instances.cpp ./init/data/nat/basic.cpp ./init/data/nat/default.cpp ./init/data/nat/div.cpp ./init/data/option/basic.cpp ./init/data/option/instances.cpp ./init/data/ordering/basic.cpp ./init/data/ordering/default.cpp ./init/data/rbmap/basic.cpp ./init/data/rbmap/default.cpp ./init/data/rbtree/basic.cpp ./init/data/rbtree/default.cpp ./init/data/repr.cpp ./init/data/string/basic.cpp ./init/data/string/default.cpp ./init/data/to_string.cpp ./init/data/uint.cpp ./init/data/usize.cpp ./init/default.cpp ./init/env_ext.cpp ./init/function.cpp ./init/io.cpp ./init/lean/compiler/const_folding.cpp ./init/lean/compiler/default.cpp ./init/lean/compiler/util.cpp ./init/lean/config.cpp ./init/lean/declaration.cpp ./init/lean/default.cpp ./init/lean/disjoint_set.cpp ./init/lean/elaborator.cpp ./init/lean/expander.cpp ./init/lean/expr.cpp ./init/lean/extern.cpp ./init/lean/format.cpp ./init/lean/frontend.cpp ./init/lean/ir/elim_phi.cpp ./init/lean/ir/extract_cpp.cpp ./init/lean/ir/format.cpp ./init/lean/ir/instances.cpp ./init/lean/ir/ir.cpp ./init/lean/ir/lirc.cpp ./init/lean/ir/parser.cpp ./init/lean/ir/reserved.cpp ./init/lean/ir/ssa_check.cpp ./init/lean/ir/type_check.cpp ./init/lean/kvmap.cpp ./init/lean/level.cpp ./init/lean/message.cpp ./init/lean/name.cpp ./init/lean/name_mangling.cpp ./init/lean/options.cpp ./init/lean/parser/basic.cpp ./init/lean/parser/combinators.cpp ./init/lean/parser/command.cpp ./init/lean/parser/declaration.cpp ./init/lean/parser/identifier.cpp ./init/lean/parser/level.cpp ./init/lean/parser/module.cpp ./init/lean/parser/notation.cpp ./init/lean/parser/parsec.cpp ./init/lean/parser/pratt.cpp ./init/lean/parser/rec.cpp ./init/lean/parser/string_literal.cpp ./init/lean/parser/syntax.cpp ./init/lean/parser/term.cpp ./init/lean/parser/token.cpp ./init/lean/parser/trie.cpp ./init/lean/position.cpp ./init/lean/trace.cpp ./init/platform.cpp ./init/util.cpp ./init/wf.cpp) +add_library (boot OBJECT ./init/coe.cpp ./init/control/alternative.cpp ./init/control/applicative.cpp ./init/control/combinators.cpp ./init/control/coroutine.cpp ./init/control/default.cpp ./init/control/except.cpp ./init/control/functor.cpp ./init/control/id.cpp ./init/control/lift.cpp ./init/control/monad.cpp ./init/control/monad_fail.cpp ./init/control/option.cpp ./init/control/reader.cpp ./init/control/state.cpp ./init/core.cpp ./init/data/array/basic.cpp ./init/data/array/default.cpp ./init/data/basic.cpp ./init/data/char/basic.cpp ./init/data/char/default.cpp ./init/data/default.cpp ./init/data/dlist.cpp ./init/data/fin/basic.cpp ./init/data/fin/default.cpp ./init/data/hashable.cpp ./init/data/hashmap/basic.cpp ./init/data/int/basic.cpp ./init/data/int/default.cpp ./init/data/list/basic.cpp ./init/data/list/default.cpp ./init/data/list/instances.cpp ./init/data/nat/basic.cpp ./init/data/nat/default.cpp ./init/data/nat/div.cpp ./init/data/option/basic.cpp ./init/data/option/instances.cpp ./init/data/ordering/basic.cpp ./init/data/ordering/default.cpp ./init/data/rbmap/basic.cpp ./init/data/rbmap/default.cpp ./init/data/rbtree/basic.cpp ./init/data/rbtree/default.cpp ./init/data/repr.cpp ./init/data/string/basic.cpp ./init/data/string/default.cpp ./init/data/to_string.cpp ./init/data/uint.cpp ./init/data/usize.cpp ./init/default.cpp ./init/env_ext.cpp ./init/function.cpp ./init/io.cpp ./init/lean/compiler/const_folding.cpp ./init/lean/compiler/default.cpp ./init/lean/compiler/ir.cpp ./init/lean/compiler/util.cpp ./init/lean/config.cpp ./init/lean/declaration.cpp ./init/lean/default.cpp ./init/lean/disjoint_set.cpp ./init/lean/elaborator.cpp ./init/lean/expander.cpp ./init/lean/expr.cpp ./init/lean/extern.cpp ./init/lean/format.cpp ./init/lean/frontend.cpp ./init/lean/ir/elim_phi.cpp ./init/lean/ir/extract_cpp.cpp ./init/lean/ir/format.cpp ./init/lean/ir/instances.cpp ./init/lean/ir/ir.cpp ./init/lean/ir/lirc.cpp ./init/lean/ir/parser.cpp ./init/lean/ir/reserved.cpp ./init/lean/ir/ssa_check.cpp ./init/lean/ir/type_check.cpp ./init/lean/kvmap.cpp ./init/lean/level.cpp ./init/lean/message.cpp ./init/lean/name.cpp ./init/lean/name_mangling.cpp ./init/lean/options.cpp ./init/lean/parser/basic.cpp ./init/lean/parser/combinators.cpp ./init/lean/parser/command.cpp ./init/lean/parser/declaration.cpp ./init/lean/parser/identifier.cpp ./init/lean/parser/level.cpp ./init/lean/parser/module.cpp ./init/lean/parser/notation.cpp ./init/lean/parser/parsec.cpp ./init/lean/parser/pratt.cpp ./init/lean/parser/rec.cpp ./init/lean/parser/string_literal.cpp ./init/lean/parser/syntax.cpp ./init/lean/parser/term.cpp ./init/lean/parser/token.cpp ./init/lean/parser/trie.cpp ./init/lean/position.cpp ./init/lean/trace.cpp ./init/platform.cpp ./init/util.cpp ./init/version.cpp ./init/wf.cpp)
diff --git a/src/boot/init/lean/elaborator.cpp b/src/boot/init/lean/elaborator.cpp index 5c057b0..293785f 100644 --- a/src/boot/init/lean/elaborator.cpp +++ b/src/boot/init/lean/elaborator.cpp
@@ -31,7 +31,6 @@ extern obj* l_lean_parser_command_variables; extern "C" obj* lean_expr_mk_pi(obj*, uint8, obj*, obj*); obj* l_lean_elaborator_elaborator__t_monad__reader__adapter(obj*); -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed(obj*, obj*); obj* l_lean_elaborator_module_header_elaborate___closed__1; obj* l_lean_elaborator_ordered__rbmap_insert___at_lean_elaborator_elab__def__like___spec__4(obj*, obj*, obj*); obj* l_list_mmap___main___at_lean_elaborator_to__pexpr___main___spec__19(obj*, obj*, obj*, obj*); @@ -86,6 +85,7 @@ obj* l_list_mmap___main___at_lean_elaborator_to__pexpr___main___spec__16(obj*, obj*, obj*, obj*); obj* l_lean_elaborator_elaborator__t_monad__reader__adapter___rarg(obj*); obj* l_lean_elaborator_get__namespace(obj*); +obj* l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed(obj*, obj*); obj* l_lean_elaborator_level__add(obj*, obj*); obj* l_lean_elaborator_to__pexpr___main___closed__7; obj* l_rbmap_from__list___at_lean_elaborator_elaborators___spec__1___lambda__14(obj*, obj*, obj*); @@ -159,6 +159,7 @@ obj* l_list_mmap___main___at_lean_elaborator_to__pexpr___main___spec__5(obj*, obj*, obj*); obj* l_rbmap_insert___main___at_lean_elaborator_old__elab__command___spec__16(obj*, obj*, obj*); obj* l_list_foldr___main___at_lean_elaborator_to__pexpr___main___spec__9___closed__1; +obj* l_lean_elaborator_yield__to__outside___rarg___lambda__3(obj*); obj* l_lean_parser_number_view_to__nat___main(obj*); obj* l_lean_elaborator_run___closed__6; extern obj* l_lean_parser_term_sort_has__view_x_27___lambda__1___closed__4; @@ -215,7 +216,6 @@ extern obj* l_lean_parser_term_pi_has__view; obj* l_lean_elaborator_export_elaborate___boxed(obj*, obj*, obj*); obj* l_lean_elaborator_locally___at_lean_elaborator_namespace_elaborate___spec__1___lambda__3___boxed(obj*, obj*, obj*, obj*, obj*); -obj* l_lean_parser_module_yield__command___lambda__3___boxed(obj*, obj*); obj* l_lean_elaborator_ordered__rbmap_find___rarg(obj*, obj*, obj*); obj* l_list_foldr___main___at_lean_elaborator_match__open__spec___spec__1(obj*, obj*); obj* l_list_map___main___at_lean_elaborator_export_elaborate___spec__1(obj*, obj*); @@ -356,6 +356,7 @@ obj* l_lean_elaborator_to__pexpr___main___closed__17; extern obj* l_lean_parser_module_header; obj* l_list_map___main___at_lean_elaborator_names__to__pexpr___spec__1(obj*); +obj* l_lean_elaborator_yield__to__outside___rarg___lambda__1___boxed(obj*, obj*); obj* l_rbmap_from__list___at_lean_elaborator_elaborators___spec__1___lambda__23(obj*, obj*); obj* l_lean_elaborator_decl__modifiers__to__pexpr(obj*, obj*, obj*); obj* l_rbmap_from__list___at_lean_elaborator_elaborators___spec__1___lambda__16(obj*, obj*, obj*); @@ -460,9 +461,11 @@ obj* l___private_init_lean_parser_rec_1__run__aux___at_lean_elaborator_run___spec__6(obj*, obj*, obj*, obj*, obj*, obj*); extern obj* l_lean_parser_max__prec; obj* l_lean_elaborator_notation_elaborate__aux(obj*, obj*, obj*); +obj* l_lean_elaborator_current__command___rarg___lambda__2(obj*, obj*); obj* l_rbmap_from__list___at_lean_elaborator_elaborators___spec__1___lambda__7(obj*, obj*); obj* l_lean_elaborator_end__scope___lambda__2___closed__2; extern obj* l_lean_options_mk; +obj* l_lean_elaborator_yield__to__outside___rarg___lambda__3___closed__1; obj* l_coe___at_lean_elaborator_command__parser__config_register__notation__parser___spec__4___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*); obj* l_lean_elaborator_universe_elaborate___closed__1; obj* l_monad__state__trans___rarg(obj*, obj*); @@ -585,7 +588,7 @@ obj* l_lean_elaborator_ordered__rbmap_empty___boxed(obj*, obj*, obj*, obj*); obj* l_lean_elaborator_locally___at_lean_elaborator_section_elaborate___spec__2___lambda__4(obj*, obj*, obj*, obj*); extern obj* l_lean_parser_term_struct__inst__item_has__view; -obj* l_lean_elaborator_yield__to__outside___rarg___lambda__2(obj*); +obj* l_lean_elaborator_yield__to__outside___rarg___lambda__2(obj*, obj*); obj* l_list_mmap___main___at_lean_elaborator_attrs__to__pexpr___spec__1(obj*, obj*, obj*); obj* l_lean_parser_symbol__core___at_lean_parser_command_notation__spec_precedence__term_parser_lean_parser_has__tokens___spec__1___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*); obj* l_lean_elaborator_match__precedence___main___boxed(obj*, obj*); @@ -638,7 +641,7 @@ obj* l_rbmap_from__list___at_lean_elaborator_elaborators___spec__1___lambda__8(obj*, obj*, obj*); extern obj* l_lean_parser_term_sort_has__view; obj* l_lean_elaborator_to__pexpr___main___lambda__2___boxed(obj*); -obj* l_lean_elaborator_current__command___rarg___lambda__1(obj*, obj*); +obj* l_lean_elaborator_current__command___rarg___lambda__1(obj*); obj* l_rbmap_from__list___at_lean_elaborator_elaborators___spec__1___lambda__14___boxed(obj*, obj*, obj*); obj* l_lean_elaborator_locally(obj*); obj* l_rbmap_insert___main___at_lean_elaborator_register__notation__macro___spec__1(obj*, obj*, obj*); @@ -679,6 +682,7 @@ obj* l_lean_elaborator_run___lambda__1___closed__1; extern obj* l_lean_parser_command_declaration_has__view; obj* l_list_map___main___at_lean_elaborator_mk__eqns___spec__1___closed__1; +obj* l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1(obj*, obj*); extern obj* l_lean_parser_level_leading_has__view_x_27___lambda__1___closed__5; obj* l_lean_elaborator_run___closed__7; obj* l_lean_kvmap_insert__core___main(obj*, obj*, obj*); @@ -688,7 +692,6 @@ obj* l_lean_elaborator_locally___at_lean_elaborator_namespace_elaborate___spec__1___lambda__1(obj*, obj*, obj*); obj* l_lean_elaborator_elaborator__m__coe__coelaborator__m___boxed(obj*); extern obj* l_lean_parser_command_end_has__view; -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__1(obj*); obj* l_lean_elaborator_locally___at_lean_elaborator_namespace_elaborate___spec__1___lambda__2(obj*, obj*, obj*, obj*); obj* l_lean_elaborator_locally___at_lean_elaborator_namespace_elaborate___spec__1___lambda__4(obj*, obj*, obj*, obj*); namespace lean { @@ -779,11 +782,11 @@ obj* l_list_foldr___main___at_lean_elaborator_is__open__namespace___main___spec__2___boxed(obj*, obj*); obj* l_lean_elaborator_commands_elaborate___main___lambda__4(obj*, obj*, uint8, obj*, obj*); obj* l_lean_elaborator_to__pexpr___main___closed__42; -obj* l_lean_elaborator_yield__to__outside___rarg___lambda__2___closed__1; extern "C" uint8 lean_environment_contains(obj*, obj*); obj* l_lean_expander_error___at_lean_elaborator_no__kind_elaborate___spec__1___rarg___lambda__1(obj*, obj*, obj*); extern obj* l_lean_parser_command_notation_has__view; extern obj* l_lean_parser_command_check; +extern obj* l_coroutine_yield___rarg___closed__1; obj* l_lean_elaborator_yield__to__outside___rarg___lambda__1(obj*, obj*); obj* l_lean_elaborator_max__commands; extern obj* l_lean_parser_command_export; @@ -2613,6 +2616,15 @@ return x_0; } } +obj* l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1(obj* x_0, obj* x_1) { +_start: +{ +obj* x_2; +x_2 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_2, 0, x_0); +return x_2; +} +} obj* l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg(obj* x_0, obj* x_1) { _start: { @@ -2634,7 +2646,7 @@ x_6 = x_5; } lean::cnstr_set(x_6, 0, x_3); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_7, 0, x_6); return x_7; } @@ -2679,7 +2691,7 @@ lean::cnstr_set(x_4, 1, x_3); x_5 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_5, 0, x_4); -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_6, 0, x_5); x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_rec__t_recurse___at_lean_elaborator_command_elaborate___spec__1___lambda__1), 3, 2); lean::closure_set(x_7, 0, x_0); @@ -2701,6 +2713,15 @@ return x_4; } } +obj* l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed(obj* x_0, obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1(x_0, x_1); +lean::dec(x_1); +return x_2; +} +} obj* l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___boxed(obj* x_0, obj* x_1) { _start: { @@ -2779,7 +2800,16 @@ return x_1; } } -obj* l_lean_elaborator_current__command___rarg___lambda__1(obj* x_0, obj* x_1) { +obj* l_lean_elaborator_current__command___rarg___lambda__1(obj* x_0) { +_start: +{ +obj* x_1; +x_1 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_1, 0, x_0); +return x_1; +} +} +obj* l_lean_elaborator_current__command___rarg___lambda__2(obj* x_0, obj* x_1) { _start: { obj* x_2; obj* x_3; obj* x_4; @@ -2788,7 +2818,7 @@ lean::cnstr_set(x_2, 1, x_0); x_3 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_3, 0, x_2); -x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_4, 0, x_3); return x_4; } @@ -2802,7 +2832,7 @@ x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_function_comp___rarg), 3, 2); lean::closure_set(x_2, 0, x_0); lean::closure_set(x_2, 1, x_1); -x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__1), 1, 0); +x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_current__command___rarg___lambda__1), 1, 0); x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); lean::closure_set(x_4, 0, x_3); lean::closure_set(x_4, 1, x_2); @@ -2813,7 +2843,7 @@ _start: { obj* x_1; obj* x_2; obj* x_3; obj* x_4; -x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_current__command___rarg___lambda__1), 2, 1); +x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_current__command___rarg___lambda__2), 2, 1); lean::closure_set(x_1, 0, x_0); x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg), 2, 1); lean::closure_set(x_2, 0, x_1); @@ -2881,7 +2911,7 @@ { obj* x_4; obj* x_5; x_4 = lean::apply_2(x_0, x_2, x_3); -x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_5, 0, x_4); return x_5; } @@ -2922,7 +2952,7 @@ lean::inc(x_5); lean::dec(x_2); x_8 = lean::apply_3(x_0, x_3, x_1, x_5); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_9, 0, x_8); return x_9; } @@ -22184,6 +22214,17 @@ obj* l_lean_elaborator_yield__to__outside___rarg___lambda__1(obj* x_0, obj* x_1) { _start: { +obj* x_2; obj* x_3; +x_2 = l_coroutine_yield___rarg___closed__1; +x_3 = lean::alloc_cnstr(1, 2, 0); +lean::cnstr_set(x_3, 0, x_0); +lean::cnstr_set(x_3, 1, x_2); +return x_3; +} +} +obj* l_lean_elaborator_yield__to__outside___rarg___lambda__2(obj* x_0, obj* x_1) { +_start: +{ obj* x_2; obj* x_3; obj* x_5; obj* x_7; obj* x_9; obj* x_11; obj* x_13; obj* x_15; obj* x_17; obj* x_19; obj* x_21; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; if (lean::is_exclusive(x_1)) { lean::cnstr_release(x_1, 0); @@ -22237,12 +22278,12 @@ lean::cnstr_set(x_27, 1, x_25); x_28 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_28, 0, x_27); -x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_29, 0, x_28); return x_29; } } -obj* _init_l_lean_elaborator_yield__to__outside___rarg___lambda__2___closed__1() { +obj* _init_l_lean_elaborator_yield__to__outside___rarg___lambda__3___closed__1() { _start: { obj* x_0; obj* x_1; obj* x_2; @@ -22254,7 +22295,7 @@ return x_2; } } -obj* l_lean_elaborator_yield__to__outside___rarg___lambda__2(obj* x_0) { +obj* l_lean_elaborator_yield__to__outside___rarg___lambda__3(obj* x_0) { _start: { obj* x_1; obj* x_3; 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; @@ -22264,20 +22305,20 @@ lean::inc(x_3); lean::dec(x_0); lean::inc(x_1); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__3___boxed), 2, 1); +x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_yield__to__outside___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_7, 0, x_1); -x_8 = l_lean_elaborator_yield__to__outside___rarg___lambda__2___closed__1; +x_8 = l_lean_elaborator_yield__to__outside___rarg___lambda__3___closed__1; x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); lean::closure_set(x_9, 0, x_7); lean::closure_set(x_9, 1, x_8); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_current__command___rarg___lambda__1), 2, 1); +x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_current__command___rarg___lambda__2), 2, 1); lean::closure_set(x_10, 0, x_3); x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg), 2, 1); lean::closure_set(x_11, 0, x_10); x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); lean::closure_set(x_12, 0, x_9); lean::closure_set(x_12, 1, x_11); -x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_yield__to__outside___rarg___lambda__1), 2, 1); +x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_yield__to__outside___rarg___lambda__2), 2, 1); lean::closure_set(x_13, 0, x_1); x_14 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg), 2, 1); lean::closure_set(x_14, 0, x_13); @@ -22291,7 +22332,7 @@ _start: { obj* x_0; obj* x_1; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_yield__to__outside___rarg___lambda__2), 1, 0); +x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_yield__to__outside___rarg___lambda__3), 1, 0); x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg), 2, 1); lean::closure_set(x_1, 0, x_0); return x_1; @@ -22307,7 +22348,7 @@ lean::cnstr_set(x_2, 1, x_0); x_3 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_3, 0, x_2); -x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_4, 0, x_3); x_5 = l_lean_elaborator_yield__to__outside___rarg___closed__1; x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); @@ -22324,6 +22365,15 @@ return x_2; } } +obj* l_lean_elaborator_yield__to__outside___rarg___lambda__1___boxed(obj* x_0, obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_lean_elaborator_yield__to__outside___rarg___lambda__1(x_0, x_1); +lean::dec(x_1); +return x_2; +} +} obj* l_lean_elaborator_yield__to__outside___boxed(obj* x_0, obj* x_1) { _start: { @@ -25625,9 +25675,9 @@ x_25 = x_24; x_26 = lean::alloc_cnstr(0, 1, 0); lean::cnstr_set(x_26, 0, x_25); -x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_27, 0, x_26); -x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_current__command___rarg___lambda__1), 2, 1); +x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_current__command___rarg___lambda__2), 2, 1); lean::closure_set(x_28, 0, x_5); x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg), 2, 1); lean::closure_set(x_29, 0, x_28); @@ -25646,7 +25696,7 @@ lean::cnstr_set(x_5, 1, x_4); x_6 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_6, 0, x_5); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_7, 0, x_6); x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_expander_error___at_lean_elaborator_no__kind_elaborate___spec__1___rarg___lambda__1___boxed), 3, 2); lean::closure_set(x_8, 0, x_0); @@ -25700,7 +25750,7 @@ lean::cnstr_set(x_7, 1, x_3); x_8 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_8, 0, x_7); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_9, 0, x_8); return x_9; } @@ -25802,7 +25852,7 @@ lean::cnstr_set(x_10, 1, x_5); x_11 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_11, 0, x_10); -x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_12, 0, x_11); x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_no__kind_elaborate___lambda__1), 4, 3); lean::closure_set(x_13, 0, x_3); @@ -26054,7 +26104,7 @@ lean::cnstr_set(x_47, 1, x_7); x_48 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_48, 0, x_47); -x_49 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_49 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_49, 0, x_48); return x_49; } @@ -26098,7 +26148,7 @@ lean::cnstr_set(x_64, 1, x_7); x_65 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_65, 0, x_64); -x_66 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_66 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_66, 0, x_65); return x_66; } @@ -26267,7 +26317,7 @@ lean::cnstr_set(x_8, 1, x_4); x_9 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_9, 0, x_8); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_10, 0, x_9); return x_10; } @@ -26325,7 +26375,7 @@ lean::cnstr_set(x_19, 1, x_7); x_20 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_20, 0, x_19); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_21, 0, x_20); return x_21; } @@ -26381,7 +26431,7 @@ lean::cnstr_set(x_38, 1, x_7); x_39 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_39, 0, x_38); -x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_40, 0, x_39); return x_40; } @@ -26459,7 +26509,7 @@ obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; lean::inc(x_3); x_6 = l_lean_elaborator_update__parser__config(x_3, x_4); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_7, 0, x_6); x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_end__scope___lambda__3), 5, 4); lean::closure_set(x_8, 0, x_0); @@ -26561,7 +26611,7 @@ lean::cnstr_set(x_9, 1, x_3); x_10 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_10, 0, x_9); -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_11, 0, x_10); return x_11; } @@ -26622,7 +26672,7 @@ lean::cnstr_set(x_28, 1, x_26); x_29 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_29, 0, x_28); -x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_30, 0, x_29); return x_30; } @@ -26684,7 +26734,7 @@ lean::cnstr_set(x_4, 1, x_2); x_5 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_5, 0, x_4); -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_6, 0, x_5); x_7 = l_lean_elaborator_locally___at_lean_elaborator_section_elaborate___spec__2___closed__1; x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); @@ -26912,7 +26962,7 @@ lean::cnstr_set(x_59, 1, x_57); x_60 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_60, 0, x_59); -x_61 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_61 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_61, 0, x_60); x_62 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_locally___at_lean_elaborator_namespace_elaborate___spec__1___lambda__1), 3, 2); lean::closure_set(x_62, 0, x_1); @@ -26930,7 +26980,7 @@ { obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; x_5 = l_lean_elaborator_get__namespace___rarg(x_4); -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_6, 0, x_5); x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_locally___at_lean_elaborator_namespace_elaborate___spec__1___lambda__2), 4, 3); lean::closure_set(x_7, 0, x_0); @@ -26977,7 +27027,7 @@ lean::cnstr_set(x_6, 1, x_3); x_7 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_7, 0, x_6); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); x_9 = l_lean_elaborator_locally___at_lean_elaborator_section_elaborate___spec__2___closed__1; x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); @@ -27392,7 +27442,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_module_header_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27422,7 +27472,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_notation_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27452,7 +27502,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_reserve__notation_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27482,7 +27532,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_universe_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27512,7 +27562,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_variables_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27542,7 +27592,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_include_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27572,7 +27622,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_locally___at_lean_elaborator_declaration_elaborate___spec__14(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27602,7 +27652,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_attribute_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27632,7 +27682,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_open_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27662,7 +27712,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_export_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27692,7 +27742,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_check_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -27724,7 +27774,7 @@ x_7 = l_lean_elaborator_init__quot_elaborate___closed__1; x_8 = l_lean_elaborator_old__elab__command(x_2, x_7, x_0, x_4); lean::dec(x_2); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_10, 0, x_8); return x_10; } @@ -27754,7 +27804,7 @@ lean::inc(x_4); lean::dec(x_1); x_7 = l_lean_elaborator_set__option_elaborate(x_2, x_0, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_8, 0, x_7); return x_8; } @@ -29207,7 +29257,7 @@ lean::cnstr_set(x_4, 1, x_3); x_5 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_5, 0, x_4); -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_6, 0, x_5); return x_6; } @@ -29323,7 +29373,7 @@ lean::cnstr_set(x_30, 1, x_28); x_31 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_31, 0, x_30); -x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_32, 0, x_31); return x_32; } @@ -29436,7 +29486,7 @@ lean::cnstr_set_tag(x_4, 1); } lean::cnstr_set(x_32, 0, x_31); -x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_33, 0, x_32); return x_33; } @@ -29444,7 +29494,7 @@ { obj* x_35; lean::dec(x_0); -x_35 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_35 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_35, 0, x_1); return x_35; } @@ -29492,7 +29542,7 @@ lean::cnstr_set(x_23, 1, x_4); x_24 = lean::alloc_cnstr(1, 1, 0); lean::cnstr_set(x_24, 0, x_23); -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_25, 0, x_24); x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_run___lambda__2), 5, 4); lean::closure_set(x_26, 0, x_17); @@ -29551,7 +29601,7 @@ lean::dec(x_2); lean::inc(x_3); x_9 = l_lean_elaborator_preresolve___main(x_3, x_0, x_5); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_10, 0, x_9); x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_elaborator_run___lambda__5), 4, 3); lean::closure_set(x_11, 0, x_3); @@ -29594,7 +29644,7 @@ x_5 = lean::alloc_cnstr(1, 2, 0); lean::cnstr_set(x_5, 0, x_1); lean::cnstr_set(x_5, 1, x_4); -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_6, 0, x_5); return x_6; } @@ -29610,7 +29660,7 @@ x_13 = lean::cnstr_get(x_10, 5); lean::inc(x_13); lean::dec(x_10); -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); +x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_except__t_bind__cont___at_lean_elaborator_command_elaborate___spec__3___rarg___lambda__1___boxed), 2, 1); lean::closure_set(x_16, 0, x_13); return x_16; } @@ -30026,8 +30076,8 @@ lean::mark_persistent(l_list_mmap___main___at_lean_elaborator_command__parser__config_register__notation__parser___spec__2___closed__5); l_lean_elaborator_command__parser__config_register__notation__parser___closed__1 = _init_l_lean_elaborator_command__parser__config_register__notation__parser___closed__1(); lean::mark_persistent(l_lean_elaborator_command__parser__config_register__notation__parser___closed__1); - l_lean_elaborator_yield__to__outside___rarg___lambda__2___closed__1 = _init_l_lean_elaborator_yield__to__outside___rarg___lambda__2___closed__1(); -lean::mark_persistent(l_lean_elaborator_yield__to__outside___rarg___lambda__2___closed__1); + l_lean_elaborator_yield__to__outside___rarg___lambda__3___closed__1 = _init_l_lean_elaborator_yield__to__outside___rarg___lambda__3___closed__1(); +lean::mark_persistent(l_lean_elaborator_yield__to__outside___rarg___lambda__3___closed__1); l_lean_elaborator_yield__to__outside___rarg___closed__1 = _init_l_lean_elaborator_yield__to__outside___rarg___closed__1(); lean::mark_persistent(l_lean_elaborator_yield__to__outside___rarg___closed__1); l_lean_elaborator_postprocess__notation__spec___closed__1 = _init_l_lean_elaborator_postprocess__notation__spec___closed__1();
diff --git a/src/boot/init/lean/frontend.cpp b/src/boot/init/lean/frontend.cpp index 0a3f2c4..774e7f3 100644 --- a/src/boot/init/lean/frontend.cpp +++ b/src/boot/init/lean/frontend.cpp
@@ -14,28 +14,24 @@ #pragma GCC diagnostic ignored "-Wunused-label" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif -obj* l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__1; -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__12(obj*, obj*, obj*); -obj* l___private_init_io_12__put__str___at_lean_run__frontend___spec__5(obj*, obj*); -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed(obj*, obj*); +obj* l___private_init_io_12__put__str___at_lean_process__file___spec__3___boxed(obj*, obj*); obj* l_lean_run__frontend___boxed(obj*, obj*, obj*, obj*); -obj* l_lean_expander_expand(obj*, obj*); extern obj* l_lean_elaborator_notation_elaborate___closed__1; obj* l_lean_run__parser___boxed(obj*, obj*); extern obj* l_lean_parser_module_tokens; obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___boxed(obj*, obj*); +obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__3___closed__1; obj* l_lean_parser_mk__token__trie(obj*); obj* l_lean_parser_run___at_lean_run__frontend___spec__1(obj*, obj*, obj*); obj* l_lean_process__file___lambda__1___closed__6; obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2(obj*, obj*); +obj* l___private_init_io_12__put__str___at_lean_process__file___spec__3(obj*, obj*); extern "C" obj* lean_io_prim_put_str(obj*, obj*); obj* l_lean_process__file___lambda__1___closed__3; obj* l_list_reverse___rarg(obj*); -uint8 l_lean_parser_syntax_is__of__kind___main(obj*, obj*); +extern obj* l_lean_expander_expand__bracketed__binder___main___closed__4; obj* l_string_quote(obj*); -obj* l_coroutine_resume___rarg(obj*, obj*); obj* l_lean_parser_message__of__parsec__message___rarg(obj*, obj*); -extern obj* l_lean_expander_builtin__transformers; obj* l_lean_run__expander(obj*, obj*); obj* l_lean_mk__config(obj*, obj*); obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg(obj*, obj*, obj*, obj*); @@ -43,34 +39,26 @@ obj* l_lean_process__file___lambda__1___closed__8; obj* lean_process_file(obj*, obj*, uint8, obj*); obj* l_lean_run__frontend(obj*, obj*, obj*, obj*); -obj* l_lean_parser_module_parser(obj*, obj*, obj*); +obj* l_lean_parser_module_parser(obj*, obj*, obj*, obj*); namespace lean { obj* string_append(obj*, obj*); } obj* l_lean_process__file___lambda__1___closed__2; obj* l_lean_process__file___closed__1; -obj* l_io_println___at_lean_run__frontend___spec__3___boxed(obj*, obj*); +obj* l_lean_run__frontend___closed__1; extern obj* l_lean_parser_term_builtin__trailing__parsers_lean_parser_has__tokens; extern obj* l_lean_parser_term_builtin__leading__parsers; obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___boxed(obj*, obj*, obj*, obj*); obj* l_lean_process__file___lambda__1___closed__1; -obj* l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___lambda__1___boxed(obj*, obj*, obj*, obj*); obj* l_lean_parser_tokens___rarg(obj*); obj* l_lean_run__elaborator___rarg(obj*, obj*); -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__8(obj*, obj*, obj*); -obj* l_lean_parser_run___at_lean_run__frontend___spec__1___lambda__1(obj*, obj*); -extern obj* l_lean_parser_module_eoi; -obj* l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___closed__1; -obj* l_lean_elaborator_run(obj*); +obj* l_io_println___at_lean_process__file___spec__1___boxed(obj*, obj*); extern obj* l_lean_message__log_empty; obj* l_lean_run__parser(obj*, obj*); extern obj* l_lean_format_be___main___closed__1; -obj* l_reader__t_run___rarg(obj*, obj*); -obj* l_coroutine_bind___main___rarg(obj*, obj*, obj*); +obj* l_io_print___at_lean_process__file___spec__2___boxed(obj*, obj*); extern obj* l_string_join___closed__1; -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__11(obj*, obj*, obj*); -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__6(obj*, obj*, obj*); -obj* l_io_prim_iterate___main___at_lean_run__frontend___spec__14(obj*, obj*, obj*); +obj* l_io_println___at_lean_process__file___spec__1(obj*, obj*); extern obj* l_lean_parser_run___rarg___closed__1; obj* l_lean_process__file___lambda__1___boxed(obj*, obj*, obj*); obj* l_lean_message_to__string(obj*); @@ -80,34 +68,23 @@ obj* l_lean_process__file___boxed(obj*, obj*, obj*, obj*); extern obj* l_lean_parser_term_builtin__leading__parsers_lean_parser_has__tokens; obj* l_lean_run__expander___rarg(obj*, obj*); -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__10(obj*, obj*, obj*); -obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___closed__1; namespace lean { obj* string_mk_iterator(obj*); } -obj* l_io_print___at_lean_run__frontend___spec__4(obj*, obj*); extern obj* l_lean_parser_command_builtin__command__parsers; obj* l_option_get___main___at_lean_parser_run___spec__2(obj*); -obj* l_io_println___at_lean_run__frontend___spec__3(obj*, obj*); -obj* l_io_prim_iterate__eio___at_lean_run__frontend___spec__13(obj*, obj*, obj*, obj*, obj*); extern obj* l_lean_parser_command_builtin__command__parsers_lean_parser_has__tokens; extern obj* l_lean_parser_term_builtin__trailing__parsers; obj* l_nat_repr(obj*); obj* l_lean_process__file___lambda__1___closed__9; obj* l_lean_run__elaborator(obj*, obj*); -obj* l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__2; -obj* l_io_print___at_lean_run__frontend___spec__4___boxed(obj*, obj*); -obj* l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___lambda__1(obj*, obj*, obj*, obj*); +obj* l_io_print___at_lean_process__file___spec__2(obj*, obj*); obj* l_lean_run__elaborator___boxed(obj*, obj*); obj* l_list_append___rarg(obj*, obj*); -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__9(obj*, obj*, obj*); -obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___lambda__1(obj*); obj* l_lean_run__parser___rarg(obj*, obj*); -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__7(obj*, obj*, obj*); -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1; -obj* l___private_init_io_12__put__str___at_lean_run__frontend___spec__5___boxed(obj*, obj*); obj* l_lean_process__file___lambda__1(uint8, obj*, obj*); obj* l_lean_process__file___lambda__1___closed__4; +obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__3(obj*, obj*, obj*); obj* l_lean_mk__config(obj* x_0, obj* x_1) { _start: { @@ -266,89 +243,66 @@ return x_2; } } -obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___lambda__1(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_6; obj* x_9; obj* x_10; obj* x_11; -x_3 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_5 = x_0; -} else { - lean::inc(x_3); - lean::dec(x_0); - x_5 = lean::box(0); -} -x_6 = lean::cnstr_get(x_1, 0); -lean::inc(x_6); -lean::dec(x_1); -x_9 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_9, 0, x_6); -if (lean::is_scalar(x_5)) { - x_10 = lean::alloc_cnstr(0, 2, 0); -} else { - x_10 = x_5; -} -lean::cnstr_set(x_10, 0, x_9); -lean::cnstr_set(x_10, 1, x_3); -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_11, 0, x_10); -return x_11; -} -else -{ -obj* x_12; obj* x_14; obj* x_15; obj* x_18; obj* x_19; obj* x_20; -x_12 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_14 = x_0; -} else { - lean::inc(x_12); - lean::dec(x_0); - x_14 = lean::box(0); -} -x_15 = lean::cnstr_get(x_1, 0); -lean::inc(x_15); -lean::dec(x_1); -x_18 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_18, 0, x_15); -if (lean::is_scalar(x_14)) { - x_19 = lean::alloc_cnstr(0, 2, 0); -} else { - x_19 = x_14; -} -lean::cnstr_set(x_19, 0, x_18); -lean::cnstr_set(x_19, 1, x_12); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_20, 0, x_19); -return x_20; -} -} -} -obj* _init_l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___lambda__1), 1, 0); -return x_0; -} -} obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___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_4; obj* x_5; obj* x_6; x_4 = lean::string_mk_iterator(x_1); x_5 = lean::apply_2(x_0, x_4, x_3); -x_6 = l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___closed__1; -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_7, 0, x_5); -lean::closure_set(x_7, 1, x_6); -return x_7; +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_14; obj* x_15; +x_8 = lean::cnstr_get(x_5, 1); +if (lean::is_exclusive(x_5)) { + lean::cnstr_release(x_5, 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); +lean::inc(x_11); +lean::dec(x_6); +x_14 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_14, 0, x_11); +if (lean::is_scalar(x_10)) { + x_15 = lean::alloc_cnstr(0, 2, 0); +} else { + x_15 = x_10; +} +lean::cnstr_set(x_15, 0, x_14); +lean::cnstr_set(x_15, 1, x_8); +return x_15; +} +else +{ +obj* x_16; obj* x_18; obj* x_19; obj* x_22; obj* x_23; +x_16 = lean::cnstr_get(x_5, 1); +if (lean::is_exclusive(x_5)) { + lean::cnstr_release(x_5, 0); + x_18 = x_5; +} else { + lean::inc(x_16); + lean::dec(x_5); + x_18 = lean::box(0); +} +x_19 = lean::cnstr_get(x_6, 0); +lean::inc(x_19); +lean::dec(x_6); +x_22 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_22, 0, x_19); +if (lean::is_scalar(x_18)) { + x_23 = lean::alloc_cnstr(0, 2, 0); +} else { + x_23 = x_18; +} +lean::cnstr_set(x_23, 0, x_22); +lean::cnstr_set(x_23, 1, x_16); +return x_23; +} } } obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2(obj* x_0, obj* x_1) { @@ -359,109 +313,367 @@ return x_2; } } -obj* l_lean_parser_run___at_lean_run__frontend___spec__1___lambda__1(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; obj* x_4; -x_2 = lean::cnstr_get(x_1, 0); -if (lean::is_exclusive(x_1)) { - lean::cnstr_set(x_1, 0, lean::box(0)); - lean::cnstr_release(x_1, 1); - x_4 = x_1; -} else { - lean::inc(x_2); - lean::dec(x_1); - x_4 = lean::box(0); -} -if (lean::obj_tag(x_2) == 0) -{ -obj* x_5; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_16; obj* x_19; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; -x_5 = lean::cnstr_get(x_2, 0); -lean::inc(x_5); -lean::dec(x_2); -x_8 = lean::cnstr_get(x_5, 3); -lean::inc(x_8); -x_10 = l_option_get___main___at_lean_parser_run___spec__2(x_8); -lean::dec(x_8); -x_12 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_12, 0, x_10); -x_13 = lean::cnstr_get(x_0, 0); -lean::inc(x_13); -lean::dec(x_0); -x_16 = lean::cnstr_get(x_13, 0); -lean::inc(x_16); -lean::dec(x_13); -x_19 = lean::cnstr_get(x_16, 0); -lean::inc(x_19); -lean::dec(x_16); -x_22 = l_lean_parser_message__of__parsec__message___rarg(x_19, x_5); -x_23 = l_lean_message__log_empty; -x_24 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_24, 0, x_22); -lean::cnstr_set(x_24, 1, x_23); -if (lean::is_scalar(x_4)) { - x_25 = lean::alloc_cnstr(0, 2, 0); -} else { - x_25 = x_4; -} -lean::cnstr_set(x_25, 0, x_12); -lean::cnstr_set(x_25, 1, x_24); -x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_26, 0, x_25); -return x_26; -} -else -{ -obj* x_29; obj* x_32; obj* x_34; obj* x_36; obj* x_37; obj* x_38; obj* x_39; -lean::dec(x_4); -lean::dec(x_0); -x_29 = lean::cnstr_get(x_2, 0); -lean::inc(x_29); -lean::dec(x_2); -x_32 = lean::cnstr_get(x_29, 0); -x_34 = lean::cnstr_get(x_29, 1); -if (lean::is_exclusive(x_29)) { - x_36 = x_29; -} else { - lean::inc(x_32); - lean::inc(x_34); - lean::dec(x_29); - x_36 = lean::box(0); -} -x_37 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_37, 0, x_32); -if (lean::is_scalar(x_36)) { - x_38 = lean::alloc_cnstr(0, 2, 0); -} else { - x_38 = x_36; -} -lean::cnstr_set(x_38, 0, x_37); -lean::cnstr_set(x_38, 1, x_34); -x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_39, 0, x_38); -return x_39; -} -} -} obj* l_lean_parser_run___at_lean_run__frontend___spec__1(obj* x_0, obj* x_1, obj* x_2) { _start: { -obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; +obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; x_3 = l_lean_message__log_empty; lean::inc(x_0); x_5 = lean::apply_2(x_2, x_3, x_0); x_6 = l_string_join___closed__1; x_7 = l_lean_parser_run___rarg___closed__1; x_8 = l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg(x_5, x_1, x_6, x_7); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_run___at_lean_run__frontend___spec__1___lambda__1), 2, 1); -lean::closure_set(x_9, 0, x_0); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_10, 0, x_8); -lean::closure_set(x_10, 1, x_9); -return x_10; +x_9 = lean::cnstr_get(x_8, 0); +if (lean::is_exclusive(x_8)) { + lean::cnstr_set(x_8, 0, lean::box(0)); + lean::cnstr_release(x_8, 1); + x_11 = x_8; +} else { + lean::inc(x_9); + lean::dec(x_8); + x_11 = lean::box(0); +} +if (lean::obj_tag(x_9) == 0) +{ +obj* x_12; obj* x_15; obj* x_17; obj* x_19; obj* x_20; obj* x_23; obj* x_26; obj* x_29; obj* x_30; obj* x_31; +x_12 = lean::cnstr_get(x_9, 0); +lean::inc(x_12); +lean::dec(x_9); +x_15 = lean::cnstr_get(x_12, 3); +lean::inc(x_15); +x_17 = l_option_get___main___at_lean_parser_run___spec__2(x_15); +lean::dec(x_15); +x_19 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_19, 0, x_17); +x_20 = lean::cnstr_get(x_0, 0); +lean::inc(x_20); +lean::dec(x_0); +x_23 = lean::cnstr_get(x_20, 0); +lean::inc(x_23); +lean::dec(x_20); +x_26 = lean::cnstr_get(x_23, 0); +lean::inc(x_26); +lean::dec(x_23); +x_29 = l_lean_parser_message__of__parsec__message___rarg(x_26, x_12); +x_30 = lean::alloc_cnstr(1, 2, 0); +lean::cnstr_set(x_30, 0, x_29); +lean::cnstr_set(x_30, 1, x_3); +if (lean::is_scalar(x_11)) { + x_31 = lean::alloc_cnstr(0, 2, 0); +} else { + x_31 = x_11; +} +lean::cnstr_set(x_31, 0, x_19); +lean::cnstr_set(x_31, 1, x_30); +return x_31; +} +else +{ +obj* x_34; obj* x_37; obj* x_39; obj* x_41; obj* x_42; obj* x_43; +lean::dec(x_11); +lean::dec(x_0); +x_34 = lean::cnstr_get(x_9, 0); +lean::inc(x_34); +lean::dec(x_9); +x_37 = lean::cnstr_get(x_34, 0); +x_39 = lean::cnstr_get(x_34, 1); +if (lean::is_exclusive(x_34)) { + x_41 = x_34; +} else { + lean::inc(x_37); + lean::inc(x_39); + lean::dec(x_34); + x_41 = lean::box(0); +} +x_42 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_42, 0, x_37); +if (lean::is_scalar(x_41)) { + x_43 = lean::alloc_cnstr(0, 2, 0); +} else { + x_43 = x_41; +} +lean::cnstr_set(x_43, 0, x_42); +lean::cnstr_set(x_43, 1, x_39); +return x_43; } } -obj* l___private_init_io_12__put__str___at_lean_run__frontend___spec__5(obj* x_0, obj* x_1) { +} +obj* _init_l_list_mmap_x_27___main___at_lean_run__frontend___spec__3___closed__1() { +_start: +{ +obj* x_0; obj* x_1; +x_0 = lean::box(0); +x_1 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_1, 0, x_0); +return x_1; +} +} +obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__3(obj* x_0, obj* x_1, obj* x_2) { +_start: +{ +if (lean::obj_tag(x_1) == 0) +{ +obj* x_4; obj* x_5; +lean::dec(x_0); +x_4 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__3___closed__1; +x_5 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_5, 0, x_4); +lean::cnstr_set(x_5, 1, x_2); +return x_5; +} +else +{ +obj* x_6; obj* x_8; obj* x_12; obj* x_13; +x_6 = lean::cnstr_get(x_1, 0); +lean::inc(x_6); +x_8 = lean::cnstr_get(x_1, 1); +lean::inc(x_8); +lean::dec(x_1); +lean::inc(x_0); +x_12 = lean::apply_2(x_0, x_6, x_2); +x_13 = lean::cnstr_get(x_12, 0); +lean::inc(x_13); +if (lean::obj_tag(x_13) == 0) +{ +obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; +lean::dec(x_8); +lean::dec(x_0); +x_17 = lean::cnstr_get(x_12, 1); +if (lean::is_exclusive(x_12)) { + lean::cnstr_release(x_12, 0); + x_19 = x_12; +} else { + lean::inc(x_17); + lean::dec(x_12); + x_19 = lean::box(0); +} +x_20 = lean::cnstr_get(x_13, 0); +if (lean::is_exclusive(x_13)) { + x_22 = x_13; +} else { + lean::inc(x_20); + lean::dec(x_13); + x_22 = lean::box(0); +} +if (lean::is_scalar(x_22)) { + x_23 = lean::alloc_cnstr(0, 1, 0); +} else { + x_23 = x_22; +} +lean::cnstr_set(x_23, 0, x_20); +if (lean::is_scalar(x_19)) { + x_24 = lean::alloc_cnstr(0, 2, 0); +} else { + x_24 = x_19; +} +lean::cnstr_set(x_24, 0, x_23); +lean::cnstr_set(x_24, 1, x_17); +return x_24; +} +else +{ +obj* x_26; +lean::dec(x_13); +x_26 = lean::cnstr_get(x_12, 1); +lean::inc(x_26); +lean::dec(x_12); +x_1 = x_8; +x_2 = x_26; +goto _start; +} +} +} +} +obj* _init_l_lean_run__frontend___closed__1() { +_start: +{ +obj* x_0; +x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser), 4, 0); +return x_0; +} +} +obj* l_lean_run__frontend(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +_start: +{ +obj* x_4; obj* x_5; obj* x_8; +lean::inc(x_1); +x_8 = l_lean_mk__config(x_0, x_1); +if (lean::obj_tag(x_8) == 0) +{ +obj* x_9; obj* x_11; obj* x_12; +x_9 = lean::cnstr_get(x_8, 0); +if (lean::is_exclusive(x_8)) { + x_11 = x_8; +} else { + lean::inc(x_9); + lean::dec(x_8); + x_11 = lean::box(0); +} +if (lean::is_scalar(x_11)) { + x_12 = lean::alloc_cnstr(0, 1, 0); +} else { + x_12 = x_11; +} +lean::cnstr_set(x_12, 0, x_9); +lean::inc(x_3); +x_4 = x_12; +x_5 = x_3; +goto lbl_6; +} +else +{ +obj* x_14; obj* x_16; obj* x_17; +x_14 = lean::cnstr_get(x_8, 0); +if (lean::is_exclusive(x_8)) { + x_16 = x_8; +} else { + lean::inc(x_14); + lean::dec(x_8); + x_16 = lean::box(0); +} +if (lean::is_scalar(x_16)) { + x_17 = lean::alloc_cnstr(1, 1, 0); +} else { + x_17 = x_16; +} +lean::cnstr_set(x_17, 0, x_14); +lean::inc(x_3); +x_4 = x_17; +x_5 = x_3; +goto lbl_6; +} +lbl_6: +{ +if (lean::obj_tag(x_4) == 0) +{ +obj* x_21; obj* x_23; obj* x_24; obj* x_25; +lean::dec(x_1); +lean::dec(x_2); +x_21 = lean::cnstr_get(x_4, 0); +if (lean::is_exclusive(x_4)) { + x_23 = x_4; +} else { + lean::inc(x_21); + lean::dec(x_4); + x_23 = lean::box(0); +} +if (lean::is_scalar(x_23)) { + x_24 = lean::alloc_cnstr(0, 1, 0); +} else { + x_24 = x_23; +} +lean::cnstr_set(x_24, 0, x_21); +x_25 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_25, 0, x_24); +lean::cnstr_set(x_25, 1, x_5); +return x_25; +} +else +{ +obj* x_26; obj* x_29; obj* x_30; obj* x_31; obj* x_34; obj* x_35; obj* x_36; +x_26 = lean::cnstr_get(x_4, 0); +lean::inc(x_26); +lean::dec(x_4); +x_29 = l_lean_run__frontend___closed__1; +x_30 = l_lean_parser_run___at_lean_run__frontend___spec__1(x_26, x_1, x_29); +x_31 = lean::cnstr_get(x_30, 1); +lean::inc(x_31); +lean::dec(x_30); +x_34 = l_list_reverse___rarg(x_31); +x_35 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__3(x_2, x_34, x_5); +x_36 = lean::cnstr_get(x_35, 0); +lean::inc(x_36); +if (lean::obj_tag(x_36) == 0) +{ +obj* x_38; obj* x_40; obj* x_41; obj* x_43; obj* x_44; obj* x_45; +x_38 = lean::cnstr_get(x_35, 1); +if (lean::is_exclusive(x_35)) { + lean::cnstr_release(x_35, 0); + x_40 = x_35; +} else { + lean::inc(x_38); + lean::dec(x_35); + x_40 = lean::box(0); +} +x_41 = lean::cnstr_get(x_36, 0); +if (lean::is_exclusive(x_36)) { + x_43 = x_36; +} else { + lean::inc(x_41); + lean::dec(x_36); + x_43 = lean::box(0); +} +if (lean::is_scalar(x_43)) { + x_44 = lean::alloc_cnstr(0, 1, 0); +} else { + x_44 = x_43; +} +lean::cnstr_set(x_44, 0, x_41); +if (lean::is_scalar(x_40)) { + x_45 = lean::alloc_cnstr(0, 2, 0); +} else { + x_45 = x_40; +} +lean::cnstr_set(x_45, 0, x_44); +lean::cnstr_set(x_45, 1, x_38); +return x_45; +} +else +{ +obj* x_47; obj* x_49; obj* x_50; obj* x_51; +lean::dec(x_36); +x_47 = lean::cnstr_get(x_35, 1); +if (lean::is_exclusive(x_35)) { + lean::cnstr_release(x_35, 0); + x_49 = x_35; +} else { + lean::inc(x_47); + lean::dec(x_35); + x_49 = lean::box(0); +} +x_50 = l_lean_expander_expand__bracketed__binder___main___closed__4; +if (lean::is_scalar(x_49)) { + x_51 = lean::alloc_cnstr(0, 2, 0); +} else { + x_51 = x_49; +} +lean::cnstr_set(x_51, 0, x_50); +lean::cnstr_set(x_51, 1, x_47); +return x_51; +} +} +} +} +} +obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +_start: +{ +obj* x_4; +x_4 = l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg(x_0, x_1, x_2, x_3); +lean::dec(x_2); +return x_4; +} +} +obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___boxed(obj* x_0, obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2(x_0, x_1); +lean::dec(x_0); +lean::dec(x_1); +return x_2; +} +} +obj* l_lean_run__frontend___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +_start: +{ +obj* x_4; +x_4 = l_lean_run__frontend(x_0, x_1, x_2, x_3); +lean::dec(x_3); +return x_4; +} +} +obj* l___private_init_io_12__put__str___at_lean_process__file___spec__3(obj* x_0, obj* x_1) { _start: { obj* x_2; obj* x_3; @@ -540,19 +752,19 @@ } } } -obj* l_io_print___at_lean_run__frontend___spec__4(obj* x_0, obj* x_1) { +obj* l_io_print___at_lean_process__file___spec__2(obj* x_0, obj* x_1) { _start: { obj* x_2; -x_2 = l___private_init_io_12__put__str___at_lean_run__frontend___spec__5(x_0, x_1); +x_2 = l___private_init_io_12__put__str___at_lean_process__file___spec__3(x_0, x_1); return x_2; } } -obj* l_io_println___at_lean_run__frontend___spec__3(obj* x_0, obj* x_1) { +obj* l_io_println___at_lean_process__file___spec__1(obj* x_0, obj* x_1) { _start: { obj* x_2; obj* x_3; -x_2 = l___private_init_io_12__put__str___at_lean_run__frontend___spec__5(x_0, x_1); +x_2 = l___private_init_io_12__put__str___at_lean_process__file___spec__3(x_0, x_1); x_3 = lean::cnstr_get(x_2, 0); lean::inc(x_3); if (lean::obj_tag(x_3) == 0) @@ -598,1916 +810,11 @@ lean::inc(x_14); lean::dec(x_2); x_17 = l_lean_format_be___main___closed__1; -x_18 = l___private_init_io_12__put__str___at_lean_run__frontend___spec__5(x_17, x_14); +x_18 = l___private_init_io_12__put__str___at_lean_process__file___spec__3(x_17, x_14); return x_18; } } } -obj* _init_l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1() { -_start: -{ -obj* x_0; obj* x_1; -x_0 = lean::box(0); -x_1 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_1, 0, x_0); -return x_1; -} -} -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__6(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -obj* x_4; obj* x_5; -lean::dec(x_0); -x_4 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1; -x_5 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_5, 0, x_4); -lean::cnstr_set(x_5, 1, x_2); -return x_5; -} -else -{ -obj* x_6; obj* x_8; obj* x_12; obj* x_13; -x_6 = lean::cnstr_get(x_1, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -lean::dec(x_1); -lean::inc(x_0); -x_12 = lean::apply_2(x_0, x_6, x_2); -x_13 = lean::cnstr_get(x_12, 0); -lean::inc(x_13); -if (lean::obj_tag(x_13) == 0) -{ -obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; -lean::dec(x_8); -lean::dec(x_0); -x_17 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_19 = x_12; -} else { - lean::inc(x_17); - lean::dec(x_12); - x_19 = lean::box(0); -} -x_20 = lean::cnstr_get(x_13, 0); -if (lean::is_exclusive(x_13)) { - x_22 = x_13; -} else { - lean::inc(x_20); - lean::dec(x_13); - x_22 = lean::box(0); -} -if (lean::is_scalar(x_22)) { - x_23 = lean::alloc_cnstr(0, 1, 0); -} else { - x_23 = x_22; -} -lean::cnstr_set(x_23, 0, x_20); -if (lean::is_scalar(x_19)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_19; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_17); -return x_24; -} -else -{ -obj* x_26; -lean::dec(x_13); -x_26 = lean::cnstr_get(x_12, 1); -lean::inc(x_26); -lean::dec(x_12); -x_1 = x_8; -x_2 = x_26; -goto _start; -} -} -} -} -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__7(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -obj* x_4; obj* x_5; -lean::dec(x_0); -x_4 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1; -x_5 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_5, 0, x_4); -lean::cnstr_set(x_5, 1, x_2); -return x_5; -} -else -{ -obj* x_6; obj* x_8; obj* x_12; obj* x_13; -x_6 = lean::cnstr_get(x_1, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -lean::dec(x_1); -lean::inc(x_0); -x_12 = lean::apply_2(x_0, x_6, x_2); -x_13 = lean::cnstr_get(x_12, 0); -lean::inc(x_13); -if (lean::obj_tag(x_13) == 0) -{ -obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; -lean::dec(x_8); -lean::dec(x_0); -x_17 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_19 = x_12; -} else { - lean::inc(x_17); - lean::dec(x_12); - x_19 = lean::box(0); -} -x_20 = lean::cnstr_get(x_13, 0); -if (lean::is_exclusive(x_13)) { - x_22 = x_13; -} else { - lean::inc(x_20); - lean::dec(x_13); - x_22 = lean::box(0); -} -if (lean::is_scalar(x_22)) { - x_23 = lean::alloc_cnstr(0, 1, 0); -} else { - x_23 = x_22; -} -lean::cnstr_set(x_23, 0, x_20); -if (lean::is_scalar(x_19)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_19; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_17); -return x_24; -} -else -{ -obj* x_26; -lean::dec(x_13); -x_26 = lean::cnstr_get(x_12, 1); -lean::inc(x_26); -lean::dec(x_12); -x_1 = x_8; -x_2 = x_26; -goto _start; -} -} -} -} -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__8(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -obj* x_4; obj* x_5; -lean::dec(x_0); -x_4 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1; -x_5 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_5, 0, x_4); -lean::cnstr_set(x_5, 1, x_2); -return x_5; -} -else -{ -obj* x_6; obj* x_8; obj* x_12; obj* x_13; -x_6 = lean::cnstr_get(x_1, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -lean::dec(x_1); -lean::inc(x_0); -x_12 = lean::apply_2(x_0, x_6, x_2); -x_13 = lean::cnstr_get(x_12, 0); -lean::inc(x_13); -if (lean::obj_tag(x_13) == 0) -{ -obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; -lean::dec(x_8); -lean::dec(x_0); -x_17 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_19 = x_12; -} else { - lean::inc(x_17); - lean::dec(x_12); - x_19 = lean::box(0); -} -x_20 = lean::cnstr_get(x_13, 0); -if (lean::is_exclusive(x_13)) { - x_22 = x_13; -} else { - lean::inc(x_20); - lean::dec(x_13); - x_22 = lean::box(0); -} -if (lean::is_scalar(x_22)) { - x_23 = lean::alloc_cnstr(0, 1, 0); -} else { - x_23 = x_22; -} -lean::cnstr_set(x_23, 0, x_20); -if (lean::is_scalar(x_19)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_19; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_17); -return x_24; -} -else -{ -obj* x_26; -lean::dec(x_13); -x_26 = lean::cnstr_get(x_12, 1); -lean::inc(x_26); -lean::dec(x_12); -x_1 = x_8; -x_2 = x_26; -goto _start; -} -} -} -} -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__9(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -obj* x_4; obj* x_5; -lean::dec(x_0); -x_4 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1; -x_5 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_5, 0, x_4); -lean::cnstr_set(x_5, 1, x_2); -return x_5; -} -else -{ -obj* x_6; obj* x_8; obj* x_12; obj* x_13; -x_6 = lean::cnstr_get(x_1, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -lean::dec(x_1); -lean::inc(x_0); -x_12 = lean::apply_2(x_0, x_6, x_2); -x_13 = lean::cnstr_get(x_12, 0); -lean::inc(x_13); -if (lean::obj_tag(x_13) == 0) -{ -obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; -lean::dec(x_8); -lean::dec(x_0); -x_17 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_19 = x_12; -} else { - lean::inc(x_17); - lean::dec(x_12); - x_19 = lean::box(0); -} -x_20 = lean::cnstr_get(x_13, 0); -if (lean::is_exclusive(x_13)) { - x_22 = x_13; -} else { - lean::inc(x_20); - lean::dec(x_13); - x_22 = lean::box(0); -} -if (lean::is_scalar(x_22)) { - x_23 = lean::alloc_cnstr(0, 1, 0); -} else { - x_23 = x_22; -} -lean::cnstr_set(x_23, 0, x_20); -if (lean::is_scalar(x_19)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_19; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_17); -return x_24; -} -else -{ -obj* x_26; -lean::dec(x_13); -x_26 = lean::cnstr_get(x_12, 1); -lean::inc(x_26); -lean::dec(x_12); -x_1 = x_8; -x_2 = x_26; -goto _start; -} -} -} -} -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__10(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -obj* x_4; obj* x_5; -lean::dec(x_0); -x_4 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1; -x_5 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_5, 0, x_4); -lean::cnstr_set(x_5, 1, x_2); -return x_5; -} -else -{ -obj* x_6; obj* x_8; obj* x_12; obj* x_13; -x_6 = lean::cnstr_get(x_1, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -lean::dec(x_1); -lean::inc(x_0); -x_12 = lean::apply_2(x_0, x_6, x_2); -x_13 = lean::cnstr_get(x_12, 0); -lean::inc(x_13); -if (lean::obj_tag(x_13) == 0) -{ -obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; -lean::dec(x_8); -lean::dec(x_0); -x_17 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_19 = x_12; -} else { - lean::inc(x_17); - lean::dec(x_12); - x_19 = lean::box(0); -} -x_20 = lean::cnstr_get(x_13, 0); -if (lean::is_exclusive(x_13)) { - x_22 = x_13; -} else { - lean::inc(x_20); - lean::dec(x_13); - x_22 = lean::box(0); -} -if (lean::is_scalar(x_22)) { - x_23 = lean::alloc_cnstr(0, 1, 0); -} else { - x_23 = x_22; -} -lean::cnstr_set(x_23, 0, x_20); -if (lean::is_scalar(x_19)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_19; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_17); -return x_24; -} -else -{ -obj* x_26; -lean::dec(x_13); -x_26 = lean::cnstr_get(x_12, 1); -lean::inc(x_26); -lean::dec(x_12); -x_1 = x_8; -x_2 = x_26; -goto _start; -} -} -} -} -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__11(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -obj* x_4; obj* x_5; -lean::dec(x_0); -x_4 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1; -x_5 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_5, 0, x_4); -lean::cnstr_set(x_5, 1, x_2); -return x_5; -} -else -{ -obj* x_6; obj* x_8; obj* x_12; obj* x_13; -x_6 = lean::cnstr_get(x_1, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -lean::dec(x_1); -lean::inc(x_0); -x_12 = lean::apply_2(x_0, x_6, x_2); -x_13 = lean::cnstr_get(x_12, 0); -lean::inc(x_13); -if (lean::obj_tag(x_13) == 0) -{ -obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; -lean::dec(x_8); -lean::dec(x_0); -x_17 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_19 = x_12; -} else { - lean::inc(x_17); - lean::dec(x_12); - x_19 = lean::box(0); -} -x_20 = lean::cnstr_get(x_13, 0); -if (lean::is_exclusive(x_13)) { - x_22 = x_13; -} else { - lean::inc(x_20); - lean::dec(x_13); - x_22 = lean::box(0); -} -if (lean::is_scalar(x_22)) { - x_23 = lean::alloc_cnstr(0, 1, 0); -} else { - x_23 = x_22; -} -lean::cnstr_set(x_23, 0, x_20); -if (lean::is_scalar(x_19)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_19; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_17); -return x_24; -} -else -{ -obj* x_26; -lean::dec(x_13); -x_26 = lean::cnstr_get(x_12, 1); -lean::inc(x_26); -lean::dec(x_12); -x_1 = x_8; -x_2 = x_26; -goto _start; -} -} -} -} -obj* l_list_mmap_x_27___main___at_lean_run__frontend___spec__12(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -obj* x_4; obj* x_5; -lean::dec(x_0); -x_4 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1; -x_5 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_5, 0, x_4); -lean::cnstr_set(x_5, 1, x_2); -return x_5; -} -else -{ -obj* x_6; obj* x_8; obj* x_12; obj* x_13; -x_6 = lean::cnstr_get(x_1, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -lean::dec(x_1); -lean::inc(x_0); -x_12 = lean::apply_2(x_0, x_6, x_2); -x_13 = lean::cnstr_get(x_12, 0); -lean::inc(x_13); -if (lean::obj_tag(x_13) == 0) -{ -obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; -lean::dec(x_8); -lean::dec(x_0); -x_17 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_19 = x_12; -} else { - lean::inc(x_17); - lean::dec(x_12); - x_19 = lean::box(0); -} -x_20 = lean::cnstr_get(x_13, 0); -if (lean::is_exclusive(x_13)) { - x_22 = x_13; -} else { - lean::inc(x_20); - lean::dec(x_13); - x_22 = lean::box(0); -} -if (lean::is_scalar(x_22)) { - x_23 = lean::alloc_cnstr(0, 1, 0); -} else { - x_23 = x_22; -} -lean::cnstr_set(x_23, 0, x_20); -if (lean::is_scalar(x_19)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_19; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_17); -return x_24; -} -else -{ -obj* x_26; -lean::dec(x_13); -x_26 = lean::cnstr_get(x_12, 1); -lean::inc(x_26); -lean::dec(x_12); -x_1 = x_8; -x_2 = x_26; -goto _start; -} -} -} -} -obj* _init_l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::mk_string("parser died!!"); -return x_0; -} -} -obj* _init_l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__2() { -_start: -{ -obj* x_0; -x_0 = lean::mk_string("elaborator died!!"); -return x_0; -} -} -obj* l_io_prim_iterate___main___at_lean_run__frontend___spec__14(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -obj* x_3; obj* x_4; obj* x_6; obj* x_8; obj* x_10; obj* x_12; obj* x_15; obj* x_17; obj* x_18; obj* x_20; obj* x_21; obj* x_23; obj* x_25; obj* x_26; obj* x_28; -x_6 = lean::cnstr_get(x_1, 1); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_6, 1); -lean::inc(x_8); -x_10 = lean::cnstr_get(x_8, 1); -lean::inc(x_10); -x_12 = lean::cnstr_get(x_1, 0); -lean::inc(x_12); -lean::dec(x_1); -x_15 = lean::cnstr_get(x_6, 0); -if (lean::is_exclusive(x_6)) { - lean::cnstr_set(x_6, 0, lean::box(0)); - lean::cnstr_release(x_6, 1); - x_17 = x_6; -} else { - lean::inc(x_15); - lean::dec(x_6); - x_17 = lean::box(0); -} -x_18 = lean::cnstr_get(x_8, 0); -if (lean::is_exclusive(x_8)) { - lean::cnstr_set(x_8, 0, lean::box(0)); - lean::cnstr_release(x_8, 1); - x_20 = x_8; -} else { - lean::inc(x_18); - lean::dec(x_8); - x_20 = lean::box(0); -} -x_21 = lean::cnstr_get(x_10, 0); -x_23 = lean::cnstr_get(x_10, 1); -if (lean::is_exclusive(x_10)) { - lean::cnstr_set(x_10, 0, lean::box(0)); - lean::cnstr_set(x_10, 1, lean::box(0)); - x_25 = x_10; -} else { - lean::inc(x_21); - lean::inc(x_23); - lean::dec(x_10); - x_25 = lean::box(0); -} -x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_resume___rarg), 2, 1); -lean::closure_set(x_26, 0, x_12); -lean::inc(x_18); -x_28 = l_lean_run__parser___rarg(x_26, x_18); -if (lean::obj_tag(x_28) == 0) -{ -obj* x_36; obj* x_37; obj* x_38; -lean::dec(x_25); -lean::dec(x_17); -lean::dec(x_20); -lean::dec(x_15); -lean::dec(x_18); -lean::dec(x_21); -lean::dec(x_28); -x_36 = l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__1; -x_37 = l_io_println___at_lean_run__frontend___spec__3(x_36, x_2); -x_38 = lean::cnstr_get(x_37, 0); -lean::inc(x_38); -if (lean::obj_tag(x_38) == 0) -{ -obj* x_41; obj* x_44; obj* x_46; obj* x_47; -lean::dec(x_23); -x_41 = lean::cnstr_get(x_37, 1); -lean::inc(x_41); -lean::dec(x_37); -x_44 = lean::cnstr_get(x_38, 0); -if (lean::is_exclusive(x_38)) { - x_46 = x_38; -} else { - lean::inc(x_44); - lean::dec(x_38); - x_46 = lean::box(0); -} -if (lean::is_scalar(x_46)) { - x_47 = lean::alloc_cnstr(0, 1, 0); -} else { - x_47 = x_46; -} -lean::cnstr_set(x_47, 0, x_44); -x_3 = x_47; -x_4 = x_41; -goto lbl_5; -} -else -{ -obj* x_48; obj* x_49; obj* x_52; obj* x_53; obj* x_54; -if (lean::is_exclusive(x_38)) { - lean::cnstr_release(x_38, 0); - x_48 = x_38; -} else { - lean::dec(x_38); - x_48 = lean::box(0); -} -x_49 = lean::cnstr_get(x_37, 1); -lean::inc(x_49); -lean::dec(x_37); -x_52 = l_list_reverse___rarg(x_23); -x_53 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_53, 0, x_52); -if (lean::is_scalar(x_48)) { - x_54 = lean::alloc_cnstr(1, 1, 0); -} else { - x_54 = x_48; -} -lean::cnstr_set(x_54, 0, x_53); -x_3 = x_54; -x_4 = x_49; -goto lbl_5; -} -} -else -{ -obj* x_55; obj* x_57; obj* x_60; obj* x_62; -x_55 = lean::cnstr_get(x_28, 0); -lean::inc(x_55); -x_57 = lean::cnstr_get(x_28, 1); -lean::inc(x_57); -lean::dec(x_28); -x_60 = lean::cnstr_get(x_55, 1); -lean::inc(x_60); -x_62 = l_list_reverse___rarg(x_60); -if (lean::obj_tag(x_62) == 0) -{ -obj* x_63; obj* x_65; obj* x_66; obj* x_68; -x_63 = lean::cnstr_get(x_55, 0); -lean::inc(x_63); -x_65 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_expander_expand), 2, 1); -lean::closure_set(x_65, 0, x_63); -x_66 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_run___rarg), 2, 1); -lean::closure_set(x_66, 0, x_65); -lean::inc(x_21); -x_68 = l_lean_run__expander___rarg(x_66, x_21); -if (lean::obj_tag(x_68) == 0) -{ -obj* x_69; obj* x_73; obj* x_74; -x_69 = lean::cnstr_get(x_68, 0); -lean::inc(x_69); -lean::dec(x_68); -lean::inc(x_0); -x_73 = lean::apply_2(x_0, x_69, x_2); -x_74 = lean::cnstr_get(x_73, 0); -lean::inc(x_74); -if (lean::obj_tag(x_74) == 0) -{ -obj* x_85; obj* x_88; obj* x_90; obj* x_91; -lean::dec(x_25); -lean::dec(x_17); -lean::dec(x_20); -lean::dec(x_55); -lean::dec(x_15); -lean::dec(x_18); -lean::dec(x_21); -lean::dec(x_23); -lean::dec(x_57); -x_85 = lean::cnstr_get(x_73, 1); -lean::inc(x_85); -lean::dec(x_73); -x_88 = lean::cnstr_get(x_74, 0); -if (lean::is_exclusive(x_74)) { - x_90 = x_74; -} else { - lean::inc(x_88); - lean::dec(x_74); - x_90 = lean::box(0); -} -if (lean::is_scalar(x_90)) { - x_91 = lean::alloc_cnstr(0, 1, 0); -} else { - x_91 = x_90; -} -lean::cnstr_set(x_91, 0, x_88); -x_3 = x_91; -x_4 = x_85; -goto lbl_5; -} -else -{ -obj* x_92; obj* x_93; obj* x_95; obj* x_96; obj* x_97; obj* x_98; obj* x_99; obj* x_100; obj* x_101; obj* x_102; -if (lean::is_exclusive(x_74)) { - lean::cnstr_release(x_74, 0); - x_92 = x_74; -} else { - lean::dec(x_74); - x_92 = lean::box(0); -} -x_93 = lean::cnstr_get(x_73, 1); -if (lean::is_exclusive(x_73)) { - lean::cnstr_release(x_73, 0); - x_95 = x_73; -} else { - lean::inc(x_93); - lean::dec(x_73); - x_95 = lean::box(0); -} -x_96 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_96, 0, x_55); -lean::cnstr_set(x_96, 1, x_23); -if (lean::is_scalar(x_95)) { - x_97 = lean::alloc_cnstr(0, 2, 0); -} else { - x_97 = x_95; -} -lean::cnstr_set(x_97, 0, x_21); -lean::cnstr_set(x_97, 1, x_96); -if (lean::is_scalar(x_25)) { - x_98 = lean::alloc_cnstr(0, 2, 0); -} else { - x_98 = x_25; -} -lean::cnstr_set(x_98, 0, x_18); -lean::cnstr_set(x_98, 1, x_97); -if (lean::is_scalar(x_20)) { - x_99 = lean::alloc_cnstr(0, 2, 0); -} else { - x_99 = x_20; -} -lean::cnstr_set(x_99, 0, x_15); -lean::cnstr_set(x_99, 1, x_98); -if (lean::is_scalar(x_17)) { - x_100 = lean::alloc_cnstr(0, 2, 0); -} else { - x_100 = x_17; -} -lean::cnstr_set(x_100, 0, x_57); -lean::cnstr_set(x_100, 1, x_99); -x_101 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_101, 0, x_100); -if (lean::is_scalar(x_92)) { - x_102 = lean::alloc_cnstr(1, 1, 0); -} else { - x_102 = x_92; -} -lean::cnstr_set(x_102, 0, x_101); -x_3 = x_102; -x_4 = x_93; -goto lbl_5; -} -} -else -{ -obj* x_105; obj* x_108; obj* x_110; -lean::dec(x_18); -lean::dec(x_21); -x_105 = lean::cnstr_get(x_68, 0); -lean::inc(x_105); -lean::dec(x_68); -x_108 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_resume___rarg), 2, 1); -lean::closure_set(x_108, 0, x_15); -lean::inc(x_105); -x_110 = l_lean_run__elaborator___rarg(x_108, x_105); -if (lean::obj_tag(x_110) == 0) -{ -obj* x_115; obj* x_118; uint8 x_119; -lean::dec(x_25); -lean::dec(x_17); -lean::dec(x_20); -lean::dec(x_57); -x_115 = lean::cnstr_get(x_110, 0); -lean::inc(x_115); -lean::dec(x_110); -x_118 = l_lean_parser_module_eoi; -x_119 = l_lean_parser_syntax_is__of__kind___main(x_118, x_105); -lean::dec(x_105); -if (x_119 == 0) -{ -obj* x_121; obj* x_122; obj* x_123; -x_121 = l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__2; -x_122 = l_io_println___at_lean_run__frontend___spec__3(x_121, x_2); -x_123 = lean::cnstr_get(x_122, 0); -lean::inc(x_123); -if (lean::obj_tag(x_123) == 0) -{ -obj* x_128; obj* x_131; obj* x_133; obj* x_134; -lean::dec(x_55); -lean::dec(x_23); -lean::dec(x_115); -x_128 = lean::cnstr_get(x_122, 1); -lean::inc(x_128); -lean::dec(x_122); -x_131 = lean::cnstr_get(x_123, 0); -if (lean::is_exclusive(x_123)) { - x_133 = x_123; -} else { - lean::inc(x_131); - lean::dec(x_123); - x_133 = lean::box(0); -} -if (lean::is_scalar(x_133)) { - x_134 = lean::alloc_cnstr(0, 1, 0); -} else { - x_134 = x_133; -} -lean::cnstr_set(x_134, 0, x_131); -x_3 = x_134; -x_4 = x_128; -goto lbl_5; -} -else -{ -obj* x_136; obj* x_139; obj* x_141; obj* x_142; -lean::dec(x_123); -x_136 = lean::cnstr_get(x_122, 1); -lean::inc(x_136); -lean::dec(x_122); -x_139 = l_list_reverse___rarg(x_115); -lean::inc(x_0); -x_141 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__6(x_0, x_139, x_136); -x_142 = lean::cnstr_get(x_141, 0); -lean::inc(x_142); -if (lean::obj_tag(x_142) == 0) -{ -obj* x_146; obj* x_149; obj* x_151; obj* x_152; -lean::dec(x_55); -lean::dec(x_23); -x_146 = lean::cnstr_get(x_141, 1); -lean::inc(x_146); -lean::dec(x_141); -x_149 = lean::cnstr_get(x_142, 0); -if (lean::is_exclusive(x_142)) { - x_151 = x_142; -} else { - lean::inc(x_149); - lean::dec(x_142); - x_151 = lean::box(0); -} -if (lean::is_scalar(x_151)) { - x_152 = lean::alloc_cnstr(0, 1, 0); -} else { - x_152 = x_151; -} -lean::cnstr_set(x_152, 0, x_149); -x_3 = x_152; -x_4 = x_146; -goto lbl_5; -} -else -{ -obj* x_153; obj* x_154; obj* x_157; obj* x_158; obj* x_159; obj* x_160; -if (lean::is_exclusive(x_142)) { - lean::cnstr_release(x_142, 0); - x_153 = x_142; -} else { - lean::dec(x_142); - x_153 = lean::box(0); -} -x_154 = lean::cnstr_get(x_141, 1); -lean::inc(x_154); -lean::dec(x_141); -x_157 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_157, 0, x_55); -lean::cnstr_set(x_157, 1, x_23); -x_158 = l_list_reverse___rarg(x_157); -x_159 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_159, 0, x_158); -if (lean::is_scalar(x_153)) { - x_160 = lean::alloc_cnstr(1, 1, 0); -} else { - x_160 = x_153; -} -lean::cnstr_set(x_160, 0, x_159); -x_3 = x_160; -x_4 = x_154; -goto lbl_5; -} -} -} -else -{ -obj* x_161; obj* x_163; obj* x_164; -x_161 = l_list_reverse___rarg(x_115); -lean::inc(x_0); -x_163 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__7(x_0, x_161, x_2); -x_164 = lean::cnstr_get(x_163, 0); -lean::inc(x_164); -if (lean::obj_tag(x_164) == 0) -{ -obj* x_168; obj* x_171; obj* x_173; obj* x_174; -lean::dec(x_55); -lean::dec(x_23); -x_168 = lean::cnstr_get(x_163, 1); -lean::inc(x_168); -lean::dec(x_163); -x_171 = lean::cnstr_get(x_164, 0); -if (lean::is_exclusive(x_164)) { - x_173 = x_164; -} else { - lean::inc(x_171); - lean::dec(x_164); - x_173 = lean::box(0); -} -if (lean::is_scalar(x_173)) { - x_174 = lean::alloc_cnstr(0, 1, 0); -} else { - x_174 = x_173; -} -lean::cnstr_set(x_174, 0, x_171); -x_3 = x_174; -x_4 = x_168; -goto lbl_5; -} -else -{ -obj* x_175; obj* x_176; obj* x_179; obj* x_180; obj* x_181; obj* x_182; -if (lean::is_exclusive(x_164)) { - lean::cnstr_release(x_164, 0); - x_175 = x_164; -} else { - lean::dec(x_164); - x_175 = lean::box(0); -} -x_176 = lean::cnstr_get(x_163, 1); -lean::inc(x_176); -lean::dec(x_163); -x_179 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_179, 0, x_55); -lean::cnstr_set(x_179, 1, x_23); -x_180 = l_list_reverse___rarg(x_179); -x_181 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_181, 0, x_180); -if (lean::is_scalar(x_175)) { - x_182 = lean::alloc_cnstr(1, 1, 0); -} else { - x_182 = x_175; -} -lean::cnstr_set(x_182, 0, x_181); -x_3 = x_182; -x_4 = x_176; -goto lbl_5; -} -} -} -else -{ -obj* x_184; obj* x_186; obj* x_189; obj* x_191; obj* x_193; obj* x_194; -lean::dec(x_105); -x_184 = lean::cnstr_get(x_110, 0); -lean::inc(x_184); -x_186 = lean::cnstr_get(x_110, 1); -lean::inc(x_186); -lean::dec(x_110); -x_189 = lean::cnstr_get(x_184, 5); -lean::inc(x_189); -x_191 = l_list_reverse___rarg(x_189); -lean::inc(x_0); -x_193 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__8(x_0, x_191, x_2); -x_194 = lean::cnstr_get(x_193, 0); -lean::inc(x_194); -if (lean::obj_tag(x_194) == 0) -{ -obj* x_204; obj* x_207; obj* x_209; obj* x_210; -lean::dec(x_184); -lean::dec(x_186); -lean::dec(x_25); -lean::dec(x_17); -lean::dec(x_20); -lean::dec(x_55); -lean::dec(x_23); -lean::dec(x_57); -x_204 = lean::cnstr_get(x_193, 1); -lean::inc(x_204); -lean::dec(x_193); -x_207 = lean::cnstr_get(x_194, 0); -if (lean::is_exclusive(x_194)) { - x_209 = x_194; -} else { - lean::inc(x_207); - lean::dec(x_194); - x_209 = lean::box(0); -} -if (lean::is_scalar(x_209)) { - x_210 = lean::alloc_cnstr(0, 1, 0); -} else { - x_210 = x_209; -} -lean::cnstr_set(x_210, 0, x_207); -x_3 = x_210; -x_4 = x_204; -goto lbl_5; -} -else -{ -obj* x_211; obj* x_212; obj* x_214; obj* x_215; obj* x_217; obj* x_220; obj* x_221; obj* x_222; obj* x_223; obj* x_224; obj* x_225; obj* x_226; -if (lean::is_exclusive(x_194)) { - lean::cnstr_release(x_194, 0); - x_211 = x_194; -} else { - lean::dec(x_194); - x_211 = lean::box(0); -} -x_212 = lean::cnstr_get(x_193, 1); -if (lean::is_exclusive(x_193)) { - lean::cnstr_release(x_193, 0); - x_214 = x_193; -} else { - lean::inc(x_212); - lean::dec(x_193); - x_214 = lean::box(0); -} -x_215 = lean::cnstr_get(x_184, 6); -lean::inc(x_215); -x_217 = lean::cnstr_get(x_184, 7); -lean::inc(x_217); -lean::dec(x_184); -x_220 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_220, 0, x_55); -lean::cnstr_set(x_220, 1, x_23); -if (lean::is_scalar(x_214)) { - x_221 = lean::alloc_cnstr(0, 2, 0); -} else { - x_221 = x_214; -} -lean::cnstr_set(x_221, 0, x_217); -lean::cnstr_set(x_221, 1, x_220); -if (lean::is_scalar(x_25)) { - x_222 = lean::alloc_cnstr(0, 2, 0); -} else { - x_222 = x_25; -} -lean::cnstr_set(x_222, 0, x_215); -lean::cnstr_set(x_222, 1, x_221); -if (lean::is_scalar(x_20)) { - x_223 = lean::alloc_cnstr(0, 2, 0); -} else { - x_223 = x_20; -} -lean::cnstr_set(x_223, 0, x_186); -lean::cnstr_set(x_223, 1, x_222); -if (lean::is_scalar(x_17)) { - x_224 = lean::alloc_cnstr(0, 2, 0); -} else { - x_224 = x_17; -} -lean::cnstr_set(x_224, 0, x_57); -lean::cnstr_set(x_224, 1, x_223); -x_225 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_225, 0, x_224); -if (lean::is_scalar(x_211)) { - x_226 = lean::alloc_cnstr(1, 1, 0); -} else { - x_226 = x_211; -} -lean::cnstr_set(x_226, 0, x_225); -x_3 = x_226; -x_4 = x_212; -goto lbl_5; -} -} -} -} -else -{ -obj* x_230; obj* x_231; obj* x_232; -lean::dec(x_17); -lean::inc(x_62); -lean::inc(x_0); -x_230 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__9(x_0, x_62, x_2); -if (lean::is_exclusive(x_62)) { - lean::cnstr_release(x_62, 0); - lean::cnstr_release(x_62, 1); - x_231 = x_62; -} else { - lean::dec(x_62); - x_231 = lean::box(0); -} -x_232 = lean::cnstr_get(x_230, 0); -lean::inc(x_232); -if (lean::obj_tag(x_232) == 0) -{ -obj* x_243; obj* x_246; obj* x_248; obj* x_249; -lean::dec(x_231); -lean::dec(x_25); -lean::dec(x_20); -lean::dec(x_55); -lean::dec(x_15); -lean::dec(x_18); -lean::dec(x_21); -lean::dec(x_23); -lean::dec(x_57); -x_243 = lean::cnstr_get(x_230, 1); -lean::inc(x_243); -lean::dec(x_230); -x_246 = lean::cnstr_get(x_232, 0); -if (lean::is_exclusive(x_232)) { - x_248 = x_232; -} else { - lean::inc(x_246); - lean::dec(x_232); - x_248 = lean::box(0); -} -if (lean::is_scalar(x_248)) { - x_249 = lean::alloc_cnstr(0, 1, 0); -} else { - x_249 = x_248; -} -lean::cnstr_set(x_249, 0, x_246); -x_3 = x_249; -x_4 = x_243; -goto lbl_5; -} -else -{ -obj* x_251; obj* x_253; obj* x_254; obj* x_256; obj* x_257; obj* x_259; -lean::dec(x_232); -x_251 = lean::cnstr_get(x_230, 1); -if (lean::is_exclusive(x_230)) { - lean::cnstr_release(x_230, 0); - lean::cnstr_set(x_230, 1, lean::box(0)); - x_253 = x_230; -} else { - lean::inc(x_251); - lean::dec(x_230); - x_253 = lean::box(0); -} -x_254 = lean::cnstr_get(x_55, 0); -lean::inc(x_254); -x_256 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_expander_expand), 2, 1); -lean::closure_set(x_256, 0, x_254); -x_257 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_run___rarg), 2, 1); -lean::closure_set(x_257, 0, x_256); -lean::inc(x_21); -x_259 = l_lean_run__expander___rarg(x_257, x_21); -if (lean::obj_tag(x_259) == 0) -{ -obj* x_260; obj* x_264; obj* x_265; -x_260 = lean::cnstr_get(x_259, 0); -lean::inc(x_260); -lean::dec(x_259); -lean::inc(x_0); -x_264 = lean::apply_2(x_0, x_260, x_251); -x_265 = lean::cnstr_get(x_264, 0); -lean::inc(x_265); -if (lean::obj_tag(x_265) == 0) -{ -obj* x_277; obj* x_280; obj* x_282; obj* x_283; -lean::dec(x_231); -lean::dec(x_25); -lean::dec(x_20); -lean::dec(x_55); -lean::dec(x_15); -lean::dec(x_18); -lean::dec(x_21); -lean::dec(x_23); -lean::dec(x_253); -lean::dec(x_57); -x_277 = lean::cnstr_get(x_264, 1); -lean::inc(x_277); -lean::dec(x_264); -x_280 = lean::cnstr_get(x_265, 0); -if (lean::is_exclusive(x_265)) { - x_282 = x_265; -} else { - lean::inc(x_280); - lean::dec(x_265); - x_282 = lean::box(0); -} -if (lean::is_scalar(x_282)) { - x_283 = lean::alloc_cnstr(0, 1, 0); -} else { - x_283 = x_282; -} -lean::cnstr_set(x_283, 0, x_280); -x_3 = x_283; -x_4 = x_277; -goto lbl_5; -} -else -{ -obj* x_284; obj* x_285; obj* x_287; obj* x_288; obj* x_289; obj* x_290; obj* x_291; obj* x_292; obj* x_293; obj* x_294; -if (lean::is_exclusive(x_265)) { - lean::cnstr_release(x_265, 0); - x_284 = x_265; -} else { - lean::dec(x_265); - x_284 = lean::box(0); -} -x_285 = lean::cnstr_get(x_264, 1); -if (lean::is_exclusive(x_264)) { - lean::cnstr_release(x_264, 0); - x_287 = x_264; -} else { - lean::inc(x_285); - lean::dec(x_264); - x_287 = lean::box(0); -} -if (lean::is_scalar(x_231)) { - x_288 = lean::alloc_cnstr(1, 2, 0); -} else { - x_288 = x_231; -} -lean::cnstr_set(x_288, 0, x_55); -lean::cnstr_set(x_288, 1, x_23); -if (lean::is_scalar(x_287)) { - x_289 = lean::alloc_cnstr(0, 2, 0); -} else { - x_289 = x_287; -} -lean::cnstr_set(x_289, 0, x_21); -lean::cnstr_set(x_289, 1, x_288); -if (lean::is_scalar(x_253)) { - x_290 = lean::alloc_cnstr(0, 2, 0); -} else { - x_290 = x_253; -} -lean::cnstr_set(x_290, 0, x_18); -lean::cnstr_set(x_290, 1, x_289); -if (lean::is_scalar(x_25)) { - x_291 = lean::alloc_cnstr(0, 2, 0); -} else { - x_291 = x_25; -} -lean::cnstr_set(x_291, 0, x_15); -lean::cnstr_set(x_291, 1, x_290); -if (lean::is_scalar(x_20)) { - x_292 = lean::alloc_cnstr(0, 2, 0); -} else { - x_292 = x_20; -} -lean::cnstr_set(x_292, 0, x_57); -lean::cnstr_set(x_292, 1, x_291); -x_293 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_293, 0, x_292); -if (lean::is_scalar(x_284)) { - x_294 = lean::alloc_cnstr(1, 1, 0); -} else { - x_294 = x_284; -} -lean::cnstr_set(x_294, 0, x_293); -x_3 = x_294; -x_4 = x_285; -goto lbl_5; -} -} -else -{ -obj* x_297; obj* x_300; obj* x_302; -lean::dec(x_18); -lean::dec(x_21); -x_297 = lean::cnstr_get(x_259, 0); -lean::inc(x_297); -lean::dec(x_259); -x_300 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_resume___rarg), 2, 1); -lean::closure_set(x_300, 0, x_15); -lean::inc(x_297); -x_302 = l_lean_run__elaborator___rarg(x_300, x_297); -if (lean::obj_tag(x_302) == 0) -{ -obj* x_307; obj* x_310; uint8 x_311; -lean::dec(x_25); -lean::dec(x_20); -lean::dec(x_253); -lean::dec(x_57); -x_307 = lean::cnstr_get(x_302, 0); -lean::inc(x_307); -lean::dec(x_302); -x_310 = l_lean_parser_module_eoi; -x_311 = l_lean_parser_syntax_is__of__kind___main(x_310, x_297); -lean::dec(x_297); -if (x_311 == 0) -{ -obj* x_313; obj* x_314; obj* x_315; -x_313 = l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__2; -x_314 = l_io_println___at_lean_run__frontend___spec__3(x_313, x_251); -x_315 = lean::cnstr_get(x_314, 0); -lean::inc(x_315); -if (lean::obj_tag(x_315) == 0) -{ -obj* x_321; obj* x_324; obj* x_326; obj* x_327; -lean::dec(x_231); -lean::dec(x_307); -lean::dec(x_55); -lean::dec(x_23); -x_321 = lean::cnstr_get(x_314, 1); -lean::inc(x_321); -lean::dec(x_314); -x_324 = lean::cnstr_get(x_315, 0); -if (lean::is_exclusive(x_315)) { - x_326 = x_315; -} else { - lean::inc(x_324); - lean::dec(x_315); - x_326 = lean::box(0); -} -if (lean::is_scalar(x_326)) { - x_327 = lean::alloc_cnstr(0, 1, 0); -} else { - x_327 = x_326; -} -lean::cnstr_set(x_327, 0, x_324); -x_3 = x_327; -x_4 = x_321; -goto lbl_5; -} -else -{ -obj* x_329; obj* x_332; obj* x_334; obj* x_335; -lean::dec(x_315); -x_329 = lean::cnstr_get(x_314, 1); -lean::inc(x_329); -lean::dec(x_314); -x_332 = l_list_reverse___rarg(x_307); -lean::inc(x_0); -x_334 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__10(x_0, x_332, x_329); -x_335 = lean::cnstr_get(x_334, 0); -lean::inc(x_335); -if (lean::obj_tag(x_335) == 0) -{ -obj* x_340; obj* x_343; obj* x_345; obj* x_346; -lean::dec(x_231); -lean::dec(x_55); -lean::dec(x_23); -x_340 = lean::cnstr_get(x_334, 1); -lean::inc(x_340); -lean::dec(x_334); -x_343 = lean::cnstr_get(x_335, 0); -if (lean::is_exclusive(x_335)) { - x_345 = x_335; -} else { - lean::inc(x_343); - lean::dec(x_335); - x_345 = lean::box(0); -} -if (lean::is_scalar(x_345)) { - x_346 = lean::alloc_cnstr(0, 1, 0); -} else { - x_346 = x_345; -} -lean::cnstr_set(x_346, 0, x_343); -x_3 = x_346; -x_4 = x_340; -goto lbl_5; -} -else -{ -obj* x_347; obj* x_348; obj* x_351; obj* x_352; obj* x_353; obj* x_354; -if (lean::is_exclusive(x_335)) { - lean::cnstr_release(x_335, 0); - x_347 = x_335; -} else { - lean::dec(x_335); - x_347 = lean::box(0); -} -x_348 = lean::cnstr_get(x_334, 1); -lean::inc(x_348); -lean::dec(x_334); -if (lean::is_scalar(x_231)) { - x_351 = lean::alloc_cnstr(1, 2, 0); -} else { - x_351 = x_231; -} -lean::cnstr_set(x_351, 0, x_55); -lean::cnstr_set(x_351, 1, x_23); -x_352 = l_list_reverse___rarg(x_351); -x_353 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_353, 0, x_352); -if (lean::is_scalar(x_347)) { - x_354 = lean::alloc_cnstr(1, 1, 0); -} else { - x_354 = x_347; -} -lean::cnstr_set(x_354, 0, x_353); -x_3 = x_354; -x_4 = x_348; -goto lbl_5; -} -} -} -else -{ -obj* x_355; obj* x_357; obj* x_358; -x_355 = l_list_reverse___rarg(x_307); -lean::inc(x_0); -x_357 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__11(x_0, x_355, x_251); -x_358 = lean::cnstr_get(x_357, 0); -lean::inc(x_358); -if (lean::obj_tag(x_358) == 0) -{ -obj* x_363; obj* x_366; obj* x_368; obj* x_369; -lean::dec(x_231); -lean::dec(x_55); -lean::dec(x_23); -x_363 = lean::cnstr_get(x_357, 1); -lean::inc(x_363); -lean::dec(x_357); -x_366 = lean::cnstr_get(x_358, 0); -if (lean::is_exclusive(x_358)) { - x_368 = x_358; -} else { - lean::inc(x_366); - lean::dec(x_358); - x_368 = lean::box(0); -} -if (lean::is_scalar(x_368)) { - x_369 = lean::alloc_cnstr(0, 1, 0); -} else { - x_369 = x_368; -} -lean::cnstr_set(x_369, 0, x_366); -x_3 = x_369; -x_4 = x_363; -goto lbl_5; -} -else -{ -obj* x_370; obj* x_371; obj* x_374; obj* x_375; obj* x_376; obj* x_377; -if (lean::is_exclusive(x_358)) { - lean::cnstr_release(x_358, 0); - x_370 = x_358; -} else { - lean::dec(x_358); - x_370 = lean::box(0); -} -x_371 = lean::cnstr_get(x_357, 1); -lean::inc(x_371); -lean::dec(x_357); -if (lean::is_scalar(x_231)) { - x_374 = lean::alloc_cnstr(1, 2, 0); -} else { - x_374 = x_231; -} -lean::cnstr_set(x_374, 0, x_55); -lean::cnstr_set(x_374, 1, x_23); -x_375 = l_list_reverse___rarg(x_374); -x_376 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_376, 0, x_375); -if (lean::is_scalar(x_370)) { - x_377 = lean::alloc_cnstr(1, 1, 0); -} else { - x_377 = x_370; -} -lean::cnstr_set(x_377, 0, x_376); -x_3 = x_377; -x_4 = x_371; -goto lbl_5; -} -} -} -else -{ -obj* x_379; obj* x_381; obj* x_384; obj* x_386; obj* x_388; obj* x_389; -lean::dec(x_297); -x_379 = lean::cnstr_get(x_302, 0); -lean::inc(x_379); -x_381 = lean::cnstr_get(x_302, 1); -lean::inc(x_381); -lean::dec(x_302); -x_384 = lean::cnstr_get(x_379, 5); -lean::inc(x_384); -x_386 = l_list_reverse___rarg(x_384); -lean::inc(x_0); -x_388 = l_list_mmap_x_27___main___at_lean_run__frontend___spec__12(x_0, x_386, x_251); -x_389 = lean::cnstr_get(x_388, 0); -lean::inc(x_389); -if (lean::obj_tag(x_389) == 0) -{ -obj* x_400; obj* x_403; obj* x_405; obj* x_406; -lean::dec(x_231); -lean::dec(x_25); -lean::dec(x_20); -lean::dec(x_55); -lean::dec(x_23); -lean::dec(x_253); -lean::dec(x_57); -lean::dec(x_381); -lean::dec(x_379); -x_400 = lean::cnstr_get(x_388, 1); -lean::inc(x_400); -lean::dec(x_388); -x_403 = lean::cnstr_get(x_389, 0); -if (lean::is_exclusive(x_389)) { - x_405 = x_389; -} else { - lean::inc(x_403); - lean::dec(x_389); - x_405 = lean::box(0); -} -if (lean::is_scalar(x_405)) { - x_406 = lean::alloc_cnstr(0, 1, 0); -} else { - x_406 = x_405; -} -lean::cnstr_set(x_406, 0, x_403); -x_3 = x_406; -x_4 = x_400; -goto lbl_5; -} -else -{ -obj* x_407; obj* x_408; obj* x_410; obj* x_411; obj* x_413; obj* x_416; obj* x_417; obj* x_418; obj* x_419; obj* x_420; obj* x_421; obj* x_422; -if (lean::is_exclusive(x_389)) { - lean::cnstr_release(x_389, 0); - x_407 = x_389; -} else { - lean::dec(x_389); - x_407 = lean::box(0); -} -x_408 = lean::cnstr_get(x_388, 1); -if (lean::is_exclusive(x_388)) { - lean::cnstr_release(x_388, 0); - x_410 = x_388; -} else { - lean::inc(x_408); - lean::dec(x_388); - x_410 = lean::box(0); -} -x_411 = lean::cnstr_get(x_379, 6); -lean::inc(x_411); -x_413 = lean::cnstr_get(x_379, 7); -lean::inc(x_413); -lean::dec(x_379); -if (lean::is_scalar(x_231)) { - x_416 = lean::alloc_cnstr(1, 2, 0); -} else { - x_416 = x_231; -} -lean::cnstr_set(x_416, 0, x_55); -lean::cnstr_set(x_416, 1, x_23); -if (lean::is_scalar(x_410)) { - x_417 = lean::alloc_cnstr(0, 2, 0); -} else { - x_417 = x_410; -} -lean::cnstr_set(x_417, 0, x_413); -lean::cnstr_set(x_417, 1, x_416); -if (lean::is_scalar(x_253)) { - x_418 = lean::alloc_cnstr(0, 2, 0); -} else { - x_418 = x_253; -} -lean::cnstr_set(x_418, 0, x_411); -lean::cnstr_set(x_418, 1, x_417); -if (lean::is_scalar(x_25)) { - x_419 = lean::alloc_cnstr(0, 2, 0); -} else { - x_419 = x_25; -} -lean::cnstr_set(x_419, 0, x_381); -lean::cnstr_set(x_419, 1, x_418); -if (lean::is_scalar(x_20)) { - x_420 = lean::alloc_cnstr(0, 2, 0); -} else { - x_420 = x_20; -} -lean::cnstr_set(x_420, 0, x_57); -lean::cnstr_set(x_420, 1, x_419); -x_421 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_421, 0, x_420); -if (lean::is_scalar(x_407)) { - x_422 = lean::alloc_cnstr(1, 1, 0); -} else { - x_422 = x_407; -} -lean::cnstr_set(x_422, 0, x_421); -x_3 = x_422; -x_4 = x_408; -goto lbl_5; -} -} -} -} -} -} -lbl_5: -{ -if (lean::obj_tag(x_3) == 0) -{ -obj* x_424; obj* x_426; obj* x_427; obj* x_428; -lean::dec(x_0); -x_424 = lean::cnstr_get(x_3, 0); -if (lean::is_exclusive(x_3)) { - x_426 = x_3; -} else { - lean::inc(x_424); - lean::dec(x_3); - x_426 = lean::box(0); -} -if (lean::is_scalar(x_426)) { - x_427 = lean::alloc_cnstr(0, 1, 0); -} else { - x_427 = x_426; -} -lean::cnstr_set(x_427, 0, x_424); -x_428 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_428, 0, x_427); -lean::cnstr_set(x_428, 1, x_4); -return x_428; -} -else -{ -obj* x_429; obj* x_431; -x_429 = lean::cnstr_get(x_3, 0); -if (lean::is_exclusive(x_3)) { - lean::cnstr_set(x_3, 0, lean::box(0)); - x_431 = x_3; -} else { - lean::inc(x_429); - lean::dec(x_3); - x_431 = lean::box(0); -} -if (lean::obj_tag(x_429) == 0) -{ -obj* x_433; -lean::dec(x_431); -x_433 = lean::cnstr_get(x_429, 0); -lean::inc(x_433); -lean::dec(x_429); -x_1 = x_433; -x_2 = x_4; -goto _start; -} -else -{ -obj* x_438; obj* x_441; obj* x_442; -lean::dec(x_0); -x_438 = lean::cnstr_get(x_429, 0); -lean::inc(x_438); -lean::dec(x_429); -if (lean::is_scalar(x_431)) { - x_441 = lean::alloc_cnstr(1, 1, 0); -} else { - x_441 = x_431; -} -lean::cnstr_set(x_441, 0, x_438); -x_442 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_442, 0, x_441); -lean::cnstr_set(x_442, 1, x_4); -return x_442; -} -} -} -} -} -obj* l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___lambda__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = l_lean_parser_module_parser(x_0, x_2, x_3); -return x_4; -} -} -obj* _init_l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___lambda__1___boxed), 4, 0); -return x_0; -} -} -obj* l_io_prim_iterate__eio___at_lean_run__frontend___spec__13(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) { -_start: -{ -obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_14; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; -lean::inc(x_1); -x_6 = l_lean_file__map_from__string(x_1); -lean::inc(x_1); -x_8 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_8, 0, x_0); -lean::cnstr_set(x_8, 1, x_1); -lean::cnstr_set(x_8, 2, x_6); -x_9 = l_lean_expander_builtin__transformers; -lean::inc(x_8); -x_11 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_11, 0, x_8); -lean::cnstr_set(x_11, 1, x_9); -x_12 = l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___closed__1; -lean::inc(x_4); -x_14 = l_lean_parser_run___at_lean_run__frontend___spec__1(x_4, x_1, x_12); -lean::inc(x_4); -x_16 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_16, 0, x_8); -lean::cnstr_set(x_16, 1, x_4); -x_17 = l_lean_elaborator_run(x_16); -x_18 = lean::box(0); -x_19 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_19, 0, x_11); -lean::cnstr_set(x_19, 1, x_18); -x_20 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_20, 0, x_4); -lean::cnstr_set(x_20, 1, x_19); -x_21 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_21, 0, x_17); -lean::cnstr_set(x_21, 1, x_20); -x_22 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_22, 0, x_14); -lean::cnstr_set(x_22, 1, x_21); -x_23 = l_io_prim_iterate___main___at_lean_run__frontend___spec__14(x_2, x_22, x_3); -return x_23; -} -} -obj* l_lean_run__frontend(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; obj* x_5; obj* x_9; -lean::inc(x_1); -lean::inc(x_0); -x_9 = l_lean_mk__config(x_0, x_1); -if (lean::obj_tag(x_9) == 0) -{ -obj* x_10; obj* x_12; obj* x_13; -x_10 = lean::cnstr_get(x_9, 0); -if (lean::is_exclusive(x_9)) { - x_12 = x_9; -} else { - lean::inc(x_10); - lean::dec(x_9); - x_12 = lean::box(0); -} -if (lean::is_scalar(x_12)) { - x_13 = lean::alloc_cnstr(0, 1, 0); -} else { - x_13 = x_12; -} -lean::cnstr_set(x_13, 0, x_10); -lean::inc(x_3); -x_4 = x_13; -x_5 = x_3; -goto lbl_6; -} -else -{ -obj* x_15; obj* x_17; obj* x_18; -x_15 = lean::cnstr_get(x_9, 0); -if (lean::is_exclusive(x_9)) { - x_17 = x_9; -} else { - lean::inc(x_15); - lean::dec(x_9); - x_17 = lean::box(0); -} -if (lean::is_scalar(x_17)) { - x_18 = lean::alloc_cnstr(1, 1, 0); -} else { - x_18 = x_17; -} -lean::cnstr_set(x_18, 0, x_15); -lean::inc(x_3); -x_4 = x_18; -x_5 = x_3; -goto lbl_6; -} -lbl_6: -{ -if (lean::obj_tag(x_4) == 0) -{ -obj* x_23; obj* x_25; obj* x_26; obj* x_27; -lean::dec(x_1); -lean::dec(x_0); -lean::dec(x_2); -x_23 = lean::cnstr_get(x_4, 0); -if (lean::is_exclusive(x_4)) { - x_25 = x_4; -} else { - lean::inc(x_23); - lean::dec(x_4); - x_25 = lean::box(0); -} -if (lean::is_scalar(x_25)) { - x_26 = lean::alloc_cnstr(0, 1, 0); -} else { - x_26 = x_25; -} -lean::cnstr_set(x_26, 0, x_23); -x_27 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_27, 0, x_26); -lean::cnstr_set(x_27, 1, x_5); -return x_27; -} -else -{ -obj* x_28; obj* x_31; -x_28 = lean::cnstr_get(x_4, 0); -lean::inc(x_28); -lean::dec(x_4); -x_31 = l_io_prim_iterate__eio___at_lean_run__frontend___spec__13(x_0, x_1, x_2, x_5, x_28); -return x_31; -} -} -} -} -obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg(x_0, x_1, x_2, x_3); -lean::dec(x_2); -return x_4; -} -} -obj* l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___boxed(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2(x_0, x_1); -lean::dec(x_0); -lean::dec(x_1); -return x_2; -} -} -obj* l___private_init_io_12__put__str___at_lean_run__frontend___spec__5___boxed(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l___private_init_io_12__put__str___at_lean_run__frontend___spec__5(x_0, x_1); -lean::dec(x_0); -return x_2; -} -} -obj* l_io_print___at_lean_run__frontend___spec__4___boxed(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l_io_print___at_lean_run__frontend___spec__4(x_0, x_1); -lean::dec(x_0); -return x_2; -} -} -obj* l_io_println___at_lean_run__frontend___spec__3___boxed(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l_io_println___at_lean_run__frontend___spec__3(x_0, x_1); -lean::dec(x_0); -return x_2; -} -} -obj* l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___lambda__1___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___lambda__1(x_0, x_1, x_2, x_3); -lean::dec(x_1); -return x_4; -} -} -obj* l_lean_run__frontend___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = l_lean_run__frontend(x_0, x_1, x_2, x_3); -lean::dec(x_3); -return x_4; -} -} obj* _init_l_lean_process__file___lambda__1___closed__1() { _start: { @@ -2591,7 +898,7 @@ { obj* x_5; obj* x_6; x_5 = l_lean_message_to__string(x_1); -x_6 = l_io_println___at_lean_run__frontend___spec__3(x_5, x_2); +x_6 = l_io_println___at_lean_process__file___spec__1(x_5, x_2); lean::dec(x_5); return x_6; } @@ -2648,7 +955,7 @@ lean::dec(x_35); x_46 = l_lean_process__file___lambda__1___closed__7; x_47 = lean::string_append(x_44, x_46); -x_48 = l_io_println___at_lean_run__frontend___spec__3(x_47, x_2); +x_48 = l_io_println___at_lean_process__file___spec__1(x_47, x_2); lean::dec(x_47); return x_48; } @@ -2667,7 +974,7 @@ lean::dec(x_35); x_60 = l_lean_process__file___lambda__1___closed__7; x_61 = lean::string_append(x_58, x_60); -x_62 = l_io_println___at_lean_run__frontend___spec__3(x_61, x_2); +x_62 = l_io_println___at_lean_process__file___spec__1(x_61, x_2); lean::dec(x_61); return x_62; } @@ -2686,7 +993,7 @@ lean::dec(x_35); x_74 = l_lean_process__file___lambda__1___closed__7; x_75 = lean::string_append(x_72, x_74); -x_76 = l_io_println___at_lean_run__frontend___spec__3(x_75, x_2); +x_76 = l_io_println___at_lean_process__file___spec__1(x_75, x_2); lean::dec(x_75); return x_76; } @@ -2767,7 +1074,7 @@ lean::cnstr_set_scalar(x_23, sizeof(void*)*5, x_21); x_24 = x_23; x_25 = l_lean_message_to__string(x_24); -x_26 = l_io_println___at_lean_run__frontend___spec__3(x_25, x_11); +x_26 = l_io_println___at_lean_process__file___spec__1(x_25, x_11); lean::dec(x_25); x_28 = lean::cnstr_get(x_26, 1); if (lean::is_exclusive(x_26)) { @@ -2807,7 +1114,7 @@ lean::dec(x_37); x_41 = l_lean_process__file___lambda__1___closed__7; x_42 = lean::string_append(x_39, x_41); -x_43 = l_io_println___at_lean_run__frontend___spec__3(x_42, x_11); +x_43 = l_io_println___at_lean_process__file___spec__1(x_42, x_11); lean::dec(x_42); x_45 = lean::cnstr_get(x_43, 1); if (lean::is_exclusive(x_43)) { @@ -2857,6 +1164,33 @@ } } } +obj* l___private_init_io_12__put__str___at_lean_process__file___spec__3___boxed(obj* x_0, obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l___private_init_io_12__put__str___at_lean_process__file___spec__3(x_0, x_1); +lean::dec(x_0); +return x_2; +} +} +obj* l_io_print___at_lean_process__file___spec__2___boxed(obj* x_0, obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_io_print___at_lean_process__file___spec__2(x_0, x_1); +lean::dec(x_0); +return x_2; +} +} +obj* l_io_println___at_lean_process__file___spec__1___boxed(obj* x_0, obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_io_println___at_lean_process__file___spec__1(x_0, x_1); +lean::dec(x_0); +return x_2; +} +} obj* l_lean_process__file___lambda__1___boxed(obj* x_0, obj* x_1, obj* x_2) { _start: { @@ -2889,16 +1223,10 @@ initialize_init_lean_expander(); initialize_init_lean_elaborator(); initialize_init_io(); - l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___closed__1 = _init_l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___closed__1(); -lean::mark_persistent(l_lean_parser_parsec__t_run___at_lean_run__frontend___spec__2___rarg___closed__1); - l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1 = _init_l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1(); -lean::mark_persistent(l_list_mmap_x_27___main___at_lean_run__frontend___spec__6___closed__1); - l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__1 = _init_l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__1(); -lean::mark_persistent(l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__1); - l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__2 = _init_l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__2(); -lean::mark_persistent(l_io_prim_iterate___main___at_lean_run__frontend___spec__14___closed__2); - l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___closed__1 = _init_l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___closed__1(); -lean::mark_persistent(l_io_prim_iterate__eio___at_lean_run__frontend___spec__13___closed__1); + l_list_mmap_x_27___main___at_lean_run__frontend___spec__3___closed__1 = _init_l_list_mmap_x_27___main___at_lean_run__frontend___spec__3___closed__1(); +lean::mark_persistent(l_list_mmap_x_27___main___at_lean_run__frontend___spec__3___closed__1); + l_lean_run__frontend___closed__1 = _init_l_lean_run__frontend___closed__1(); +lean::mark_persistent(l_lean_run__frontend___closed__1); l_lean_process__file___lambda__1___closed__1 = _init_l_lean_process__file___lambda__1___closed__1(); lean::mark_persistent(l_lean_process__file___lambda__1___closed__1); l_lean_process__file___lambda__1___closed__2 = _init_l_lean_process__file___lambda__1___closed__2();
diff --git a/src/boot/init/lean/parser/module.cpp b/src/boot/init/lean/parser/module.cpp index 7f14917..df918d5 100644 --- a/src/boot/init/lean/parser/module.cpp +++ b/src/boot/init/lean/parser/module.cpp
@@ -14,36 +14,22 @@ #pragma GCC diagnostic ignored "-Wunused-label" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif -obj* l_lean_parser_module__parser__m_lean_parser_monad__parsec; -obj* l_lean_parser_module__parser__m_monad__except; -obj* l_lean_parser_module_parser___lambda__5(obj*); -obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg___lambda__1(obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__15(uint8, obj*); +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_parser___lambda__6(obj*, obj*); obj* l_lean_parser_module_prelude_has__view_x_27; -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed(obj*, obj*); obj* l_list_map___main___rarg(obj*, obj*); obj* l_lean_parser_module_import_has__view; -obj* l_lean_parser_parsec__t_has__monad__lift___rarg___boxed(obj*, obj*, obj*, obj*, obj*); -obj* l_lean_parser_module_parser___lambda__3(obj*); 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___private_init_lean_parser_module_1__commands__aux___main___lambda__12(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_ident_parser___at_lean_parser_command_notation__spec_fold__action_parser_lean_parser_has__tokens___spec__4___rarg___closed__1; extern obj* l_lean_parser_combinators_many___rarg___closed__1; -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__15___boxed(obj*, obj*); obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___boxed(obj*); -obj* l_lean_parser_module_yield__command___lambda__8(obj*, obj*, obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__2; -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__3___closed__1; -obj* l_lean_parser_module_parser___lambda__1___boxed(obj*, obj*, obj*, obj*); namespace lean { obj* nat_add(obj*, obj*); } @@ -53,70 +39,50 @@ 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_parser___lambda__1(obj*, obj*, obj*, obj*); extern obj* l_mjoin___rarg___closed__1; 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_state__t_monad__functor___boxed(obj*, obj*, obj*, obj*, 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_module_parser___lambda__9(obj*); obj* l_lean_parser_list_cons_tokens___rarg(obj*, obj*); -obj* l_coroutine_monad__reader___rarg(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_lean_parser_module_commands_parser___lambda__1(obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___boxed(obj*, obj*, obj*, obj*, obj*); +obj* l___private_init_lean_parser_module_1__commands__aux___main___boxed(obj*, obj*, obj*, obj*, obj*, obj*); extern obj* l_lean_parser_monad__parsec_eoi___rarg___lambda__1___closed__1; -obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(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_module__parser__m_monad__coroutine; -obj* l_lean_parser_module_yield__command___lambda__2___boxed(obj*, obj*, obj*, 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___private_init_lean_parser_module_1__commands__aux___main___lambda__1(obj*, obj*, obj*, obj*, obj*); obj* l_id___rarg___boxed(obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main(uint8, obj*, obj*, obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__10___closed__1; +obj* l___private_init_lean_parser_module_1__commands__aux___main(uint8, obj*, obj*, obj*, obj*, obj*); obj* l_string_quote(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_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__2(obj*, 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___private_init_lean_parser_module_1__commands__aux___main___lambda__16(obj*, obj*); obj* l_lean_parser_message__of__parsec__message___rarg(obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__10(obj*); obj* l_lean_parser_module_header_parser(obj*, obj*, obj*); -obj* l_lean_parser_module_parser___lambda__4(obj*); -obj* l_lean_parser_module_yield__command___lambda__3___boxed(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___private_init_lean_parser_module_1__commands__aux___main___lambda__13(obj*, uint8, obj*, obj*, obj*); -obj* l_state__t_monad__state___rarg(obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__2(obj*); obj* l_list_map___main___at_lean_parser_module_commands_parser_has__view___spec__1(obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__9___closed__1; +obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1; namespace lean { uint32 string_iterator_curr(obj*); } -obj* l_lean_parser_module__parser__m_monad__reader; -obj* l_lean_parser_module_yield__command___lambda__2(obj*, obj*, obj*, obj*); -obj* l_lean_parser_module_parser(obj*, obj*, 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* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__3(obj*, obj*, obj*, obj*, obj*, obj*); +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*); extern obj* l_lean_parser_command_parser___rarg___closed__1; -obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___closed__1; namespace lean { obj* string_append(obj*, obj*); } @@ -126,19 +92,11 @@ 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; -obj* l_lean_parser_module_yield__command___lambda__7___closed__1; -obj* l_lean_parser_module_yield__command___lambda__5(obj*, obj*, obj*); extern obj* l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -obj* l_lean_parser_module_commands_parser___lambda__2(obj*); -obj* l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1; -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1; -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__17(uint8, obj*, obj*); +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_parser___lambda__10(obj*); obj* l_lean_parser_module_import_has__view_x_27___lambda__1___closed__1; -namespace lean { -obj* string_iterator_to_end(obj*); -} +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; @@ -149,86 +107,51 @@ 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_monad__coroutine__trans___rarg(obj*, obj*, obj*); obj* l_lean_parser_module_import_parser_lean_parser_has__view; namespace lean { uint8 string_iterator_has_next(obj*); } -obj* l_lean_parser_module__parser__m_monad__state; obj* l_lean_parser_module_prelude_parser(obj*, obj*, obj*); obj* l_lean_parser_symbol_tokens___rarg(obj*, obj*); -extern obj* l_lean_message__log_empty; namespace lean { uint8 nat_dec_eq(obj*, obj*); } -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__9(obj*, obj*, obj*); obj* l_lean_parser_mk__raw__res(obj*, obj*); obj* l_lean_parser_module_import__path_parser_lean_parser_has__view; -obj* l_lean_parser_parser__core__t_monad___rarg(obj*); extern obj* l_char_has__repr___closed__1; -obj* l_lean_parser_module__parser__m_monad; -obj* l_coroutine_bind___main___rarg(obj*, obj*, obj*); -obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___lambda__2(obj*, obj*); -obj* l_lean_parser_module_yield__command___lambda__4(obj*, obj*); obj* l_lean_parser_module__parser; -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__3; -obj* l_lean_parser_module_yield__command(obj*, obj*, obj*, obj*); +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_lean_parser_finish__comment__block___closed__2; 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* l___private_init_lean_parser_module_1__commands__aux___main___lambda__13___closed__1; -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__19(obj*, obj*, obj*, uint8, 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___private_init_lean_parser_module_1__commands__aux___main___lambda__8(obj*, obj*); 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_module_yield__command___lambda__3(obj*, obj*); obj* l_lean_parser_syntax_mk__node(obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__17___boxed(obj*, obj*, obj*); -obj* l_coroutine_yield___rarg___boxed(obj*, obj*); obj* l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1___boxed(obj*, obj*, obj*, obj*, obj*); obj* l_lean_parser_module_import__path_parser_lean_parser_has__view___lambda__1(obj*, obj*, obj*, obj*, obj*); obj* l_lean_parser_module_commands_tokens; -obj* l_lean_parser_module__parser__m_basic__parser__m___closed__1; 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_state__t_monad__except___rarg(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* l_lean_parser_module_parser___lambda__2(obj*, obj*, obj*, obj*); -obj* l_lean_parser_monad__parsec__trans___rarg(obj*, obj*, obj*); -obj* l_lean_parser_module_parser___lambda__5___closed__1; -namespace lean { -obj* string_iterator_offset(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_state__t_lift___rarg___boxed(obj*, obj*, obj*, obj*); -obj* l_lean_parser_module_parser___lambda__7(obj*, obj*); -obj* l_state__t_monad___rarg(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_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2(obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___boxed(obj*, obj*, obj*, obj*, obj*); +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_module_yield__command___lambda__9(obj*, obj*, obj*); -extern obj* l_coroutine_monad___closed__1; 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* l_state__t_alternative___rarg(obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__19___boxed(obj*, obj*, obj*, obj*, obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__1; +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_parser___closed__1; -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__5(obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__3(obj*, 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_lean_parser_module_commands_parser___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 { @@ -236,72 +159,44 @@ } extern obj* l_lean_parser_basic__parser__m_alternative; obj* l_lean_parser_module_import_parser(obj*, obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__7(obj*); -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg(obj*, obj*, obj*, 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_lean_parser_module_parser___lambda__6___closed__2; obj* l_string_trim(obj*); -obj* l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(obj*, obj*, obj*); -obj* l_lean_parser_module_commands_parser___closed__1; obj* l_option_get___main___at_lean_parser_run___spec__2(obj*); -obj* l_lean_parser_module__parser__m_basic__parser__m___boxed(obj*, obj*); -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__14(obj*, 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_parser__core__t_lean_parser_monad__parsec___rarg(obj*); obj* l_lean_parser_module_header_has__view_x_27___lambda__1(obj*); -obj* l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___lambda__1(obj*, 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* l_lean_parser_module_parser___lambda__8(obj*, obj*); -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__1(obj*); -obj* l_lean_parser_module_parser___lambda__7___boxed(obj*, obj*); +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; extern obj* l_lean_parser_parsec__t_monad__fail___rarg___closed__1; -obj* l_lean_parser_parser__core__t_alternative___rarg(obj*); 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_yield__command___lambda__7(obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__4(obj*, obj*, obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__14___boxed(obj*, obj*); -obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__1(obj*, obj*); obj* l_lean_parser_module_header_parser___closed__1; -obj* l_lean_parser_module__parser__m_basic__parser__m(obj*, obj*); +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___private_init_lean_parser_module_1__commands__aux___main___lambda__13___boxed(obj*, obj*, obj*, 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* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___lambda__1(obj*, 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; obj* l_dlist_singleton___rarg(obj*, obj*); extern obj* l_lean_parser_basic__parser__m_monad__except; obj* l_lean_parser_parsec__t_orelse__mk__res___rarg(obj*, obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__18(obj*, obj*); obj* l_list_append___rarg(obj*, obj*); -obj* l_lean_parser_module_parser___lambda__6___closed__1; -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__1___closed__1; obj* l_option_map___rarg(obj*, obj*); -obj* l_lean_parser_module__parser__m_alternative; obj* l_lean_parser_module__parser__m; +obj* l_lean_parser_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_lean_parser_parser__core__t_monad__except___rarg(obj*); obj* l_list_map___main___at_lean_parser_module_import__path_has__view_x_27___spec__1(obj*); obj* l_lean_parser_substring_of__string(obj*); -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__11(obj*, obj*); -obj* l_lean_parser_module_yield__command___lambda__6(obj*, obj*, obj*); -extern obj* l_coroutine_yield___rarg___closed__1; obj* l_char_quote__core(uint32); -obj* l_lean_parser_module_parser___closed__2; -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__6(obj*); obj* l_lean_parser_module_header_has__view_x_27; obj* l_lean_parser_module_prelude_parser___closed__1; -obj* l_lean_parser_module_yield__command___lambda__1(obj*, obj*); -obj* l_lean_parser_module_parser___lambda__10___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; @@ -323,120 +218,6 @@ return x_1; } } -obj* _init_l_lean_parser_module__parser__m_monad() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; -x_0 = l_coroutine_monad___closed__1; -x_1 = l_lean_parser_parser__core__t_monad___rarg(x_0); -x_2 = l_state__t_monad___rarg(x_1); -return x_2; -} -} -obj* _init_l_lean_parser_module__parser__m_alternative() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; obj* x_3; -x_0 = l_coroutine_monad___closed__1; -x_1 = l_lean_parser_parser__core__t_monad___rarg(x_0); -x_2 = l_lean_parser_parser__core__t_alternative___rarg(x_0); -x_3 = l_state__t_alternative___rarg(x_1, x_2); -return x_3; -} -} -obj* _init_l_lean_parser_module__parser__m_monad__reader() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; -x_0 = l_coroutine_monad___closed__1; -x_1 = l_lean_parser_parser__core__t_monad___rarg(x_0); -x_2 = l_state__t_monad___rarg(x_0); -x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_monad__reader___rarg), 1, 0); -x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_state__t_lift___rarg___boxed), 4, 3); -lean::closure_set(x_4, 0, x_0); -lean::closure_set(x_4, 1, lean::box(0)); -lean::closure_set(x_4, 2, x_3); -x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_parsec__t_has__monad__lift___rarg___boxed), 5, 4); -lean::closure_set(x_5, 0, x_2); -lean::closure_set(x_5, 1, lean::box(0)); -lean::closure_set(x_5, 2, lean::box(0)); -lean::closure_set(x_5, 3, x_4); -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_state__t_lift___rarg___boxed), 4, 3); -lean::closure_set(x_6, 0, x_1); -lean::closure_set(x_6, 1, lean::box(0)); -lean::closure_set(x_6, 2, x_5); -return x_6; -} -} -obj* _init_l_lean_parser_module__parser__m_monad__state() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; -x_0 = l_coroutine_monad___closed__1; -x_1 = l_lean_parser_parser__core__t_monad___rarg(x_0); -x_2 = l_state__t_monad__state___rarg(x_1); -return x_2; -} -} -obj* _init_l_lean_parser_module__parser__m_lean_parser_monad__parsec() { -_start: -{ -obj* x_0; obj* x_1; obj* x_3; obj* x_5; obj* x_6; obj* x_7; -x_0 = l_coroutine_monad___closed__1; -x_1 = l_lean_parser_parser__core__t_monad___rarg(x_0); -lean::inc(x_1); -x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_state__t_lift___rarg___boxed), 4, 1); -lean::closure_set(x_3, 0, x_1); -lean::inc(x_1); -x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_state__t_monad__functor___boxed), 6, 5); -lean::closure_set(x_5, 0, lean::box(0)); -lean::closure_set(x_5, 1, lean::box(0)); -lean::closure_set(x_5, 2, lean::box(0)); -lean::closure_set(x_5, 3, x_1); -lean::closure_set(x_5, 4, x_1); -x_6 = l_lean_parser_parser__core__t_lean_parser_monad__parsec___rarg(x_0); -x_7 = l_lean_parser_monad__parsec__trans___rarg(x_3, x_5, x_6); -return x_7; -} -} -obj* _init_l_lean_parser_module__parser__m_monad__except() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; obj* x_3; -x_0 = l_coroutine_monad___closed__1; -x_1 = l_lean_parser_parser__core__t_monad___rarg(x_0); -x_2 = l_lean_parser_parser__core__t_monad__except___rarg(x_0); -x_3 = l_state__t_monad__except___rarg(x_1, lean::box(0), x_2); -return x_3; -} -} -obj* _init_l_lean_parser_module__parser__m_monad__coroutine() { -_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 = l_coroutine_monad___closed__1; -x_1 = l_lean_parser_parser__core__t_monad___rarg(x_0); -x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_state__t_lift___rarg___boxed), 4, 1); -lean::closure_set(x_2, 0, x_1); -x_3 = l_state__t_monad___rarg(x_0); -x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_parsec__t_has__monad__lift___rarg___boxed), 5, 2); -lean::closure_set(x_4, 0, x_3); -lean::closure_set(x_4, 1, lean::box(0)); -x_5 = lean::alloc_closure(reinterpret_cast<void*>(l_state__t_lift___rarg___boxed), 4, 1); -lean::closure_set(x_5, 0, x_0); -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_yield___rarg___boxed), 2, 0); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_monad__coroutine__trans___rarg), 3, 2); -lean::closure_set(x_7, 0, x_5); -lean::closure_set(x_7, 1, x_6); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_monad__coroutine__trans___rarg), 3, 2); -lean::closure_set(x_8, 0, x_4); -lean::closure_set(x_8, 1, x_7); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_monad__coroutine__trans___rarg), 3, 2); -lean::closure_set(x_9, 0, x_2); -lean::closure_set(x_9, 1, x_8); -return x_9; -} -} obj* _init_l_lean_parser_module__parser__m() { _start: { @@ -453,100 +234,80 @@ return x_0; } } -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__1(obj* 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_1; -x_1 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_1, 0, x_0); -return x_1; -} -} -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2(obj* x_0, obj* x_1) { -_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_2; -x_2 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_2, 0, x_0); -return x_2; -} -} -obj* l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__3(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) { -_start: -{ -obj* x_6; obj* x_7; obj* x_8; -x_6 = lean::apply_1(x_0, x_5); -x_7 = lean::apply_3(x_1, x_6, x_2, x_3); -x_8 = lean::cnstr_get(x_7, 0); -lean::inc(x_8); -if (lean::obj_tag(x_8) == 0) -{ -obj* x_10; obj* x_12; obj* x_13; obj* x_15; obj* x_17; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; -x_10 = lean::cnstr_get(x_7, 1); -if (lean::is_exclusive(x_7)) { - lean::cnstr_release(x_7, 0); - x_12 = x_7; -} else { - lean::inc(x_10); - lean::dec(x_7); - x_12 = lean::box(0); -} -x_13 = lean::cnstr_get(x_8, 0); -x_15 = lean::cnstr_get(x_8, 1); -x_17 = lean::cnstr_get(x_8, 2); +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)) { - x_19 = x_8; + lean::cnstr_release(x_8, 0); + x_13 = x_8; } else { - lean::inc(x_13); - lean::inc(x_15); - lean::inc(x_17); + lean::inc(x_11); lean::dec(x_8); - x_19 = lean::box(0); + x_13 = lean::box(0); } -if (lean::is_scalar(x_12)) { - x_20 = lean::alloc_cnstr(0, 2, 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 { - x_20 = x_12; + lean::inc(x_14); + lean::inc(x_16); + lean::inc(x_18); + lean::dec(x_9); + x_20 = lean::box(0); } -lean::cnstr_set(x_20, 0, x_13); -lean::cnstr_set(x_20, 1, x_4); -x_21 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_19)) { - x_22 = lean::alloc_cnstr(0, 3, 0); +if (lean::is_scalar(x_13)) { + x_21 = lean::alloc_cnstr(0, 2, 0); } else { - x_22 = x_19; + x_21 = x_13; } -lean::cnstr_set(x_22, 0, x_20); -lean::cnstr_set(x_22, 1, x_15); -lean::cnstr_set(x_22, 2, x_21); -x_23 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_17, x_22); -x_24 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_10); -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_25, 0, x_24); +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; obj* x_37; -lean::dec(x_4); -x_27 = lean::cnstr_get(x_7, 1); -if (lean::is_exclusive(x_7)) { - lean::cnstr_release(x_7, 0); - x_29 = x_7; +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_7); + lean::dec(x_8); x_29 = lean::box(0); } -x_30 = lean::cnstr_get(x_8, 0); -x_32 = lean::cnstr_get_scalar<uint8>(x_8, sizeof(void*)*1); -if (lean::is_exclusive(x_8)) { - x_33 = x_8; +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_8); + lean::dec(x_9); x_33 = lean::box(0); } if (lean::is_scalar(x_33)) { @@ -564,61 +325,25 @@ } lean::cnstr_set(x_36, 0, x_35); lean::cnstr_set(x_36, 1, x_27); -x_37 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_37, 0, x_36); -return x_37; +return x_36; } } } -obj* _init_l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__1), 1, 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) { -_start: -{ -obj* x_6; obj* x_7; obj* x_8; -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__3), 6, 5); -lean::closure_set(x_6, 0, x_0); -lean::closure_set(x_6, 1, x_2); -lean::closure_set(x_6, 2, x_4); -lean::closure_set(x_6, 3, x_5); -lean::closure_set(x_6, 4, x_3); -x_7 = l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1; -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_8, 0, x_7); -lean::closure_set(x_8, 1, x_6); -return x_8; -} -} 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), 6, 0); +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___lambda__2___boxed(obj* x_0, obj* 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_2; -x_2 = l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2(x_0, x_1); +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_2; -} -} -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) { -_start: -{ -obj* x_6; -x_6 = l_lean_parser_module__parser__m_lift__parser__t___rarg(x_0, x_1, x_2, x_3, x_4, x_5); -lean::dec(x_1); -return x_6; +return x_7; } } obj* l_lean_parser_module__parser__m_lift__parser__t___boxed(obj* x_0) { @@ -630,7 +355,7 @@ return x_1; } } -obj* _init_l_lean_parser_module__parser__m_basic__parser__m___closed__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; @@ -643,548 +368,19 @@ 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), 6, 1); +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__parser__m_basic__parser__m(obj* x_0, obj* x_1) { +obj* l_lean_parser_module_yield__command___rarg(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { _start: { -obj* x_2; -x_2 = l_lean_parser_module__parser__m_basic__parser__m___closed__1; -return x_2; -} -} -obj* l_lean_parser_module__parser__m_basic__parser__m___boxed(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l_lean_parser_module__parser__m_basic__parser__m(x_0, x_1); -lean::dec(x_0); -lean::dec(x_1); -return x_2; -} -} -obj* l_lean_parser_module_yield__command___lambda__1(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9; -x_2 = lean::cnstr_get(x_1, 0); -x_4 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - x_6 = x_1; -} else { - lean::inc(x_2); - lean::inc(x_4); - lean::dec(x_1); - x_6 = lean::box(0); -} -x_7 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_0, x_2); -if (lean::is_scalar(x_6)) { - x_8 = lean::alloc_cnstr(0, 2, 0); -} else { - x_8 = x_6; -} -lean::cnstr_set(x_8, 0, x_7); -lean::cnstr_set(x_8, 1, x_4); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_9, 0, x_8); -return x_9; -} -} -obj* l_lean_parser_module_yield__command___lambda__2(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; -lean::inc(x_0); +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_0); -lean::cnstr_set(x_5, 1, x_1); -x_6 = l_lean_parser_finish__comment__block___closed__2; -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_0); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_9, 0, x_8); -return x_9; -} -} -obj* l_lean_parser_module_yield__command___lambda__3(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; obj* x_3; -x_2 = l_coroutine_yield___rarg___closed__1; -x_3 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_3, 0, x_0); -lean::cnstr_set(x_3, 1, x_2); -return x_3; -} -} -obj* l_lean_parser_module_yield__command___lambda__4(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; obj* x_3; -x_2 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_2, 0, x_1); -lean::cnstr_set(x_2, 1, x_0); -x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_3, 0, x_2); -return x_3; -} -} -obj* l_lean_parser_module_yield__command___lambda__5(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -obj* x_3; obj* x_5; obj* x_7; obj* x_8; obj* x_9; obj* x_10; -x_3 = lean::cnstr_get(x_2, 0); -x_5 = lean::cnstr_get(x_2, 1); -if (lean::is_exclusive(x_2)) { - x_7 = x_2; -} else { - lean::inc(x_3); - lean::inc(x_5); - lean::dec(x_2); - x_7 = lean::box(0); -} -x_8 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_8, 0, x_3); -lean::cnstr_set(x_8, 1, x_0); -lean::cnstr_set(x_8, 2, x_1); -if (lean::is_scalar(x_7)) { - x_9 = lean::alloc_cnstr(0, 2, 0); -} else { - x_9 = x_7; -} -lean::cnstr_set(x_9, 0, x_8); -lean::cnstr_set(x_9, 1, x_5); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_10, 0, x_9); -return x_10; -} -} -obj* l_lean_parser_module_yield__command___lambda__6(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -obj* x_3; -x_3 = lean::cnstr_get(x_2, 0); -lean::inc(x_3); -if (lean::obj_tag(x_3) == 0) -{ -obj* x_5; obj* x_7; obj* x_8; obj* x_10; obj* x_12; 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, 1); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_7 = x_2; -} else { - lean::inc(x_5); - lean::dec(x_2); - x_7 = lean::box(0); -} -x_8 = lean::cnstr_get(x_3, 0); -x_10 = lean::cnstr_get(x_3, 1); -x_12 = lean::cnstr_get(x_3, 2); -if (lean::is_exclusive(x_3)) { - x_14 = x_3; -} else { - lean::inc(x_8); - lean::inc(x_10); - lean::inc(x_12); - lean::dec(x_3); - x_14 = lean::box(0); -} -if (lean::is_scalar(x_7)) { - x_15 = lean::alloc_cnstr(0, 2, 0); -} else { - x_15 = x_7; -} -lean::cnstr_set(x_15, 0, x_8); -lean::cnstr_set(x_15, 1, x_0); -if (lean::is_scalar(x_14)) { - x_16 = lean::alloc_cnstr(0, 3, 0); -} else { - x_16 = x_14; -} -lean::cnstr_set(x_16, 0, x_15); -lean::cnstr_set(x_16, 1, x_10); -lean::cnstr_set(x_16, 2, x_1); -x_17 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_17, 0, x_16); -lean::cnstr_set(x_17, 1, x_5); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_18, 0, x_17); -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_19, 0, x_12); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_20, 0, x_18); -lean::closure_set(x_20, 1, x_19); -return x_20; -} -else -{ -obj* x_23; obj* x_25; obj* x_26; uint8 x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; -lean::dec(x_1); -lean::dec(x_0); -x_23 = lean::cnstr_get(x_2, 1); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_25 = x_2; -} else { - lean::inc(x_23); - lean::dec(x_2); - x_25 = lean::box(0); -} -x_26 = lean::cnstr_get(x_3, 0); -x_28 = lean::cnstr_get_scalar<uint8>(x_3, sizeof(void*)*1); -if (lean::is_exclusive(x_3)) { - x_29 = x_3; -} else { - lean::inc(x_26); - lean::dec(x_3); - x_29 = lean::box(0); -} -if (lean::is_scalar(x_29)) { - x_30 = lean::alloc_cnstr(1, 1, 1); -} else { - x_30 = x_29; -} -lean::cnstr_set(x_30, 0, x_26); -lean::cnstr_set_scalar(x_30, sizeof(void*)*1, x_28); -x_31 = x_30; -if (lean::is_scalar(x_25)) { - x_32 = lean::alloc_cnstr(0, 2, 0); -} else { - x_32 = x_25; -} -lean::cnstr_set(x_32, 0, x_31); -lean::cnstr_set(x_32, 1, x_23); -x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_33, 0, x_32); -return x_33; -} -} -} -obj* _init_l_lean_parser_module_yield__command___lambda__7___closed__1() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; -x_0 = lean::box(0); -x_1 = l_lean_message__log_empty; -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* l_lean_parser_module_yield__command___lambda__7(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_7; obj* x_10; obj* x_12; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -if (lean::is_exclusive(x_4)) { - lean::cnstr_release(x_4, 0); - lean::cnstr_release(x_4, 1); - x_6 = x_4; -} else { - lean::dec(x_4); - x_6 = lean::box(0); -} -x_7 = lean::cnstr_get(x_1, 1); -lean::inc(x_7); -lean::dec(x_1); -x_10 = lean::cnstr_get(x_2, 1); -x_12 = lean::cnstr_get(x_2, 2); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_14 = x_2; -} else { - lean::inc(x_10); - lean::inc(x_12); - lean::dec(x_2); - x_14 = lean::box(0); -} -x_15 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_15, 0, x_12); -x_16 = l_lean_parser_module_yield__command___lambda__7___closed__1; -if (lean::is_scalar(x_14)) { - x_17 = lean::alloc_cnstr(0, 3, 0); -} else { - x_17 = x_14; -} -lean::cnstr_set(x_17, 0, x_16); -lean::cnstr_set(x_17, 1, x_10); -lean::cnstr_set(x_17, 2, x_0); -if (lean::is_scalar(x_6)) { - x_18 = lean::alloc_cnstr(0, 2, 0); -} else { - x_18 = x_6; -} -lean::cnstr_set(x_18, 0, x_17); -lean::cnstr_set(x_18, 1, x_7); -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_19, 0, x_18); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_20, 0, x_19); -lean::closure_set(x_20, 1, x_15); -return x_20; -} -else -{ -obj* x_22; obj* x_24; obj* x_25; uint8 x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; -lean::dec(x_0); -x_22 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_24 = x_1; -} else { - lean::inc(x_22); - lean::dec(x_1); - x_24 = lean::box(0); -} -x_25 = lean::cnstr_get(x_2, 0); -x_27 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_28 = x_2; -} else { - lean::inc(x_25); - lean::dec(x_2); - x_28 = lean::box(0); -} -if (lean::is_scalar(x_28)) { - x_29 = lean::alloc_cnstr(1, 1, 1); -} else { - x_29 = x_28; -} -lean::cnstr_set(x_29, 0, x_25); -lean::cnstr_set_scalar(x_29, sizeof(void*)*1, x_27); -x_30 = x_29; -if (lean::is_scalar(x_24)) { - x_31 = lean::alloc_cnstr(0, 2, 0); -} else { - x_31 = x_24; -} -lean::cnstr_set(x_31, 0, x_30); -lean::cnstr_set(x_31, 1, x_22); -x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_32, 0, x_31); -return x_32; -} -} -} -obj* l_lean_parser_module_yield__command___lambda__8(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -if (lean::obj_tag(x_4) == 0) -{ -obj* x_6; obj* x_8; obj* x_11; obj* x_13; obj* x_16; obj* x_18; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_27; obj* x_28; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; -x_6 = lean::cnstr_get(x_4, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_3, 1); -lean::inc(x_8); -lean::dec(x_3); -x_11 = lean::cnstr_get(x_4, 1); -lean::inc(x_11); -x_13 = lean::cnstr_get(x_4, 2); -lean::inc(x_13); -lean::dec(x_4); -x_16 = lean::cnstr_get(x_6, 0); -lean::inc(x_16); -x_18 = lean::cnstr_get(x_6, 1); -lean::inc(x_18); -lean::dec(x_6); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_21, 0, x_13); -x_22 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_22, 0, x_0); -lean::cnstr_set(x_22, 1, x_1); -lean::cnstr_set(x_22, 2, x_16); -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__3___boxed), 2, 1); -lean::closure_set(x_23, 0, x_22); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__4), 2, 1); -lean::closure_set(x_24, 0, x_8); -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_25, 0, x_23); -lean::closure_set(x_25, 1, x_24); -lean::inc(x_2); -x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__5), 3, 2); -lean::closure_set(x_27, 0, x_11); -lean::closure_set(x_27, 1, x_2); -x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_28, 0, x_25); -lean::closure_set(x_28, 1, x_27); -lean::inc(x_2); -x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__6), 3, 2); -lean::closure_set(x_30, 0, x_18); -lean::closure_set(x_30, 1, x_2); -x_31 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_31, 0, x_28); -lean::closure_set(x_31, 1, x_30); -x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__7), 2, 1); -lean::closure_set(x_32, 0, x_2); -x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_33, 0, x_31); -lean::closure_set(x_33, 1, x_32); -x_34 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_34, 0, x_33); -lean::closure_set(x_34, 1, x_21); -return x_34; -} -else -{ -obj* x_38; obj* x_40; obj* x_41; uint8 x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48; -lean::dec(x_1); -lean::dec(x_0); -lean::dec(x_2); -x_38 = lean::cnstr_get(x_3, 1); -if (lean::is_exclusive(x_3)) { - lean::cnstr_release(x_3, 0); - x_40 = x_3; -} else { - lean::inc(x_38); - lean::dec(x_3); - x_40 = lean::box(0); -} -x_41 = lean::cnstr_get(x_4, 0); -x_43 = lean::cnstr_get_scalar<uint8>(x_4, sizeof(void*)*1); -if (lean::is_exclusive(x_4)) { - x_44 = x_4; -} else { - lean::inc(x_41); - lean::dec(x_4); - x_44 = lean::box(0); -} -if (lean::is_scalar(x_44)) { - x_45 = lean::alloc_cnstr(1, 1, 1); -} else { - x_45 = x_44; -} -lean::cnstr_set(x_45, 0, x_41); -lean::cnstr_set_scalar(x_45, sizeof(void*)*1, x_43); -x_46 = x_45; -if (lean::is_scalar(x_40)) { - x_47 = lean::alloc_cnstr(0, 2, 0); -} else { - x_47 = x_40; -} -lean::cnstr_set(x_47, 0, x_46); -lean::cnstr_set(x_47, 1, x_38); -x_48 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_48, 0, x_47); -return x_48; -} -} -} -obj* l_lean_parser_module_yield__command___lambda__9(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -obj* x_3; -x_3 = lean::cnstr_get(x_2, 0); -lean::inc(x_3); -if (lean::obj_tag(x_3) == 0) -{ -obj* x_5; obj* x_7; obj* x_10; obj* x_12; obj* x_15; obj* x_17; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; -x_5 = lean::cnstr_get(x_3, 0); -lean::inc(x_5); -x_7 = lean::cnstr_get(x_2, 1); -lean::inc(x_7); -lean::dec(x_2); -x_10 = lean::cnstr_get(x_3, 1); -lean::inc(x_10); -x_12 = lean::cnstr_get(x_3, 2); -lean::inc(x_12); -lean::dec(x_3); -x_15 = lean::cnstr_get(x_5, 0); -lean::inc(x_15); -x_17 = lean::cnstr_get(x_5, 1); -lean::inc(x_17); -lean::dec(x_5); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_20, 0, x_12); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__2___boxed), 4, 3); -lean::closure_set(x_21, 0, x_7); -lean::closure_set(x_21, 1, x_17); -lean::closure_set(x_21, 2, x_10); -x_22 = l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1; -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_23, 0, x_22); -lean::closure_set(x_23, 1, x_21); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__8), 4, 3); -lean::closure_set(x_24, 0, x_0); -lean::closure_set(x_24, 1, x_15); -lean::closure_set(x_24, 2, x_1); -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_25, 0, x_23); -lean::closure_set(x_25, 1, x_24); -x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_26, 0, x_25); -lean::closure_set(x_26, 1, x_20); -return x_26; -} -else -{ -obj* x_29; obj* x_31; obj* x_32; uint8 x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; -lean::dec(x_1); -lean::dec(x_0); -x_29 = lean::cnstr_get(x_2, 1); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_31 = x_2; -} else { - lean::inc(x_29); - lean::dec(x_2); - x_31 = lean::box(0); -} -x_32 = lean::cnstr_get(x_3, 0); -x_34 = lean::cnstr_get_scalar<uint8>(x_3, sizeof(void*)*1); -if (lean::is_exclusive(x_3)) { - x_35 = x_3; -} else { - lean::inc(x_32); - lean::dec(x_3); - 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; -if (lean::is_scalar(x_31)) { - x_38 = lean::alloc_cnstr(0, 2, 0); -} else { - x_38 = x_31; -} -lean::cnstr_set(x_38, 0, x_37); -lean::cnstr_set(x_38, 1, x_29); -x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_39, 0, x_38); -return x_39; -} -} -} -obj* l_lean_parser_module_yield__command(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; -lean::inc(x_1); -x_5 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_5, 0, x_1); -lean::cnstr_set(x_5, 1, x_1); +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); @@ -1193,33 +389,33 @@ x_8 = lean::alloc_cnstr(0, 2, 0); lean::cnstr_set(x_8, 0, x_7); lean::cnstr_set(x_8, 1, x_3); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_9, 0, x_8); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__9), 3, 2); -lean::closure_set(x_10, 0, x_0); -lean::closure_set(x_10, 1, x_6); -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_11, 0, x_9); -lean::closure_set(x_11, 1, x_10); -return x_11; +return x_8; } } -obj* l_lean_parser_module_yield__command___lambda__2___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +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___lambda__2(x_0, x_1, x_2, x_3); -lean::dec(x_3); +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___lambda__3___boxed(obj* x_0, obj* x_1) { +obj* l_lean_parser_module_yield__command___boxed(obj* x_0) { _start: { -obj* x_2; -x_2 = l_lean_parser_module_yield__command___lambda__3(x_0, x_1); -lean::dec(x_1); -return x_2; +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() { @@ -3763,1669 +2959,275 @@ return x_5; } } -obj* l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg___lambda__1(obj* x_0, obj* x_1) { +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_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_7; obj* x_9; obj* x_11; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; -x_4 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_6 = x_1; -} else { - lean::inc(x_4); - lean::dec(x_1); - x_6 = lean::box(0); -} -x_7 = lean::cnstr_get(x_2, 0); -x_9 = lean::cnstr_get(x_2, 1); -x_11 = lean::cnstr_get(x_2, 2); -if (lean::is_exclusive(x_2)) { - x_13 = x_2; -} else { - lean::inc(x_7); - lean::inc(x_9); - lean::inc(x_11); - lean::dec(x_2); - x_13 = lean::box(0); -} -if (lean::is_scalar(x_6)) { - x_14 = lean::alloc_cnstr(0, 2, 0); -} else { - x_14 = x_6; -} -lean::cnstr_set(x_14, 0, x_7); -lean::cnstr_set(x_14, 1, x_0); -x_15 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_13)) { - x_16 = lean::alloc_cnstr(0, 3, 0); -} else { - x_16 = x_13; -} -lean::cnstr_set(x_16, 0, x_14); -lean::cnstr_set(x_16, 1, x_9); -lean::cnstr_set(x_16, 2, x_15); -x_17 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_17, 0, x_16); -lean::cnstr_set(x_17, 1, x_4); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_18, 0, x_17); -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_19, 0, x_11); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_20, 0, x_18); -lean::closure_set(x_20, 1, x_19); -return x_20; -} -else -{ -obj* x_22; obj* x_24; obj* x_25; uint8 x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; -lean::dec(x_0); -x_22 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_24 = x_1; -} else { - lean::inc(x_22); - lean::dec(x_1); - x_24 = lean::box(0); -} -x_25 = lean::cnstr_get(x_2, 0); -x_27 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_28 = x_2; -} else { - lean::inc(x_25); - lean::dec(x_2); - x_28 = lean::box(0); -} -if (lean::is_scalar(x_28)) { - x_29 = lean::alloc_cnstr(1, 1, 1); -} else { - x_29 = x_28; -} -lean::cnstr_set(x_29, 0, x_25); -lean::cnstr_set_scalar(x_29, sizeof(void*)*1, x_27); -x_30 = x_29; -if (lean::is_scalar(x_24)) { - x_31 = lean::alloc_cnstr(0, 2, 0); -} else { - x_31 = x_24; -} -lean::cnstr_set(x_31, 0, x_30); -lean::cnstr_set(x_31, 1, x_22); -x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_32, 0, x_31); -return x_32; -} -} -} -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) { -_start: -{ -obj* x_7; obj* x_8; uint8 x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; -x_7 = l_option_get__or__else___main___rarg(x_2, x_5); -x_8 = lean::alloc_cnstr(0, 4, 0); -lean::cnstr_set(x_8, 0, x_7); -lean::cnstr_set(x_8, 1, x_0); -lean::cnstr_set(x_8, 2, x_1); -lean::cnstr_set(x_8, 3, x_3); -x_9 = 0; -x_10 = lean::alloc_cnstr(1, 1, 1); -lean::cnstr_set(x_10, 0, x_8); -lean::cnstr_set_scalar(x_10, sizeof(void*)*1, x_9); -x_11 = x_10; -x_12 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_12, 0, x_11); -lean::cnstr_set(x_12, 1, x_6); -x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_13, 0, x_12); -x_14 = 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___lambda__1), 2, 1); -lean::closure_set(x_14, 0, x_4); -x_15 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_15, 0, x_13); -lean::closure_set(x_15, 1, x_14); -return x_15; +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), 7, 0); +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_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___lambda__1(obj* x_0, obj* x_1) { +obj* _init_l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1() { _start: { -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_13; obj* x_14; obj* x_16; obj* x_18; obj* x_19; obj* x_20; obj* x_21; uint8 x_22; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - lean::cnstr_set(x_1, 1, lean::box(0)); - x_8 = x_1; -} else { - lean::inc(x_6); - lean::dec(x_1); - x_8 = lean::box(0); -} -x_9 = lean::cnstr_get(x_2, 1); -x_11 = lean::cnstr_get(x_2, 2); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - lean::cnstr_set(x_2, 1, lean::box(0)); - lean::cnstr_set(x_2, 2, lean::box(0)); - x_13 = x_2; -} else { - lean::inc(x_9); - lean::inc(x_11); - lean::dec(x_2); - x_13 = lean::box(0); -} -x_14 = lean::cnstr_get(x_4, 0); -x_16 = lean::cnstr_get(x_4, 1); -if (lean::is_exclusive(x_4)) { - lean::cnstr_set(x_4, 0, lean::box(0)); - lean::cnstr_set(x_4, 1, lean::box(0)); - x_18 = x_4; -} else { - lean::inc(x_14); - lean::inc(x_16); - lean::dec(x_4); - x_18 = lean::box(0); -} -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_19, 0, x_11); -x_20 = lean::string_iterator_remaining(x_14); -x_21 = lean::mk_nat_obj(0u); -x_22 = lean::nat_dec_eq(x_20, x_21); -lean::dec(x_20); -if (x_22 == 0) -{ -uint32 x_28; obj* x_30; obj* x_31; obj* x_32; obj* x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_39; -lean::dec(x_8); -lean::dec(x_0); -lean::dec(x_13); -lean::dec(x_18); -x_28 = lean::string_iterator_curr(x_14); -lean::dec(x_14); -x_30 = l_char_quote__core(x_28); -x_31 = l_char_has__repr___closed__1; -x_32 = lean::string_append(x_31, x_30); -lean::dec(x_30); -x_34 = lean::string_append(x_32, x_31); -x_35 = lean::box(0); -x_36 = l_lean_parser_monad__parsec_eoi___rarg___lambda__1___closed__1; -x_37 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_34, x_36, x_35, x_35, x_16, x_9, x_6); -lean::dec(x_9); -x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_39, 0, x_37); -lean::closure_set(x_39, 1, x_19); -return x_39; -} -else -{ -obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; -lean::dec(x_14); -x_41 = lean::box(0); -if (lean::is_scalar(x_18)) { - x_42 = lean::alloc_cnstr(0, 2, 0); -} else { - x_42 = x_18; -} -lean::cnstr_set(x_42, 0, x_41); -lean::cnstr_set(x_42, 1, x_16); -if (lean::is_scalar(x_13)) { - x_43 = lean::alloc_cnstr(0, 3, 0); -} else { - x_43 = x_13; -} -lean::cnstr_set(x_43, 0, x_42); -lean::cnstr_set(x_43, 1, x_9); -lean::cnstr_set(x_43, 2, x_0); -if (lean::is_scalar(x_8)) { - x_44 = lean::alloc_cnstr(0, 2, 0); -} else { - x_44 = x_8; -} -lean::cnstr_set(x_44, 0, x_43); -lean::cnstr_set(x_44, 1, x_6); -x_45 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_45, 0, x_44); -x_46 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_46, 0, x_45); -lean::closure_set(x_46, 1, x_19); -return x_46; -} -} -else -{ -obj* x_48; obj* x_50; obj* x_51; uint8 x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58; -lean::dec(x_0); -x_48 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_50 = x_1; -} else { - lean::inc(x_48); - lean::dec(x_1); - x_50 = lean::box(0); -} -x_51 = lean::cnstr_get(x_2, 0); -x_53 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_54 = x_2; -} else { - lean::inc(x_51); - lean::dec(x_2); - x_54 = lean::box(0); -} -if (lean::is_scalar(x_54)) { - x_55 = lean::alloc_cnstr(1, 1, 1); -} else { - x_55 = x_54; -} -lean::cnstr_set(x_55, 0, x_51); -lean::cnstr_set_scalar(x_55, sizeof(void*)*1, x_53); -x_56 = x_55; -if (lean::is_scalar(x_50)) { - x_57 = lean::alloc_cnstr(0, 2, 0); -} else { - x_57 = x_50; -} -lean::cnstr_set(x_57, 0, x_56); -lean::cnstr_set(x_57, 1, x_48); -x_58 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_58, 0, x_57); -return x_58; -} -} -} -obj* _init_l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; +obj* x_0; obj* x_3; obj* x_4; obj* x_5; x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg___boxed), 1, 0); -x_1 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_1, 0, x_0); -x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___lambda__1), 2, 1); -lean::closure_set(x_2, 0, x_1); -return x_2; +lean::inc(x_0); +lean::inc(x_0); +x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_function_comp___rarg), 3, 2); +lean::closure_set(x_3, 0, x_0); +lean::closure_set(x_3, 1, x_0); +x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_function_comp___rarg), 3, 2); +lean::closure_set(x_4, 0, x_3); +lean::closure_set(x_4, 1, x_0); +x_5 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_5, 0, x_4); +return x_5; } } -obj* l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(obj* x_0, obj* x_1, obj* x_2) { +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_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; -x_3 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -lean::inc(x_1); -x_5 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_5, 0, x_1); -lean::cnstr_set(x_5, 1, x_1); -lean::cnstr_set(x_5, 2, x_3); -x_6 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_6, 0, x_5); -lean::cnstr_set(x_6, 1, x_2); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_7, 0, x_6); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__6), 3, 2); -lean::closure_set(x_8, 0, x_0); -lean::closure_set(x_8, 1, x_3); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_9, 0, x_7); -lean::closure_set(x_9, 1, x_8); -x_10 = l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1; -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_11, 0, x_9); -lean::closure_set(x_11, 1, x_10); -return x_11; -} -} -obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___lambda__1(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -obj* x_3; -x_3 = lean::cnstr_get(x_2, 0); -lean::inc(x_3); -if (lean::obj_tag(x_3) == 0) -{ -obj* x_5; obj* x_7; obj* x_8; obj* x_10; obj* x_12; 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, 1); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_7 = x_2; -} else { - lean::inc(x_5); - lean::dec(x_2); - x_7 = lean::box(0); -} -x_8 = lean::cnstr_get(x_3, 0); -x_10 = lean::cnstr_get(x_3, 1); -x_12 = lean::cnstr_get(x_3, 2); -if (lean::is_exclusive(x_3)) { - x_14 = x_3; -} else { - lean::inc(x_8); - lean::inc(x_10); - lean::inc(x_12); - lean::dec(x_3); - x_14 = lean::box(0); -} -if (lean::is_scalar(x_7)) { - x_15 = lean::alloc_cnstr(0, 2, 0); -} else { - x_15 = x_7; -} -lean::cnstr_set(x_15, 0, x_8); -lean::cnstr_set(x_15, 1, x_0); -if (lean::is_scalar(x_14)) { - x_16 = lean::alloc_cnstr(0, 3, 0); -} else { - x_16 = x_14; -} -lean::cnstr_set(x_16, 0, x_15); -lean::cnstr_set(x_16, 1, x_10); -lean::cnstr_set(x_16, 2, x_1); +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_5); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_18, 0, x_17); -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_19, 0, x_12); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_20, 0, x_18); -lean::closure_set(x_20, 1, x_19); +lean::cnstr_set(x_17, 1, x_15); +x_18 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___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; } -else -{ -obj* x_23; obj* x_25; obj* x_26; uint8 x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; -lean::dec(x_1); -lean::dec(x_0); -x_23 = lean::cnstr_get(x_2, 1); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_25 = x_2; -} else { - lean::inc(x_23); - lean::dec(x_2); - x_25 = lean::box(0); } -x_26 = lean::cnstr_get(x_3, 0); -x_28 = lean::cnstr_get_scalar<uint8>(x_3, sizeof(void*)*1); -if (lean::is_exclusive(x_3)) { - x_29 = x_3; -} else { - lean::inc(x_26); - lean::dec(x_3); - x_29 = lean::box(0); -} -if (lean::is_scalar(x_29)) { - x_30 = lean::alloc_cnstr(1, 1, 1); -} else { - x_30 = x_29; -} -lean::cnstr_set(x_30, 0, x_26); -lean::cnstr_set_scalar(x_30, sizeof(void*)*1, x_28); -x_31 = x_30; -if (lean::is_scalar(x_25)) { - x_32 = lean::alloc_cnstr(0, 2, 0); -} else { - x_32 = x_25; -} -lean::cnstr_set(x_32, 0, x_31); -lean::cnstr_set(x_32, 1, x_23); -x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_33, 0, x_32); -return x_33; -} -} -} -obj* l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___lambda__2(obj* x_0, obj* x_1) { +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: { -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) +uint8 x_4; +x_4 = lean::string_iterator_has_next(x_2); +if (x_4 == 0) { -obj* x_4; obj* x_6; obj* x_9; obj* x_11; obj* x_13; obj* x_14; obj* x_16; obj* x_18; obj* x_19; uint8 x_20; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_1, 1); -lean::inc(x_6); -lean::dec(x_1); -x_9 = lean::cnstr_get(x_2, 1); -x_11 = lean::cnstr_get(x_2, 2); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - lean::cnstr_set(x_2, 1, lean::box(0)); - lean::cnstr_set(x_2, 2, lean::box(0)); - x_13 = x_2; +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 = l_mjoin___rarg___closed__1; +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_9); lean::inc(x_11); - lean::dec(x_2); - x_13 = lean::box(0); + lean::inc(x_13); + lean::dec(x_8); + x_15 = lean::box(0); } -x_14 = lean::cnstr_get(x_4, 0); -x_16 = lean::cnstr_get(x_4, 1); -if (lean::is_exclusive(x_4)) { - lean::cnstr_set(x_4, 0, lean::box(0)); - lean::cnstr_set(x_4, 1, lean::box(0)); - x_18 = x_4; +x_16 = l_lean_parser_finish__comment__block___closed__2; +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 { - lean::inc(x_14); - lean::inc(x_16); - lean::dec(x_4); - x_18 = lean::box(0); + x_18 = x_15; } -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_19, 0, x_11); -x_20 = lean::string_iterator_has_next(x_14); +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_25; obj* x_26; obj* x_27; obj* x_28; obj* x_30; -lean::dec(x_18); -lean::dec(x_0); -lean::dec(x_13); -lean::dec(x_14); -x_25 = lean::box(0); -x_26 = l_lean_parser_monad__parsec_eoi__error___rarg___closed__1; +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 = l_mjoin___rarg___closed__1; -x_28 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_26, x_27, x_25, x_25, x_16, x_9, x_6); -lean::dec(x_9); -x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_30, 0, x_28); -lean::closure_set(x_30, 1, x_19); -return x_30; -} -else -{ -uint32 x_31; uint8 x_32; -x_31 = lean::string_iterator_curr(x_14); -x_32 = l_true_decidable; -if (x_32 == 0) -{ -obj* x_37; obj* x_38; obj* x_39; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_46; -lean::dec(x_18); -lean::dec(x_0); -lean::dec(x_13); -lean::dec(x_14); -x_37 = l_char_quote__core(x_31); -x_38 = l_char_has__repr___closed__1; -x_39 = lean::string_append(x_38, x_37); -lean::dec(x_37); -x_41 = lean::string_append(x_39, x_38); -x_42 = lean::box(0); -x_43 = l_mjoin___rarg___closed__1; -x_44 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_41, x_43, x_42, x_42, x_16, x_9, x_6); -lean::dec(x_9); -x_46 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_46, 0, x_44); -lean::closure_set(x_46, 1, x_19); -return x_46; -} -else -{ -obj* x_48; obj* x_49; obj* x_50; obj* x_51; obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; -lean::dec(x_9); -x_48 = lean::string_iterator_next(x_14); -x_49 = lean::box(0); -x_50 = lean::box_uint32(x_31); -if (lean::is_scalar(x_13)) { - x_51 = lean::alloc_cnstr(0, 3, 0); -} else { - x_51 = x_13; -} -lean::cnstr_set(x_51, 0, x_50); -lean::cnstr_set(x_51, 1, x_48); -lean::cnstr_set(x_51, 2, x_49); -if (lean::is_scalar(x_18)) { - x_52 = lean::alloc_cnstr(0, 2, 0); -} else { - x_52 = x_18; -} -lean::cnstr_set(x_52, 0, x_51); -lean::cnstr_set(x_52, 1, x_6); -x_53 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_53, 0, x_52); -x_54 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___lambda__1), 3, 2); -lean::closure_set(x_54, 0, x_16); -lean::closure_set(x_54, 1, x_0); -x_55 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_55, 0, x_53); -lean::closure_set(x_55, 1, x_54); -x_56 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_56, 0, x_55); -lean::closure_set(x_56, 1, x_19); -return x_56; -} -} -} -else -{ -obj* x_58; obj* x_60; obj* x_61; uint8 x_63; obj* x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_68; -lean::dec(x_0); -x_58 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_60 = x_1; -} else { - lean::inc(x_58); - lean::dec(x_1); - x_60 = lean::box(0); -} -x_61 = lean::cnstr_get(x_2, 0); -x_63 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_64 = x_2; -} else { - lean::inc(x_61); - lean::dec(x_2); - x_64 = lean::box(0); -} -if (lean::is_scalar(x_64)) { - x_65 = lean::alloc_cnstr(1, 1, 1); -} else { - x_65 = x_64; -} -lean::cnstr_set(x_65, 0, x_61); -lean::cnstr_set_scalar(x_65, sizeof(void*)*1, x_63); -x_66 = x_65; -if (lean::is_scalar(x_60)) { - x_67 = lean::alloc_cnstr(0, 2, 0); -} else { - x_67 = x_60; -} -lean::cnstr_set(x_67, 0, x_66); -lean::cnstr_set(x_67, 1, x_58); -x_68 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_68, 0, x_67); -return x_68; -} -} -} -obj* _init_l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___closed__1() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg___boxed), 1, 0); -x_1 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_1, 0, x_0); -x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___lambda__2), 2, 1); -lean::closure_set(x_2, 0, x_1); -return x_2; -} -} -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) { -_start: -{ -obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; -x_3 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -lean::inc(x_1); -x_5 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_5, 0, x_1); -lean::cnstr_set(x_5, 1, x_1); -lean::cnstr_set(x_5, 2, x_3); -x_6 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_6, 0, x_5); -lean::cnstr_set(x_6, 1, x_2); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_7, 0, x_6); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__6), 3, 2); -lean::closure_set(x_8, 0, x_0); -lean::closure_set(x_8, 1, x_3); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_9, 0, x_7); -lean::closure_set(x_9, 1, x_8); -x_10 = l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___closed__1; -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_11, 0, x_9); -lean::closure_set(x_11, 1, x_10); -return x_11; -} -} -obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__1(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; -x_2 = lean::cnstr_get(x_1, 0); -x_4 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - x_6 = x_1; -} else { - lean::inc(x_2); - lean::inc(x_4); - lean::dec(x_1); - x_6 = lean::box(0); -} -x_7 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -x_8 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_8, 0, x_2); -lean::cnstr_set(x_8, 1, x_0); -lean::cnstr_set(x_8, 2, x_7); -if (lean::is_scalar(x_6)) { - x_9 = lean::alloc_cnstr(0, 2, 0); -} else { - x_9 = x_6; -} -lean::cnstr_set(x_9, 0, x_8); -lean::cnstr_set(x_9, 1, x_4); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_10, 0, x_9); -return x_10; -} -} -obj* l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__2(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_13; obj* x_14; obj* x_16; obj* x_18; obj* x_19; obj* x_20; obj* x_23; obj* x_26; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; obj* x_37; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_8 = x_1; -} else { - lean::inc(x_6); - lean::dec(x_1); - x_8 = lean::box(0); -} -x_9 = lean::cnstr_get(x_2, 1); -x_11 = lean::cnstr_get(x_2, 2); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_13 = x_2; -} else { - lean::inc(x_9); - lean::inc(x_11); - lean::dec(x_2); - x_13 = lean::box(0); -} -x_14 = lean::cnstr_get(x_4, 0); -x_16 = lean::cnstr_get(x_4, 1); -if (lean::is_exclusive(x_4)) { - x_18 = x_4; -} else { - lean::inc(x_14); - lean::inc(x_16); - lean::dec(x_4); - x_18 = lean::box(0); -} -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_19, 0, x_11); -x_20 = lean::cnstr_get(x_14, 0); -lean::inc(x_20); -lean::dec(x_14); -x_23 = lean::cnstr_get(x_20, 0); -lean::inc(x_23); -lean::dec(x_20); -x_26 = lean::cnstr_get(x_23, 0); -lean::inc(x_26); -lean::dec(x_23); -x_29 = l_lean_parser_message__of__parsec__message___rarg(x_26, x_0); -x_30 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_30, 0, x_29); -lean::cnstr_set(x_30, 1, x_16); -x_31 = lean::box(0); -if (lean::is_scalar(x_18)) { - x_32 = lean::alloc_cnstr(0, 2, 0); -} else { - x_32 = x_18; -} -lean::cnstr_set(x_32, 0, x_31); -lean::cnstr_set(x_32, 1, x_30); -x_33 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_13)) { - x_34 = lean::alloc_cnstr(0, 3, 0); -} else { - x_34 = x_13; -} -lean::cnstr_set(x_34, 0, x_32); -lean::cnstr_set(x_34, 1, x_9); -lean::cnstr_set(x_34, 2, x_33); -if (lean::is_scalar(x_8)) { - x_35 = lean::alloc_cnstr(0, 2, 0); -} else { - x_35 = x_8; -} -lean::cnstr_set(x_35, 0, x_34); -lean::cnstr_set(x_35, 1, x_6); -x_36 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_36, 0, x_35); -x_37 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_37, 0, x_36); -lean::closure_set(x_37, 1, x_19); -return x_37; -} -else -{ -obj* x_39; obj* x_41; obj* x_42; uint8 x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48; obj* x_49; -lean::dec(x_0); -x_39 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_41 = x_1; -} else { - lean::inc(x_39); - lean::dec(x_1); - x_41 = lean::box(0); -} -x_42 = lean::cnstr_get(x_2, 0); -x_44 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_45 = x_2; -} else { - lean::inc(x_42); - lean::dec(x_2); - x_45 = lean::box(0); -} -if (lean::is_scalar(x_45)) { - x_46 = lean::alloc_cnstr(1, 1, 1); -} else { - x_46 = x_45; -} -lean::cnstr_set(x_46, 0, x_42); -lean::cnstr_set_scalar(x_46, sizeof(void*)*1, x_44); -x_47 = x_46; -if (lean::is_scalar(x_41)) { - x_48 = lean::alloc_cnstr(0, 2, 0); -} else { - x_48 = x_41; -} -lean::cnstr_set(x_48, 0, x_47); -lean::cnstr_set(x_48, 1, x_39); -x_49 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_49, 0, x_48); -return x_49; -} -} -} -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) { -_start: -{ -obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; -x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__4), 2, 1); -lean::closure_set(x_4, 0, x_3); -x_5 = l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1; -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_6, 0, x_5); -lean::closure_set(x_6, 1, x_4); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__1), 2, 1); -lean::closure_set(x_7, 0, x_2); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_8, 0, x_6); -lean::closure_set(x_8, 1, x_7); -x_9 = 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___lambda__1), 2, 1); -lean::closure_set(x_9, 0, x_1); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_10, 0, x_8); -lean::closure_set(x_10, 1, x_9); -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__2), 2, 1); -lean::closure_set(x_11, 0, x_0); -x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_12, 0, x_10); -lean::closure_set(x_12, 1, x_11); -return x_12; -} -} -obj* l_lean_parser_log__message___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; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; -x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__4), 2, 1); -lean::closure_set(x_4, 0, x_3); -x_5 = l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1; -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_6, 0, x_5); -lean::closure_set(x_6, 1, x_4); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__1), 2, 1); -lean::closure_set(x_7, 0, x_2); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_8, 0, x_6); -lean::closure_set(x_8, 1, x_7); -x_9 = 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___lambda__1), 2, 1); -lean::closure_set(x_9, 0, x_1); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_10, 0, x_8); -lean::closure_set(x_10, 1, x_9); -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__2), 2, 1); -lean::closure_set(x_11, 0, x_0); -x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_12, 0, x_10); -lean::closure_set(x_12, 1, x_11); -return x_12; -} -} -obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__1___closed__1() { -_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___lambda__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) { -_start: -{ -obj* x_5; obj* x_8; obj* x_9; obj* x_10; -x_5 = lean::cnstr_get(x_4, 0); -lean::inc(x_5); -lean::dec(x_4); -x_8 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__1___closed__1; -x_9 = l_lean_parser_command__parser_run(x_0, x_8, x_5, x_1, x_2); -x_10 = lean::cnstr_get(x_9, 0); -lean::inc(x_10); -if (lean::obj_tag(x_10) == 0) -{ -obj* x_12; obj* x_14; obj* x_15; obj* x_17; obj* x_19; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; -x_12 = lean::cnstr_get(x_9, 1); -if (lean::is_exclusive(x_9)) { - lean::cnstr_release(x_9, 0); - x_14 = x_9; -} else { - lean::inc(x_12); - lean::dec(x_9); - x_14 = lean::box(0); -} -x_15 = lean::cnstr_get(x_10, 0); -x_17 = lean::cnstr_get(x_10, 1); -x_19 = lean::cnstr_get(x_10, 2); -if (lean::is_exclusive(x_10)) { - x_21 = x_10; -} else { - lean::inc(x_15); - lean::inc(x_17); - lean::inc(x_19); - lean::dec(x_10); - x_21 = lean::box(0); -} -if (lean::is_scalar(x_14)) { - x_22 = lean::alloc_cnstr(0, 2, 0); -} else { - x_22 = x_14; -} -lean::cnstr_set(x_22, 0, x_15); -lean::cnstr_set(x_22, 1, x_3); -x_23 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_21)) { - x_24 = lean::alloc_cnstr(0, 3, 0); -} else { - x_24 = x_21; -} -lean::cnstr_set(x_24, 0, x_22); -lean::cnstr_set(x_24, 1, x_17); -lean::cnstr_set(x_24, 2, x_23); -x_25 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_19, x_24); -x_26 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_26, 0, x_25); -lean::cnstr_set(x_26, 1, x_12); -x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_27, 0, x_26); -return x_27; -} -else -{ -obj* x_29; obj* x_31; obj* x_32; uint8 x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; -lean::dec(x_3); -x_29 = lean::cnstr_get(x_9, 1); -if (lean::is_exclusive(x_9)) { - lean::cnstr_release(x_9, 0); - x_31 = x_9; -} else { - lean::inc(x_29); - lean::dec(x_9); - x_31 = lean::box(0); -} -x_32 = lean::cnstr_get(x_10, 0); -x_34 = lean::cnstr_get_scalar<uint8>(x_10, sizeof(void*)*1); -if (lean::is_exclusive(x_10)) { - x_35 = x_10; -} else { - lean::inc(x_32); - lean::dec(x_10); - 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; -if (lean::is_scalar(x_31)) { - x_38 = lean::alloc_cnstr(0, 2, 0); -} else { - x_38 = x_31; -} -lean::cnstr_set(x_38, 0, x_37); -lean::cnstr_set(x_38, 1, x_29); -x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_39, 0, x_38); -return x_39; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__2(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_7; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_15; obj* x_17; obj* x_18; obj* x_19; uint8 x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_7 = x_0; -} else { - lean::inc(x_5); - lean::dec(x_0); - x_7 = lean::box(0); -} -x_8 = lean::cnstr_get(x_1, 1); -x_10 = lean::cnstr_get(x_1, 2); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_12 = x_1; -} else { - lean::inc(x_8); - lean::inc(x_10); - lean::dec(x_1); - x_12 = lean::box(0); -} -x_13 = lean::cnstr_get(x_3, 0); -x_15 = lean::cnstr_get(x_3, 1); -if (lean::is_exclusive(x_3)) { - x_17 = x_3; -} else { - lean::inc(x_13); - lean::inc(x_15); - lean::dec(x_3); - x_17 = lean::box(0); -} -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_18, 0, x_10); -x_19 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_19, 0, x_13); -x_20 = 0; -x_21 = lean::box(x_20); -if (lean::is_scalar(x_17)) { - x_22 = lean::alloc_cnstr(0, 2, 0); -} else { - x_22 = x_17; -} -lean::cnstr_set(x_22, 0, x_21); -lean::cnstr_set(x_22, 1, x_19); -if (lean::is_scalar(x_7)) { - x_23 = lean::alloc_cnstr(0, 2, 0); -} else { - x_23 = x_7; -} -lean::cnstr_set(x_23, 0, x_22); -lean::cnstr_set(x_23, 1, x_15); -x_24 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_12)) { - x_25 = lean::alloc_cnstr(0, 3, 0); -} else { - x_25 = x_12; -} -lean::cnstr_set(x_25, 0, x_23); -lean::cnstr_set(x_25, 1, x_8); -lean::cnstr_set(x_25, 2, x_24); -x_26 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_26, 0, x_25); -lean::cnstr_set(x_26, 1, x_5); -x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_27, 0, x_26); -x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_28, 0, x_27); -lean::closure_set(x_28, 1, x_18); -return x_28; -} -else -{ -obj* x_29; obj* x_31; obj* x_32; uint8 x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; -x_29 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_31 = x_0; -} else { - lean::inc(x_29); - lean::dec(x_0); - x_31 = lean::box(0); -} -x_32 = lean::cnstr_get(x_1, 0); -x_34 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_35 = x_1; -} else { - lean::inc(x_32); - lean::dec(x_1); - 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; -if (lean::is_scalar(x_31)) { - x_38 = lean::alloc_cnstr(0, 2, 0); -} else { - x_38 = x_31; -} -lean::cnstr_set(x_38, 0, x_37); -lean::cnstr_set(x_38, 1, x_29); -x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_39, 0, x_38); -return x_39; -} -} -} -obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__3___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__2), 1, 0); -return x_0; -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__3(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_9; obj* x_11; obj* x_14; obj* x_16; obj* x_19; obj* x_20; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_1, 1); -lean::inc(x_6); -lean::dec(x_1); -x_9 = lean::cnstr_get(x_2, 1); -lean::inc(x_9); -x_11 = lean::cnstr_get(x_2, 2); -lean::inc(x_11); +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); -x_14 = lean::cnstr_get(x_4, 0); -lean::inc(x_14); -x_16 = lean::cnstr_get(x_4, 1); -lean::inc(x_16); -lean::dec(x_4); -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_19, 0, x_11); -x_20 = lean::cnstr_get(x_14, 1); -lean::inc(x_20); -lean::dec(x_14); -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__1), 5, 4); -lean::closure_set(x_23, 0, x_20); -lean::closure_set(x_23, 1, x_9); -lean::closure_set(x_23, 2, x_6); -lean::closure_set(x_23, 3, x_16); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_24, 0, x_0); -lean::closure_set(x_24, 1, x_23); -x_25 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__3___closed__1; -x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_26, 0, x_24); -lean::closure_set(x_26, 1, x_25); -x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_27, 0, x_26); -lean::closure_set(x_27, 1, x_19); -return x_27; -} -else -{ -obj* x_29; obj* x_31; obj* x_32; uint8 x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; lean::dec(x_0); -x_29 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_31 = x_1; +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_29); - lean::dec(x_1); - x_31 = lean::box(0); -} -x_32 = lean::cnstr_get(x_2, 0); -x_34 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_35 = x_2; -} else { - lean::inc(x_32); - lean::dec(x_2); - 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; -if (lean::is_scalar(x_31)) { - x_38 = lean::alloc_cnstr(0, 2, 0); -} else { - x_38 = x_31; -} -lean::cnstr_set(x_38, 0, x_37); -lean::cnstr_set(x_38, 1, x_29); -x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_39, 0, x_38); -return x_39; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__4(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; obj* x_7; obj* x_10; obj* x_11; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -lean::dec(x_3); -x_7 = lean::cnstr_get(x_4, 0); -lean::inc(x_7); -lean::dec(x_4); -x_10 = l_lean_parser_token(x_7, x_0, x_1); -x_11 = lean::cnstr_get(x_10, 0); -lean::inc(x_11); -if (lean::obj_tag(x_11) == 0) -{ -obj* x_13; obj* x_15; obj* x_16; obj* x_18; obj* x_20; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; -x_13 = lean::cnstr_get(x_10, 1); -if (lean::is_exclusive(x_10)) { - lean::cnstr_release(x_10, 0); - x_15 = x_10; -} else { - lean::inc(x_13); - lean::dec(x_10); - x_15 = lean::box(0); -} -x_16 = lean::cnstr_get(x_11, 0); -x_18 = lean::cnstr_get(x_11, 1); -x_20 = lean::cnstr_get(x_11, 2); -if (lean::is_exclusive(x_11)) { - x_22 = x_11; -} else { - lean::inc(x_16); - lean::inc(x_18); - lean::inc(x_20); - lean::dec(x_11); - x_22 = lean::box(0); -} -if (lean::is_scalar(x_15)) { - x_23 = lean::alloc_cnstr(0, 2, 0); -} else { - x_23 = x_15; -} -lean::cnstr_set(x_23, 0, x_16); -lean::cnstr_set(x_23, 1, x_2); -x_24 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_22)) { - x_25 = lean::alloc_cnstr(0, 3, 0); -} else { - x_25 = x_22; -} -lean::cnstr_set(x_25, 0, x_23); -lean::cnstr_set(x_25, 1, x_18); -lean::cnstr_set(x_25, 2, x_24); -x_26 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_20, x_25); -x_27 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_27, 0, x_26); -lean::cnstr_set(x_27, 1, x_13); -x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_28, 0, x_27); -return x_28; -} -else -{ -obj* x_30; obj* x_32; obj* x_33; uint8 x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; -lean::dec(x_2); -x_30 = lean::cnstr_get(x_10, 1); -if (lean::is_exclusive(x_10)) { - lean::cnstr_release(x_10, 0); - x_32 = x_10; -} else { - lean::inc(x_30); - lean::dec(x_10); - x_32 = lean::box(0); -} -x_33 = lean::cnstr_get(x_11, 0); -x_35 = lean::cnstr_get_scalar<uint8>(x_11, sizeof(void*)*1); -if (lean::is_exclusive(x_11)) { - x_36 = x_11; -} else { + lean::inc(x_31); lean::inc(x_33); - lean::dec(x_11); - x_36 = lean::box(0); + lean::dec(x_28); + x_35 = lean::box(0); } -if (lean::is_scalar(x_36)) { - x_37 = lean::alloc_cnstr(1, 1, 1); +x_36 = l_lean_parser_finish__comment__block___closed__2; +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_37 = x_36; + x_38 = x_35; } -lean::cnstr_set(x_37, 0, x_33); -lean::cnstr_set_scalar(x_37, sizeof(void*)*1, x_35); -x_38 = x_37; -if (lean::is_scalar(x_32)) { - x_39 = lean::alloc_cnstr(0, 2, 0); -} else { - x_39 = x_32; -} -lean::cnstr_set(x_39, 0, x_38); -lean::cnstr_set(x_39, 1, x_30); -x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_40, 0, x_39); -return x_40; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__5(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_7; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_7 = x_0; -} else { - lean::inc(x_5); - lean::dec(x_0); - x_7 = lean::box(0); -} -x_8 = lean::cnstr_get(x_1, 1); -x_10 = lean::cnstr_get(x_1, 2); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_12 = x_1; -} else { - lean::inc(x_8); - lean::inc(x_10); - lean::dec(x_1); - x_12 = lean::box(0); -} -x_13 = lean::cnstr_get(x_3, 1); -if (lean::is_exclusive(x_3)) { - lean::cnstr_release(x_3, 0); - x_15 = x_3; -} else { - lean::inc(x_13); - lean::dec(x_3); - x_15 = lean::box(0); -} -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_16, 0, x_10); -x_17 = lean::box(0); -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); -x_19 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_12)) { - x_20 = lean::alloc_cnstr(0, 3, 0); -} else { - x_20 = x_12; -} -lean::cnstr_set(x_20, 0, x_18); -lean::cnstr_set(x_20, 1, x_8); -lean::cnstr_set(x_20, 2, x_19); -if (lean::is_scalar(x_7)) { - x_21 = lean::alloc_cnstr(0, 2, 0); -} else { - x_21 = x_7; -} -lean::cnstr_set(x_21, 0, x_20); -lean::cnstr_set(x_21, 1, x_5); -x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_22, 0, x_21); -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_23, 0, x_22); -lean::closure_set(x_23, 1, x_16); -return x_23; +lean::cnstr_set(x_38, 0, x_37); +lean::cnstr_set(x_38, 1, x_33); +return x_38; } 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; obj* x_34; -x_24 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_26 = x_0; -} else { - lean::inc(x_24); - lean::dec(x_0); - x_26 = lean::box(0); -} -x_27 = lean::cnstr_get(x_1, 0); -x_29 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_30 = x_1; -} else { - lean::inc(x_27); - lean::dec(x_1); - 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); -x_34 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_34, 0, x_33); -return x_34; +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___private_init_lean_parser_module_1__commands__aux___main___lambda__6(obj* x_0) { +} +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_1; obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_8; -x_1 = lean::cnstr_get(x_0, 0); -x_3 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - x_5 = x_0; -} else { - lean::inc(x_1); - lean::inc(x_3); - lean::dec(x_0); - x_5 = lean::box(0); -} -x_6 = l_lean_parser_parsec__t_try__mk__res___rarg(x_1); -if (lean::is_scalar(x_5)) { - x_7 = lean::alloc_cnstr(0, 2, 0); -} else { - x_7 = x_5; -} -lean::cnstr_set(x_7, 0, x_6); -lean::cnstr_set(x_7, 1, x_3); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_8, 0, x_7); -return x_8; -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__7(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_7; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_7 = x_0; -} else { - lean::inc(x_5); - lean::dec(x_0); - x_7 = lean::box(0); -} -x_8 = lean::cnstr_get(x_1, 1); -x_10 = lean::cnstr_get(x_1, 2); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_12 = x_1; -} else { - lean::inc(x_8); - lean::inc(x_10); - lean::dec(x_1); - x_12 = lean::box(0); -} -x_13 = lean::cnstr_get(x_3, 1); -if (lean::is_exclusive(x_3)) { - lean::cnstr_release(x_3, 0); - x_15 = x_3; -} else { - lean::inc(x_13); - lean::dec(x_3); - x_15 = lean::box(0); -} -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_16, 0, x_10); -x_17 = lean::box(0); -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); -x_19 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_12)) { - x_20 = lean::alloc_cnstr(0, 3, 0); -} else { - x_20 = x_12; -} -lean::cnstr_set(x_20, 0, x_18); -lean::cnstr_set(x_20, 1, x_8); -lean::cnstr_set(x_20, 2, x_19); -if (lean::is_scalar(x_7)) { - x_21 = lean::alloc_cnstr(0, 2, 0); -} else { - x_21 = x_7; -} -lean::cnstr_set(x_21, 0, x_20); -lean::cnstr_set(x_21, 1, x_5); -x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_22, 0, x_21); -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_23, 0, x_22); -lean::closure_set(x_23, 1, x_16); -return x_23; -} -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; obj* x_34; -x_24 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_26 = x_0; -} else { - lean::inc(x_24); - lean::dec(x_0); - x_26 = lean::box(0); -} -x_27 = lean::cnstr_get(x_1, 0); -x_29 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_30 = x_1; -} else { - lean::inc(x_27); - lean::dec(x_1); - 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); -x_34 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_34, 0, x_33); -return x_34; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__8(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9; -x_2 = lean::cnstr_get(x_1, 0); -x_4 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - x_6 = x_1; -} else { - lean::inc(x_2); - lean::inc(x_4); - lean::dec(x_1); - x_6 = lean::box(0); -} -x_7 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_0, x_2); -if (lean::is_scalar(x_6)) { - x_8 = lean::alloc_cnstr(0, 2, 0); -} else { - x_8 = x_6; -} -lean::cnstr_set(x_8, 0, x_7); -lean::cnstr_set(x_8, 1, x_4); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_9, 0, x_8); -return x_9; -} -} -obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__9___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__7), 1, 0); -return x_0; -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__9(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -obj* x_3; -x_3 = lean::cnstr_get(x_2, 0); -lean::inc(x_3); -if (lean::obj_tag(x_3) == 0) -{ -obj* x_7; obj* x_9; obj* x_10; obj* x_11; -lean::dec(x_1); -lean::dec(x_0); -x_7 = lean::cnstr_get(x_2, 1); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_9 = x_2; -} else { - lean::inc(x_7); - lean::dec(x_2); - x_9 = lean::box(0); -} -if (lean::is_scalar(x_9)) { - x_10 = lean::alloc_cnstr(0, 2, 0); -} else { - x_10 = x_9; -} -lean::cnstr_set(x_10, 0, x_3); -lean::cnstr_set(x_10, 1, x_7); -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_11, 0, x_10); -return x_11; -} -else -{ -uint8 x_12; -x_12 = lean::cnstr_get_scalar<uint8>(x_3, sizeof(void*)*1); -if (x_12 == 0) -{ -obj* x_13; obj* x_16; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; -x_13 = lean::cnstr_get(x_2, 1); -lean::inc(x_13); +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_16 = lean::cnstr_get(x_3, 0); -lean::inc(x_16); -lean::dec(x_3); -x_19 = l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3(x_0, x_1, x_13); -x_20 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__9___closed__1; -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_21, 0, x_19); -lean::closure_set(x_21, 1, x_20); -x_22 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__8), 2, 1); -lean::closure_set(x_22, 0, x_16); -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_23, 0, x_21); -lean::closure_set(x_23, 1, x_22); -return x_23; +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_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___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 = l_lean_parser_monad__parsec_eoi___rarg___lambda__1___closed__1; +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_finish__comment__block___closed__2; +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_26; obj* x_28; obj* x_29; obj* x_30; -lean::dec(x_1); -lean::dec(x_0); -x_26 = lean::cnstr_get(x_2, 1); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_28 = x_2; -} else { - lean::inc(x_26); - lean::dec(x_2); - x_28 = lean::box(0); -} -if (lean::is_scalar(x_28)) { - x_29 = lean::alloc_cnstr(0, 2, 0); -} else { - x_29 = x_28; -} -lean::cnstr_set(x_29, 0, x_3); -lean::cnstr_set(x_29, 1, x_26); -x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_30, 0, x_29); -return x_30; +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_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___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___lambda__10___closed__1() { +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; @@ -5438,1153 +3240,1125 @@ return x_3; } } -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__10(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_7; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_7 = x_0; -} else { - lean::inc(x_5); - lean::dec(x_0); - x_7 = lean::box(0); -} -x_8 = lean::cnstr_get(x_1, 1); -x_10 = lean::cnstr_get(x_1, 2); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_12 = x_1; -} else { - lean::inc(x_8); - lean::inc(x_10); - lean::dec(x_1); - x_12 = lean::box(0); -} -x_13 = lean::cnstr_get(x_3, 1); -if (lean::is_exclusive(x_3)) { - lean::cnstr_release(x_3, 0); - x_15 = x_3; -} else { - lean::inc(x_13); - lean::dec(x_3); - x_15 = lean::box(0); -} -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_16, 0, x_10); -x_17 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__10___closed__1; -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); -x_19 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_12)) { - x_20 = lean::alloc_cnstr(0, 3, 0); -} else { - x_20 = x_12; -} -lean::cnstr_set(x_20, 0, x_18); -lean::cnstr_set(x_20, 1, x_8); -lean::cnstr_set(x_20, 2, x_19); -if (lean::is_scalar(x_7)) { - x_21 = lean::alloc_cnstr(0, 2, 0); -} else { - x_21 = x_7; -} -lean::cnstr_set(x_21, 0, x_20); -lean::cnstr_set(x_21, 1, x_5); -x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_22, 0, x_21); -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_23, 0, x_22); -lean::closure_set(x_23, 1, x_16); -return x_23; -} -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; obj* x_34; -x_24 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_26 = x_0; -} else { - lean::inc(x_24); - lean::dec(x_0); - x_26 = lean::box(0); -} -x_27 = lean::cnstr_get(x_1, 0); -x_29 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_30 = x_1; -} else { - lean::inc(x_27); - lean::dec(x_1); - 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); -x_34 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_34, 0, x_33); -return x_34; -} -} -} -obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__1() { +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___private_init_lean_parser_module_1__commands__aux___main___lambda__5), 1, 0); +x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_parser___boxed), 1, 0); return x_0; } } -obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__2() { +obj* l___private_init_lean_parser_module_1__commands__aux___main(uint8 x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) { _start: { -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__6), 1, 0); -return x_0; -} -} -obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__3() { -_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_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__10), 1, 0); -return x_0; -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__11(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_9; obj* x_11; obj* x_14; obj* x_17; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; -x_4 = lean::cnstr_get(x_2, 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); -x_6 = lean::cnstr_get(x_1, 1); -lean::inc(x_6); -lean::dec(x_1); -x_9 = lean::cnstr_get(x_2, 1); -lean::inc(x_9); -x_11 = lean::cnstr_get(x_2, 2); -lean::inc(x_11); -lean::dec(x_2); -x_14 = lean::cnstr_get(x_4, 1); -lean::inc(x_14); -lean::dec(x_4); -x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_17, 0, x_11); -lean::inc(x_14); -lean::inc(x_9); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__4), 4, 3); -lean::closure_set(x_20, 0, x_9); -lean::closure_set(x_20, 1, x_6); -lean::closure_set(x_20, 2, x_14); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_21, 0, x_0); -lean::closure_set(x_21, 1, x_20); -x_22 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__1; -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_23, 0, x_21); -lean::closure_set(x_23, 1, x_22); -x_24 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__2; -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_25, 0, x_23); -lean::closure_set(x_25, 1, x_24); -x_26 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__9), 3, 2); -lean::closure_set(x_26, 0, x_14); -lean::closure_set(x_26, 1, x_9); -x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_27, 0, x_25); -lean::closure_set(x_27, 1, x_26); -x_28 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__3; -x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_29, 0, x_27); -lean::closure_set(x_29, 1, x_28); -x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_30, 0, x_29); -lean::closure_set(x_30, 1, x_17); -return x_30; -} -else -{ -obj* x_32; obj* x_34; obj* x_35; uint8 x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; -lean::dec(x_0); -x_32 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_34 = x_1; -} else { - lean::inc(x_32); - lean::dec(x_1); - x_34 = lean::box(0); -} -x_35 = lean::cnstr_get(x_2, 0); -x_37 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_38 = x_2; -} else { - lean::inc(x_35); - lean::dec(x_2); - x_38 = lean::box(0); -} -if (lean::is_scalar(x_38)) { - x_39 = lean::alloc_cnstr(1, 1, 1); -} else { - x_39 = x_38; -} -lean::cnstr_set(x_39, 0, x_35); -lean::cnstr_set_scalar(x_39, sizeof(void*)*1, x_37); -x_40 = x_39; -if (lean::is_scalar(x_34)) { - x_41 = lean::alloc_cnstr(0, 2, 0); -} else { - x_41 = x_34; -} -lean::cnstr_set(x_41, 0, x_40); -lean::cnstr_set(x_41, 1, x_32); -x_42 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_42, 0, x_41); -return x_42; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__12(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_8; obj* x_10; obj* x_13; obj* x_15; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -lean::inc(x_5); -lean::dec(x_0); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -x_10 = lean::cnstr_get(x_1, 2); -lean::inc(x_10); -lean::dec(x_1); -x_13 = lean::cnstr_get(x_3, 0); -lean::inc(x_13); -x_15 = lean::cnstr_get(x_3, 1); -lean::inc(x_15); -lean::dec(x_3); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_18, 0, x_10); -x_19 = l_string_join___closed__1; -x_20 = l_lean_parser_command_parser___rarg___closed__1; -x_21 = l_lean_parser_parsec__t_monad__fail___rarg___closed__1; -x_22 = lean::alloc_cnstr(0, 4, 0); -lean::cnstr_set(x_22, 0, x_13); -lean::cnstr_set(x_22, 1, x_19); -lean::cnstr_set(x_22, 2, x_20); -lean::cnstr_set(x_22, 3, x_21); -x_23 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4(x_22, x_15, x_8, x_5); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_24, 0, x_23); -lean::closure_set(x_24, 1, x_18); -return x_24; -} -else -{ -obj* x_25; obj* x_27; obj* x_28; uint8 x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; -x_25 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_27 = x_0; -} else { - lean::inc(x_25); - lean::dec(x_0); - x_27 = lean::box(0); -} -x_28 = lean::cnstr_get(x_1, 0); -x_30 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_31 = x_1; -} else { - lean::inc(x_28); - lean::dec(x_1); - x_31 = lean::box(0); -} -if (lean::is_scalar(x_31)) { - x_32 = lean::alloc_cnstr(1, 1, 1); -} else { - x_32 = x_31; -} -lean::cnstr_set(x_32, 0, x_28); -lean::cnstr_set_scalar(x_32, sizeof(void*)*1, x_30); -x_33 = x_32; -if (lean::is_scalar(x_27)) { - x_34 = lean::alloc_cnstr(0, 2, 0); -} else { - x_34 = x_27; -} -lean::cnstr_set(x_34, 0, x_33); -lean::cnstr_set(x_34, 1, x_25); -x_35 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_35, 0, x_34); -return x_35; -} -} -} -obj* _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__13___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__12), 1, 0); -return x_0; -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__13(obj* x_0, uint8 x_1, obj* x_2, obj* x_3, obj* x_4) { -_start: -{ -obj* x_5; -x_5 = lean::cnstr_get(x_4, 0); -lean::inc(x_5); -if (lean::obj_tag(x_5) == 0) -{ -obj* x_10; obj* x_12; obj* x_13; obj* x_14; -lean::dec(x_3); -lean::dec(x_0); -lean::dec(x_2); -x_10 = lean::cnstr_get(x_4, 1); -if (lean::is_exclusive(x_4)) { - lean::cnstr_release(x_4, 0); - x_12 = x_4; -} else { - lean::inc(x_10); - lean::dec(x_4); - x_12 = lean::box(0); -} -if (lean::is_scalar(x_12)) { - x_13 = lean::alloc_cnstr(0, 2, 0); -} else { - x_13 = x_12; -} -lean::cnstr_set(x_13, 0, x_5); -lean::cnstr_set(x_13, 1, x_10); -x_14 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_14, 0, x_13); -return x_14; -} -else -{ -uint8 x_15; -x_15 = lean::cnstr_get_scalar<uint8>(x_5, sizeof(void*)*1); -if (x_15 == 0) -{ -obj* x_16; obj* x_18; obj* x_19; obj* x_22; obj* x_23; -x_16 = lean::cnstr_get(x_4, 1); -if (lean::is_exclusive(x_4)) { - lean::cnstr_release(x_4, 0); - lean::cnstr_set(x_4, 1, lean::box(0)); - x_18 = x_4; -} else { - lean::inc(x_16); - lean::dec(x_4); - x_18 = lean::box(0); -} -x_19 = lean::cnstr_get(x_5, 0); -lean::inc(x_19); -lean::dec(x_5); -x_22 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__11), 2, 1); -lean::closure_set(x_22, 0, x_0); -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__8), 2, 1); -lean::closure_set(x_23, 0, x_19); -if (x_1 == 0) -{ -obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; -x_24 = lean::box(0); -if (lean::is_scalar(x_18)) { - x_25 = lean::alloc_cnstr(0, 2, 0); -} else { - x_25 = x_18; -} -lean::cnstr_set(x_25, 0, x_24); -lean::cnstr_set(x_25, 1, x_2); -x_26 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -x_27 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_27, 0, x_25); -lean::cnstr_set(x_27, 1, x_3); -lean::cnstr_set(x_27, 2, x_26); -x_28 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_28, 0, x_27); -lean::cnstr_set(x_28, 1, x_16); -x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_29, 0, x_28); -x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_30, 0, x_29); -lean::closure_set(x_30, 1, x_22); -x_31 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_31, 0, x_30); -lean::closure_set(x_31, 1, x_23); -return x_31; -} -else -{ -obj* x_32; obj* x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; -x_32 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -lean::inc(x_3); -x_34 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_34, 0, x_3); -lean::cnstr_set(x_34, 1, x_3); -lean::cnstr_set(x_34, 2, x_32); -if (lean::is_scalar(x_18)) { - x_35 = lean::alloc_cnstr(0, 2, 0); -} else { - x_35 = x_18; -} -lean::cnstr_set(x_35, 0, x_34); -lean::cnstr_set(x_35, 1, x_16); -x_36 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_36, 0, x_35); -x_37 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__6), 3, 2); -lean::closure_set(x_37, 0, x_2); -lean::closure_set(x_37, 1, x_32); -x_38 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_38, 0, x_36); -lean::closure_set(x_38, 1, x_37); -x_39 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__13___closed__1; -x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_40, 0, x_38); -lean::closure_set(x_40, 1, x_39); -x_41 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_41, 0, x_40); -lean::closure_set(x_41, 1, x_22); -x_42 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_42, 0, x_41); -lean::closure_set(x_42, 1, x_23); -return x_42; -} -} -else -{ -obj* x_46; obj* x_48; obj* x_49; obj* x_50; -lean::dec(x_3); -lean::dec(x_0); -lean::dec(x_2); -x_46 = lean::cnstr_get(x_4, 1); -if (lean::is_exclusive(x_4)) { - lean::cnstr_release(x_4, 0); - x_48 = x_4; -} else { - lean::inc(x_46); - lean::dec(x_4); - x_48 = lean::box(0); -} -if (lean::is_scalar(x_48)) { - x_49 = lean::alloc_cnstr(0, 2, 0); -} else { - x_49 = x_48; -} -lean::cnstr_set(x_49, 0, x_5); -lean::cnstr_set(x_49, 1, x_46); -x_50 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_50, 0, x_49); -return x_50; -} -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__14(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_13; obj* x_14; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; uint8 x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_8 = x_1; -} else { - lean::inc(x_6); - lean::dec(x_1); - x_8 = lean::box(0); -} -x_9 = lean::cnstr_get(x_2, 1); -x_11 = lean::cnstr_get(x_2, 2); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_13 = x_2; -} else { - lean::inc(x_9); - lean::inc(x_11); - lean::dec(x_2); - x_13 = lean::box(0); -} -x_14 = lean::cnstr_get(x_4, 1); -if (lean::is_exclusive(x_4)) { - lean::cnstr_release(x_4, 0); - x_16 = x_4; -} else { - lean::inc(x_14); - lean::dec(x_4); - x_16 = lean::box(0); -} -x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_17, 0, x_11); -x_18 = lean::cnstr_get(x_0, 3); -x_19 = l_option_get___main___at_lean_parser_run___spec__2(x_18); -x_20 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_20, 0, x_19); -x_21 = 1; -x_22 = lean::box(x_21); -if (lean::is_scalar(x_16)) { - x_23 = lean::alloc_cnstr(0, 2, 0); -} else { - x_23 = x_16; -} -lean::cnstr_set(x_23, 0, x_22); -lean::cnstr_set(x_23, 1, x_20); -if (lean::is_scalar(x_8)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_8; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_14); -x_25 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_13)) { - x_26 = lean::alloc_cnstr(0, 3, 0); -} else { - x_26 = x_13; -} -lean::cnstr_set(x_26, 0, x_24); -lean::cnstr_set(x_26, 1, x_9); -lean::cnstr_set(x_26, 2, x_25); -x_27 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_27, 0, x_26); -lean::cnstr_set(x_27, 1, x_6); -x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_28, 0, x_27); -x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_29, 0, x_28); -lean::closure_set(x_29, 1, x_17); -return x_29; -} -else -{ -obj* x_30; obj* x_32; obj* x_33; uint8 x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; -x_30 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_32 = x_1; -} else { - lean::inc(x_30); - lean::dec(x_1); - x_32 = lean::box(0); -} -x_33 = lean::cnstr_get(x_2, 0); -x_35 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_36 = x_2; -} else { - lean::inc(x_33); - lean::dec(x_2); - x_36 = lean::box(0); -} -if (lean::is_scalar(x_36)) { - x_37 = lean::alloc_cnstr(1, 1, 1); -} else { - x_37 = x_36; -} -lean::cnstr_set(x_37, 0, x_33); -lean::cnstr_set_scalar(x_37, sizeof(void*)*1, x_35); -x_38 = x_37; -if (lean::is_scalar(x_32)) { - x_39 = lean::alloc_cnstr(0, 2, 0); -} else { - x_39 = x_32; -} -lean::cnstr_set(x_39, 0, x_38); -lean::cnstr_set(x_39, 1, x_30); -x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_40, 0, x_39); -return x_40; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__15(uint8 x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_7; obj* x_8; -x_4 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_6 = x_1; -} else { - lean::inc(x_4); - lean::dec(x_1); - x_6 = lean::box(0); -} -if (lean::is_scalar(x_6)) { - x_7 = lean::alloc_cnstr(0, 2, 0); -} else { - x_7 = x_6; -} -lean::cnstr_set(x_7, 0, x_2); -lean::cnstr_set(x_7, 1, x_4); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_8, 0, x_7); -return x_8; -} -else -{ -uint8 x_9; -x_9 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); +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_10; obj* x_12; obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; -x_10 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_12 = x_1; -} else { - lean::inc(x_10); - lean::dec(x_1); - x_12 = lean::box(0); -} -x_13 = lean::cnstr_get(x_2, 0); -if (lean::is_exclusive(x_2)) { - x_15 = x_2; -} else { - lean::inc(x_13); - lean::dec(x_2); - x_15 = lean::box(0); -} -if (lean::is_scalar(x_15)) { - x_16 = lean::alloc_cnstr(1, 1, 1); -} else { - x_16 = x_15; -} -lean::cnstr_set(x_16, 0, x_13); -lean::cnstr_set_scalar(x_16, sizeof(void*)*1, x_9); -x_17 = x_16; -if (lean::is_scalar(x_12)) { - x_18 = lean::alloc_cnstr(0, 2, 0); -} else { - x_18 = x_12; -} -lean::cnstr_set(x_18, 0, x_17); -lean::cnstr_set(x_18, 1, x_10); -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_19, 0, x_18); -return x_19; -} -else -{ -obj* x_20; obj* x_22; obj* x_23; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; -x_20 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_22 = x_1; -} else { - lean::inc(x_20); - lean::dec(x_1); - x_22 = lean::box(0); -} -x_23 = lean::cnstr_get(x_2, 0); -if (lean::is_exclusive(x_2)) { - x_25 = x_2; -} else { - lean::inc(x_23); - lean::dec(x_2); - x_25 = lean::box(0); -} -if (lean::is_scalar(x_25)) { - x_26 = lean::alloc_cnstr(1, 1, 1); -} else { - x_26 = x_25; -} -lean::cnstr_set(x_26, 0, x_23); -lean::cnstr_set_scalar(x_26, sizeof(void*)*1, x_0); -x_27 = x_26; -if (lean::is_scalar(x_22)) { - x_28 = lean::alloc_cnstr(0, 2, 0); -} else { - x_28 = x_22; -} -lean::cnstr_set(x_28, 0, x_27); -lean::cnstr_set(x_28, 1, x_20); -x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_29, 0, x_28); -return x_29; -} -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__16(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_5; obj* x_7; obj* x_8; obj* x_9; -lean::dec(x_0); -x_5 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_7 = x_1; -} else { - lean::inc(x_5); - lean::dec(x_1); - x_7 = lean::box(0); -} -if (lean::is_scalar(x_7)) { - x_8 = lean::alloc_cnstr(0, 2, 0); -} else { - x_8 = x_7; -} -lean::cnstr_set(x_8, 0, x_2); -lean::cnstr_set(x_8, 1, x_5); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_9, 0, x_8); -return x_9; -} -else -{ -obj* x_10; obj* x_13; uint8 x_15; obj* x_17; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; -x_10 = lean::cnstr_get(x_1, 1); -lean::inc(x_10); -lean::dec(x_1); -x_13 = lean::cnstr_get(x_2, 0); -lean::inc(x_13); -x_15 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -lean::dec(x_2); -x_17 = lean::cnstr_get(x_13, 0); +obj* x_17; obj* x_19; uint8 x_22; +x_17 = lean::cnstr_get(x_16, 0); lean::inc(x_17); -lean::inc(x_13); -x_20 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(x_13, x_0, x_17, x_10); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__14___boxed), 2, 1); -lean::closure_set(x_21, 0, x_13); -x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_22, 0, x_20); -lean::closure_set(x_22, 1, x_21); -x_23 = lean::box(x_15); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__15___boxed), 2, 1); -lean::closure_set(x_24, 0, x_23); -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_25, 0, x_22); -lean::closure_set(x_25, 1, x_24); -return x_25; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__17(uint8 x_0, obj* x_1, obj* x_2) { -_start: -{ -obj* x_3; -x_3 = lean::cnstr_get(x_2, 0); -lean::inc(x_3); -if (lean::obj_tag(x_3) == 0) -{ -obj* x_5; obj* x_7; obj* x_10; obj* x_12; obj* x_15; obj* x_18; obj* x_19; obj* x_20; -x_5 = lean::cnstr_get(x_3, 0); -lean::inc(x_5); -x_7 = lean::cnstr_get(x_2, 1); -lean::inc(x_7); -lean::dec(x_2); -x_10 = lean::cnstr_get(x_3, 1); -lean::inc(x_10); -x_12 = lean::cnstr_get(x_3, 2); -lean::inc(x_12); -lean::dec(x_3); -x_15 = lean::cnstr_get(x_5, 1); -lean::inc(x_15); -lean::dec(x_5); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_18, 0, x_12); -x_19 = l___private_init_lean_parser_module_1__commands__aux___main(x_0, x_1, x_15, x_10, x_7); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_20, 0, x_19); -lean::closure_set(x_20, 1, x_18); -return x_20; -} -else -{ -obj* x_21; obj* x_23; obj* x_24; uint8 x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; -x_21 = lean::cnstr_get(x_2, 1); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_23 = x_2; -} else { - lean::inc(x_21); - lean::dec(x_2); - x_23 = lean::box(0); -} -x_24 = lean::cnstr_get(x_3, 0); -x_26 = lean::cnstr_get_scalar<uint8>(x_3, sizeof(void*)*1); -if (lean::is_exclusive(x_3)) { - x_27 = x_3; -} else { - lean::inc(x_24); - lean::dec(x_3); - x_27 = lean::box(0); -} -if (lean::is_scalar(x_27)) { - x_28 = lean::alloc_cnstr(1, 1, 1); -} else { - x_28 = x_27; -} -lean::cnstr_set(x_28, 0, x_24); -lean::cnstr_set_scalar(x_28, sizeof(void*)*1, x_26); -x_29 = x_28; -if (lean::is_scalar(x_23)) { - x_30 = lean::alloc_cnstr(0, 2, 0); -} else { - x_30 = x_23; -} -lean::cnstr_set(x_30, 0, x_29); -lean::cnstr_set(x_30, 1, x_21); -x_31 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_31, 0, x_30); -return x_31; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__18(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_8; obj* x_11; obj* x_13; obj* x_16; obj* x_19; obj* x_21; obj* x_24; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_4, 0); -lean::inc(x_6); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -lean::dec(x_1); -x_11 = lean::cnstr_get(x_2, 1); -lean::inc(x_11); -x_13 = lean::cnstr_get(x_2, 2); -lean::inc(x_13); -lean::dec(x_2); -x_16 = lean::cnstr_get(x_4, 1); -lean::inc(x_16); -lean::dec(x_4); -x_19 = lean::cnstr_get(x_6, 0); +x_19 = lean::cnstr_get(x_16, 1); lean::inc(x_19); -x_21 = lean::cnstr_get(x_6, 1); -lean::inc(x_21); -lean::dec(x_6); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_24, 0, x_13); -if (lean::obj_tag(x_21) == 0) -{ -uint8 x_25; obj* x_26; obj* x_28; -x_25 = lean::unbox(x_19); -x_26 = l___private_init_lean_parser_module_1__commands__aux___main(x_25, x_0, x_16, x_11, x_8); -lean::dec(x_0); -x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_28, 0, x_26); -lean::closure_set(x_28, 1, x_24); -return x_28; +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_29; obj* x_32; obj* x_33; obj* x_34; obj* x_35; -x_29 = lean::cnstr_get(x_21, 0); -lean::inc(x_29); -lean::dec(x_21); -x_32 = l_lean_parser_module_yield__command(x_29, x_16, x_11, x_8); -x_33 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__17___boxed), 3, 2); -lean::closure_set(x_33, 0, x_19); -lean::closure_set(x_33, 1, x_0); -x_34 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_34, 0, x_32); -lean::closure_set(x_34, 1, x_33); -x_35 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_35, 0, x_34); -lean::closure_set(x_35, 1, x_24); -return x_35; +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; } -} -else +lbl_13: { -obj* x_37; obj* x_39; obj* x_40; uint8 x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47; -lean::dec(x_0); -x_37 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_39 = x_1; -} else { - lean::inc(x_37); - lean::dec(x_1); - x_39 = lean::box(0); -} -x_40 = lean::cnstr_get(x_2, 0); -x_42 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_43 = x_2; -} else { - lean::inc(x_40); - lean::dec(x_2); - 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; -if (lean::is_scalar(x_39)) { - x_46 = lean::alloc_cnstr(0, 2, 0); -} else { - x_46 = x_39; -} -lean::cnstr_set(x_46, 0, x_45); -lean::cnstr_set(x_46, 1, x_37); -x_47 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_47, 0, x_46); -return x_47; -} -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__19(obj* x_0, obj* x_1, obj* x_2, uint8 x_3, obj* x_4, obj* x_5) { -_start: +if (lean::obj_tag(x_11) == 0) { -obj* x_6; -x_6 = lean::cnstr_get(x_5, 0); -lean::inc(x_6); -if (lean::obj_tag(x_6) == 0) -{ -obj* x_12; obj* x_14; obj* x_15; obj* x_16; +obj* x_33; +lean::dec(x_9); lean::dec(x_4); -lean::dec(x_1); -lean::dec(x_0); +lean::dec(x_3); lean::dec(x_2); -x_12 = lean::cnstr_get(x_5, 1); -if (lean::is_exclusive(x_5)) { - lean::cnstr_release(x_5, 0); - x_14 = x_5; -} else { - lean::inc(x_12); - lean::dec(x_5); - x_14 = lean::box(0); -} -if (lean::is_scalar(x_14)) { - x_15 = lean::alloc_cnstr(0, 2, 0); -} else { - x_15 = x_14; -} -lean::cnstr_set(x_15, 0, x_6); -lean::cnstr_set(x_15, 1, x_12); -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_16, 0, x_15); -return x_16; +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 { -uint8 x_17; -x_17 = lean::cnstr_get_scalar<uint8>(x_6, sizeof(void*)*1); -if (x_17 == 0) +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_18; obj* x_21; obj* x_24; obj* x_26; obj* x_28; obj* x_29; obj* x_31; obj* x_32; obj* x_34; obj* x_35; obj* x_36; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; -x_18 = lean::cnstr_get(x_5, 1); -lean::inc(x_18); -lean::dec(x_5); -x_21 = lean::cnstr_get(x_6, 0); -lean::inc(x_21); -lean::dec(x_6); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__4), 2, 1); -lean::closure_set(x_24, 0, x_18); -lean::inc(x_0); -x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_26, 0, x_0); -lean::closure_set(x_26, 1, x_24); -lean::inc(x_1); -x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4___lambda__1), 2, 1); -lean::closure_set(x_28, 0, x_1); -x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_29, 0, x_26); -lean::closure_set(x_29, 1, x_28); +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); -x_31 = 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___lambda__1), 2, 1); -lean::closure_set(x_31, 0, x_2); -x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_32, 0, x_29); -lean::closure_set(x_32, 1, x_31); -lean::inc(x_0); -x_34 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__3), 2, 1); -lean::closure_set(x_34, 0, x_0); -x_35 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_35, 0, x_32); -lean::closure_set(x_35, 1, x_34); -x_36 = lean::box(x_3); -lean::inc(x_2); -x_38 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__13___boxed), 5, 4); -lean::closure_set(x_38, 0, x_0); -lean::closure_set(x_38, 1, x_36); -lean::closure_set(x_38, 2, x_2); -lean::closure_set(x_38, 3, x_1); -x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_39, 0, x_35); -lean::closure_set(x_39, 1, x_38); -x_40 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__16), 2, 1); -lean::closure_set(x_40, 0, x_2); -x_41 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_41, 0, x_39); -lean::closure_set(x_41, 1, x_40); -x_42 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__18), 2, 1); -lean::closure_set(x_42, 0, x_4); -x_43 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_43, 0, x_41); -lean::closure_set(x_43, 1, x_42); -x_44 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__8), 2, 1); -lean::closure_set(x_44, 0, x_21); -x_45 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_45, 0, x_43); -lean::closure_set(x_45, 1, x_44); -return x_45; +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; obj* x_91; +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_finish__comment__block___closed__2; +x_91 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_90, x_89); +x_43 = x_91; +x_44 = x_56; +goto lbl_45; } else { -obj* x_50; obj* x_52; obj* x_53; obj* x_54; +obj* x_92; uint8 x_94; obj* x_95; obj* x_96; obj* x_97; obj* x_98; obj* x_99; +x_92 = lean::cnstr_get(x_70, 0); +x_94 = lean::cnstr_get_scalar<uint8>(x_70, sizeof(void*)*1); +if (lean::is_exclusive(x_70)) { + x_95 = x_70; +} else { + lean::inc(x_92); + lean::dec(x_70); + x_95 = lean::box(0); +} +if (lean::is_scalar(x_95)) { + x_96 = lean::alloc_cnstr(1, 1, 1); +} else { + x_96 = x_95; +} +lean::cnstr_set(x_96, 0, x_92); +lean::cnstr_set_scalar(x_96, sizeof(void*)*1, x_94); +x_97 = x_96; +x_98 = l_lean_parser_finish__comment__block___closed__2; +x_99 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_98, x_97); +x_43 = x_99; +x_44 = x_56; +goto lbl_45; +} +} +else +{ +obj* x_100; obj* x_103; uint8 x_105; obj* x_106; obj* x_107; obj* x_108; obj* x_109; obj* x_110; +x_100 = lean::cnstr_get(x_53, 1); +lean::inc(x_100); +lean::dec(x_53); +x_103 = lean::cnstr_get(x_54, 0); +x_105 = lean::cnstr_get_scalar<uint8>(x_54, sizeof(void*)*1); +if (lean::is_exclusive(x_54)) { + x_106 = x_54; +} else { + lean::inc(x_103); + lean::dec(x_54); + x_106 = lean::box(0); +} +if (lean::is_scalar(x_106)) { + x_107 = lean::alloc_cnstr(1, 1, 1); +} else { + x_107 = x_106; +} +lean::cnstr_set(x_107, 0, x_103); +lean::cnstr_set_scalar(x_107, sizeof(void*)*1, x_105); +x_108 = x_107; +x_109 = l_lean_parser_finish__comment__block___closed__2; +x_110 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_109, x_108); +x_43 = x_110; +x_44 = x_100; +goto lbl_45; +} +} +else +{ +obj* x_116; +lean::dec(x_9); lean::dec(x_4); -lean::dec(x_1); -lean::dec(x_0); +lean::dec(x_3); lean::dec(x_2); -x_50 = lean::cnstr_get(x_5, 1); -if (lean::is_exclusive(x_5)) { - lean::cnstr_release(x_5, 0); - x_52 = x_5; -} else { - lean::inc(x_50); - lean::dec(x_5); - x_52 = lean::box(0); +lean::dec(x_34); +x_116 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_116, 0, x_11); +lean::cnstr_set(x_116, 1, x_12); +return x_116; } -if (lean::is_scalar(x_52)) { - x_53 = lean::alloc_cnstr(0, 2, 0); -} else { - x_53 = x_52; -} -lean::cnstr_set(x_53, 0, x_6); -lean::cnstr_set(x_53, 1, x_50); -x_54 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_54, 0, x_53); -return x_54; -} -} -} -} -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) { -_start: +lbl_39: { -obj* x_5; uint8 x_6; -x_5 = lean::mk_nat_obj(0u); -x_6 = lean::nat_dec_eq(x_1, x_5); -if (x_6 == 0) +if (lean::obj_tag(x_37) == 0) { -obj* x_7; obj* x_8; obj* x_11; -x_7 = lean::mk_nat_obj(1u); -x_8 = lean::nat_sub(x_1, x_7); +obj* x_117; obj* x_119; obj* x_121; +x_117 = lean::cnstr_get(x_37, 0); +lean::inc(x_117); +x_119 = lean::cnstr_get(x_117, 0); +lean::inc(x_119); +x_121 = lean::cnstr_get(x_119, 1); +lean::inc(x_121); +if (lean::obj_tag(x_121) == 0) +{ +obj* x_123; obj* x_125; obj* x_128; obj* x_131; uint8 x_134; obj* x_135; obj* x_137; obj* x_139; obj* x_141; obj* x_142; obj* x_143; obj* x_144; +x_123 = lean::cnstr_get(x_37, 1); +lean::inc(x_123); +x_125 = lean::cnstr_get(x_37, 2); +lean::inc(x_125); +lean::dec(x_37); +x_128 = lean::cnstr_get(x_117, 1); +lean::inc(x_128); +lean::dec(x_117); +x_131 = lean::cnstr_get(x_119, 0); +lean::inc(x_131); +lean::dec(x_119); +x_134 = lean::unbox(x_131); +x_135 = l___private_init_lean_parser_module_1__commands__aux___main(x_134, x_9, x_128, x_3, x_123, x_38); +lean::dec(x_9); +x_137 = lean::cnstr_get(x_135, 0); +x_139 = lean::cnstr_get(x_135, 1); +if (lean::is_exclusive(x_135)) { + x_141 = x_135; +} else { + lean::inc(x_137); + lean::inc(x_139); + lean::dec(x_135); + x_141 = lean::box(0); +} +x_142 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_125, x_137); +x_143 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_34, x_142); +if (lean::is_scalar(x_141)) { + x_144 = lean::alloc_cnstr(0, 2, 0); +} else { + x_144 = x_141; +} +lean::cnstr_set(x_144, 0, x_143); +lean::cnstr_set(x_144, 1, x_139); +return x_144; +} +else +{ +obj* x_146; obj* x_148; obj* x_151; obj* x_154; obj* x_157; obj* x_158; +lean::dec(x_121); +x_146 = lean::cnstr_get(x_37, 1); +lean::inc(x_146); +x_148 = lean::cnstr_get(x_37, 2); +lean::inc(x_148); +lean::dec(x_37); +x_151 = lean::cnstr_get(x_117, 1); +lean::inc(x_151); +lean::dec(x_117); +x_154 = lean::cnstr_get(x_119, 0); +lean::inc(x_154); +lean::dec(x_119); +x_157 = l_lean_parser_module_yield__command___rarg(x_151, x_3, x_146, x_38); +x_158 = lean::cnstr_get(x_157, 0); +lean::inc(x_158); +if (lean::obj_tag(x_158) == 0) +{ +obj* x_160; obj* x_162; obj* x_165; obj* x_167; obj* x_170; uint8 x_173; obj* x_174; obj* x_176; obj* x_178; obj* x_180; obj* x_181; obj* x_182; obj* x_183; obj* x_184; +x_160 = lean::cnstr_get(x_158, 0); +lean::inc(x_160); +x_162 = lean::cnstr_get(x_157, 1); +lean::inc(x_162); +lean::dec(x_157); +x_165 = lean::cnstr_get(x_158, 1); +lean::inc(x_165); +x_167 = lean::cnstr_get(x_158, 2); +lean::inc(x_167); +lean::dec(x_158); +x_170 = lean::cnstr_get(x_160, 1); +lean::inc(x_170); +lean::dec(x_160); +x_173 = lean::unbox(x_154); +x_174 = l___private_init_lean_parser_module_1__commands__aux___main(x_173, x_9, x_170, x_3, x_165, x_162); +lean::dec(x_9); +x_176 = lean::cnstr_get(x_174, 0); +x_178 = lean::cnstr_get(x_174, 1); +if (lean::is_exclusive(x_174)) { + x_180 = x_174; +} else { + lean::inc(x_176); + lean::inc(x_178); + lean::dec(x_174); + x_180 = lean::box(0); +} +x_181 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_167, x_176); +x_182 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_148, x_181); +x_183 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_34, x_182); +if (lean::is_scalar(x_180)) { + x_184 = lean::alloc_cnstr(0, 2, 0); +} else { + x_184 = x_180; +} +lean::cnstr_set(x_184, 0, x_183); +lean::cnstr_set(x_184, 1, x_178); +return x_184; +} +else +{ +obj* x_188; obj* x_190; obj* x_191; uint8 x_193; obj* x_194; obj* x_195; obj* x_196; obj* x_197; obj* x_198; obj* x_199; +lean::dec(x_9); +lean::dec(x_3); +lean::dec(x_154); +x_188 = lean::cnstr_get(x_157, 1); +if (lean::is_exclusive(x_157)) { + lean::cnstr_release(x_157, 0); + x_190 = x_157; +} else { + lean::inc(x_188); + lean::dec(x_157); + x_190 = lean::box(0); +} +x_191 = lean::cnstr_get(x_158, 0); +x_193 = lean::cnstr_get_scalar<uint8>(x_158, sizeof(void*)*1); +if (lean::is_exclusive(x_158)) { + x_194 = x_158; +} else { + lean::inc(x_191); + lean::dec(x_158); + x_194 = lean::box(0); +} +if (lean::is_scalar(x_194)) { + x_195 = lean::alloc_cnstr(1, 1, 1); +} else { + x_195 = x_194; +} +lean::cnstr_set(x_195, 0, x_191); +lean::cnstr_set_scalar(x_195, sizeof(void*)*1, x_193); +x_196 = x_195; +x_197 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_148, x_196); +x_198 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_34, x_197); +if (lean::is_scalar(x_190)) { + x_199 = lean::alloc_cnstr(0, 2, 0); +} else { + x_199 = x_190; +} +lean::cnstr_set(x_199, 0, x_198); +lean::cnstr_set(x_199, 1, x_188); +return x_199; +} +} +} +else +{ +obj* x_202; uint8 x_204; obj* x_205; obj* x_206; obj* x_207; obj* x_208; obj* x_209; +lean::dec(x_9); +lean::dec(x_3); +x_202 = lean::cnstr_get(x_37, 0); +x_204 = lean::cnstr_get_scalar<uint8>(x_37, sizeof(void*)*1); +if (lean::is_exclusive(x_37)) { + x_205 = x_37; +} else { + lean::inc(x_202); + lean::dec(x_37); + x_205 = lean::box(0); +} +if (lean::is_scalar(x_205)) { + x_206 = lean::alloc_cnstr(1, 1, 1); +} else { + x_206 = x_205; +} +lean::cnstr_set(x_206, 0, x_202); +lean::cnstr_set_scalar(x_206, sizeof(void*)*1, x_204); +x_207 = x_206; +x_208 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_34, x_207); +x_209 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_209, 0, x_208); +lean::cnstr_set(x_209, 1, x_38); +return x_209; +} +} +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_211; uint8 x_213; obj* x_215; obj* x_219; obj* x_220; +x_211 = lean::cnstr_get(x_40, 0); +lean::inc(x_211); +x_213 = lean::cnstr_get_scalar<uint8>(x_40, sizeof(void*)*1); +lean::dec(x_40); +x_215 = lean::cnstr_get(x_211, 0); +lean::inc(x_215); +lean::inc(x_3); +lean::inc(x_211); +x_219 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(x_211, x_2, x_3, x_215, x_41); +x_220 = lean::cnstr_get(x_219, 0); +lean::inc(x_220); +if (lean::obj_tag(x_220) == 0) +{ +obj* x_222; obj* x_224; obj* x_226; obj* x_227; obj* x_229; obj* x_231; obj* x_232; obj* x_234; obj* x_235; obj* x_238; obj* x_240; uint8 x_241; obj* x_242; obj* x_243; obj* x_244; obj* x_245; obj* x_246; obj* x_247; +x_222 = lean::cnstr_get(x_220, 0); +lean::inc(x_222); +x_224 = lean::cnstr_get(x_219, 1); +if (lean::is_exclusive(x_219)) { + lean::cnstr_release(x_219, 0); + x_226 = x_219; +} else { + lean::inc(x_224); + lean::dec(x_219); + x_226 = lean::box(0); +} +x_227 = lean::cnstr_get(x_220, 1); +x_229 = lean::cnstr_get(x_220, 2); +if (lean::is_exclusive(x_220)) { + lean::cnstr_release(x_220, 0); + x_231 = x_220; +} else { + lean::inc(x_227); + lean::inc(x_229); + lean::dec(x_220); + x_231 = lean::box(0); +} +x_232 = lean::cnstr_get(x_222, 1); +if (lean::is_exclusive(x_222)) { + lean::cnstr_release(x_222, 0); + x_234 = x_222; +} else { + lean::inc(x_232); + lean::dec(x_222); + x_234 = lean::box(0); +} +x_235 = lean::cnstr_get(x_211, 3); +lean::inc(x_235); +lean::dec(x_211); +x_238 = l_option_get___main___at_lean_parser_run___spec__2(x_235); +lean::dec(x_235); +x_240 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_240, 0, x_238); +x_241 = 1; +x_242 = lean::box(x_241); +if (lean::is_scalar(x_234)) { + x_243 = lean::alloc_cnstr(0, 2, 0); +} else { + x_243 = x_234; +} +lean::cnstr_set(x_243, 0, x_242); +lean::cnstr_set(x_243, 1, x_240); +if (lean::is_scalar(x_226)) { + x_244 = lean::alloc_cnstr(0, 2, 0); +} else { + x_244 = x_226; +} +lean::cnstr_set(x_244, 0, x_243); +lean::cnstr_set(x_244, 1, x_232); +x_245 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; +if (lean::is_scalar(x_231)) { + x_246 = lean::alloc_cnstr(0, 3, 0); +} else { + x_246 = x_231; +} +lean::cnstr_set(x_246, 0, x_244); +lean::cnstr_set(x_246, 1, x_227); +lean::cnstr_set(x_246, 2, x_245); +x_247 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_229, x_246); +if (lean::obj_tag(x_247) == 0) +{ +x_37 = x_247; +x_38 = x_224; +goto lbl_39; +} +else +{ +uint8 x_248; +x_248 = lean::cnstr_get_scalar<uint8>(x_247, sizeof(void*)*1); +if (x_213 == 0) +{ +obj* x_249; obj* x_251; obj* x_252; obj* x_253; +x_249 = lean::cnstr_get(x_247, 0); +if (lean::is_exclusive(x_247)) { + x_251 = x_247; +} else { + lean::inc(x_249); + lean::dec(x_247); + x_251 = lean::box(0); +} +if (lean::is_scalar(x_251)) { + x_252 = lean::alloc_cnstr(1, 1, 1); +} else { + x_252 = x_251; +} +lean::cnstr_set(x_252, 0, x_249); +lean::cnstr_set_scalar(x_252, sizeof(void*)*1, x_248); +x_253 = x_252; +x_37 = x_253; +x_38 = x_224; +goto lbl_39; +} +else +{ +obj* x_254; obj* x_256; obj* x_257; obj* x_258; +x_254 = lean::cnstr_get(x_247, 0); +if (lean::is_exclusive(x_247)) { + x_256 = x_247; +} else { + lean::inc(x_254); + lean::dec(x_247); + x_256 = lean::box(0); +} +if (lean::is_scalar(x_256)) { + x_257 = lean::alloc_cnstr(1, 1, 1); +} else { + x_257 = x_256; +} +lean::cnstr_set(x_257, 0, x_254); +lean::cnstr_set_scalar(x_257, sizeof(void*)*1, x_213); +x_258 = x_257; +x_37 = x_258; +x_38 = x_224; +goto lbl_39; +} +} +} +else +{ +uint8 x_260; +lean::dec(x_211); +x_260 = lean::cnstr_get_scalar<uint8>(x_220, sizeof(void*)*1); +if (x_213 == 0) +{ +obj* x_261; obj* x_264; obj* x_266; obj* x_267; obj* x_268; +x_261 = lean::cnstr_get(x_219, 1); +lean::inc(x_261); +lean::dec(x_219); +x_264 = lean::cnstr_get(x_220, 0); +if (lean::is_exclusive(x_220)) { + x_266 = x_220; +} else { + lean::inc(x_264); + lean::dec(x_220); + x_266 = lean::box(0); +} +if (lean::is_scalar(x_266)) { + x_267 = lean::alloc_cnstr(1, 1, 1); +} else { + x_267 = x_266; +} +lean::cnstr_set(x_267, 0, x_264); +lean::cnstr_set_scalar(x_267, sizeof(void*)*1, x_260); +x_268 = x_267; +x_37 = x_268; +x_38 = x_261; +goto lbl_39; +} +else +{ +obj* x_269; obj* x_272; obj* x_274; obj* x_275; obj* x_276; +x_269 = lean::cnstr_get(x_219, 1); +lean::inc(x_269); +lean::dec(x_219); +x_272 = lean::cnstr_get(x_220, 0); +if (lean::is_exclusive(x_220)) { + x_274 = x_220; +} else { + lean::inc(x_272); + lean::dec(x_220); + x_274 = lean::box(0); +} +if (lean::is_scalar(x_274)) { + x_275 = lean::alloc_cnstr(1, 1, 1); +} else { + x_275 = x_274; +} +lean::cnstr_set(x_275, 0, x_272); +lean::cnstr_set_scalar(x_275, sizeof(void*)*1, x_213); +x_276 = x_275; +x_37 = x_276; +x_38 = x_269; +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_278; uint8 x_280; obj* x_281; obj* x_282; +x_278 = lean::cnstr_get(x_43, 0); +lean::inc(x_278); +x_280 = lean::cnstr_get_scalar<uint8>(x_43, sizeof(void*)*1); +if (x_280 == 0) +{ +lean::dec(x_43); +if (x_10 == 0) +{ +obj* x_285; obj* x_287; obj* x_288; obj* x_289; +x_285 = lean::box(0); +lean::inc(x_2); +x_287 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_287, 0, x_285); +lean::cnstr_set(x_287, 1, x_2); +x_288 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; +x_289 = lean::alloc_cnstr(0, 3, 0); +lean::cnstr_set(x_289, 0, x_287); +lean::cnstr_set(x_289, 1, x_4); +lean::cnstr_set(x_289, 2, x_288); +x_281 = x_289; +x_282 = x_44; +goto lbl_283; +} +else +{ +obj* x_290; obj* x_291; obj* x_292; obj* x_294; obj* x_297; obj* x_298; obj* x_300; obj* x_303; obj* x_304; +x_290 = l_string_join___closed__1; +x_291 = l_lean_parser_command_parser___rarg___closed__1; +x_292 = l_lean_parser_parsec__t_monad__fail___rarg___closed__1; +lean::inc(x_4); +x_294 = lean::alloc_cnstr(0, 4, 0); +lean::cnstr_set(x_294, 0, x_4); +lean::cnstr_set(x_294, 1, x_290); +lean::cnstr_set(x_294, 2, x_291); +lean::cnstr_set(x_294, 3, x_292); lean::inc(x_3); lean::inc(x_2); -x_11 = l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(x_2, x_3, x_4); -if (x_0 == 0) -{ -uint8 x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; -x_12 = 1; -x_13 = l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1; -x_14 = lean::box(x_12); -x_15 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__19___boxed), 6, 5); -lean::closure_set(x_15, 0, x_13); -lean::closure_set(x_15, 1, x_3); -lean::closure_set(x_15, 2, x_2); -lean::closure_set(x_15, 3, x_14); -lean::closure_set(x_15, 4, x_8); -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_16, 0, x_11); -lean::closure_set(x_16, 1, x_15); -return x_16; -} -else -{ -uint8 x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; -x_17 = 0; -x_18 = l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1; -x_19 = lean::box(x_17); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__19___boxed), 6, 5); -lean::closure_set(x_20, 0, x_18); -lean::closure_set(x_20, 1, x_3); -lean::closure_set(x_20, 2, x_2); -lean::closure_set(x_20, 3, x_19); -lean::closure_set(x_20, 4, x_8); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_21, 0, x_11); -lean::closure_set(x_21, 1, x_20); -return x_21; +x_297 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__4(x_294, x_2, x_3, x_4, x_44); +x_298 = lean::cnstr_get(x_297, 0); +lean::inc(x_298); +x_300 = lean::cnstr_get(x_297, 1); +lean::inc(x_300); +lean::dec(x_297); +x_303 = l_lean_parser_finish__comment__block___closed__2; +x_304 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_303, x_298); +x_281 = x_304; +x_282 = x_300; +goto lbl_283; } } else { -obj* x_22; obj* x_23; obj* x_24; obj* x_25; -x_22 = lean::box(0); -x_23 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1; -x_24 = l_mjoin___rarg___closed__1; -x_25 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_23, x_24, x_22, x_22, x_2, x_3, x_4); +lean::dec(x_4); +lean::dec(x_278); +x_40 = x_43; +x_41 = x_44; +goto lbl_42; +} +lbl_283: +{ +if (lean::obj_tag(x_281) == 0) +{ +obj* x_307; obj* x_309; obj* x_311; obj* x_314; obj* x_315; obj* x_317; obj* x_320; obj* x_321; obj* x_323; obj* x_325; obj* x_329; obj* x_330; +x_307 = lean::cnstr_get(x_281, 0); +lean::inc(x_307); +x_309 = lean::cnstr_get(x_281, 1); +lean::inc(x_309); +x_311 = lean::cnstr_get(x_281, 2); +lean::inc(x_311); +lean::dec(x_281); +x_317 = lean::cnstr_get(x_307, 1); +lean::inc(x_317); +lean::dec(x_307); +x_323 = lean::cnstr_get(x_3, 0); +lean::inc(x_323); +x_325 = lean::cnstr_get(x_323, 0); +lean::inc(x_325); +lean::dec(x_323); +lean::inc(x_309); +x_329 = l_lean_parser_token(x_325, x_309, x_282); +x_330 = lean::cnstr_get(x_329, 0); +lean::inc(x_330); +if (lean::obj_tag(x_330) == 0) +{ +obj* x_332; obj* x_334; obj* x_335; obj* x_337; obj* x_339; obj* x_341; obj* x_343; obj* x_344; obj* x_345; obj* x_346; +x_332 = lean::cnstr_get(x_329, 1); +if (lean::is_exclusive(x_329)) { + lean::cnstr_release(x_329, 0); + x_334 = x_329; +} else { + lean::inc(x_332); + lean::dec(x_329); + x_334 = lean::box(0); +} +x_335 = lean::cnstr_get(x_330, 0); +x_337 = lean::cnstr_get(x_330, 1); +x_339 = lean::cnstr_get(x_330, 2); +if (lean::is_exclusive(x_330)) { + x_341 = x_330; +} else { + lean::inc(x_335); + lean::inc(x_337); + lean::inc(x_339); + lean::dec(x_330); + x_341 = lean::box(0); +} +lean::inc(x_317); +if (lean::is_scalar(x_334)) { + x_343 = lean::alloc_cnstr(0, 2, 0); +} else { + x_343 = x_334; +} +lean::cnstr_set(x_343, 0, x_335); +lean::cnstr_set(x_343, 1, x_317); +x_344 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; +if (lean::is_scalar(x_341)) { + x_345 = lean::alloc_cnstr(0, 3, 0); +} else { + x_345 = x_341; +} +lean::cnstr_set(x_345, 0, x_343); +lean::cnstr_set(x_345, 1, x_337); +lean::cnstr_set(x_345, 2, x_344); +x_346 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_339, x_345); +if (lean::obj_tag(x_346) == 0) +{ +obj* x_347; obj* x_349; obj* x_351; obj* x_353; obj* x_354; obj* x_356; obj* x_357; obj* x_358; obj* x_359; obj* x_360; obj* x_361; +x_347 = lean::cnstr_get(x_346, 0); +x_349 = lean::cnstr_get(x_346, 1); +x_351 = lean::cnstr_get(x_346, 2); +if (lean::is_exclusive(x_346)) { + x_353 = x_346; +} else { + lean::inc(x_347); + lean::inc(x_349); + lean::inc(x_351); + lean::dec(x_346); + x_353 = lean::box(0); +} +x_354 = lean::cnstr_get(x_347, 1); +if (lean::is_exclusive(x_347)) { + lean::cnstr_release(x_347, 0); + x_356 = x_347; +} else { + lean::inc(x_354); + lean::dec(x_347); + x_356 = lean::box(0); +} +x_357 = lean::box(0); +if (lean::is_scalar(x_356)) { + x_358 = lean::alloc_cnstr(0, 2, 0); +} else { + x_358 = x_356; +} +lean::cnstr_set(x_358, 0, x_357); +lean::cnstr_set(x_358, 1, x_354); +if (lean::is_scalar(x_353)) { + x_359 = lean::alloc_cnstr(0, 3, 0); +} else { + x_359 = x_353; +} +lean::cnstr_set(x_359, 0, x_358); +lean::cnstr_set(x_359, 1, x_349); +lean::cnstr_set(x_359, 2, x_344); +x_360 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_351, x_359); +x_361 = l_lean_parser_parsec__t_try__mk__res___rarg(x_360); +x_320 = x_361; +x_321 = x_332; +goto lbl_322; +} +else +{ +obj* x_362; obj* x_364; uint8 x_365; obj* x_366; obj* x_367; +x_362 = lean::cnstr_get(x_346, 0); +if (lean::is_exclusive(x_346)) { + x_364 = x_346; +} else { + lean::inc(x_362); + lean::dec(x_346); + x_364 = lean::box(0); +} +x_365 = 0; +if (lean::is_scalar(x_364)) { + x_366 = lean::alloc_cnstr(1, 1, 1); +} else { + x_366 = x_364; +} +lean::cnstr_set(x_366, 0, x_362); +lean::cnstr_set_scalar(x_366, sizeof(void*)*1, x_365); +x_367 = x_366; +x_320 = x_367; +x_321 = x_332; +goto lbl_322; +} +} +else +{ +obj* x_368; obj* x_371; obj* x_373; uint8 x_374; obj* x_375; obj* x_376; +x_368 = lean::cnstr_get(x_329, 1); +lean::inc(x_368); +lean::dec(x_329); +x_371 = lean::cnstr_get(x_330, 0); +if (lean::is_exclusive(x_330)) { + x_373 = x_330; +} else { + lean::inc(x_371); + lean::dec(x_330); + x_373 = lean::box(0); +} +x_374 = 0; +if (lean::is_scalar(x_373)) { + x_375 = lean::alloc_cnstr(1, 1, 1); +} else { + x_375 = x_373; +} +lean::cnstr_set(x_375, 0, x_371); +lean::cnstr_set_scalar(x_375, sizeof(void*)*1, x_374); +x_376 = x_375; +x_320 = x_376; +x_321 = x_368; +goto lbl_322; +} +lbl_316: +{ +if (lean::obj_tag(x_314) == 0) +{ +obj* x_377; obj* x_379; obj* x_381; obj* x_383; obj* x_384; obj* x_386; obj* x_387; obj* x_388; obj* x_389; obj* x_390; obj* x_391; obj* x_392; obj* x_393; +x_377 = lean::cnstr_get(x_314, 0); +x_379 = lean::cnstr_get(x_314, 1); +x_381 = lean::cnstr_get(x_314, 2); +if (lean::is_exclusive(x_314)) { + x_383 = x_314; +} else { + lean::inc(x_377); + lean::inc(x_379); + lean::inc(x_381); + lean::dec(x_314); + x_383 = lean::box(0); +} +x_384 = lean::cnstr_get(x_377, 1); +if (lean::is_exclusive(x_377)) { + lean::cnstr_release(x_377, 0); + x_386 = x_377; +} else { + lean::inc(x_384); + lean::dec(x_377); + x_386 = lean::box(0); +} +x_387 = l___private_init_lean_parser_module_1__commands__aux___main___closed__1; +if (lean::is_scalar(x_386)) { + x_388 = lean::alloc_cnstr(0, 2, 0); +} else { + x_388 = x_386; +} +lean::cnstr_set(x_388, 0, x_387); +lean::cnstr_set(x_388, 1, x_384); +x_389 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; +if (lean::is_scalar(x_383)) { + x_390 = lean::alloc_cnstr(0, 3, 0); +} else { + x_390 = x_383; +} +lean::cnstr_set(x_390, 0, x_388); +lean::cnstr_set(x_390, 1, x_379); +lean::cnstr_set(x_390, 2, x_389); +x_391 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_381, x_390); +x_392 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_311, x_391); +x_393 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_278, x_392); +x_40 = x_393; +x_41 = x_315; +goto lbl_42; +} +else +{ +obj* x_394; uint8 x_396; obj* x_397; obj* x_398; obj* x_399; obj* x_400; obj* x_401; +x_394 = lean::cnstr_get(x_314, 0); +x_396 = lean::cnstr_get_scalar<uint8>(x_314, sizeof(void*)*1); +if (lean::is_exclusive(x_314)) { + x_397 = x_314; +} else { + lean::inc(x_394); + lean::dec(x_314); + x_397 = lean::box(0); +} +if (lean::is_scalar(x_397)) { + x_398 = lean::alloc_cnstr(1, 1, 1); +} else { + x_398 = x_397; +} +lean::cnstr_set(x_398, 0, x_394); +lean::cnstr_set_scalar(x_398, sizeof(void*)*1, x_396); +x_399 = x_398; +x_400 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_311, x_399); +x_401 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_278, x_400); +x_40 = x_401; +x_41 = x_315; +goto lbl_42; +} +} +lbl_322: +{ +if (lean::obj_tag(x_320) == 0) +{ +lean::dec(x_309); +lean::dec(x_317); +x_314 = x_320; +x_315 = x_321; +goto lbl_316; +} +else +{ +uint8 x_404; +x_404 = lean::cnstr_get_scalar<uint8>(x_320, sizeof(void*)*1); +if (x_404 == 0) +{ +obj* x_405; obj* x_408; obj* x_409; +x_405 = lean::cnstr_get(x_320, 0); +lean::inc(x_405); +lean::dec(x_320); +x_408 = l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3(x_317, x_3, x_309, x_321); +x_409 = lean::cnstr_get(x_408, 0); +lean::inc(x_409); +if (lean::obj_tag(x_409) == 0) +{ +obj* x_411; obj* x_413; obj* x_416; obj* x_418; obj* x_420; obj* x_421; obj* x_423; obj* x_424; obj* x_425; obj* x_426; obj* x_427; obj* x_428; obj* x_429; +x_411 = lean::cnstr_get(x_409, 0); +lean::inc(x_411); +x_413 = lean::cnstr_get(x_408, 1); +lean::inc(x_413); +lean::dec(x_408); +x_416 = lean::cnstr_get(x_409, 1); +x_418 = lean::cnstr_get(x_409, 2); +if (lean::is_exclusive(x_409)) { + lean::cnstr_release(x_409, 0); + x_420 = x_409; +} else { + lean::inc(x_416); + lean::inc(x_418); + lean::dec(x_409); + x_420 = lean::box(0); +} +x_421 = lean::cnstr_get(x_411, 1); +if (lean::is_exclusive(x_411)) { + lean::cnstr_release(x_411, 0); + x_423 = x_411; +} else { + lean::inc(x_421); + lean::dec(x_411); + x_423 = lean::box(0); +} +x_424 = lean::box(0); +if (lean::is_scalar(x_423)) { + x_425 = lean::alloc_cnstr(0, 2, 0); +} else { + x_425 = x_423; +} +lean::cnstr_set(x_425, 0, x_424); +lean::cnstr_set(x_425, 1, x_421); +x_426 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; +if (lean::is_scalar(x_420)) { + x_427 = lean::alloc_cnstr(0, 3, 0); +} else { + x_427 = x_420; +} +lean::cnstr_set(x_427, 0, x_425); +lean::cnstr_set(x_427, 1, x_416); +lean::cnstr_set(x_427, 2, x_426); +x_428 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_418, x_427); +x_429 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_405, x_428); +x_314 = x_429; +x_315 = x_413; +goto lbl_316; +} +else +{ +obj* x_430; obj* x_433; uint8 x_435; obj* x_436; obj* x_437; obj* x_438; obj* x_439; +x_430 = lean::cnstr_get(x_408, 1); +lean::inc(x_430); +lean::dec(x_408); +x_433 = lean::cnstr_get(x_409, 0); +x_435 = lean::cnstr_get_scalar<uint8>(x_409, sizeof(void*)*1); +if (lean::is_exclusive(x_409)) { + x_436 = x_409; +} else { + lean::inc(x_433); + lean::dec(x_409); + x_436 = lean::box(0); +} +if (lean::is_scalar(x_436)) { + x_437 = lean::alloc_cnstr(1, 1, 1); +} else { + x_437 = x_436; +} +lean::cnstr_set(x_437, 0, x_433); +lean::cnstr_set_scalar(x_437, sizeof(void*)*1, x_435); +x_438 = x_437; +x_439 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_405, x_438); +x_314 = x_439; +x_315 = x_430; +goto lbl_316; +} +} +else +{ +lean::dec(x_309); +lean::dec(x_317); +x_314 = x_320; +x_315 = x_321; +goto lbl_316; +} +} +} +} +else +{ +obj* x_442; uint8 x_444; obj* x_445; obj* x_446; obj* x_447; obj* x_448; +x_442 = lean::cnstr_get(x_281, 0); +x_444 = lean::cnstr_get_scalar<uint8>(x_281, sizeof(void*)*1); +if (lean::is_exclusive(x_281)) { + x_445 = x_281; +} else { + lean::inc(x_442); + lean::dec(x_281); + x_445 = lean::box(0); +} +if (lean::is_scalar(x_445)) { + x_446 = lean::alloc_cnstr(1, 1, 1); +} else { + x_446 = x_445; +} +lean::cnstr_set(x_446, 0, x_442); +lean::cnstr_set_scalar(x_446, sizeof(void*)*1, x_444); +x_447 = x_446; +x_448 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_278, x_447); +x_40 = x_448; +x_41 = x_282; +goto lbl_42; +} +} +} +} +} +} +} +else +{ +obj* x_449; obj* x_450; obj* x_451; obj* x_452; +x_449 = lean::box(0); +x_450 = l___private_init_lean_parser_combinators_1__many1__aux___main___rarg___closed__1; +x_451 = l_mjoin___rarg___closed__1; +x_452 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_module_1__commands__aux___main___spec__1___rarg(x_450, x_451, x_449, x_449, x_2, x_3, x_4, x_5); +lean::dec(x_4); lean::dec(x_3); -return x_25; +lean::dec(x_2); +return x_452; } } } -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* 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_7; -x_7 = 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); +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); -return x_7; +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) { @@ -6596,326 +4370,83 @@ return x_1; } } -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__13___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) { +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: { -uint8 x_5; obj* x_6; -x_5 = lean::unbox(x_1); -x_6 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__13(x_0, x_5, x_2, x_3, x_4); -return x_6; -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__14___boxed(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__14(x_0, x_1); -lean::dec(x_0); -return x_2; -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__15___boxed(obj* x_0, obj* x_1) { -_start: -{ -uint8 x_2; obj* x_3; -x_2 = lean::unbox(x_0); -x_3 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__15(x_2, x_1); -return x_3; -} -} -obj* l___private_init_lean_parser_module_1__commands__aux___main___lambda__17___boxed(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -uint8 x_3; obj* x_4; -x_3 = lean::unbox(x_0); -x_4 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__17(x_3, x_1, x_2); +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___private_init_lean_parser_module_1__commands__aux___main___lambda__19___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* 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_3); -x_7 = l___private_init_lean_parser_module_1__commands__aux___main___lambda__19(x_0, x_1, x_2, x_6, x_4, x_5); +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___main___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) { +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: { -uint8 x_5; obj* x_6; -x_5 = lean::unbox(x_0); -x_6 = l___private_init_lean_parser_module_1__commands__aux___main(x_5, x_1, x_2, x_3, x_4); -lean::dec(x_1); +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(uint8 x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) { +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: { -obj* x_5; -x_5 = l___private_init_lean_parser_module_1__commands__aux___main(x_0, x_1, x_2, x_3, x_4); -return x_5; -} -} -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) { -_start: -{ -uint8 x_5; obj* x_6; -x_5 = lean::unbox(x_0); -x_6 = l___private_init_lean_parser_module_1__commands__aux(x_5, x_1, x_2, x_3, x_4); +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_6; +return x_7; } } -obj* l_lean_parser_module_commands_parser___lambda__1(obj* x_0, obj* x_1) { +obj* l_lean_parser_module_commands_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { _start: { -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_13; obj* x_14; obj* x_16; obj* x_18; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_8 = x_1; +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_6); - lean::dec(x_1); - x_8 = lean::box(0); -} -x_9 = lean::cnstr_get(x_2, 1); -x_11 = lean::cnstr_get(x_2, 2); -if (lean::is_exclusive(x_2)) { - lean::cnstr_release(x_2, 0); - x_13 = x_2; -} else { - lean::inc(x_9); lean::inc(x_11); - lean::dec(x_2); - x_13 = lean::box(0); + lean::inc(x_13); + lean::dec(x_9); + x_15 = lean::box(0); } -x_14 = lean::cnstr_get(x_4, 0); -x_16 = lean::cnstr_get(x_4, 1); -if (lean::is_exclusive(x_4)) { - x_18 = x_4; +x_16 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___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 { - lean::inc(x_14); - lean::inc(x_16); - lean::dec(x_4); - x_18 = lean::box(0); + x_18 = x_15; } -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_19, 0, x_11); -x_20 = lean::string_iterator_remaining(x_14); -lean::dec(x_14); -if (lean::is_scalar(x_18)) { - x_22 = lean::alloc_cnstr(0, 2, 0); -} else { - x_22 = x_18; -} -lean::cnstr_set(x_22, 0, x_20); -lean::cnstr_set(x_22, 1, x_16); -if (lean::is_scalar(x_13)) { - x_23 = lean::alloc_cnstr(0, 3, 0); -} else { - x_23 = x_13; -} -lean::cnstr_set(x_23, 0, x_22); -lean::cnstr_set(x_23, 1, x_9); -lean::cnstr_set(x_23, 2, x_0); -if (lean::is_scalar(x_8)) { - x_24 = lean::alloc_cnstr(0, 2, 0); -} else { - x_24 = x_8; -} -lean::cnstr_set(x_24, 0, x_23); -lean::cnstr_set(x_24, 1, x_6); -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_25, 0, x_24); -x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_26, 0, x_25); -lean::closure_set(x_26, 1, x_19); -return x_26; -} -else -{ -obj* x_28; obj* x_30; obj* x_31; uint8 x_33; obj* x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; -lean::dec(x_0); -x_28 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_30 = x_1; -} else { - lean::inc(x_28); - lean::dec(x_1); - x_30 = lean::box(0); -} -x_31 = lean::cnstr_get(x_2, 0); -x_33 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_34 = x_2; -} else { - lean::inc(x_31); - lean::dec(x_2); - x_34 = lean::box(0); -} -if (lean::is_scalar(x_34)) { - x_35 = lean::alloc_cnstr(1, 1, 1); -} else { - x_35 = x_34; -} -lean::cnstr_set(x_35, 0, x_31); -lean::cnstr_set_scalar(x_35, sizeof(void*)*1, x_33); -x_36 = x_35; -if (lean::is_scalar(x_30)) { - x_37 = lean::alloc_cnstr(0, 2, 0); -} else { - x_37 = x_30; -} -lean::cnstr_set(x_37, 0, x_36); -lean::cnstr_set(x_37, 1, x_28); -x_38 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_38, 0, x_37); -return x_38; -} -} -} -obj* l_lean_parser_module_commands_parser___lambda__2(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_8; obj* x_10; obj* x_13; obj* x_15; obj* x_18; obj* x_19; obj* x_20; uint8 x_22; obj* x_23; obj* x_25; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -lean::inc(x_5); -lean::dec(x_0); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -x_10 = lean::cnstr_get(x_1, 2); -lean::inc(x_10); -lean::dec(x_1); -x_13 = lean::cnstr_get(x_3, 0); -lean::inc(x_13); -x_15 = lean::cnstr_get(x_3, 1); -lean::inc(x_15); -lean::dec(x_3); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_18, 0, x_10); -x_19 = lean::mk_nat_obj(1u); -x_20 = lean::nat_add(x_13, x_19); -lean::dec(x_13); -x_22 = 0; -x_23 = l___private_init_lean_parser_module_1__commands__aux___main(x_22, x_20, x_15, x_8, x_5); -lean::dec(x_20); -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_25, 0, x_23); -lean::closure_set(x_25, 1, x_18); -return x_25; -} -else -{ -obj* x_26; obj* x_28; obj* x_29; uint8 x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; -x_26 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_28 = x_0; -} else { - lean::inc(x_26); - lean::dec(x_0); - x_28 = lean::box(0); -} -x_29 = lean::cnstr_get(x_1, 0); -x_31 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_32 = x_1; -} else { - lean::inc(x_29); - lean::dec(x_1); - x_32 = lean::box(0); -} -if (lean::is_scalar(x_32)) { - x_33 = lean::alloc_cnstr(1, 1, 1); -} else { - x_33 = x_32; -} -lean::cnstr_set(x_33, 0, x_29); -lean::cnstr_set_scalar(x_33, sizeof(void*)*1, x_31); -x_34 = x_33; -if (lean::is_scalar(x_28)) { - x_35 = lean::alloc_cnstr(0, 2, 0); -} else { - x_35 = x_28; -} -lean::cnstr_set(x_35, 0, x_34); -lean::cnstr_set(x_35, 1, x_26); -x_36 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_36, 0, x_35); -return x_36; -} -} -} -obj* _init_l_lean_parser_module_commands_parser___closed__1() { -_start: -{ -obj* x_0; obj* x_1; obj* x_2; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_id___rarg___boxed), 1, 0); -x_1 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_1, 0, x_0); -x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_commands_parser___lambda__1), 2, 1); -lean::closure_set(x_2, 0, x_1); -return x_2; -} -} -obj* _init_l_lean_parser_module_commands_parser___closed__2() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_commands_parser___lambda__2), 1, 0); -return x_0; -} -} -obj* l_lean_parser_module_commands_parser(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -obj* x_3; 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_3 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -lean::inc(x_1); -x_5 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_5, 0, x_1); -lean::cnstr_set(x_5, 1, x_1); -lean::cnstr_set(x_5, 2, x_3); -x_6 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_6, 0, x_5); -lean::cnstr_set(x_6, 1, x_2); -x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_7, 0, x_6); -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__6), 3, 2); -lean::closure_set(x_8, 0, x_0); -lean::closure_set(x_8, 1, x_3); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_9, 0, x_7); -lean::closure_set(x_9, 1, x_8); -x_10 = l_lean_parser_module_commands_parser___closed__1; -x_11 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_11, 0, x_9); -lean::closure_set(x_11, 1, x_10); -x_12 = l_lean_parser_module_commands_parser___closed__2; -x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_13, 0, x_11); -lean::closure_set(x_13, 1, x_12); -return x_13; +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() { @@ -7058,756 +4589,78 @@ return x_8; } } -obj* l_lean_parser_module_parser___lambda__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { +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_6; obj* x_7; -x_4 = lean::cnstr_get(x_3, 0); -x_5 = lean::cnstr_get(x_4, 0); -x_6 = l_lean_parser_whitespace(x_5, x_0, x_1); -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; obj* x_23; obj* x_24; -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, 0); -x_14 = lean::cnstr_get(x_7, 1); -x_16 = lean::cnstr_get(x_7, 2); -if (lean::is_exclusive(x_7)) { - x_18 = x_7; -} else { - lean::inc(x_12); - lean::inc(x_14); - lean::inc(x_16); - lean::dec(x_7); - x_18 = lean::box(0); -} -if (lean::is_scalar(x_11)) { - x_19 = lean::alloc_cnstr(0, 2, 0); -} else { - x_19 = x_11; -} -lean::cnstr_set(x_19, 0, x_12); -lean::cnstr_set(x_19, 1, x_2); -x_20 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -if (lean::is_scalar(x_18)) { - x_21 = lean::alloc_cnstr(0, 3, 0); -} else { - x_21 = x_18; -} -lean::cnstr_set(x_21, 0, x_19); -lean::cnstr_set(x_21, 1, x_14); -lean::cnstr_set(x_21, 2, x_20); -x_22 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_16, x_21); -x_23 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_23, 0, x_22); -lean::cnstr_set(x_23, 1, x_9); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_24, 0, x_23); -return x_24; -} -else -{ -obj* x_26; obj* x_28; obj* x_29; uint8 x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; -lean::dec(x_2); -x_26 = lean::cnstr_get(x_6, 1); -if (lean::is_exclusive(x_6)) { - lean::cnstr_release(x_6, 0); - x_28 = x_6; -} else { - lean::inc(x_26); - lean::dec(x_6); - x_28 = lean::box(0); -} -x_29 = lean::cnstr_get(x_7, 0); -x_31 = lean::cnstr_get_scalar<uint8>(x_7, sizeof(void*)*1); -if (lean::is_exclusive(x_7)) { - x_32 = x_7; -} else { - lean::inc(x_29); - lean::dec(x_7); - x_32 = lean::box(0); -} -if (lean::is_scalar(x_32)) { - x_33 = lean::alloc_cnstr(1, 1, 1); -} else { - x_33 = x_32; -} -lean::cnstr_set(x_33, 0, x_29); -lean::cnstr_set_scalar(x_33, sizeof(void*)*1, x_31); -x_34 = x_33; -if (lean::is_scalar(x_28)) { - x_35 = lean::alloc_cnstr(0, 2, 0); -} else { - x_35 = x_28; -} -lean::cnstr_set(x_35, 0, x_34); -lean::cnstr_set(x_35, 1, x_26); -x_36 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_36, 0, x_35); -return x_36; -} -} -} -obj* l_lean_parser_module_parser___lambda__2(obj* x_0, obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; obj* x_7; obj* x_10; obj* x_11; obj* x_12; obj* x_13; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -lean::dec(x_3); -x_7 = lean::cnstr_get(x_4, 0); -lean::inc(x_7); -lean::dec(x_4); -x_10 = l_lean_parser_module_header; -x_11 = l_lean_parser_module_header_parser___closed__1; -x_12 = l_lean_parser_combinators_node___at_lean_parser_detail__ident__part_parser_lean_parser_has__tokens___spec__15(x_10, x_11, x_7, x_0, x_1); -x_13 = lean::cnstr_get(x_12, 0); +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); -if (lean::obj_tag(x_13) == 0) -{ -obj* x_15; obj* x_17; obj* x_18; obj* x_20; obj* x_22; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; -x_15 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_17 = x_12; -} else { - lean::inc(x_15); - lean::dec(x_12); - x_17 = lean::box(0); -} -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); -} -if (lean::is_scalar(x_17)) { - x_25 = lean::alloc_cnstr(0, 2, 0); -} else { - x_25 = x_17; -} -lean::cnstr_set(x_25, 0, x_18); -lean::cnstr_set(x_25, 1, x_2); -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_29 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_29, 0, x_28); -lean::cnstr_set(x_29, 1, x_15); -x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_30, 0, x_29); -return x_30; -} -else -{ -obj* x_32; obj* x_34; obj* x_35; uint8 x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; -lean::dec(x_2); -x_32 = lean::cnstr_get(x_12, 1); -if (lean::is_exclusive(x_12)) { - lean::cnstr_release(x_12, 0); - x_34 = x_12; -} else { - lean::inc(x_32); - lean::dec(x_12); - x_34 = lean::box(0); -} -x_35 = lean::cnstr_get(x_13, 0); -x_37 = lean::cnstr_get_scalar<uint8>(x_13, sizeof(void*)*1); -if (lean::is_exclusive(x_13)) { - x_38 = x_13; -} else { - lean::inc(x_35); - lean::dec(x_13); - x_38 = lean::box(0); -} -if (lean::is_scalar(x_38)) { - x_39 = lean::alloc_cnstr(1, 1, 1); -} else { - x_39 = x_38; -} -lean::cnstr_set(x_39, 0, x_35); -lean::cnstr_set_scalar(x_39, sizeof(void*)*1, x_37); -x_40 = x_39; -if (lean::is_scalar(x_34)) { - x_41 = lean::alloc_cnstr(0, 2, 0); -} else { - x_41 = x_34; -} -lean::cnstr_set(x_41, 0, x_40); -lean::cnstr_set(x_41, 1, x_32); -x_42 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_42, 0, x_41); -return x_42; -} -} -} -obj* l_lean_parser_module_parser___lambda__3(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_8; obj* x_10; obj* x_13; obj* x_15; obj* x_18; obj* x_19; obj* x_20; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -lean::inc(x_5); -lean::dec(x_0); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -x_10 = lean::cnstr_get(x_1, 2); -lean::inc(x_10); -lean::dec(x_1); -x_13 = lean::cnstr_get(x_3, 0); -lean::inc(x_13); -x_15 = lean::cnstr_get(x_3, 1); +x_15 = lean::cnstr_get(x_13, 0); lean::inc(x_15); -lean::dec(x_3); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_18, 0, x_10); -x_19 = l_lean_parser_module_yield__command(x_13, x_15, x_8, x_5); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_20, 0, x_19); -lean::closure_set(x_20, 1, x_18); -return x_20; -} -else +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_21; obj* x_23; obj* x_24; uint8 x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; -x_21 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_23 = x_0; -} else { - lean::inc(x_21); - lean::dec(x_0); - x_23 = lean::box(0); -} -x_24 = lean::cnstr_get(x_1, 0); -x_26 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_27 = x_1; -} else { - lean::inc(x_24); - lean::dec(x_1); - x_27 = lean::box(0); -} -if (lean::is_scalar(x_27)) { - x_28 = lean::alloc_cnstr(1, 1, 1); -} else { - x_28 = x_27; -} -lean::cnstr_set(x_28, 0, x_24); -lean::cnstr_set_scalar(x_28, sizeof(void*)*1, x_26); -x_29 = x_28; -if (lean::is_scalar(x_23)) { - x_30 = lean::alloc_cnstr(0, 2, 0); -} else { - x_30 = x_23; -} -lean::cnstr_set(x_30, 0, x_29); -lean::cnstr_set(x_30, 1, x_21); -x_31 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_31, 0, x_30); -return x_31; -} -} -} -obj* l_lean_parser_module_parser___lambda__4(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_8; obj* x_10; obj* x_13; obj* x_16; obj* x_17; obj* x_18; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -lean::inc(x_5); -lean::dec(x_0); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -x_10 = lean::cnstr_get(x_1, 2); -lean::inc(x_10); -lean::dec(x_1); -x_13 = lean::cnstr_get(x_3, 1); -lean::inc(x_13); -lean::dec(x_3); -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_16, 0, x_10); -x_17 = l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2(x_13, x_8, x_5); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_18, 0, x_17); -lean::closure_set(x_18, 1, x_16); -return x_18; -} -else -{ -obj* x_19; obj* x_21; obj* x_22; uint8 x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; -x_19 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_21 = x_0; -} else { - lean::inc(x_19); - lean::dec(x_0); - x_21 = lean::box(0); -} -x_22 = lean::cnstr_get(x_1, 0); -x_24 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_25 = x_1; +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_1); - x_25 = lean::box(0); -} -if (lean::is_scalar(x_25)) { - x_26 = lean::alloc_cnstr(1, 1, 1); -} else { - x_26 = x_25; -} -lean::cnstr_set(x_26, 0, x_22); -lean::cnstr_set_scalar(x_26, sizeof(void*)*1, x_24); -x_27 = x_26; -if (lean::is_scalar(x_21)) { - x_28 = lean::alloc_cnstr(0, 2, 0); -} else { - x_28 = x_21; -} -lean::cnstr_set(x_28, 0, x_27); -lean::cnstr_set(x_28, 1, x_19); -x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_29, 0, x_28); -return x_29; -} -} -} -obj* _init_l_lean_parser_module_parser___lambda__5___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__4), 1, 0); -return x_0; -} -} -obj* l_lean_parser_module_parser___lambda__5(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_8; obj* x_10; obj* x_13; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -lean::inc(x_5); -lean::dec(x_0); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -x_10 = lean::cnstr_get(x_1, 2); -lean::inc(x_10); -lean::dec(x_1); -x_13 = lean::cnstr_get(x_3, 1); -lean::inc(x_13); -lean::dec(x_3); -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_16, 0, x_10); -x_17 = l_lean_parser_module_commands_parser(x_13, x_8, x_5); -x_18 = l_lean_parser_module_parser___lambda__5___closed__1; -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_19, 0, x_17); -lean::closure_set(x_19, 1, x_18); -x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_20, 0, x_19); -lean::closure_set(x_20, 1, x_16); -return x_20; -} -else -{ -obj* x_21; obj* x_23; obj* x_24; uint8 x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; -x_21 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_23 = x_0; -} else { - lean::inc(x_21); - lean::dec(x_0); - x_23 = lean::box(0); -} -x_24 = lean::cnstr_get(x_1, 0); -x_26 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_27 = x_1; -} else { - lean::inc(x_24); - lean::dec(x_1); - x_27 = lean::box(0); -} -if (lean::is_scalar(x_27)) { - x_28 = lean::alloc_cnstr(1, 1, 1); -} else { - x_28 = x_27; -} -lean::cnstr_set(x_28, 0, x_24); -lean::cnstr_set_scalar(x_28, sizeof(void*)*1, x_26); -x_29 = x_28; -if (lean::is_scalar(x_23)) { - x_30 = lean::alloc_cnstr(0, 2, 0); -} else { - x_30 = x_23; -} -lean::cnstr_set(x_30, 0, x_29); -lean::cnstr_set(x_30, 1, x_21); -x_31 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_31, 0, x_30); -return x_31; -} -} -} -obj* _init_l_lean_parser_module_parser___lambda__6___closed__1() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__3), 1, 0); -return x_0; -} -} -obj* _init_l_lean_parser_module_parser___lambda__6___closed__2() { -_start: -{ -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__5), 1, 0); -return x_0; -} -} -obj* l_lean_parser_module_parser___lambda__6(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_9; obj* x_11; obj* x_14; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_1, 1); -lean::inc(x_6); -lean::dec(x_1); -x_9 = lean::cnstr_get(x_2, 1); -lean::inc(x_9); -x_11 = lean::cnstr_get(x_2, 2); -lean::inc(x_11); -lean::dec(x_2); -x_14 = lean::cnstr_get(x_4, 1); -lean::inc(x_14); -lean::dec(x_4); -x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_17, 0, x_11); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__2), 4, 3); -lean::closure_set(x_18, 0, x_9); -lean::closure_set(x_18, 1, x_6); -lean::closure_set(x_18, 2, x_14); -x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_19, 0, x_0); -lean::closure_set(x_19, 1, x_18); -x_20 = l_lean_parser_module_parser___lambda__6___closed__1; -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_21, 0, x_19); -lean::closure_set(x_21, 1, x_20); -x_22 = l_lean_parser_module_parser___lambda__6___closed__2; -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_23, 0, x_21); -lean::closure_set(x_23, 1, x_22); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_24, 0, x_23); -lean::closure_set(x_24, 1, x_17); -return x_24; -} -else -{ -obj* x_26; obj* x_28; obj* x_29; uint8 x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; -lean::dec(x_0); -x_26 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_28 = x_1; -} else { - lean::inc(x_26); - lean::dec(x_1); - x_28 = lean::box(0); -} -x_29 = lean::cnstr_get(x_2, 0); -x_31 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_32 = x_2; -} else { - lean::inc(x_29); - lean::dec(x_2); - x_32 = lean::box(0); -} -if (lean::is_scalar(x_32)) { - x_33 = lean::alloc_cnstr(1, 1, 1); -} else { - x_33 = x_32; -} -lean::cnstr_set(x_33, 0, x_29); -lean::cnstr_set_scalar(x_33, sizeof(void*)*1, x_31); -x_34 = x_33; -if (lean::is_scalar(x_28)) { - x_35 = lean::alloc_cnstr(0, 2, 0); -} else { - x_35 = x_28; -} -lean::cnstr_set(x_35, 0, x_34); -lean::cnstr_set(x_35, 1, x_26); -x_36 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_36, 0, x_35); -return x_36; -} -} -} -obj* l_lean_parser_module_parser___lambda__7(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_6; obj* x_9; obj* x_11; obj* x_14; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_6 = lean::cnstr_get(x_1, 1); -lean::inc(x_6); -lean::dec(x_1); -x_9 = lean::cnstr_get(x_2, 1); -lean::inc(x_9); -x_11 = lean::cnstr_get(x_2, 2); -lean::inc(x_11); -lean::dec(x_2); -x_14 = lean::cnstr_get(x_4, 1); -lean::inc(x_14); -lean::dec(x_4); -x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_17, 0, x_11); -x_18 = lean::cnstr_get(x_0, 3); -x_19 = l_option_get___main___at_lean_parser_run___spec__2(x_18); -x_20 = l_lean_parser_module_yield__command(x_19, x_14, x_9, x_6); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_21, 0, x_20); -lean::closure_set(x_21, 1, x_17); -return x_21; -} -else -{ -obj* x_22; obj* x_24; obj* x_25; uint8 x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; -x_22 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_24 = x_1; -} else { - lean::inc(x_22); - lean::dec(x_1); + lean::dec(x_18); x_24 = lean::box(0); } -x_25 = lean::cnstr_get(x_2, 0); -x_27 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -if (lean::is_exclusive(x_2)) { - x_28 = x_2; +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::dec(x_2); - x_28 = lean::box(0); + lean::inc(x_27); + lean::inc(x_29); + lean::dec(x_20); + x_31 = lean::box(0); } -if (lean::is_scalar(x_28)) { - x_29 = lean::alloc_cnstr(1, 1, 1); -} else { - x_29 = x_28; -} -lean::cnstr_set(x_29, 0, x_25); -lean::cnstr_set_scalar(x_29, sizeof(void*)*1, x_27); -x_30 = x_29; +lean::inc(x_0); if (lean::is_scalar(x_24)) { - x_31 = lean::alloc_cnstr(0, 2, 0); + x_33 = lean::alloc_cnstr(0, 2, 0); } else { - x_31 = x_24; + x_33 = x_24; } -lean::cnstr_set(x_31, 0, x_30); -lean::cnstr_set(x_31, 1, x_22); -x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_32, 0, x_31); -return x_32; -} -} -} -obj* l_lean_parser_module_parser___lambda__8(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::cnstr_get(x_1, 0); -lean::inc(x_2); -if (lean::obj_tag(x_2) == 0) -{ -obj* x_5; obj* x_7; obj* x_8; obj* x_9; -lean::dec(x_0); -x_5 = lean::cnstr_get(x_1, 1); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_7 = x_1; +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 { - lean::inc(x_5); - lean::dec(x_1); - x_7 = lean::box(0); + x_35 = x_31; } -if (lean::is_scalar(x_7)) { - x_8 = lean::alloc_cnstr(0, 2, 0); -} else { - x_8 = x_7; -} -lean::cnstr_set(x_8, 0, x_2); -lean::cnstr_set(x_8, 1, x_5); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_9, 0, x_8); -return x_9; +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_10; obj* x_13; uint8 x_15; obj* x_17; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; -x_10 = lean::cnstr_get(x_1, 1); -lean::inc(x_10); -lean::dec(x_1); -x_13 = lean::cnstr_get(x_2, 0); -lean::inc(x_13); -x_15 = lean::cnstr_get_scalar<uint8>(x_2, sizeof(void*)*1); -lean::dec(x_2); -x_17 = lean::cnstr_get(x_13, 0); -lean::inc(x_17); -lean::inc(x_13); -x_20 = l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(x_13, x_0, x_17, x_10); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__7___boxed), 2, 1); -lean::closure_set(x_21, 0, x_13); -x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_22, 0, x_20); -lean::closure_set(x_22, 1, x_21); -x_23 = lean::box(x_15); -x_24 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_module_1__commands__aux___main___lambda__15___boxed), 2, 1); -lean::closure_set(x_24, 0, x_23); -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_25, 0, x_22); -lean::closure_set(x_25, 1, x_24); -return x_25; -} -} -} -obj* l_lean_parser_module_parser___lambda__9(obj* x_0) { -_start: -{ -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_8; obj* x_10; obj* x_13; obj* x_15; obj* x_18; obj* x_19; obj* x_22; obj* x_23; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -lean::inc(x_5); -lean::dec(x_0); -x_8 = lean::cnstr_get(x_1, 1); -lean::inc(x_8); -x_10 = lean::cnstr_get(x_1, 2); -lean::inc(x_10); -lean::dec(x_1); -x_13 = lean::cnstr_get(x_3, 0); -lean::inc(x_13); -x_15 = lean::cnstr_get(x_3, 1); -lean::inc(x_15); -lean::dec(x_3); -x_18 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_18, 0, x_10); -x_19 = lean::string_iterator_to_end(x_13); -lean::inc(x_19); -lean::inc(x_19); -x_22 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_22, 0, x_19); -lean::cnstr_set(x_22, 1, x_19); -x_23 = lean::string_iterator_offset(x_19); -lean::dec(x_19); -lean::inc(x_22); -x_26 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_26, 0, x_22); -lean::cnstr_set(x_26, 1, x_23); -lean::cnstr_set(x_26, 2, x_22); -x_27 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_27, 0, x_26); -x_28 = l_string_join___closed__1; -x_29 = lean::alloc_cnstr(0, 2, 0); -lean::cnstr_set(x_29, 0, x_27); -lean::cnstr_set(x_29, 1, x_28); -x_30 = lean::alloc_cnstr(0, 1, 0); -lean::cnstr_set(x_30, 0, x_29); -x_31 = lean::box(0); -x_32 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_32, 0, x_30); -lean::cnstr_set(x_32, 1, x_31); -x_33 = l_lean_parser_module_eoi; -x_34 = l_lean_parser_syntax_mk__node(x_33, x_32); -x_35 = l_lean_parser_module_yield__command(x_34, x_15, x_8, x_5); -x_36 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_36, 0, x_35); -lean::closure_set(x_36, 1, x_18); -return x_36; -} -else -{ -obj* x_37; obj* x_39; obj* x_40; uint8 x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47; -x_37 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_39 = x_0; -} else { - lean::inc(x_37); - lean::dec(x_0); - x_39 = lean::box(0); -} -x_40 = lean::cnstr_get(x_1, 0); -x_42 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_43 = x_1; +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_1); + lean::dec(x_20); x_43 = lean::box(0); } if (lean::is_scalar(x_43)) { @@ -7818,202 +4671,511 @@ lean::cnstr_set(x_44, 0, x_40); lean::cnstr_set_scalar(x_44, sizeof(void*)*1, x_42); x_45 = x_44; -if (lean::is_scalar(x_39)) { - x_46 = lean::alloc_cnstr(0, 2, 0); -} else { - x_46 = x_39; +x_10 = x_45; +x_11 = x_37; +goto lbl_12; } -lean::cnstr_set(x_46, 0, x_45); -lean::cnstr_set(x_46, 1, x_37); -x_47 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_47, 0, x_46); -return x_47; -} -} -} -obj* _init_l_lean_parser_module_parser___lambda__10___closed__1() { -_start: +lbl_6: { -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__9), 1, 0); -return x_0; -} -} -obj* l_lean_parser_module_parser___lambda__10(obj* x_0) { -_start: +if (lean::obj_tag(x_4) == 0) { -obj* x_1; -x_1 = lean::cnstr_get(x_0, 0); -lean::inc(x_1); -if (lean::obj_tag(x_1) == 0) -{ -obj* x_3; obj* x_5; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; -x_3 = lean::cnstr_get(x_1, 0); -lean::inc(x_3); -x_5 = lean::cnstr_get(x_0, 1); -lean::inc(x_5); -lean::dec(x_0); -x_8 = lean::cnstr_get(x_1, 1); -x_10 = lean::cnstr_get(x_1, 2); -if (lean::is_exclusive(x_1)) { - lean::cnstr_release(x_1, 0); - x_12 = x_1; +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_8); - lean::inc(x_10); - lean::dec(x_1); - x_12 = lean::box(0); + lean::inc(x_58); + lean::inc(x_60); + lean::dec(x_56); + x_62 = lean::box(0); } -x_13 = lean::cnstr_get(x_3, 1); -if (lean::is_exclusive(x_3)) { - lean::cnstr_release(x_3, 0); - x_15 = x_3; +x_63 = l_lean_parser_finish__comment__block___closed__2; +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 { - lean::inc(x_13); - lean::dec(x_3); - x_15 = lean::box(0); + x_66 = x_62; } -x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__1), 2, 1); -lean::closure_set(x_16, 0, x_10); -x_17 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; -lean::inc(x_8); -if (lean::is_scalar(x_12)) { - x_19 = lean::alloc_cnstr(0, 3, 0); -} else { - x_19 = x_12; -} -lean::cnstr_set(x_19, 0, x_8); -lean::cnstr_set(x_19, 1, x_8); -lean::cnstr_set(x_19, 2, x_17); -if (lean::is_scalar(x_15)) { - x_20 = lean::alloc_cnstr(0, 2, 0); -} else { - x_20 = x_15; -} -lean::cnstr_set(x_20, 0, x_19); -lean::cnstr_set(x_20, 1, x_5); -x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_21, 0, x_20); -x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_yield__command___lambda__6), 3, 2); -lean::closure_set(x_22, 0, x_13); -lean::closure_set(x_22, 1, x_17); -x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_23, 0, x_21); -lean::closure_set(x_23, 1, x_22); -x_24 = l_lean_parser_module_parser___lambda__10___closed__1; -x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_25, 0, x_23); -lean::closure_set(x_25, 1, x_24); -x_26 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_26, 0, x_25); -lean::closure_set(x_26, 1, x_16); -return x_26; +lean::cnstr_set(x_66, 0, x_65); +lean::cnstr_set(x_66, 1, x_60); +return x_66; } 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; obj* x_37; -x_27 = lean::cnstr_get(x_0, 1); -if (lean::is_exclusive(x_0)) { - lean::cnstr_release(x_0, 0); - x_29 = x_0; +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_27); - lean::dec(x_0); - x_29 = lean::box(0); + lean::inc(x_68); + lean::dec(x_4); + x_71 = lean::box(0); } -x_30 = lean::cnstr_get(x_1, 0); -x_32 = lean::cnstr_get_scalar<uint8>(x_1, sizeof(void*)*1); -if (lean::is_exclusive(x_1)) { - x_33 = x_1; +if (lean::is_scalar(x_71)) { + x_72 = lean::alloc_cnstr(1, 1, 1); } else { - lean::inc(x_30); - lean::dec(x_1); - x_33 = lean::box(0); + x_72 = x_71; } -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); -x_37 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__2___boxed), 2, 1); -lean::closure_set(x_37, 0, x_36); -return x_37; +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; } } -} -obj* _init_l_lean_parser_module_parser___closed__1() { -_start: +lbl_9: { -obj* x_0; obj* x_1; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module__parser__m_lift__parser__t___rarg___lambda__1), 1, 0); -x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__6), 2, 1); -lean::closure_set(x_1, 0, x_0); -return x_1; -} -} -obj* _init_l_lean_parser_module_parser___closed__2() { -_start: +if (lean::obj_tag(x_7) == 0) { -obj* x_0; -x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__10), 1, 0); -return x_0; -} -} -obj* l_lean_parser_module_parser(obj* x_0, obj* x_1, obj* x_2) { -_start: -{ -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; -lean::inc(x_0); -x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__1___boxed), 4, 3); -lean::closure_set(x_4, 0, x_1); -lean::closure_set(x_4, 1, x_2); -lean::closure_set(x_4, 2, x_0); -x_5 = l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1; -x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_6, 0, x_5); -lean::closure_set(x_6, 1, x_4); -x_7 = l_lean_parser_module_parser___closed__1; -x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_8, 0, x_6); -lean::closure_set(x_8, 1, x_7); -x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_module_parser___lambda__8), 2, 1); -lean::closure_set(x_9, 0, x_0); -x_10 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_10, 0, x_8); -lean::closure_set(x_10, 1, x_9); -x_11 = l_lean_parser_module_parser___closed__2; -x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_coroutine_bind___main___rarg), 3, 2); -lean::closure_set(x_12, 0, x_10); -lean::closure_set(x_12, 1, x_11); -return x_12; -} -} -obj* l_lean_parser_module_parser___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_parser___lambda__1(x_0, x_1, x_2, x_3); -lean::dec(x_3); -return x_4; -} -} -obj* l_lean_parser_module_parser___lambda__7___boxed(obj* x_0, obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l_lean_parser_module_parser___lambda__7(x_0, x_1); lean::dec(x_0); -return x_2; +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_84; +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); +x_84 = lean::cnstr_get(x_83, 0); +lean::inc(x_84); +if (lean::obj_tag(x_84) == 0) +{ +obj* x_86; obj* x_88; obj* x_91; obj* x_93; obj* x_96; obj* x_99; obj* x_100; obj* x_102; obj* x_105; +x_86 = lean::cnstr_get(x_84, 0); +lean::inc(x_86); +x_88 = lean::cnstr_get(x_83, 1); +lean::inc(x_88); +lean::dec(x_83); +x_91 = lean::cnstr_get(x_84, 1); +lean::inc(x_91); +x_93 = lean::cnstr_get(x_84, 2); +lean::inc(x_93); +lean::dec(x_84); +x_96 = lean::cnstr_get(x_86, 1); +lean::inc(x_96); +lean::dec(x_86); +x_99 = l_lean_parser_module_yield__command___rarg(x_96, x_1, x_91, x_88); +x_100 = lean::cnstr_get(x_99, 0); +lean::inc(x_100); +x_102 = lean::cnstr_get(x_99, 1); +lean::inc(x_102); +lean::dec(x_99); +x_105 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_93, x_100); +if (lean::obj_tag(x_105) == 0) +{ +x_4 = x_105; +x_5 = x_102; +goto lbl_6; +} +else +{ +uint8 x_106; +x_106 = lean::cnstr_get_scalar<uint8>(x_105, sizeof(void*)*1); +if (x_78 == 0) +{ +obj* x_107; obj* x_109; obj* x_110; obj* x_111; +x_107 = lean::cnstr_get(x_105, 0); +if (lean::is_exclusive(x_105)) { + x_109 = x_105; +} else { + lean::inc(x_107); + lean::dec(x_105); + x_109 = lean::box(0); +} +if (lean::is_scalar(x_109)) { + x_110 = lean::alloc_cnstr(1, 1, 1); +} else { + x_110 = x_109; +} +lean::cnstr_set(x_110, 0, x_107); +lean::cnstr_set_scalar(x_110, sizeof(void*)*1, x_106); +x_111 = x_110; +x_4 = x_111; +x_5 = x_102; +goto lbl_6; +} +else +{ +obj* x_112; obj* x_114; obj* x_115; obj* x_116; +x_112 = lean::cnstr_get(x_105, 0); +if (lean::is_exclusive(x_105)) { + x_114 = x_105; +} else { + lean::inc(x_112); + lean::dec(x_105); + x_114 = lean::box(0); +} +if (lean::is_scalar(x_114)) { + x_115 = lean::alloc_cnstr(1, 1, 1); +} else { + x_115 = x_114; +} +lean::cnstr_set(x_115, 0, x_112); +lean::cnstr_set_scalar(x_115, sizeof(void*)*1, x_78); +x_116 = x_115; +x_4 = x_116; +x_5 = x_102; +goto lbl_6; +} +} +} +else +{ +uint8 x_117; +x_117 = lean::cnstr_get_scalar<uint8>(x_84, sizeof(void*)*1); +if (x_78 == 0) +{ +obj* x_118; obj* x_121; obj* x_123; obj* x_124; obj* x_125; +x_118 = lean::cnstr_get(x_83, 1); +lean::inc(x_118); +lean::dec(x_83); +x_121 = lean::cnstr_get(x_84, 0); +if (lean::is_exclusive(x_84)) { + x_123 = x_84; +} else { + lean::inc(x_121); + lean::dec(x_84); + x_123 = lean::box(0); +} +if (lean::is_scalar(x_123)) { + x_124 = lean::alloc_cnstr(1, 1, 1); +} else { + x_124 = x_123; +} +lean::cnstr_set(x_124, 0, x_121); +lean::cnstr_set_scalar(x_124, sizeof(void*)*1, x_117); +x_125 = x_124; +x_4 = x_125; +x_5 = x_118; +goto lbl_6; +} +else +{ +obj* x_126; obj* x_129; obj* x_131; obj* x_132; obj* x_133; +x_126 = lean::cnstr_get(x_83, 1); +lean::inc(x_126); +lean::dec(x_83); +x_129 = lean::cnstr_get(x_84, 0); +if (lean::is_exclusive(x_84)) { + x_131 = x_84; +} else { + lean::inc(x_129); + lean::dec(x_84); + x_131 = lean::box(0); +} +if (lean::is_scalar(x_131)) { + x_132 = lean::alloc_cnstr(1, 1, 1); +} else { + x_132 = x_131; +} +lean::cnstr_set(x_132, 0, x_129); +lean::cnstr_set_scalar(x_132, sizeof(void*)*1, x_78); +x_133 = x_132; +x_4 = x_133; +x_5 = x_126; +goto lbl_6; +} +} +} +} +lbl_12: +{ +if (lean::obj_tag(x_10) == 0) +{ +obj* x_134; obj* x_136; obj* x_138; obj* x_141; obj* x_142; obj* x_144; obj* x_147; obj* x_149; obj* x_152; obj* x_153; obj* x_154; obj* x_155; +x_134 = lean::cnstr_get(x_10, 0); +lean::inc(x_134); +x_136 = lean::cnstr_get(x_10, 1); +lean::inc(x_136); +x_138 = lean::cnstr_get(x_10, 2); +lean::inc(x_138); +lean::dec(x_10); +x_144 = lean::cnstr_get(x_134, 1); +lean::inc(x_144); +lean::dec(x_134); +x_147 = lean::cnstr_get(x_1, 0); +lean::inc(x_147); +x_149 = lean::cnstr_get(x_147, 0); +lean::inc(x_149); +lean::dec(x_147); +x_152 = l_lean_parser_module_header; +x_153 = l_lean_parser_module_header_parser___closed__1; +x_154 = l_lean_parser_combinators_node___at_lean_parser_detail__ident__part_parser_lean_parser_has__tokens___spec__15(x_152, x_153, x_149, x_136, x_11); +x_155 = lean::cnstr_get(x_154, 0); +lean::inc(x_155); +if (lean::obj_tag(x_155) == 0) +{ +obj* x_157; obj* x_159; obj* x_160; obj* x_162; obj* x_164; obj* x_166; obj* x_167; obj* x_168; obj* x_169; obj* x_170; +x_157 = lean::cnstr_get(x_154, 1); +if (lean::is_exclusive(x_154)) { + lean::cnstr_release(x_154, 0); + x_159 = x_154; +} else { + lean::inc(x_157); + lean::dec(x_154); + x_159 = lean::box(0); +} +x_160 = lean::cnstr_get(x_155, 0); +x_162 = lean::cnstr_get(x_155, 1); +x_164 = lean::cnstr_get(x_155, 2); +if (lean::is_exclusive(x_155)) { + x_166 = x_155; +} else { + lean::inc(x_160); + lean::inc(x_162); + lean::inc(x_164); + lean::dec(x_155); + x_166 = lean::box(0); +} +if (lean::is_scalar(x_159)) { + x_167 = lean::alloc_cnstr(0, 2, 0); +} else { + x_167 = x_159; +} +lean::cnstr_set(x_167, 0, x_160); +lean::cnstr_set(x_167, 1, x_144); +x_168 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1; +if (lean::is_scalar(x_166)) { + x_169 = lean::alloc_cnstr(0, 3, 0); +} else { + x_169 = x_166; +} +lean::cnstr_set(x_169, 0, x_167); +lean::cnstr_set(x_169, 1, x_162); +lean::cnstr_set(x_169, 2, x_168); +x_170 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_164, x_169); +if (lean::obj_tag(x_170) == 0) +{ +obj* x_171; obj* x_173; obj* x_175; obj* x_178; obj* x_181; obj* x_182; obj* x_184; obj* x_187; +x_171 = lean::cnstr_get(x_170, 0); +lean::inc(x_171); +x_173 = lean::cnstr_get(x_170, 1); +lean::inc(x_173); +x_175 = lean::cnstr_get(x_170, 2); +lean::inc(x_175); +lean::dec(x_170); +x_178 = lean::cnstr_get(x_171, 1); +lean::inc(x_178); +lean::dec(x_171); +x_181 = l_lean_parser_module_yield__command___rarg(x_178, x_1, x_173, x_157); +x_182 = lean::cnstr_get(x_181, 0); +lean::inc(x_182); +x_184 = lean::cnstr_get(x_181, 1); +lean::inc(x_184); +lean::dec(x_181); +x_187 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_175, x_182); +x_141 = x_187; +x_142 = x_184; +goto lbl_143; +} +else +{ +obj* x_188; uint8 x_190; obj* x_191; obj* x_192; obj* x_193; +x_188 = lean::cnstr_get(x_170, 0); +x_190 = lean::cnstr_get_scalar<uint8>(x_170, sizeof(void*)*1); +if (lean::is_exclusive(x_170)) { + x_191 = x_170; +} else { + lean::inc(x_188); + lean::dec(x_170); + x_191 = lean::box(0); +} +if (lean::is_scalar(x_191)) { + x_192 = lean::alloc_cnstr(1, 1, 1); +} else { + x_192 = x_191; +} +lean::cnstr_set(x_192, 0, x_188); +lean::cnstr_set_scalar(x_192, sizeof(void*)*1, x_190); +x_193 = x_192; +x_141 = x_193; +x_142 = x_157; +goto lbl_143; +} +} +else +{ +obj* x_195; obj* x_198; uint8 x_200; obj* x_201; obj* x_202; obj* x_203; +lean::dec(x_144); +x_195 = lean::cnstr_get(x_154, 1); +lean::inc(x_195); +lean::dec(x_154); +x_198 = lean::cnstr_get(x_155, 0); +x_200 = lean::cnstr_get_scalar<uint8>(x_155, sizeof(void*)*1); +if (lean::is_exclusive(x_155)) { + x_201 = x_155; +} else { + lean::inc(x_198); + lean::dec(x_155); + x_201 = lean::box(0); +} +if (lean::is_scalar(x_201)) { + x_202 = lean::alloc_cnstr(1, 1, 1); +} else { + x_202 = x_201; +} +lean::cnstr_set(x_202, 0, x_198); +lean::cnstr_set_scalar(x_202, sizeof(void*)*1, x_200); +x_203 = x_202; +x_141 = x_203; +x_142 = x_195; +goto lbl_143; +} +lbl_143: +{ +if (lean::obj_tag(x_141) == 0) +{ +obj* x_204; obj* x_206; obj* x_208; obj* x_211; obj* x_215; obj* x_216; +x_204 = lean::cnstr_get(x_141, 0); +lean::inc(x_204); +x_206 = lean::cnstr_get(x_141, 1); +lean::inc(x_206); +x_208 = lean::cnstr_get(x_141, 2); +lean::inc(x_208); +lean::dec(x_141); +x_211 = lean::cnstr_get(x_204, 1); +lean::inc(x_211); +lean::dec(x_204); +lean::inc(x_1); +x_215 = l_lean_parser_module_commands_parser(x_211, x_1, x_206, x_142); +x_216 = lean::cnstr_get(x_215, 0); +lean::inc(x_216); +if (lean::obj_tag(x_216) == 0) +{ +obj* x_218; obj* x_220; obj* x_223; obj* x_225; obj* x_228; obj* x_231; obj* x_232; obj* x_234; obj* x_237; obj* x_238; obj* x_239; +x_218 = lean::cnstr_get(x_216, 0); +lean::inc(x_218); +x_220 = lean::cnstr_get(x_215, 1); +lean::inc(x_220); +lean::dec(x_215); +x_223 = lean::cnstr_get(x_216, 1); +lean::inc(x_223); +x_225 = lean::cnstr_get(x_216, 2); +lean::inc(x_225); +lean::dec(x_216); +x_228 = lean::cnstr_get(x_218, 1); +lean::inc(x_228); +lean::dec(x_218); +x_231 = l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__5(x_228, x_1, x_223, x_220); +x_232 = lean::cnstr_get(x_231, 0); +lean::inc(x_232); +x_234 = lean::cnstr_get(x_231, 1); +lean::inc(x_234); +lean::dec(x_231); +x_237 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_225, x_232); +x_238 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_208, x_237); +x_239 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_138, x_238); +x_7 = x_239; +x_8 = x_234; +goto lbl_9; +} +else +{ +obj* x_240; obj* x_243; uint8 x_245; obj* x_246; obj* x_247; obj* x_248; obj* x_249; obj* x_250; +x_240 = lean::cnstr_get(x_215, 1); +lean::inc(x_240); +lean::dec(x_215); +x_243 = lean::cnstr_get(x_216, 0); +x_245 = lean::cnstr_get_scalar<uint8>(x_216, sizeof(void*)*1); +if (lean::is_exclusive(x_216)) { + x_246 = x_216; +} else { + lean::inc(x_243); + lean::dec(x_216); + x_246 = lean::box(0); +} +if (lean::is_scalar(x_246)) { + x_247 = lean::alloc_cnstr(1, 1, 1); +} else { + x_247 = x_246; +} +lean::cnstr_set(x_247, 0, x_243); +lean::cnstr_set_scalar(x_247, sizeof(void*)*1, x_245); +x_248 = x_247; +x_249 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_208, x_248); +x_250 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_138, x_249); +x_7 = x_250; +x_8 = x_240; +goto lbl_9; +} +} +else +{ +obj* x_251; uint8 x_253; obj* x_254; obj* x_255; obj* x_256; obj* x_257; +x_251 = lean::cnstr_get(x_141, 0); +x_253 = lean::cnstr_get_scalar<uint8>(x_141, sizeof(void*)*1); +if (lean::is_exclusive(x_141)) { + x_254 = x_141; +} else { + lean::inc(x_251); + lean::dec(x_141); + x_254 = lean::box(0); +} +if (lean::is_scalar(x_254)) { + x_255 = lean::alloc_cnstr(1, 1, 1); +} else { + x_255 = x_254; +} +lean::cnstr_set(x_255, 0, x_251); +lean::cnstr_set_scalar(x_255, sizeof(void*)*1, x_253); +x_256 = x_255; +x_257 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_138, x_256); +x_7 = x_257; +x_8 = x_142; +goto lbl_9; +} +} +} +else +{ +obj* x_258; uint8 x_260; obj* x_261; obj* x_262; obj* x_263; +x_258 = lean::cnstr_get(x_10, 0); +x_260 = lean::cnstr_get_scalar<uint8>(x_10, sizeof(void*)*1); +if (lean::is_exclusive(x_10)) { + x_261 = x_10; +} else { + lean::inc(x_258); + lean::dec(x_10); + x_261 = lean::box(0); +} +if (lean::is_scalar(x_261)) { + x_262 = lean::alloc_cnstr(1, 1, 1); +} else { + x_262 = x_261; +} +lean::cnstr_set(x_262, 0, x_258); +lean::cnstr_set_scalar(x_262, sizeof(void*)*1, x_260); +x_263 = x_262; +x_7 = x_263; +x_8 = x_11; +goto lbl_9; +} +} } } obj* _init_l_lean_parser_module_tokens() { @@ -8039,30 +5201,12 @@ _G_initialized = true; initialize_init_lean_parser_command(); initialize_init_control_coroutine(); - l_lean_parser_module__parser__m_monad = _init_l_lean_parser_module__parser__m_monad(); -lean::mark_persistent(l_lean_parser_module__parser__m_monad); - l_lean_parser_module__parser__m_alternative = _init_l_lean_parser_module__parser__m_alternative(); -lean::mark_persistent(l_lean_parser_module__parser__m_alternative); - l_lean_parser_module__parser__m_monad__reader = _init_l_lean_parser_module__parser__m_monad__reader(); -lean::mark_persistent(l_lean_parser_module__parser__m_monad__reader); - l_lean_parser_module__parser__m_monad__state = _init_l_lean_parser_module__parser__m_monad__state(); -lean::mark_persistent(l_lean_parser_module__parser__m_monad__state); - l_lean_parser_module__parser__m_lean_parser_monad__parsec = _init_l_lean_parser_module__parser__m_lean_parser_monad__parsec(); -lean::mark_persistent(l_lean_parser_module__parser__m_lean_parser_monad__parsec); - l_lean_parser_module__parser__m_monad__except = _init_l_lean_parser_module__parser__m_monad__except(); -lean::mark_persistent(l_lean_parser_module__parser__m_monad__except); - l_lean_parser_module__parser__m_monad__coroutine = _init_l_lean_parser_module__parser__m_monad__coroutine(); -lean::mark_persistent(l_lean_parser_module__parser__m_monad__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_lift__parser__t___rarg___closed__1 = _init_l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1(); -lean::mark_persistent(l_lean_parser_module__parser__m_lift__parser__t___rarg___closed__1); - l_lean_parser_module__parser__m_basic__parser__m___closed__1 = _init_l_lean_parser_module__parser__m_basic__parser__m___closed__1(); -lean::mark_persistent(l_lean_parser_module__parser__m_basic__parser__m___closed__1); - l_lean_parser_module_yield__command___lambda__7___closed__1 = _init_l_lean_parser_module_yield__command___lambda__7___closed__1(); -lean::mark_persistent(l_lean_parser_module_yield__command___lambda__7___closed__1); + 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(); @@ -8141,48 +5285,18 @@ 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_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1 = _init_l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1(); -lean::mark_persistent(l_lean_parser_monad__parsec_eoi___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1); - l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___closed__1 = _init_l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___closed__1(); -lean::mark_persistent(l_lean_parser_monad__parsec_any___at___private_init_lean_parser_module_1__commands__aux___main___spec__3___closed__1); - l___private_init_lean_parser_module_1__commands__aux___main___lambda__1___closed__1 = _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__1___closed__1(); -lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___lambda__1___closed__1); - l___private_init_lean_parser_module_1__commands__aux___main___lambda__3___closed__1 = _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__3___closed__1(); -lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___lambda__3___closed__1); - l___private_init_lean_parser_module_1__commands__aux___main___lambda__9___closed__1 = _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__9___closed__1(); -lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___lambda__9___closed__1); - l___private_init_lean_parser_module_1__commands__aux___main___lambda__10___closed__1 = _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__10___closed__1(); -lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___lambda__10___closed__1); - l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__1 = _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__1(); -lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__1); - l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__2 = _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__2(); -lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__2); - l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__3 = _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__3(); -lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___lambda__11___closed__3); - l___private_init_lean_parser_module_1__commands__aux___main___lambda__13___closed__1 = _init_l___private_init_lean_parser_module_1__commands__aux___main___lambda__13___closed__1(); -lean::mark_persistent(l___private_init_lean_parser_module_1__commands__aux___main___lambda__13___closed__1); - l_lean_parser_module_commands_parser___closed__1 = _init_l_lean_parser_module_commands_parser___closed__1(); -lean::mark_persistent(l_lean_parser_module_commands_parser___closed__1); - l_lean_parser_module_commands_parser___closed__2 = _init_l_lean_parser_module_commands_parser___closed__2(); -lean::mark_persistent(l_lean_parser_module_commands_parser___closed__2); + l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1 = _init_l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___closed__1(); +lean::mark_persistent(l_lean_parser_log__message___at___private_init_lean_parser_module_1__commands__aux___main___spec__2___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_parser___lambda__5___closed__1 = _init_l_lean_parser_module_parser___lambda__5___closed__1(); -lean::mark_persistent(l_lean_parser_module_parser___lambda__5___closed__1); - l_lean_parser_module_parser___lambda__6___closed__1 = _init_l_lean_parser_module_parser___lambda__6___closed__1(); -lean::mark_persistent(l_lean_parser_module_parser___lambda__6___closed__1); - l_lean_parser_module_parser___lambda__6___closed__2 = _init_l_lean_parser_module_parser___lambda__6___closed__2(); -lean::mark_persistent(l_lean_parser_module_parser___lambda__6___closed__2); - l_lean_parser_module_parser___lambda__10___closed__1 = _init_l_lean_parser_module_parser___lambda__10___closed__1(); -lean::mark_persistent(l_lean_parser_module_parser___lambda__10___closed__1); - l_lean_parser_module_parser___closed__1 = _init_l_lean_parser_module_parser___closed__1(); -lean::mark_persistent(l_lean_parser_module_parser___closed__1); - l_lean_parser_module_parser___closed__2 = _init_l_lean_parser_module_parser___closed__2(); -lean::mark_persistent(l_lean_parser_module_parser___closed__2); l_lean_parser_module_tokens = _init_l_lean_parser_module_tokens(); lean::mark_persistent(l_lean_parser_module_tokens); }