blob: 162c84f445374ffdb25409c23a23b0d145558bbc [file]
// Lean compiler output
// Module: init.lean.parser.command
// Imports: init.lean.parser.declaration
#include "runtime/object.h"
#include "runtime/apply.h"
typedef lean::object obj; typedef lean::usize usize;
typedef lean::uint8 uint8; typedef lean::uint16 uint16;
typedef lean::uint32 uint32; typedef lean::uint64 uint64;
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
obj* l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__1(obj*);
obj* l_lean_parser_combinators_any__of___at_lean_parser_command_universe_parser___spec__1(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_section_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_variables_parser___closed__1;
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___closed__1;
obj* l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_check_parser_lean_parser_has__tokens;
obj* l_rbnode_find___main___at_lean_name__map_contains___spec__2(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_check_parser(obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_command_reserve__mixfix_parser_lean_parser_has__tokens;
obj* l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__2(obj*);
obj* l_lean_parser_parsec__t_bind__mk__res___rarg(obj*, obj*);
obj* l_lean_parser_command_init__quot_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_variables;
obj* l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1(obj*);
obj* l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__1(obj*);
obj* l_list_map___main___rarg(obj*, obj*);
obj* l_lean_parser_command_omit_has__view_x_27;
obj* l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__2(obj*);
obj* l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_command_namespace_parser___closed__1;
obj* l_lean_parser_command_check_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_declaration_parser_lean_parser_has__view___lambda__1(obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
obj* l___private_init_lean_parser_rec_1__run__aux___at_lean_parser_command__parser_run___spec__9(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_omit_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_set__option_parser___closed__1;
obj* l_lean_parser_command_init__quot_has__view_x_27;
obj* l_lean_parser_term_bracketed__binders_parser(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___rarg(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command__parser_run___lambda__1___boxed(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_attribute_has__view;
extern obj* l_lean_parser_combinators_many___rarg___closed__1;
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_monad__parsec_observing___at_lean_parser_peek__token___spec__2___rarg(obj*, obj*, obj*);
obj* l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_end_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_universes;
obj* l_lean_parser_command_open_has__view_x_27___lambda__1(obj*);
namespace lean {
obj* nat_add(obj*, obj*);
}
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__5;
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3;
obj* l_lean_parser_command_universe_has__view_x_27___lambda__1(obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___rarg(obj*, obj*);
obj* l_lean_parser_command_open_parser___closed__1;
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5(obj*);
obj* l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_export_has__view;
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___boxed(obj*);
obj* l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_command_init__quot_has__view;
obj* l_lean_parser_symbol__or__ident___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__1___boxed(obj*, obj*, obj*, obj*, obj*);
extern obj* l_mjoin___rarg___closed__1;
obj* l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_open_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_variable;
obj* l_lean_parser_command_variables_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_open;
obj* l_lean_parser_string__lit_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_combinators_sep__by1_tokens___rarg(obj*, obj*);
extern obj* l_lean_parser_rec__t_run__parsec___rarg___lambda__1___closed__1;
extern obj* l_lean_parser_command_decl__attributes_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_list_cons_tokens___rarg(obj*, obj*);
obj* l_lean_parser_command_set__option_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1;
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_option_to__monad___main___at_lean_parser_indexed___spec__2___rarg(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_namespace_parser_lean_parser_has__tokens;
obj* l_lean_parser_parsec__t_try__mk__res___rarg(obj*);
extern obj* l_lean_parser_command__parser__m_monad__except___closed__1;
extern "C" obj* lean_name_mk_string(obj*, obj*);
obj* l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__3;
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_open__spec_parser_lean_parser_has__view;
obj* l_lean_parser_command_universes_has__view;
obj* l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_open__spec_as_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_attribute_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_bool__option__value_has__view_x_27;
obj* l_lean_parser_parsec__t_labels__mk__res___rarg(obj*, obj*);
obj* l_lean_parser_command_include_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_open_has__view;
obj* l_lean_parser_command_init__quot_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_open__spec_renaming_item_has__view_x_27;
obj* l_lean_parser_command_open__spec_only;
obj* l_lean_parser_command_check_parser_lean_parser_has__view;
obj* l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1(obj*);
obj* l_lean_parser_command_export_has__view_x_27;
obj* l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_set__option;
obj* l_string_quote(obj*);
obj* l_lean_parser_command_attribute_has__view_x_27;
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_command_variable_has__view;
obj* l_lean_parser_command_universes_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_universe_has__view_x_27;
obj* l_lean_parser_command_end_parser___closed__1;
extern obj* l_lean_parser_command__parser__m_monad___closed__1;
obj* l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3(obj*, obj*, obj*, obj*, obj*);
obj* l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3___boxed(obj*);
obj* l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__1(obj*);
obj* l_lean_parser_command_parser_lean_parser_has__view;
obj* l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_command_open__spec_as;
obj* l_lean_parser_command_init__quot_parser___closed__1;
extern obj* l_lean_parser_string__lit_has__view;
obj* l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3;
obj* l_lean_parser_command_open__spec_as_has__view_x_27;
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27;
obj* l_lean_parser_command_universe_has__view;
extern obj* l_lean_parser_term_binder_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_set__option_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_open__spec_has__view_x_27;
obj* l_lean_parser_command_open__spec_only_has__view_x_27;
obj* l_lean_parser_command_variable_has__view_x_27___lambda__1(obj*);
extern obj* l_lean_parser_command_notation_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_include_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_omit_parser___closed__1;
obj* l_lean_parser_command__parser_run___lambda__1(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_universe_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_include;
obj* l_lean_parser_command_parser___rarg___closed__1;
obj* l_lean_parser_command_section_has__view_x_27;
extern obj* l_lean_parser_term_binder__content_has__view_x_27___lambda__2___closed__2;
obj* l_lean_parser_combinators_choice__aux___main___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__2(obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_command__parser__m_alternative___closed__1;
obj* l_lean_parser_command_open__spec_only_has__view;
obj* l_lean_parser_command_section_parser___closed__1;
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_variables_has__view;
obj* l_lean_parser_combinators_label_view___rarg(obj*, obj*, obj*, obj*, obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___rarg(obj*, obj*);
obj* l_lean_parser_command_include_parser(obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_number_parser___at_lean_parser_command_notation__spec_precedence__lit_parser_lean_parser_has__tokens___spec__1___rarg___closed__1;
obj* l_lean_parser_try__view___at_lean_parser_number_parser___spec__1(obj*);
obj* l_lean_parser_command_option__value_has__view_x_27;
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__4___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___rarg___boxed(obj*, obj*);
extern obj* l_lean_parser_command_decl__sig_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_command_set__option_parser_lean_parser_has__view;
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4(obj*);
obj* l_lean_parser_command_mixfix_parser(obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
extern obj* l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__1;
obj* l_lean_parser_command_universes_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_include_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_end_has__view_x_27___lambda__2(obj*);
obj* l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__2(obj*);
obj* l_lean_parser_rec__t_recurse___at_lean_parser_command_parser_lean_parser_has__view___spec__1(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_section_has__view;
obj* l_list_join___main___rarg(obj*);
obj* l_lean_parser_command_namespace_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_end_has__view_x_27;
extern obj* l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__3;
extern obj* l_lean_parser_number_has__view;
obj* l_lean_parser_combinators_sep__by1___at_lean_parser_command_decl__attributes_parser_lean_parser_has__tokens___spec__1___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__1;
obj* l_lean_parser_command_open_has__view_x_27;
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___rarg___boxed(obj*, obj*);
obj* l_lean_parser_command_universes_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_section_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_option__value_has__view_x_27___lambda__2(obj*);
obj* l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__1(obj*);
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_open__spec_renaming_item_has__view;
obj* l_lean_parser_tokens___rarg(obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___boxed(obj*);
obj* l_lean_parser_command_parser_lean_parser_has__tokens;
obj* l_option_get__or__else___main___rarg(obj*, obj*);
obj* l_lean_parser_command_option__value_has__view;
extern obj* l_lean_parser_no__kind;
obj* l_lean_parser_syntax_as__node___main(obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3(obj*);
obj* l_lean_parser_combinators_many1_view___rarg(obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_term_binder_has__view;
obj* l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_command_open_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_variables_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_end_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_namespace_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_check_parser___closed__1;
obj* l_lean_parser_symbol_tokens___rarg(obj*, obj*);
extern obj* l_lean_parser_term_bracketed__binders_has__view;
obj* l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__4(obj*);
namespace lean {
uint8 nat_dec_eq(obj*, obj*);
}
obj* l_lean_parser_token__map__cons_tokens___rarg(obj*, obj*);
obj* l_lean_parser_command_open__spec_renaming_item;
obj* l_lean_parser_command_open__spec_renaming_has__view;
extern obj* l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
obj* l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___at_lean_parser_command_attribute_has__view_x_27___spec__2(obj*);
obj* l_lean_parser_command_check_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_open__spec;
obj* l_lean_parser_command_check_has__view_x_27;
obj* l_lean_parser_command_bool__option__value_has__view;
obj* l_lean_parser_command_attribute;
obj* l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2___boxed(obj*);
obj* l_lean_parser_term_binder_parser(obj*, obj*, obj*, obj*, obj*);
obj* l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__3(obj*, 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*);
obj* l_lean_parser_command_universe_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_open__spec_hiding_has__view;
obj* l_lean_parser_command_variable_has__view_x_27;
obj* l_lean_parser_command_option__value_has__view_x_27___lambda__1(obj*);
extern obj* l_lean_parser_finish__comment__block___closed__2;
obj* l_lean_parser_command_end_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_universe_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_open__spec_renaming;
obj* l_lean_parser_string__lit_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__2___boxed(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_open__spec_has__view;
extern obj* l_string_join___closed__1;
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2___closed__1;
obj* l_lean_parser_command_include_has__view_x_27___lambda__1(obj*);
obj* l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2(obj*);
extern obj* l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
obj* l_lean_parser_command_check_has__view;
obj* l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_parser___boxed(obj*);
obj* l_lean_parser_command_open__spec_as_has__view;
obj* l_lean_parser_command_universe_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4;
obj* l_lean_parser_command_open__spec_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___rarg(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___rarg___boxed(obj*, obj*);
obj* l_lean_parser_command_reserve__mixfix_parser(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_export_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_syntax_mk__node(obj*, obj*);
obj* l_lean_parser_number_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__3(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_open__spec_only_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_token__map_of__list___main___rarg(obj*);
obj* l_lean_parser_rec__t_run___at_lean_parser_command__parser_run___spec__8(obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
obj* l_lean_parser_command_end;
obj* l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___boxed(obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___boxed(obj*);
obj* l_lean_parser_command_variable_parser___closed__1;
obj* l_lean_parser_command_set__option_has__view_x_27;
obj* l_lean_parser_command_option__value;
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___boxed(obj*);
obj* l_lean_parser_command_include_parser___closed__1;
obj* l_lean_parser_command_bool__option__value;
obj* l_lean_parser_combinators_recurse_view___rarg(obj*, obj*);
obj* l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_omit_has__view;
obj* l_lean_parser_command_variable_parser_lean_parser_has__tokens;
obj* l_lean_parser_token(obj*, obj*, obj*);
obj* l_lean_parser_command_attribute_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_set__option_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_open_has__view_x_27___lambda__2___closed__1;
obj* l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed(obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_term_parser_lean_parser_has__tokens___closed__1;
obj* l_lean_parser_command_omit_has__view_x_27___lambda__2(obj*);
obj* l___private_init_lean_parser_rec_1__run__aux___at_lean_parser_command__parser_run___spec__9___boxed(obj*, obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_term_bracketed__binders_parser_lean_parser_has__tokens;
obj* l_lean_parser_symbol__or__ident___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__1(obj*, obj*, obj*, obj*, obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___rarg___boxed(obj*, obj*);
obj* l_lean_parser_command_attribute_parser_lean_parser_has__view;
obj* l_lean_parser_term_parser(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_variable_has__view_x_27___lambda__2(obj*);
extern obj* l_lean_parser_detail__ident_has__view_x_27___lambda__2___closed__1;
obj* l_lean_parser_command_namespace_has__view;
obj* l_lean_parser_number_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__3___boxed(obj*, obj*, obj*, obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___rarg(obj*, obj*);
extern obj* l_lean_parser_indexed___rarg___lambda__1___closed__1;
extern obj* l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___lambda__1___boxed(obj*, obj*, obj*);
obj* l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__1(obj*);
obj* l_lean_parser_substring_to__string(obj*);
obj* l_lean_parser_try__view___at_lean_parser_string__lit_parser___spec__1(obj*);
obj* l_lean_parser_command_section_has__view_x_27___lambda__2___closed__1;
obj* l_lean_parser_command_namespace_has__view_x_27___lambda__1(obj*);
extern "C" uint8 lean_name_dec_eq(obj*, obj*);
obj* l_lean_parser_command_bool__option__value_has__view_x_27___lambda__2(obj*);
namespace lean {
uint8 string_dec_eq(obj*, obj*);
}
obj* l_lean_parser_command_namespace_has__view_x_27___lambda__2(obj*);
obj* l_lean_parser_command_section;
extern obj* l_lean_parser_command_attr__instance_has__view;
obj* l_lean_parser_command_open__spec_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_export_parser___closed__1;
obj* l_lean_parser_string__lit_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__2(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_export_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_variable_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_universe;
obj* l_lean_parser_command_section_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_attribute_has__view_x_27___lambda__1___closed__1;
namespace lean {
obj* string_iterator_remaining(obj*);
}
obj* l_lean_parser_command_include_has__view_x_27;
obj* l_lean_parser_command_section_parser_lean_parser_has__tokens;
obj* l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___rarg___boxed(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_open__spec_hiding_has__view_x_27;
obj* l_lean_parser_command_attribute_parser_lean_parser_has__tokens;
obj* l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3___rarg(obj*, obj*);
obj* l_lean_parser_command_open__spec_parser___closed__1;
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_combinators_many___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__2(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_builtin__command__parsers;
obj* l_string_trim(obj*);
extern obj* l_lean_parser_command_declaration_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_attr__instance_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_notation_parser(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_set__option_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_term__parser_run(obj*, obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_command_mixfix_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__3;
obj* l_lean_parser_command_builtin__command__parsers_lean_parser_has__tokens;
obj* l_lean_parser_command_variables_has__view_x_27;
obj* l_lean_parser_command_end_has__view;
obj* l_lean_parser_command_universes_has__view_x_27;
extern obj* l_lean_parser_command__parser__m_lean_parser_monad__rec___closed__1;
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
extern obj* l_lean_parser_string__lit_parser___at_lean_parser_term_builtin__leading__parsers_lean_parser_has__tokens___spec__1___rarg___closed__1;
obj* l_lean_parser_command_open__spec_hiding;
obj* l_lean_parser_command_parser(obj*);
extern obj* l_lean_parser_command_notation_has__view_x_27___lambda__2___closed__1;
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___boxed(obj*);
extern obj* l_lean_parser_command_attr__instance_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_init__quot;
obj* l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_command_variables_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_declaration_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1;
obj* l_reader__t_lift___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__8___rarg___boxed(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_init__quot_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_reserve__notation_parser(obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_export_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7(obj*);
obj* l_lean_parser_command_init__quot_parser_lean_parser_has__view;
obj* l_lean_parser_command_init__quot_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_namespace_has__view_x_27;
obj* l_lean_parser_command_parser___rarg(obj*, obj*, obj*);
obj* l_lean_parser_command_include_has__view;
obj* l_lean_parser_command_namespace;
obj* l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1___closed__1;
obj* l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__2(obj*);
obj* l_lean_parser_command_attribute_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_omit_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_variables_has__view_x_27___lambda__1(obj*);
obj* l_dlist_singleton___rarg(obj*, obj*);
extern obj* l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2(obj*);
obj* l_lean_parser_command_omit;
obj* l_lean_parser_parsec__t_orelse__mk__res___rarg(obj*, obj*);
obj* l_list_append___rarg(obj*, obj*);
obj* l_lean_parser_command_omit_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_command_universe_parser___closed__1;
obj* l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__2;
obj* l_lean_parser_command_omit_parser(obj*, obj*, obj*, obj*);
extern obj* l_lean_parser_command_reserve__notation_has__view_x_27___lambda__2___closed__1;
obj* l_lean_parser_command_attribute_parser___closed__1;
extern obj* l_lean_parser_combinators_any__of___rarg___closed__1;
extern obj* l_lean_parser_raw_view___rarg___lambda__2___closed__1;
obj* l_lean_parser_command_section_has__view_x_27___lambda__1(obj*);
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___lambda__1(obj*, obj*, obj*);
obj* l_lean_parser_command_open_has__view_x_27___lambda__2(obj*);
obj* l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3(obj*);
obj* l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__1(obj*);
obj* l_lean_parser_command_end_parser(obj*, obj*, obj*, obj*);
obj* l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1___closed__1;
obj* l_lean_parser_command_check;
extern obj* l_lean_parser_number_has__view_x_27___lambda__2___closed__4;
extern obj* l_lean_parser_command_reserve__notation_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_export_parser_lean_parser_has__tokens;
obj* l_lean_parser_command_export;
obj* l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2___rarg(obj*, obj*, obj*, obj*, obj*, obj*);
obj* l___private_init_lean_parser_rec_1__run__aux___main___rarg(obj*, obj*, obj*, obj*);
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___rarg(obj*, obj*);
obj* l_lean_parser_command_end_has__view_x_27___lambda__2___closed__1;
obj* l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__2(obj*);
obj* l_lean_parser_command_set__option_has__view;
obj* l_lean_parser_rec__t_recurse___at_lean_parser_command_parser_lean_parser_has__view___spec__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_7; obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_4 = lean::apply_3(x_1, x_0, x_2, x_3);
x_5 = lean::cnstr_get(x_4, 0);
x_7 = lean::cnstr_get(x_4, 1);
if (lean::is_exclusive(x_4)) {
x_9 = x_4;
} else {
lean::inc(x_5);
lean::inc(x_7);
lean::dec(x_4);
x_9 = lean::box(0);
}
x_10 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_11 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_10, x_5);
if (lean::is_scalar(x_9)) {
x_12 = lean::alloc_cnstr(0, 2, 0);
} else {
x_12 = x_9;
}
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_7);
return x_12;
}
}
obj* _init_l_lean_parser_command_parser_lean_parser_has__view() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_rec__t_recurse___at_lean_parser_command_parser_lean_parser_has__view___spec__1), 4, 1);
lean::closure_set(x_1, 0, x_0);
x_2 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_lift___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__8___rarg___boxed), 5, 1);
lean::closure_set(x_2, 0, x_1);
x_3 = l_lean_parser_command__parser__m_lean_parser_monad__rec___closed__1;
x_4 = l_lean_parser_combinators_recurse_view___rarg(x_0, x_3);
x_5 = l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__1;
x_6 = l_lean_parser_command__parser__m_alternative___closed__1;
x_7 = lean::mk_string("command");
x_8 = l_lean_parser_combinators_label_view___rarg(x_5, x_6, x_2, x_7, x_4);
lean::dec(x_7);
lean::dec(x_2);
return x_8;
}
}
obj* _init_l_lean_parser_command_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1;
x_0 = lean::box(0);
x_1 = l_lean_parser_tokens___rarg(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_command_parser___rarg___closed__1() {
_start:
{
obj* x_0; obj* x_1;
x_0 = lean::mk_string("command");
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_1, 0, x_0);
return x_1;
}
}
obj* l_lean_parser_command_parser___rarg(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_4; obj* x_5; obj* x_7; obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_3 = lean::box(0);
x_4 = l_lean_parser_rec__t_recurse___at_lean_parser_command_parser_lean_parser_has__view___spec__1(x_3, x_0, x_1, x_2);
x_5 = lean::cnstr_get(x_4, 0);
x_7 = lean::cnstr_get(x_4, 1);
if (lean::is_exclusive(x_4)) {
x_9 = x_4;
} else {
lean::inc(x_5);
lean::inc(x_7);
lean::dec(x_4);
x_9 = lean::box(0);
}
x_10 = l_lean_parser_command_parser___rarg___closed__1;
x_11 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_5, x_10);
if (lean::is_scalar(x_9)) {
x_12 = lean::alloc_cnstr(0, 2, 0);
} else {
x_12 = x_9;
}
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_7);
return x_12;
}
}
obj* l_lean_parser_command_parser(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_parser___rarg), 3, 0);
return x_1;
}
}
obj* l_lean_parser_command_parser___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_command_parser(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_command_open__spec_as() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("open_spec");
x_8 = lean_name_mk_string(x_6, x_7);
x_9 = lean::mk_string("as");
x_10 = lean_name_mk_string(x_8, x_9);
return x_10;
}
}
obj* _init_l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_14; obj* x_15;
x_14 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_5);
lean::cnstr_set(x_15, 1, x_14);
return x_15;
}
else
{
obj* x_16;
x_16 = lean::cnstr_get(x_0, 0);
lean::inc(x_16);
lean::dec(x_0);
switch (lean::obj_tag(x_16)) {
case 1:
{
obj* x_19; obj* x_22;
x_19 = lean::cnstr_get(x_16, 0);
lean::inc(x_19);
lean::dec(x_16);
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_5);
lean::cnstr_set(x_22, 1, x_19);
return x_22;
}
case 3:
{
obj* x_23; obj* x_24;
x_23 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_24 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_24, 0, x_5);
lean::cnstr_set(x_24, 1, x_23);
return x_24;
}
default:
{
obj* x_26; obj* x_27;
lean::dec(x_16);
x_26 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_27 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_27, 0, x_5);
lean::cnstr_set(x_27, 1, x_26);
return x_27;
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_27; obj* x_28;
x_27 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_28 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_28, 0, x_18);
lean::cnstr_set(x_28, 1, x_27);
return x_28;
}
else
{
obj* x_29;
x_29 = lean::cnstr_get(x_1, 0);
lean::inc(x_29);
lean::dec(x_1);
switch (lean::obj_tag(x_29)) {
case 1:
{
obj* x_32; obj* x_35;
x_32 = lean::cnstr_get(x_29, 0);
lean::inc(x_32);
lean::dec(x_29);
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_18);
lean::cnstr_set(x_35, 1, x_32);
return x_35;
}
case 3:
{
obj* x_36; obj* x_37;
x_36 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_37 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_37, 0, x_18);
lean::cnstr_set(x_37, 1, x_36);
return x_37;
}
default:
{
obj* x_39; obj* x_40;
lean::dec(x_29);
x_39 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_40 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_40, 0, x_18);
lean::cnstr_set(x_40, 1, x_39);
return x_40;
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_as_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_6, 0, x_3);
x_7 = lean::box(0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
if (lean::obj_tag(x_1) == 0)
{
obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_9 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_9);
lean::cnstr_set(x_10, 1, x_8);
x_11 = l_lean_parser_command_open__spec_as;
x_12 = l_lean_parser_syntax_mk__node(x_11, x_10);
return x_12;
}
else
{
obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_21; obj* x_22; obj* x_23;
x_13 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_15 = x_1;
} else {
lean::inc(x_13);
lean::dec(x_1);
x_15 = lean::box(0);
}
x_16 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_16, 0, x_13);
if (lean::is_scalar(x_15)) {
x_17 = lean::alloc_cnstr(1, 1, 0);
} else {
x_17 = x_15;
}
lean::cnstr_set(x_17, 0, x_16);
x_18 = lean::box(3);
x_19 = l_option_get__or__else___main___rarg(x_17, x_18);
lean::dec(x_17);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_19);
lean::cnstr_set(x_21, 1, x_8);
x_22 = l_lean_parser_command_open__spec_as;
x_23 = l_lean_parser_syntax_mk__node(x_22, x_21);
return x_23;
}
}
}
obj* _init_l_lean_parser_command_open__spec_as_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_as_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_open__spec_as_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_open__spec_as_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_open__spec_only() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("open_spec");
x_8 = lean_name_mk_string(x_6, x_7);
x_9 = lean::mk_string("only");
x_10 = lean_name_mk_string(x_8, x_9);
return x_10;
}
}
obj* l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
lean::cnstr_set(x_0, 0, lean::box(0));
lean::cnstr_set(x_0, 1, lean::box(0));
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__1(x_4);
switch (lean::obj_tag(x_2)) {
case 1:
{
obj* x_8; obj* x_11;
x_8 = lean::cnstr_get(x_2, 0);
lean::inc(x_8);
lean::dec(x_2);
if (lean::is_scalar(x_6)) {
x_11 = lean::alloc_cnstr(1, 2, 0);
} else {
x_11 = x_6;
}
lean::cnstr_set(x_11, 0, x_8);
lean::cnstr_set(x_11, 1, x_7);
return x_11;
}
case 3:
{
obj* x_12; obj* x_13;
x_12 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_13 = lean::alloc_cnstr(1, 2, 0);
} else {
x_13 = x_6;
}
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_7);
return x_13;
}
default:
{
obj* x_15; obj* x_16;
lean::dec(x_2);
x_15 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_16 = lean::alloc_cnstr(1, 2, 0);
} else {
x_16 = x_6;
}
lean::cnstr_set(x_16, 0, x_15);
lean::cnstr_set(x_16, 1, x_7);
return x_16;
}
}
}
}
}
obj* l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__2(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_7, 0, x_2);
x_8 = l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__2(x_4);
if (lean::is_scalar(x_6)) {
x_9 = lean::alloc_cnstr(1, 2, 0);
} else {
x_9 = x_6;
}
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
return x_9;
}
}
}
obj* _init_l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14; obj* x_15;
if (lean::obj_tag(x_0) == 0)
{
obj* x_17;
x_17 = lean::box(3);
x_14 = x_0;
x_15 = x_17;
goto lbl_16;
}
else
{
obj* x_18; obj* x_20;
x_18 = lean::cnstr_get(x_0, 0);
lean::inc(x_18);
x_20 = lean::cnstr_get(x_0, 1);
lean::inc(x_20);
lean::dec(x_0);
x_14 = x_20;
x_15 = x_18;
goto lbl_16;
}
lbl_16:
{
obj* x_23;
switch (lean::obj_tag(x_15)) {
case 1:
{
obj* x_25;
x_25 = lean::cnstr_get(x_15, 0);
lean::inc(x_25);
lean::dec(x_15);
x_23 = x_25;
goto lbl_24;
}
case 3:
{
obj* x_28;
x_28 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_23 = x_28;
goto lbl_24;
}
default:
{
obj* x_30;
lean::dec(x_15);
x_30 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_23 = x_30;
goto lbl_24;
}
}
lbl_24:
{
obj* x_31; obj* x_32;
if (lean::obj_tag(x_14) == 0)
{
obj* x_34;
x_34 = lean::box(3);
x_31 = x_14;
x_32 = x_34;
goto lbl_33;
}
else
{
obj* x_35; obj* x_37;
x_35 = lean::cnstr_get(x_14, 0);
lean::inc(x_35);
x_37 = lean::cnstr_get(x_14, 1);
lean::inc(x_37);
lean::dec(x_14);
x_31 = x_37;
x_32 = x_35;
goto lbl_33;
}
lbl_33:
{
obj* x_40;
x_40 = l_lean_parser_syntax_as__node___main(x_32);
if (lean::obj_tag(x_40) == 0)
{
if (lean::obj_tag(x_31) == 0)
{
obj* x_41; obj* x_42; obj* x_43;
x_41 = lean::box(0);
x_42 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_43 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_43, 0, x_5);
lean::cnstr_set(x_43, 1, x_23);
lean::cnstr_set(x_43, 2, x_42);
lean::cnstr_set(x_43, 3, x_41);
return x_43;
}
else
{
obj* x_44;
x_44 = lean::cnstr_get(x_31, 0);
lean::inc(x_44);
lean::dec(x_31);
switch (lean::obj_tag(x_44)) {
case 0:
{
obj* x_47; obj* x_50; obj* x_51; obj* x_52;
x_47 = lean::cnstr_get(x_44, 0);
lean::inc(x_47);
lean::dec(x_44);
x_50 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_50, 0, x_47);
x_51 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_52 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_52, 0, x_5);
lean::cnstr_set(x_52, 1, x_23);
lean::cnstr_set(x_52, 2, x_51);
lean::cnstr_set(x_52, 3, x_50);
return x_52;
}
case 3:
{
obj* x_53; obj* x_54; obj* x_55;
x_53 = lean::box(0);
x_54 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_55 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_55, 0, x_5);
lean::cnstr_set(x_55, 1, x_23);
lean::cnstr_set(x_55, 2, x_54);
lean::cnstr_set(x_55, 3, x_53);
return x_55;
}
default:
{
obj* x_57; obj* x_58; obj* x_59;
lean::dec(x_44);
x_57 = lean::box(0);
x_58 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_59 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_59, 0, x_5);
lean::cnstr_set(x_59, 1, x_23);
lean::cnstr_set(x_59, 2, x_58);
lean::cnstr_set(x_59, 3, x_57);
return x_59;
}
}
}
}
else
{
obj* x_60; obj* x_62; obj* x_63; obj* x_66;
x_60 = lean::cnstr_get(x_40, 0);
if (lean::is_exclusive(x_40)) {
lean::cnstr_set(x_40, 0, lean::box(0));
x_62 = x_40;
} else {
lean::inc(x_60);
lean::dec(x_40);
x_62 = lean::box(0);
}
x_63 = lean::cnstr_get(x_60, 1);
lean::inc(x_63);
lean::dec(x_60);
x_66 = l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__1(x_63);
if (lean::obj_tag(x_31) == 0)
{
obj* x_68; obj* x_69;
lean::dec(x_62);
x_68 = lean::box(0);
x_69 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_69, 0, x_5);
lean::cnstr_set(x_69, 1, x_23);
lean::cnstr_set(x_69, 2, x_66);
lean::cnstr_set(x_69, 3, x_68);
return x_69;
}
else
{
obj* x_70;
x_70 = lean::cnstr_get(x_31, 0);
lean::inc(x_70);
lean::dec(x_31);
switch (lean::obj_tag(x_70)) {
case 0:
{
obj* x_73; obj* x_76; obj* x_77;
x_73 = lean::cnstr_get(x_70, 0);
lean::inc(x_73);
lean::dec(x_70);
if (lean::is_scalar(x_62)) {
x_76 = lean::alloc_cnstr(1, 1, 0);
} else {
x_76 = x_62;
}
lean::cnstr_set(x_76, 0, x_73);
x_77 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_77, 0, x_5);
lean::cnstr_set(x_77, 1, x_23);
lean::cnstr_set(x_77, 2, x_66);
lean::cnstr_set(x_77, 3, x_76);
return x_77;
}
case 3:
{
obj* x_79; obj* x_80;
lean::dec(x_62);
x_79 = lean::box(0);
x_80 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_80, 0, x_5);
lean::cnstr_set(x_80, 1, x_23);
lean::cnstr_set(x_80, 2, x_66);
lean::cnstr_set(x_80, 3, x_79);
return x_80;
}
default:
{
obj* x_83; obj* x_84;
lean::dec(x_62);
lean::dec(x_70);
x_83 = lean::box(0);
x_84 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_84, 0, x_5);
lean::cnstr_set(x_84, 1, x_23);
lean::cnstr_set(x_84, 2, x_66);
lean::cnstr_set(x_84, 3, x_83);
return x_84;
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
else
{
obj* x_18; obj* x_20; obj* x_23;
x_18 = lean::cnstr_get(x_9, 0);
lean::inc(x_18);
x_20 = lean::cnstr_get(x_9, 1);
lean::inc(x_20);
lean::dec(x_9);
x_23 = l_lean_parser_syntax_as__node___main(x_18);
if (lean::obj_tag(x_23) == 0)
{
if (lean::obj_tag(x_20) == 0)
{
obj* x_24;
x_24 = lean::box(3);
x_1 = x_20;
x_2 = x_24;
goto lbl_3;
}
else
{
obj* x_25; obj* x_27;
x_25 = lean::cnstr_get(x_20, 0);
lean::inc(x_25);
x_27 = lean::cnstr_get(x_20, 1);
lean::inc(x_27);
lean::dec(x_20);
x_1 = x_27;
x_2 = x_25;
goto lbl_3;
}
}
else
{
obj* x_30; obj* x_33; obj* x_36;
x_30 = lean::cnstr_get(x_23, 0);
lean::inc(x_30);
lean::dec(x_23);
x_33 = lean::cnstr_get(x_30, 1);
lean::inc(x_33);
lean::dec(x_30);
x_36 = l_list_append___rarg(x_33, x_20);
if (lean::obj_tag(x_36) == 0)
{
obj* x_37;
x_37 = lean::box(3);
x_1 = x_36;
x_2 = x_37;
goto lbl_3;
}
else
{
obj* x_38; obj* x_40;
x_38 = lean::cnstr_get(x_36, 0);
lean::inc(x_38);
x_40 = lean::cnstr_get(x_36, 1);
lean::inc(x_40);
lean::dec(x_36);
x_1 = x_40;
x_2 = x_38;
goto lbl_3;
}
}
}
}
lbl_3:
{
obj* x_43;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_45; obj* x_48;
x_45 = lean::cnstr_get(x_2, 0);
lean::inc(x_45);
lean::dec(x_2);
x_48 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_48, 0, x_45);
x_43 = x_48;
goto lbl_44;
}
case 3:
{
obj* x_49;
x_49 = lean::box(0);
x_43 = x_49;
goto lbl_44;
}
default:
{
obj* x_51;
lean::dec(x_2);
x_51 = lean::box(0);
x_43 = x_51;
goto lbl_44;
}
}
lbl_44:
{
obj* x_52; obj* x_53;
if (lean::obj_tag(x_1) == 0)
{
obj* x_55;
x_55 = lean::box(3);
x_52 = x_1;
x_53 = x_55;
goto lbl_54;
}
else
{
obj* x_56; obj* x_58;
x_56 = lean::cnstr_get(x_1, 0);
lean::inc(x_56);
x_58 = lean::cnstr_get(x_1, 1);
lean::inc(x_58);
lean::dec(x_1);
x_52 = x_58;
x_53 = x_56;
goto lbl_54;
}
lbl_54:
{
obj* x_61;
switch (lean::obj_tag(x_53)) {
case 1:
{
obj* x_63;
x_63 = lean::cnstr_get(x_53, 0);
lean::inc(x_63);
lean::dec(x_53);
x_61 = x_63;
goto lbl_62;
}
case 3:
{
obj* x_66;
x_66 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_61 = x_66;
goto lbl_62;
}
default:
{
obj* x_68;
lean::dec(x_53);
x_68 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_61 = x_68;
goto lbl_62;
}
}
lbl_62:
{
obj* x_69; obj* x_70;
if (lean::obj_tag(x_52) == 0)
{
obj* x_72;
x_72 = lean::box(3);
x_69 = x_52;
x_70 = x_72;
goto lbl_71;
}
else
{
obj* x_73; obj* x_75;
x_73 = lean::cnstr_get(x_52, 0);
lean::inc(x_73);
x_75 = lean::cnstr_get(x_52, 1);
lean::inc(x_75);
lean::dec(x_52);
x_69 = x_75;
x_70 = x_73;
goto lbl_71;
}
lbl_71:
{
obj* x_78;
x_78 = l_lean_parser_syntax_as__node___main(x_70);
if (lean::obj_tag(x_78) == 0)
{
if (lean::obj_tag(x_69) == 0)
{
obj* x_79; obj* x_80; obj* x_81;
x_79 = lean::box(0);
x_80 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_81 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_81, 0, x_43);
lean::cnstr_set(x_81, 1, x_61);
lean::cnstr_set(x_81, 2, x_80);
lean::cnstr_set(x_81, 3, x_79);
return x_81;
}
else
{
obj* x_82;
x_82 = lean::cnstr_get(x_69, 0);
lean::inc(x_82);
lean::dec(x_69);
switch (lean::obj_tag(x_82)) {
case 0:
{
obj* x_85; obj* x_88; obj* x_89; obj* x_90;
x_85 = lean::cnstr_get(x_82, 0);
lean::inc(x_85);
lean::dec(x_82);
x_88 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_88, 0, x_85);
x_89 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_90 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_90, 0, x_43);
lean::cnstr_set(x_90, 1, x_61);
lean::cnstr_set(x_90, 2, x_89);
lean::cnstr_set(x_90, 3, x_88);
return x_90;
}
case 3:
{
obj* x_91; obj* x_92; obj* x_93;
x_91 = lean::box(0);
x_92 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_93 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_93, 0, x_43);
lean::cnstr_set(x_93, 1, x_61);
lean::cnstr_set(x_93, 2, x_92);
lean::cnstr_set(x_93, 3, x_91);
return x_93;
}
default:
{
obj* x_95; obj* x_96; obj* x_97;
lean::dec(x_82);
x_95 = lean::box(0);
x_96 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_97 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_97, 0, x_43);
lean::cnstr_set(x_97, 1, x_61);
lean::cnstr_set(x_97, 2, x_96);
lean::cnstr_set(x_97, 3, x_95);
return x_97;
}
}
}
}
else
{
obj* x_98; obj* x_100; obj* x_101; obj* x_104;
x_98 = lean::cnstr_get(x_78, 0);
if (lean::is_exclusive(x_78)) {
lean::cnstr_set(x_78, 0, lean::box(0));
x_100 = x_78;
} else {
lean::inc(x_98);
lean::dec(x_78);
x_100 = lean::box(0);
}
x_101 = lean::cnstr_get(x_98, 1);
lean::inc(x_101);
lean::dec(x_98);
x_104 = l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__1(x_101);
if (lean::obj_tag(x_69) == 0)
{
obj* x_106; obj* x_107;
lean::dec(x_100);
x_106 = lean::box(0);
x_107 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_107, 0, x_43);
lean::cnstr_set(x_107, 1, x_61);
lean::cnstr_set(x_107, 2, x_104);
lean::cnstr_set(x_107, 3, x_106);
return x_107;
}
else
{
obj* x_108;
x_108 = lean::cnstr_get(x_69, 0);
lean::inc(x_108);
lean::dec(x_69);
switch (lean::obj_tag(x_108)) {
case 0:
{
obj* x_111; obj* x_114; obj* x_115;
x_111 = lean::cnstr_get(x_108, 0);
lean::inc(x_111);
lean::dec(x_108);
if (lean::is_scalar(x_100)) {
x_114 = lean::alloc_cnstr(1, 1, 0);
} else {
x_114 = x_100;
}
lean::cnstr_set(x_114, 0, x_111);
x_115 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_115, 0, x_43);
lean::cnstr_set(x_115, 1, x_61);
lean::cnstr_set(x_115, 2, x_104);
lean::cnstr_set(x_115, 3, x_114);
return x_115;
}
case 3:
{
obj* x_117; obj* x_118;
lean::dec(x_100);
x_117 = lean::box(0);
x_118 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_118, 0, x_43);
lean::cnstr_set(x_118, 1, x_61);
lean::cnstr_set(x_118, 2, x_104);
lean::cnstr_set(x_118, 3, x_117);
return x_118;
}
default:
{
obj* x_121; obj* x_122;
lean::dec(x_108);
lean::dec(x_100);
x_121 = lean::box(0);
x_122 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_122, 0, x_43);
lean::cnstr_set(x_122, 1, x_61);
lean::cnstr_set(x_122, 2, x_104);
lean::cnstr_set(x_122, 3, x_121);
return x_122;
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_only_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_7; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
x_7 = lean::cnstr_get(x_0, 3);
lean::inc(x_7);
lean::dec(x_0);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_3);
x_11 = lean::box(0);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_10);
lean::cnstr_set(x_12, 1, x_11);
x_13 = l_list_map___main___at_lean_parser_command_open__spec_only_has__view_x_27___spec__2(x_5);
x_14 = l_lean_parser_no__kind;
x_15 = l_lean_parser_syntax_mk__node(x_14, x_13);
if (lean::obj_tag(x_1) == 0)
{
obj* x_16; obj* x_17; obj* x_18;
x_16 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_12);
x_18 = l_lean_parser_syntax_mk__node(x_14, x_17);
if (lean::obj_tag(x_7) == 0)
{
obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23;
x_19 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_20 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_20, 0, x_15);
lean::cnstr_set(x_20, 1, x_19);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_18);
lean::cnstr_set(x_21, 1, x_20);
x_22 = l_lean_parser_command_open__spec_only;
x_23 = l_lean_parser_syntax_mk__node(x_22, x_21);
return x_23;
}
else
{
obj* x_24; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36;
x_24 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_26 = x_7;
} else {
lean::inc(x_24);
lean::dec(x_7);
x_26 = lean::box(0);
}
x_27 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_27, 0, x_24);
if (lean::is_scalar(x_26)) {
x_28 = lean::alloc_cnstr(1, 1, 0);
} else {
x_28 = x_26;
}
lean::cnstr_set(x_28, 0, x_27);
x_29 = lean::box(3);
x_30 = l_option_get__or__else___main___rarg(x_28, x_29);
lean::dec(x_28);
x_32 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_32, 0, x_30);
lean::cnstr_set(x_32, 1, x_11);
x_33 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_33, 0, x_15);
lean::cnstr_set(x_33, 1, x_32);
x_34 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_34, 0, x_18);
lean::cnstr_set(x_34, 1, x_33);
x_35 = l_lean_parser_command_open__spec_only;
x_36 = l_lean_parser_syntax_mk__node(x_35, x_34);
return x_36;
}
}
else
{
obj* x_37; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_45; obj* x_46;
x_37 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_39 = x_1;
} else {
lean::inc(x_37);
lean::dec(x_1);
x_39 = lean::box(0);
}
x_40 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_40, 0, x_37);
if (lean::is_scalar(x_39)) {
x_41 = lean::alloc_cnstr(1, 1, 0);
} else {
x_41 = x_39;
}
lean::cnstr_set(x_41, 0, x_40);
x_42 = lean::box(3);
x_43 = l_option_get__or__else___main___rarg(x_41, x_42);
lean::dec(x_41);
x_45 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_45, 0, x_43);
lean::cnstr_set(x_45, 1, x_12);
x_46 = l_lean_parser_syntax_mk__node(x_14, x_45);
if (lean::obj_tag(x_7) == 0)
{
obj* x_47; obj* x_48; obj* x_49; obj* x_50; obj* x_51;
x_47 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_48 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_48, 0, x_15);
lean::cnstr_set(x_48, 1, x_47);
x_49 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_49, 0, x_46);
lean::cnstr_set(x_49, 1, x_48);
x_50 = l_lean_parser_command_open__spec_only;
x_51 = l_lean_parser_syntax_mk__node(x_50, x_49);
return x_51;
}
else
{
obj* x_52; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_63;
x_52 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_54 = x_7;
} else {
lean::inc(x_52);
lean::dec(x_7);
x_54 = lean::box(0);
}
x_55 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_55, 0, x_52);
if (lean::is_scalar(x_54)) {
x_56 = lean::alloc_cnstr(1, 1, 0);
} else {
x_56 = x_54;
}
lean::cnstr_set(x_56, 0, x_55);
x_57 = l_option_get__or__else___main___rarg(x_56, x_42);
lean::dec(x_56);
x_59 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_59, 0, x_57);
lean::cnstr_set(x_59, 1, x_11);
x_60 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_60, 0, x_15);
lean::cnstr_set(x_60, 1, x_59);
x_61 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_61, 0, x_46);
lean::cnstr_set(x_61, 1, x_60);
x_62 = l_lean_parser_command_open__spec_only;
x_63 = l_lean_parser_syntax_mk__node(x_62, x_61);
return x_63;
}
}
}
}
obj* _init_l_lean_parser_command_open__spec_only_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_only_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_open__spec_only_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_open__spec_only_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_item() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("open_spec");
x_8 = lean_name_mk_string(x_6, x_7);
x_9 = lean::mk_string("renaming");
x_10 = lean_name_mk_string(x_8, x_9);
x_11 = lean::mk_string("item");
x_12 = lean_name_mk_string(x_10, x_11);
return x_12;
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 1:
{
obj* x_7;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_5 = x_7;
goto lbl_6;
}
case 3:
{
obj* x_10;
x_10 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_5 = x_10;
goto lbl_6;
}
default:
{
obj* x_12;
lean::dec(x_1);
x_12 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_5 = x_12;
goto lbl_6;
}
}
lbl_6:
{
obj* x_13; obj* x_14;
if (lean::obj_tag(x_0) == 0)
{
obj* x_16;
x_16 = lean::box(3);
x_13 = x_0;
x_14 = x_16;
goto lbl_15;
}
else
{
obj* x_17; obj* x_19;
x_17 = lean::cnstr_get(x_0, 0);
lean::inc(x_17);
x_19 = lean::cnstr_get(x_0, 1);
lean::inc(x_19);
lean::dec(x_0);
x_13 = x_19;
x_14 = x_17;
goto lbl_15;
}
lbl_15:
{
obj* x_22;
switch (lean::obj_tag(x_14)) {
case 0:
{
obj* x_24; obj* x_27;
x_24 = lean::cnstr_get(x_14, 0);
lean::inc(x_24);
lean::dec(x_14);
x_27 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_27, 0, x_24);
x_22 = x_27;
goto lbl_23;
}
case 3:
{
obj* x_28;
x_28 = lean::box(0);
x_22 = x_28;
goto lbl_23;
}
default:
{
obj* x_30;
lean::dec(x_14);
x_30 = lean::box(0);
x_22 = x_30;
goto lbl_23;
}
}
lbl_23:
{
if (lean::obj_tag(x_13) == 0)
{
obj* x_31; obj* x_32;
x_31 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_32 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_32, 0, x_5);
lean::cnstr_set(x_32, 1, x_22);
lean::cnstr_set(x_32, 2, x_31);
return x_32;
}
else
{
obj* x_33;
x_33 = lean::cnstr_get(x_13, 0);
lean::inc(x_33);
lean::dec(x_13);
switch (lean::obj_tag(x_33)) {
case 1:
{
obj* x_36; obj* x_39;
x_36 = lean::cnstr_get(x_33, 0);
lean::inc(x_36);
lean::dec(x_33);
x_39 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_39, 0, x_5);
lean::cnstr_set(x_39, 1, x_22);
lean::cnstr_set(x_39, 2, x_36);
return x_39;
}
case 3:
{
obj* x_40; obj* x_41;
x_40 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_41 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_41, 0, x_5);
lean::cnstr_set(x_41, 1, x_22);
lean::cnstr_set(x_41, 2, x_40);
return x_41;
}
default:
{
obj* x_43; obj* x_44;
lean::dec(x_33);
x_43 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_44 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_44, 0, x_5);
lean::cnstr_set(x_44, 1, x_22);
lean::cnstr_set(x_44, 2, x_43);
return x_44;
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 1:
{
obj* x_20;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_18 = x_20;
goto lbl_19;
}
case 3:
{
obj* x_23;
x_23 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_18 = x_23;
goto lbl_19;
}
default:
{
obj* x_25;
lean::dec(x_2);
x_25 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_18 = x_25;
goto lbl_19;
}
}
lbl_19:
{
obj* x_26; obj* x_27;
if (lean::obj_tag(x_1) == 0)
{
obj* x_29;
x_29 = lean::box(3);
x_26 = x_1;
x_27 = x_29;
goto lbl_28;
}
else
{
obj* x_30; obj* x_32;
x_30 = lean::cnstr_get(x_1, 0);
lean::inc(x_30);
x_32 = lean::cnstr_get(x_1, 1);
lean::inc(x_32);
lean::dec(x_1);
x_26 = x_32;
x_27 = x_30;
goto lbl_28;
}
lbl_28:
{
obj* x_35;
switch (lean::obj_tag(x_27)) {
case 0:
{
obj* x_37; obj* x_40;
x_37 = lean::cnstr_get(x_27, 0);
lean::inc(x_37);
lean::dec(x_27);
x_40 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_40, 0, x_37);
x_35 = x_40;
goto lbl_36;
}
case 3:
{
obj* x_41;
x_41 = lean::box(0);
x_35 = x_41;
goto lbl_36;
}
default:
{
obj* x_43;
lean::dec(x_27);
x_43 = lean::box(0);
x_35 = x_43;
goto lbl_36;
}
}
lbl_36:
{
if (lean::obj_tag(x_26) == 0)
{
obj* x_44; obj* x_45;
x_44 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_45 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_45, 0, x_18);
lean::cnstr_set(x_45, 1, x_35);
lean::cnstr_set(x_45, 2, x_44);
return x_45;
}
else
{
obj* x_46;
x_46 = lean::cnstr_get(x_26, 0);
lean::inc(x_46);
lean::dec(x_26);
switch (lean::obj_tag(x_46)) {
case 1:
{
obj* x_49; obj* x_52;
x_49 = lean::cnstr_get(x_46, 0);
lean::inc(x_49);
lean::dec(x_46);
x_52 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_52, 0, x_18);
lean::cnstr_set(x_52, 1, x_35);
lean::cnstr_set(x_52, 2, x_49);
return x_52;
}
case 3:
{
obj* x_53; obj* x_54;
x_53 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_54 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_54, 0, x_18);
lean::cnstr_set(x_54, 1, x_35);
lean::cnstr_set(x_54, 2, x_53);
return x_54;
}
default:
{
obj* x_56; obj* x_57;
lean::dec(x_46);
x_56 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_57 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_57, 0, x_18);
lean::cnstr_set(x_57, 1, x_35);
lean::cnstr_set(x_57, 2, x_56);
return x_57;
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
lean::dec(x_0);
x_8 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_8, 0, x_1);
x_9 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_9, 0, x_5);
x_10 = lean::box(0);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set(x_11, 1, x_10);
if (lean::obj_tag(x_3) == 0)
{
obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
x_12 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_13 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_11);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_8);
lean::cnstr_set(x_14, 1, x_13);
x_15 = l_lean_parser_command_open__spec_renaming_item;
x_16 = l_lean_parser_syntax_mk__node(x_15, x_14);
return x_16;
}
else
{
obj* x_17; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_25; obj* x_26; obj* x_27; obj* x_28;
x_17 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_19 = x_3;
} else {
lean::inc(x_17);
lean::dec(x_3);
x_19 = lean::box(0);
}
x_20 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_20, 0, x_17);
if (lean::is_scalar(x_19)) {
x_21 = lean::alloc_cnstr(1, 1, 0);
} else {
x_21 = x_19;
}
lean::cnstr_set(x_21, 0, x_20);
x_22 = lean::box(3);
x_23 = l_option_get__or__else___main___rarg(x_21, x_22);
lean::dec(x_21);
x_25 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_25, 0, x_23);
lean::cnstr_set(x_25, 1, x_11);
x_26 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_26, 0, x_8);
lean::cnstr_set(x_26, 1, x_25);
x_27 = l_lean_parser_command_open__spec_renaming_item;
x_28 = l_lean_parser_syntax_mk__node(x_27, x_26);
return x_28;
}
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_item_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_item_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_open__spec_renaming_item_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_open__spec_renaming() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("open_spec");
x_8 = lean_name_mk_string(x_6, x_7);
x_9 = lean::mk_string("renaming");
x_10 = lean_name_mk_string(x_8, x_9);
return x_10;
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7;
x_0 = l_lean_parser_command_open__spec_renaming_item_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::box(0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_6);
return x_7;
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_command_open__spec_renaming_item_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__3() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14; obj* x_15;
if (lean::obj_tag(x_0) == 0)
{
obj* x_17;
x_17 = lean::box(3);
x_14 = x_0;
x_15 = x_17;
goto lbl_16;
}
else
{
obj* x_18; obj* x_20;
x_18 = lean::cnstr_get(x_0, 0);
lean::inc(x_18);
x_20 = lean::cnstr_get(x_0, 1);
lean::inc(x_20);
lean::dec(x_0);
x_14 = x_20;
x_15 = x_18;
goto lbl_16;
}
lbl_16:
{
obj* x_23;
switch (lean::obj_tag(x_15)) {
case 0:
{
obj* x_25; obj* x_28;
x_25 = lean::cnstr_get(x_15, 0);
lean::inc(x_25);
lean::dec(x_15);
x_28 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_28, 0, x_25);
x_23 = x_28;
goto lbl_24;
}
case 3:
{
obj* x_29;
x_29 = lean::box(0);
x_23 = x_29;
goto lbl_24;
}
default:
{
obj* x_31;
lean::dec(x_15);
x_31 = lean::box(0);
x_23 = x_31;
goto lbl_24;
}
}
lbl_24:
{
obj* x_32; obj* x_33;
if (lean::obj_tag(x_14) == 0)
{
obj* x_35;
x_35 = lean::box(3);
x_32 = x_14;
x_33 = x_35;
goto lbl_34;
}
else
{
obj* x_36; obj* x_38;
x_36 = lean::cnstr_get(x_14, 0);
lean::inc(x_36);
x_38 = lean::cnstr_get(x_14, 1);
lean::inc(x_38);
lean::dec(x_14);
x_32 = x_38;
x_33 = x_36;
goto lbl_34;
}
lbl_34:
{
obj* x_41;
x_41 = l_lean_parser_syntax_as__node___main(x_33);
if (lean::obj_tag(x_41) == 0)
{
if (lean::obj_tag(x_32) == 0)
{
obj* x_42; obj* x_43; obj* x_44;
x_42 = lean::box(0);
x_43 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
x_44 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_44, 0, x_5);
lean::cnstr_set(x_44, 1, x_23);
lean::cnstr_set(x_44, 2, x_43);
lean::cnstr_set(x_44, 3, x_42);
return x_44;
}
else
{
obj* x_45;
x_45 = lean::cnstr_get(x_32, 0);
lean::inc(x_45);
lean::dec(x_32);
switch (lean::obj_tag(x_45)) {
case 0:
{
obj* x_48; obj* x_51; obj* x_52; obj* x_53;
x_48 = lean::cnstr_get(x_45, 0);
lean::inc(x_48);
lean::dec(x_45);
x_51 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_51, 0, x_48);
x_52 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
x_53 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_53, 0, x_5);
lean::cnstr_set(x_53, 1, x_23);
lean::cnstr_set(x_53, 2, x_52);
lean::cnstr_set(x_53, 3, x_51);
return x_53;
}
case 3:
{
obj* x_54; obj* x_55; obj* x_56;
x_54 = lean::box(0);
x_55 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
x_56 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_56, 0, x_5);
lean::cnstr_set(x_56, 1, x_23);
lean::cnstr_set(x_56, 2, x_55);
lean::cnstr_set(x_56, 3, x_54);
return x_56;
}
default:
{
obj* x_58; obj* x_59; obj* x_60;
lean::dec(x_45);
x_58 = lean::box(0);
x_59 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
x_60 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_60, 0, x_5);
lean::cnstr_set(x_60, 1, x_23);
lean::cnstr_set(x_60, 2, x_59);
lean::cnstr_set(x_60, 3, x_58);
return x_60;
}
}
}
}
else
{
obj* x_61; obj* x_63; obj* x_64; obj* x_67; obj* x_68;
x_61 = lean::cnstr_get(x_41, 0);
if (lean::is_exclusive(x_41)) {
lean::cnstr_set(x_41, 0, lean::box(0));
x_63 = x_41;
} else {
lean::inc(x_61);
lean::dec(x_41);
x_63 = lean::box(0);
}
x_64 = lean::cnstr_get(x_61, 1);
lean::inc(x_64);
lean::dec(x_61);
x_67 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__2;
x_68 = l_list_map___main___rarg(x_67, x_64);
if (lean::obj_tag(x_32) == 0)
{
obj* x_70; obj* x_71;
lean::dec(x_63);
x_70 = lean::box(0);
x_71 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_71, 0, x_5);
lean::cnstr_set(x_71, 1, x_23);
lean::cnstr_set(x_71, 2, x_68);
lean::cnstr_set(x_71, 3, x_70);
return x_71;
}
else
{
obj* x_72;
x_72 = lean::cnstr_get(x_32, 0);
lean::inc(x_72);
lean::dec(x_32);
switch (lean::obj_tag(x_72)) {
case 0:
{
obj* x_75; obj* x_78; obj* x_79;
x_75 = lean::cnstr_get(x_72, 0);
lean::inc(x_75);
lean::dec(x_72);
if (lean::is_scalar(x_63)) {
x_78 = lean::alloc_cnstr(1, 1, 0);
} else {
x_78 = x_63;
}
lean::cnstr_set(x_78, 0, x_75);
x_79 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_79, 0, x_5);
lean::cnstr_set(x_79, 1, x_23);
lean::cnstr_set(x_79, 2, x_68);
lean::cnstr_set(x_79, 3, x_78);
return x_79;
}
case 3:
{
obj* x_81; obj* x_82;
lean::dec(x_63);
x_81 = lean::box(0);
x_82 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_82, 0, x_5);
lean::cnstr_set(x_82, 1, x_23);
lean::cnstr_set(x_82, 2, x_68);
lean::cnstr_set(x_82, 3, x_81);
return x_82;
}
default:
{
obj* x_85; obj* x_86;
lean::dec(x_63);
lean::dec(x_72);
x_85 = lean::box(0);
x_86 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_86, 0, x_5);
lean::cnstr_set(x_86, 1, x_23);
lean::cnstr_set(x_86, 2, x_68);
lean::cnstr_set(x_86, 3, x_85);
return x_86;
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__3;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
else
{
obj* x_18; obj* x_20; obj* x_23;
x_18 = lean::cnstr_get(x_9, 0);
lean::inc(x_18);
x_20 = lean::cnstr_get(x_9, 1);
lean::inc(x_20);
lean::dec(x_9);
x_23 = l_lean_parser_syntax_as__node___main(x_18);
if (lean::obj_tag(x_23) == 0)
{
if (lean::obj_tag(x_20) == 0)
{
obj* x_24;
x_24 = lean::box(3);
x_1 = x_20;
x_2 = x_24;
goto lbl_3;
}
else
{
obj* x_25; obj* x_27;
x_25 = lean::cnstr_get(x_20, 0);
lean::inc(x_25);
x_27 = lean::cnstr_get(x_20, 1);
lean::inc(x_27);
lean::dec(x_20);
x_1 = x_27;
x_2 = x_25;
goto lbl_3;
}
}
else
{
obj* x_30; obj* x_33; obj* x_36;
x_30 = lean::cnstr_get(x_23, 0);
lean::inc(x_30);
lean::dec(x_23);
x_33 = lean::cnstr_get(x_30, 1);
lean::inc(x_33);
lean::dec(x_30);
x_36 = l_list_append___rarg(x_33, x_20);
if (lean::obj_tag(x_36) == 0)
{
obj* x_37;
x_37 = lean::box(3);
x_1 = x_36;
x_2 = x_37;
goto lbl_3;
}
else
{
obj* x_38; obj* x_40;
x_38 = lean::cnstr_get(x_36, 0);
lean::inc(x_38);
x_40 = lean::cnstr_get(x_36, 1);
lean::inc(x_40);
lean::dec(x_36);
x_1 = x_40;
x_2 = x_38;
goto lbl_3;
}
}
}
}
lbl_3:
{
obj* x_43;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_45; obj* x_48;
x_45 = lean::cnstr_get(x_2, 0);
lean::inc(x_45);
lean::dec(x_2);
x_48 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_48, 0, x_45);
x_43 = x_48;
goto lbl_44;
}
case 3:
{
obj* x_49;
x_49 = lean::box(0);
x_43 = x_49;
goto lbl_44;
}
default:
{
obj* x_51;
lean::dec(x_2);
x_51 = lean::box(0);
x_43 = x_51;
goto lbl_44;
}
}
lbl_44:
{
obj* x_52; obj* x_53;
if (lean::obj_tag(x_1) == 0)
{
obj* x_55;
x_55 = lean::box(3);
x_52 = x_1;
x_53 = x_55;
goto lbl_54;
}
else
{
obj* x_56; obj* x_58;
x_56 = lean::cnstr_get(x_1, 0);
lean::inc(x_56);
x_58 = lean::cnstr_get(x_1, 1);
lean::inc(x_58);
lean::dec(x_1);
x_52 = x_58;
x_53 = x_56;
goto lbl_54;
}
lbl_54:
{
obj* x_61;
switch (lean::obj_tag(x_53)) {
case 0:
{
obj* x_63; obj* x_66;
x_63 = lean::cnstr_get(x_53, 0);
lean::inc(x_63);
lean::dec(x_53);
x_66 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_66, 0, x_63);
x_61 = x_66;
goto lbl_62;
}
case 3:
{
obj* x_67;
x_67 = lean::box(0);
x_61 = x_67;
goto lbl_62;
}
default:
{
obj* x_69;
lean::dec(x_53);
x_69 = lean::box(0);
x_61 = x_69;
goto lbl_62;
}
}
lbl_62:
{
obj* x_70; obj* x_71;
if (lean::obj_tag(x_52) == 0)
{
obj* x_73;
x_73 = lean::box(3);
x_70 = x_52;
x_71 = x_73;
goto lbl_72;
}
else
{
obj* x_74; obj* x_76;
x_74 = lean::cnstr_get(x_52, 0);
lean::inc(x_74);
x_76 = lean::cnstr_get(x_52, 1);
lean::inc(x_76);
lean::dec(x_52);
x_70 = x_76;
x_71 = x_74;
goto lbl_72;
}
lbl_72:
{
obj* x_79;
x_79 = l_lean_parser_syntax_as__node___main(x_71);
if (lean::obj_tag(x_79) == 0)
{
if (lean::obj_tag(x_70) == 0)
{
obj* x_80; obj* x_81; obj* x_82;
x_80 = lean::box(0);
x_81 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
x_82 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_82, 0, x_43);
lean::cnstr_set(x_82, 1, x_61);
lean::cnstr_set(x_82, 2, x_81);
lean::cnstr_set(x_82, 3, x_80);
return x_82;
}
else
{
obj* x_83;
x_83 = lean::cnstr_get(x_70, 0);
lean::inc(x_83);
lean::dec(x_70);
switch (lean::obj_tag(x_83)) {
case 0:
{
obj* x_86; obj* x_89; obj* x_90; obj* x_91;
x_86 = lean::cnstr_get(x_83, 0);
lean::inc(x_86);
lean::dec(x_83);
x_89 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_89, 0, x_86);
x_90 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
x_91 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_91, 0, x_43);
lean::cnstr_set(x_91, 1, x_61);
lean::cnstr_set(x_91, 2, x_90);
lean::cnstr_set(x_91, 3, x_89);
return x_91;
}
case 3:
{
obj* x_92; obj* x_93; obj* x_94;
x_92 = lean::box(0);
x_93 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
x_94 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_94, 0, x_43);
lean::cnstr_set(x_94, 1, x_61);
lean::cnstr_set(x_94, 2, x_93);
lean::cnstr_set(x_94, 3, x_92);
return x_94;
}
default:
{
obj* x_96; obj* x_97; obj* x_98;
lean::dec(x_83);
x_96 = lean::box(0);
x_97 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1;
x_98 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_98, 0, x_43);
lean::cnstr_set(x_98, 1, x_61);
lean::cnstr_set(x_98, 2, x_97);
lean::cnstr_set(x_98, 3, x_96);
return x_98;
}
}
}
}
else
{
obj* x_99; obj* x_101; obj* x_102; obj* x_105; obj* x_106;
x_99 = lean::cnstr_get(x_79, 0);
if (lean::is_exclusive(x_79)) {
lean::cnstr_set(x_79, 0, lean::box(0));
x_101 = x_79;
} else {
lean::inc(x_99);
lean::dec(x_79);
x_101 = lean::box(0);
}
x_102 = lean::cnstr_get(x_99, 1);
lean::inc(x_102);
lean::dec(x_99);
x_105 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__2;
x_106 = l_list_map___main___rarg(x_105, x_102);
if (lean::obj_tag(x_70) == 0)
{
obj* x_108; obj* x_109;
lean::dec(x_101);
x_108 = lean::box(0);
x_109 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_109, 0, x_43);
lean::cnstr_set(x_109, 1, x_61);
lean::cnstr_set(x_109, 2, x_106);
lean::cnstr_set(x_109, 3, x_108);
return x_109;
}
else
{
obj* x_110;
x_110 = lean::cnstr_get(x_70, 0);
lean::inc(x_110);
lean::dec(x_70);
switch (lean::obj_tag(x_110)) {
case 0:
{
obj* x_113; obj* x_116; obj* x_117;
x_113 = lean::cnstr_get(x_110, 0);
lean::inc(x_113);
lean::dec(x_110);
if (lean::is_scalar(x_101)) {
x_116 = lean::alloc_cnstr(1, 1, 0);
} else {
x_116 = x_101;
}
lean::cnstr_set(x_116, 0, x_113);
x_117 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_117, 0, x_43);
lean::cnstr_set(x_117, 1, x_61);
lean::cnstr_set(x_117, 2, x_106);
lean::cnstr_set(x_117, 3, x_116);
return x_117;
}
case 3:
{
obj* x_119; obj* x_120;
lean::dec(x_101);
x_119 = lean::box(0);
x_120 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_120, 0, x_43);
lean::cnstr_set(x_120, 1, x_61);
lean::cnstr_set(x_120, 2, x_106);
lean::cnstr_set(x_120, 3, x_119);
return x_120;
}
default:
{
obj* x_123; obj* x_124;
lean::dec(x_110);
lean::dec(x_101);
x_123 = lean::box(0);
x_124 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_124, 0, x_43);
lean::cnstr_set(x_124, 1, x_61);
lean::cnstr_set(x_124, 2, x_106);
lean::cnstr_set(x_124, 3, x_123);
return x_124;
}
}
}
}
}
}
}
}
}
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2___closed__1() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_command_open__spec_renaming_item_has__view;
x_1 = lean::cnstr_get(x_0, 1);
lean::inc(x_1);
lean::dec(x_0);
return x_1;
}
}
obj* l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_7; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
x_7 = lean::cnstr_get(x_0, 3);
lean::inc(x_7);
lean::dec(x_0);
x_10 = lean::box(0);
x_11 = l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2___closed__1;
x_12 = l_list_map___main___rarg(x_11, x_5);
x_13 = l_lean_parser_no__kind;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
if (lean::obj_tag(x_1) == 0)
{
if (lean::obj_tag(x_3) == 0)
{
if (lean::obj_tag(x_7) == 0)
{
obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20;
x_15 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_14);
lean::cnstr_set(x_16, 1, x_15);
x_17 = l_lean_parser_command_reserve__notation_has__view_x_27___lambda__2___closed__1;
x_18 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_18, 0, x_17);
lean::cnstr_set(x_18, 1, x_16);
x_19 = l_lean_parser_command_open__spec_renaming;
x_20 = l_lean_parser_syntax_mk__node(x_19, x_18);
return x_20;
}
else
{
obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34;
x_21 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_23 = x_7;
} else {
lean::inc(x_21);
lean::dec(x_7);
x_23 = lean::box(0);
}
x_24 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_24, 0, x_21);
if (lean::is_scalar(x_23)) {
x_25 = lean::alloc_cnstr(1, 1, 0);
} else {
x_25 = x_23;
}
lean::cnstr_set(x_25, 0, x_24);
x_26 = lean::box(3);
x_27 = l_option_get__or__else___main___rarg(x_25, x_26);
lean::dec(x_25);
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_27);
lean::cnstr_set(x_29, 1, x_10);
x_30 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_30, 0, x_14);
lean::cnstr_set(x_30, 1, x_29);
x_31 = l_lean_parser_command_reserve__notation_has__view_x_27___lambda__2___closed__1;
x_32 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_32, 0, x_31);
lean::cnstr_set(x_32, 1, x_30);
x_33 = l_lean_parser_command_open__spec_renaming;
x_34 = l_lean_parser_syntax_mk__node(x_33, x_32);
return x_34;
}
}
else
{
obj* x_35; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_43; obj* x_44; obj* x_45; obj* x_46;
x_35 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_37 = x_3;
} else {
lean::inc(x_35);
lean::dec(x_3);
x_37 = lean::box(0);
}
x_38 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_38, 0, x_35);
if (lean::is_scalar(x_37)) {
x_39 = lean::alloc_cnstr(1, 1, 0);
} else {
x_39 = x_37;
}
lean::cnstr_set(x_39, 0, x_38);
x_40 = lean::box(3);
x_41 = l_option_get__or__else___main___rarg(x_39, x_40);
lean::dec(x_39);
x_43 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_43, 0, x_41);
lean::cnstr_set(x_43, 1, x_10);
x_44 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_45 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_45, 0, x_44);
lean::cnstr_set(x_45, 1, x_43);
x_46 = l_lean_parser_syntax_mk__node(x_13, x_45);
if (lean::obj_tag(x_7) == 0)
{
obj* x_47; obj* x_48; obj* x_49; obj* x_50; obj* x_51;
x_47 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_48 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_48, 0, x_14);
lean::cnstr_set(x_48, 1, x_47);
x_49 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_49, 0, x_46);
lean::cnstr_set(x_49, 1, x_48);
x_50 = l_lean_parser_command_open__spec_renaming;
x_51 = l_lean_parser_syntax_mk__node(x_50, x_49);
return x_51;
}
else
{
obj* x_52; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_63;
x_52 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_54 = x_7;
} else {
lean::inc(x_52);
lean::dec(x_7);
x_54 = lean::box(0);
}
x_55 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_55, 0, x_52);
if (lean::is_scalar(x_54)) {
x_56 = lean::alloc_cnstr(1, 1, 0);
} else {
x_56 = x_54;
}
lean::cnstr_set(x_56, 0, x_55);
x_57 = l_option_get__or__else___main___rarg(x_56, x_40);
lean::dec(x_56);
x_59 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_59, 0, x_57);
lean::cnstr_set(x_59, 1, x_10);
x_60 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_60, 0, x_14);
lean::cnstr_set(x_60, 1, x_59);
x_61 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_61, 0, x_46);
lean::cnstr_set(x_61, 1, x_60);
x_62 = l_lean_parser_command_open__spec_renaming;
x_63 = l_lean_parser_syntax_mk__node(x_62, x_61);
return x_63;
}
}
}
else
{
obj* x_64; obj* x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70;
x_64 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_66 = x_1;
} else {
lean::inc(x_64);
lean::dec(x_1);
x_66 = lean::box(0);
}
x_67 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_67, 0, x_64);
if (lean::is_scalar(x_66)) {
x_68 = lean::alloc_cnstr(1, 1, 0);
} else {
x_68 = x_66;
}
lean::cnstr_set(x_68, 0, x_67);
x_69 = lean::box(3);
x_70 = l_option_get__or__else___main___rarg(x_68, x_69);
lean::dec(x_68);
if (lean::obj_tag(x_3) == 0)
{
obj* x_72; obj* x_73; obj* x_74;
x_72 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_73 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_73, 0, x_70);
lean::cnstr_set(x_73, 1, x_72);
x_74 = l_lean_parser_syntax_mk__node(x_13, x_73);
if (lean::obj_tag(x_7) == 0)
{
obj* x_75; obj* x_76; obj* x_77; obj* x_78;
x_75 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_75, 0, x_14);
lean::cnstr_set(x_75, 1, x_72);
x_76 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_76, 0, x_74);
lean::cnstr_set(x_76, 1, x_75);
x_77 = l_lean_parser_command_open__spec_renaming;
x_78 = l_lean_parser_syntax_mk__node(x_77, x_76);
return x_78;
}
else
{
obj* x_79; obj* x_81; obj* x_82; obj* x_83; obj* x_84; obj* x_86; obj* x_87; obj* x_88; obj* x_89; obj* x_90;
x_79 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_81 = x_7;
} else {
lean::inc(x_79);
lean::dec(x_7);
x_81 = lean::box(0);
}
x_82 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_82, 0, x_79);
if (lean::is_scalar(x_81)) {
x_83 = lean::alloc_cnstr(1, 1, 0);
} else {
x_83 = x_81;
}
lean::cnstr_set(x_83, 0, x_82);
x_84 = l_option_get__or__else___main___rarg(x_83, x_69);
lean::dec(x_83);
x_86 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_86, 0, x_84);
lean::cnstr_set(x_86, 1, x_10);
x_87 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_87, 0, x_14);
lean::cnstr_set(x_87, 1, x_86);
x_88 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_88, 0, x_74);
lean::cnstr_set(x_88, 1, x_87);
x_89 = l_lean_parser_command_open__spec_renaming;
x_90 = l_lean_parser_syntax_mk__node(x_89, x_88);
return x_90;
}
}
else
{
obj* x_91; obj* x_93; obj* x_94; obj* x_95; obj* x_96; obj* x_98; obj* x_99; obj* x_100;
x_91 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_93 = x_3;
} else {
lean::inc(x_91);
lean::dec(x_3);
x_93 = lean::box(0);
}
x_94 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_94, 0, x_91);
if (lean::is_scalar(x_93)) {
x_95 = lean::alloc_cnstr(1, 1, 0);
} else {
x_95 = x_93;
}
lean::cnstr_set(x_95, 0, x_94);
x_96 = l_option_get__or__else___main___rarg(x_95, x_69);
lean::dec(x_95);
x_98 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_98, 0, x_96);
lean::cnstr_set(x_98, 1, x_10);
x_99 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_99, 0, x_70);
lean::cnstr_set(x_99, 1, x_98);
x_100 = l_lean_parser_syntax_mk__node(x_13, x_99);
if (lean::obj_tag(x_7) == 0)
{
obj* x_101; obj* x_102; obj* x_103; obj* x_104; obj* x_105;
x_101 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_102 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_102, 0, x_14);
lean::cnstr_set(x_102, 1, x_101);
x_103 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_103, 0, x_100);
lean::cnstr_set(x_103, 1, x_102);
x_104 = l_lean_parser_command_open__spec_renaming;
x_105 = l_lean_parser_syntax_mk__node(x_104, x_103);
return x_105;
}
else
{
obj* x_106; obj* x_108; obj* x_109; obj* x_110; obj* x_111; obj* x_113; obj* x_114; obj* x_115; obj* x_116; obj* x_117;
x_106 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_108 = x_7;
} else {
lean::inc(x_106);
lean::dec(x_7);
x_108 = lean::box(0);
}
x_109 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_109, 0, x_106);
if (lean::is_scalar(x_108)) {
x_110 = lean::alloc_cnstr(1, 1, 0);
} else {
x_110 = x_108;
}
lean::cnstr_set(x_110, 0, x_109);
x_111 = l_option_get__or__else___main___rarg(x_110, x_69);
lean::dec(x_110);
x_113 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_113, 0, x_111);
lean::cnstr_set(x_113, 1, x_10);
x_114 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_114, 0, x_14);
lean::cnstr_set(x_114, 1, x_113);
x_115 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_115, 0, x_100);
lean::cnstr_set(x_115, 1, x_114);
x_116 = l_lean_parser_command_open__spec_renaming;
x_117 = l_lean_parser_syntax_mk__node(x_116, x_115);
return x_117;
}
}
}
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_open__spec_renaming_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_open__spec_renaming_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_open__spec_hiding() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("open_spec");
x_8 = lean_name_mk_string(x_6, x_7);
x_9 = lean::mk_string("hiding");
x_10 = lean_name_mk_string(x_8, x_9);
return x_10;
}
}
obj* l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
lean::cnstr_set(x_0, 0, lean::box(0));
lean::cnstr_set(x_0, 1, lean::box(0));
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__1(x_4);
switch (lean::obj_tag(x_2)) {
case 1:
{
obj* x_8; obj* x_11;
x_8 = lean::cnstr_get(x_2, 0);
lean::inc(x_8);
lean::dec(x_2);
if (lean::is_scalar(x_6)) {
x_11 = lean::alloc_cnstr(1, 2, 0);
} else {
x_11 = x_6;
}
lean::cnstr_set(x_11, 0, x_8);
lean::cnstr_set(x_11, 1, x_7);
return x_11;
}
case 3:
{
obj* x_12; obj* x_13;
x_12 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_13 = lean::alloc_cnstr(1, 2, 0);
} else {
x_13 = x_6;
}
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_7);
return x_13;
}
default:
{
obj* x_15; obj* x_16;
lean::dec(x_2);
x_15 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_16 = lean::alloc_cnstr(1, 2, 0);
} else {
x_16 = x_6;
}
lean::cnstr_set(x_16, 0, x_15);
lean::cnstr_set(x_16, 1, x_7);
return x_16;
}
}
}
}
}
obj* l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__2(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_7, 0, x_2);
x_8 = l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__2(x_4);
if (lean::is_scalar(x_6)) {
x_9 = lean::alloc_cnstr(1, 2, 0);
} else {
x_9 = x_6;
}
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
return x_9;
}
}
}
obj* _init_l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14; obj* x_15;
if (lean::obj_tag(x_0) == 0)
{
obj* x_17;
x_17 = lean::box(3);
x_14 = x_0;
x_15 = x_17;
goto lbl_16;
}
else
{
obj* x_18; obj* x_20;
x_18 = lean::cnstr_get(x_0, 0);
lean::inc(x_18);
x_20 = lean::cnstr_get(x_0, 1);
lean::inc(x_20);
lean::dec(x_0);
x_14 = x_20;
x_15 = x_18;
goto lbl_16;
}
lbl_16:
{
obj* x_23;
switch (lean::obj_tag(x_15)) {
case 0:
{
obj* x_25; obj* x_28;
x_25 = lean::cnstr_get(x_15, 0);
lean::inc(x_25);
lean::dec(x_15);
x_28 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_28, 0, x_25);
x_23 = x_28;
goto lbl_24;
}
case 3:
{
obj* x_29;
x_29 = lean::box(0);
x_23 = x_29;
goto lbl_24;
}
default:
{
obj* x_31;
lean::dec(x_15);
x_31 = lean::box(0);
x_23 = x_31;
goto lbl_24;
}
}
lbl_24:
{
obj* x_32; obj* x_33;
if (lean::obj_tag(x_14) == 0)
{
obj* x_35;
x_35 = lean::box(3);
x_32 = x_14;
x_33 = x_35;
goto lbl_34;
}
else
{
obj* x_36; obj* x_38;
x_36 = lean::cnstr_get(x_14, 0);
lean::inc(x_36);
x_38 = lean::cnstr_get(x_14, 1);
lean::inc(x_38);
lean::dec(x_14);
x_32 = x_38;
x_33 = x_36;
goto lbl_34;
}
lbl_34:
{
obj* x_41;
x_41 = l_lean_parser_syntax_as__node___main(x_33);
if (lean::obj_tag(x_41) == 0)
{
if (lean::obj_tag(x_32) == 0)
{
obj* x_42; obj* x_43; obj* x_44;
x_42 = lean::box(0);
x_43 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_44 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_44, 0, x_5);
lean::cnstr_set(x_44, 1, x_23);
lean::cnstr_set(x_44, 2, x_43);
lean::cnstr_set(x_44, 3, x_42);
return x_44;
}
else
{
obj* x_45;
x_45 = lean::cnstr_get(x_32, 0);
lean::inc(x_45);
lean::dec(x_32);
switch (lean::obj_tag(x_45)) {
case 0:
{
obj* x_48; obj* x_51; obj* x_52; obj* x_53;
x_48 = lean::cnstr_get(x_45, 0);
lean::inc(x_48);
lean::dec(x_45);
x_51 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_51, 0, x_48);
x_52 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_53 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_53, 0, x_5);
lean::cnstr_set(x_53, 1, x_23);
lean::cnstr_set(x_53, 2, x_52);
lean::cnstr_set(x_53, 3, x_51);
return x_53;
}
case 3:
{
obj* x_54; obj* x_55; obj* x_56;
x_54 = lean::box(0);
x_55 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_56 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_56, 0, x_5);
lean::cnstr_set(x_56, 1, x_23);
lean::cnstr_set(x_56, 2, x_55);
lean::cnstr_set(x_56, 3, x_54);
return x_56;
}
default:
{
obj* x_58; obj* x_59; obj* x_60;
lean::dec(x_45);
x_58 = lean::box(0);
x_59 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_60 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_60, 0, x_5);
lean::cnstr_set(x_60, 1, x_23);
lean::cnstr_set(x_60, 2, x_59);
lean::cnstr_set(x_60, 3, x_58);
return x_60;
}
}
}
}
else
{
obj* x_61; obj* x_63; obj* x_64; obj* x_67;
x_61 = lean::cnstr_get(x_41, 0);
if (lean::is_exclusive(x_41)) {
lean::cnstr_set(x_41, 0, lean::box(0));
x_63 = x_41;
} else {
lean::inc(x_61);
lean::dec(x_41);
x_63 = lean::box(0);
}
x_64 = lean::cnstr_get(x_61, 1);
lean::inc(x_64);
lean::dec(x_61);
x_67 = l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__1(x_64);
if (lean::obj_tag(x_32) == 0)
{
obj* x_69; obj* x_70;
lean::dec(x_63);
x_69 = lean::box(0);
x_70 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_70, 0, x_5);
lean::cnstr_set(x_70, 1, x_23);
lean::cnstr_set(x_70, 2, x_67);
lean::cnstr_set(x_70, 3, x_69);
return x_70;
}
else
{
obj* x_71;
x_71 = lean::cnstr_get(x_32, 0);
lean::inc(x_71);
lean::dec(x_32);
switch (lean::obj_tag(x_71)) {
case 0:
{
obj* x_74; obj* x_77; obj* x_78;
x_74 = lean::cnstr_get(x_71, 0);
lean::inc(x_74);
lean::dec(x_71);
if (lean::is_scalar(x_63)) {
x_77 = lean::alloc_cnstr(1, 1, 0);
} else {
x_77 = x_63;
}
lean::cnstr_set(x_77, 0, x_74);
x_78 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_78, 0, x_5);
lean::cnstr_set(x_78, 1, x_23);
lean::cnstr_set(x_78, 2, x_67);
lean::cnstr_set(x_78, 3, x_77);
return x_78;
}
case 3:
{
obj* x_80; obj* x_81;
lean::dec(x_63);
x_80 = lean::box(0);
x_81 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_81, 0, x_5);
lean::cnstr_set(x_81, 1, x_23);
lean::cnstr_set(x_81, 2, x_67);
lean::cnstr_set(x_81, 3, x_80);
return x_81;
}
default:
{
obj* x_84; obj* x_85;
lean::dec(x_63);
lean::dec(x_71);
x_84 = lean::box(0);
x_85 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_85, 0, x_5);
lean::cnstr_set(x_85, 1, x_23);
lean::cnstr_set(x_85, 2, x_67);
lean::cnstr_set(x_85, 3, x_84);
return x_85;
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
obj* x_27; obj* x_28;
if (lean::obj_tag(x_1) == 0)
{
obj* x_30;
x_30 = lean::box(3);
x_27 = x_1;
x_28 = x_30;
goto lbl_29;
}
else
{
obj* x_31; obj* x_33;
x_31 = lean::cnstr_get(x_1, 0);
lean::inc(x_31);
x_33 = lean::cnstr_get(x_1, 1);
lean::inc(x_33);
lean::dec(x_1);
x_27 = x_33;
x_28 = x_31;
goto lbl_29;
}
lbl_29:
{
obj* x_36;
switch (lean::obj_tag(x_28)) {
case 0:
{
obj* x_38; obj* x_41;
x_38 = lean::cnstr_get(x_28, 0);
lean::inc(x_38);
lean::dec(x_28);
x_41 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_41, 0, x_38);
x_36 = x_41;
goto lbl_37;
}
case 3:
{
obj* x_42;
x_42 = lean::box(0);
x_36 = x_42;
goto lbl_37;
}
default:
{
obj* x_44;
lean::dec(x_28);
x_44 = lean::box(0);
x_36 = x_44;
goto lbl_37;
}
}
lbl_37:
{
obj* x_45; obj* x_46;
if (lean::obj_tag(x_27) == 0)
{
obj* x_48;
x_48 = lean::box(3);
x_45 = x_27;
x_46 = x_48;
goto lbl_47;
}
else
{
obj* x_49; obj* x_51;
x_49 = lean::cnstr_get(x_27, 0);
lean::inc(x_49);
x_51 = lean::cnstr_get(x_27, 1);
lean::inc(x_51);
lean::dec(x_27);
x_45 = x_51;
x_46 = x_49;
goto lbl_47;
}
lbl_47:
{
obj* x_54;
x_54 = l_lean_parser_syntax_as__node___main(x_46);
if (lean::obj_tag(x_54) == 0)
{
if (lean::obj_tag(x_45) == 0)
{
obj* x_55; obj* x_56; obj* x_57;
x_55 = lean::box(0);
x_56 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_57 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_57, 0, x_18);
lean::cnstr_set(x_57, 1, x_36);
lean::cnstr_set(x_57, 2, x_56);
lean::cnstr_set(x_57, 3, x_55);
return x_57;
}
else
{
obj* x_58;
x_58 = lean::cnstr_get(x_45, 0);
lean::inc(x_58);
lean::dec(x_45);
switch (lean::obj_tag(x_58)) {
case 0:
{
obj* x_61; obj* x_64; obj* x_65; obj* x_66;
x_61 = lean::cnstr_get(x_58, 0);
lean::inc(x_61);
lean::dec(x_58);
x_64 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_64, 0, x_61);
x_65 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_66 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_66, 0, x_18);
lean::cnstr_set(x_66, 1, x_36);
lean::cnstr_set(x_66, 2, x_65);
lean::cnstr_set(x_66, 3, x_64);
return x_66;
}
case 3:
{
obj* x_67; obj* x_68; obj* x_69;
x_67 = lean::box(0);
x_68 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_69 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_69, 0, x_18);
lean::cnstr_set(x_69, 1, x_36);
lean::cnstr_set(x_69, 2, x_68);
lean::cnstr_set(x_69, 3, x_67);
return x_69;
}
default:
{
obj* x_71; obj* x_72; obj* x_73;
lean::dec(x_58);
x_71 = lean::box(0);
x_72 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_73 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_73, 0, x_18);
lean::cnstr_set(x_73, 1, x_36);
lean::cnstr_set(x_73, 2, x_72);
lean::cnstr_set(x_73, 3, x_71);
return x_73;
}
}
}
}
else
{
obj* x_74; obj* x_76; obj* x_77; obj* x_80;
x_74 = lean::cnstr_get(x_54, 0);
if (lean::is_exclusive(x_54)) {
lean::cnstr_set(x_54, 0, lean::box(0));
x_76 = x_54;
} else {
lean::inc(x_74);
lean::dec(x_54);
x_76 = lean::box(0);
}
x_77 = lean::cnstr_get(x_74, 1);
lean::inc(x_77);
lean::dec(x_74);
x_80 = l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__1(x_77);
if (lean::obj_tag(x_45) == 0)
{
obj* x_82; obj* x_83;
lean::dec(x_76);
x_82 = lean::box(0);
x_83 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_83, 0, x_18);
lean::cnstr_set(x_83, 1, x_36);
lean::cnstr_set(x_83, 2, x_80);
lean::cnstr_set(x_83, 3, x_82);
return x_83;
}
else
{
obj* x_84;
x_84 = lean::cnstr_get(x_45, 0);
lean::inc(x_84);
lean::dec(x_45);
switch (lean::obj_tag(x_84)) {
case 0:
{
obj* x_87; obj* x_90; obj* x_91;
x_87 = lean::cnstr_get(x_84, 0);
lean::inc(x_87);
lean::dec(x_84);
if (lean::is_scalar(x_76)) {
x_90 = lean::alloc_cnstr(1, 1, 0);
} else {
x_90 = x_76;
}
lean::cnstr_set(x_90, 0, x_87);
x_91 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_91, 0, x_18);
lean::cnstr_set(x_91, 1, x_36);
lean::cnstr_set(x_91, 2, x_80);
lean::cnstr_set(x_91, 3, x_90);
return x_91;
}
case 3:
{
obj* x_93; obj* x_94;
lean::dec(x_76);
x_93 = lean::box(0);
x_94 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_94, 0, x_18);
lean::cnstr_set(x_94, 1, x_36);
lean::cnstr_set(x_94, 2, x_80);
lean::cnstr_set(x_94, 3, x_93);
return x_94;
}
default:
{
obj* x_97; obj* x_98;
lean::dec(x_84);
lean::dec(x_76);
x_97 = lean::box(0);
x_98 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_98, 0, x_18);
lean::cnstr_set(x_98, 1, x_36);
lean::cnstr_set(x_98, 2, x_80);
lean::cnstr_set(x_98, 3, x_97);
return x_98;
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_7; obj* x_10; obj* x_11; obj* x_12; obj* x_13;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
x_7 = lean::cnstr_get(x_0, 3);
lean::inc(x_7);
lean::dec(x_0);
x_10 = l_list_map___main___at_lean_parser_command_open__spec_hiding_has__view_x_27___spec__2(x_5);
x_11 = l_lean_parser_no__kind;
x_12 = l_lean_parser_syntax_mk__node(x_11, x_10);
x_13 = lean::box(0);
if (lean::obj_tag(x_1) == 0)
{
if (lean::obj_tag(x_3) == 0)
{
if (lean::obj_tag(x_7) == 0)
{
obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20;
x_14 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_12);
lean::cnstr_set(x_15, 1, x_14);
x_16 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_15);
x_18 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_18, 0, x_16);
lean::cnstr_set(x_18, 1, x_17);
x_19 = l_lean_parser_command_open__spec_hiding;
x_20 = l_lean_parser_syntax_mk__node(x_19, x_18);
return x_20;
}
else
{
obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35;
x_21 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_23 = x_7;
} else {
lean::inc(x_21);
lean::dec(x_7);
x_23 = lean::box(0);
}
x_24 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_24, 0, x_21);
if (lean::is_scalar(x_23)) {
x_25 = lean::alloc_cnstr(1, 1, 0);
} else {
x_25 = x_23;
}
lean::cnstr_set(x_25, 0, x_24);
x_26 = lean::box(3);
x_27 = l_option_get__or__else___main___rarg(x_25, x_26);
lean::dec(x_25);
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_27);
lean::cnstr_set(x_29, 1, x_13);
x_30 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_30, 0, x_12);
lean::cnstr_set(x_30, 1, x_29);
x_31 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_32 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_32, 0, x_31);
lean::cnstr_set(x_32, 1, x_30);
x_33 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_33, 0, x_31);
lean::cnstr_set(x_33, 1, x_32);
x_34 = l_lean_parser_command_open__spec_hiding;
x_35 = l_lean_parser_syntax_mk__node(x_34, x_33);
return x_35;
}
}
else
{
obj* x_36; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42;
x_36 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_38 = x_3;
} else {
lean::inc(x_36);
lean::dec(x_3);
x_38 = lean::box(0);
}
x_39 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_39, 0, x_36);
if (lean::is_scalar(x_38)) {
x_40 = lean::alloc_cnstr(1, 1, 0);
} else {
x_40 = x_38;
}
lean::cnstr_set(x_40, 0, x_39);
x_41 = lean::box(3);
x_42 = l_option_get__or__else___main___rarg(x_40, x_41);
lean::dec(x_40);
if (lean::obj_tag(x_7) == 0)
{
obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48; obj* x_49; obj* x_50;
x_44 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_45 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_45, 0, x_12);
lean::cnstr_set(x_45, 1, x_44);
x_46 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_46, 0, x_42);
lean::cnstr_set(x_46, 1, x_45);
x_47 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_48 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_48, 0, x_47);
lean::cnstr_set(x_48, 1, x_46);
x_49 = l_lean_parser_command_open__spec_hiding;
x_50 = l_lean_parser_syntax_mk__node(x_49, x_48);
return x_50;
}
else
{
obj* x_51; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_58; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_63; obj* x_64;
x_51 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_53 = x_7;
} else {
lean::inc(x_51);
lean::dec(x_7);
x_53 = lean::box(0);
}
x_54 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_54, 0, x_51);
if (lean::is_scalar(x_53)) {
x_55 = lean::alloc_cnstr(1, 1, 0);
} else {
x_55 = x_53;
}
lean::cnstr_set(x_55, 0, x_54);
x_56 = l_option_get__or__else___main___rarg(x_55, x_41);
lean::dec(x_55);
x_58 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_58, 0, x_56);
lean::cnstr_set(x_58, 1, x_13);
x_59 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_59, 0, x_12);
lean::cnstr_set(x_59, 1, x_58);
x_60 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_60, 0, x_42);
lean::cnstr_set(x_60, 1, x_59);
x_61 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_62 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_62, 0, x_61);
lean::cnstr_set(x_62, 1, x_60);
x_63 = l_lean_parser_command_open__spec_hiding;
x_64 = l_lean_parser_syntax_mk__node(x_63, x_62);
return x_64;
}
}
}
else
{
obj* x_65; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_71;
x_65 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_67 = x_1;
} else {
lean::inc(x_65);
lean::dec(x_1);
x_67 = lean::box(0);
}
x_68 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_68, 0, x_65);
if (lean::is_scalar(x_67)) {
x_69 = lean::alloc_cnstr(1, 1, 0);
} else {
x_69 = x_67;
}
lean::cnstr_set(x_69, 0, x_68);
x_70 = lean::box(3);
x_71 = l_option_get__or__else___main___rarg(x_69, x_70);
lean::dec(x_69);
if (lean::obj_tag(x_3) == 0)
{
if (lean::obj_tag(x_7) == 0)
{
obj* x_73; obj* x_74; obj* x_75; obj* x_76; obj* x_77; obj* x_78; obj* x_79;
x_73 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_74 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_74, 0, x_12);
lean::cnstr_set(x_74, 1, x_73);
x_75 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_76 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_76, 0, x_75);
lean::cnstr_set(x_76, 1, x_74);
x_77 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_77, 0, x_71);
lean::cnstr_set(x_77, 1, x_76);
x_78 = l_lean_parser_command_open__spec_hiding;
x_79 = l_lean_parser_syntax_mk__node(x_78, x_77);
return x_79;
}
else
{
obj* x_80; obj* x_82; obj* x_83; obj* x_84; obj* x_85; obj* x_87; obj* x_88; obj* x_89; obj* x_90; obj* x_91; obj* x_92; obj* x_93;
x_80 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_82 = x_7;
} else {
lean::inc(x_80);
lean::dec(x_7);
x_82 = lean::box(0);
}
x_83 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_83, 0, x_80);
if (lean::is_scalar(x_82)) {
x_84 = lean::alloc_cnstr(1, 1, 0);
} else {
x_84 = x_82;
}
lean::cnstr_set(x_84, 0, x_83);
x_85 = l_option_get__or__else___main___rarg(x_84, x_70);
lean::dec(x_84);
x_87 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_87, 0, x_85);
lean::cnstr_set(x_87, 1, x_13);
x_88 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_88, 0, x_12);
lean::cnstr_set(x_88, 1, x_87);
x_89 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_90 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_90, 0, x_89);
lean::cnstr_set(x_90, 1, x_88);
x_91 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_91, 0, x_71);
lean::cnstr_set(x_91, 1, x_90);
x_92 = l_lean_parser_command_open__spec_hiding;
x_93 = l_lean_parser_syntax_mk__node(x_92, x_91);
return x_93;
}
}
else
{
obj* x_94; obj* x_96; obj* x_97; obj* x_98; obj* x_99;
x_94 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_96 = x_3;
} else {
lean::inc(x_94);
lean::dec(x_3);
x_96 = lean::box(0);
}
x_97 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_97, 0, x_94);
if (lean::is_scalar(x_96)) {
x_98 = lean::alloc_cnstr(1, 1, 0);
} else {
x_98 = x_96;
}
lean::cnstr_set(x_98, 0, x_97);
x_99 = l_option_get__or__else___main___rarg(x_98, x_70);
lean::dec(x_98);
if (lean::obj_tag(x_7) == 0)
{
obj* x_101; obj* x_102; obj* x_103; obj* x_104; obj* x_105; obj* x_106;
x_101 = l_lean_parser_detail__ident__part__escaped_has__view_x_27___lambda__2___closed__2;
x_102 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_102, 0, x_12);
lean::cnstr_set(x_102, 1, x_101);
x_103 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_103, 0, x_99);
lean::cnstr_set(x_103, 1, x_102);
x_104 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_104, 0, x_71);
lean::cnstr_set(x_104, 1, x_103);
x_105 = l_lean_parser_command_open__spec_hiding;
x_106 = l_lean_parser_syntax_mk__node(x_105, x_104);
return x_106;
}
else
{
obj* x_107; obj* x_109; obj* x_110; obj* x_111; obj* x_112; obj* x_114; obj* x_115; obj* x_116; obj* x_117; obj* x_118; obj* x_119;
x_107 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
x_109 = x_7;
} else {
lean::inc(x_107);
lean::dec(x_7);
x_109 = lean::box(0);
}
x_110 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_110, 0, x_107);
if (lean::is_scalar(x_109)) {
x_111 = lean::alloc_cnstr(1, 1, 0);
} else {
x_111 = x_109;
}
lean::cnstr_set(x_111, 0, x_110);
x_112 = l_option_get__or__else___main___rarg(x_111, x_70);
lean::dec(x_111);
x_114 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_114, 0, x_112);
lean::cnstr_set(x_114, 1, x_13);
x_115 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_115, 0, x_12);
lean::cnstr_set(x_115, 1, x_114);
x_116 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_116, 0, x_99);
lean::cnstr_set(x_116, 1, x_115);
x_117 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_117, 0, x_71);
lean::cnstr_set(x_117, 1, x_116);
x_118 = l_lean_parser_command_open__spec_hiding;
x_119 = l_lean_parser_syntax_mk__node(x_118, x_117);
return x_119;
}
}
}
}
}
obj* _init_l_lean_parser_command_open__spec_hiding_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_open__spec_hiding_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_open__spec_hiding_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_open__spec() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("open_spec");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6;
x_0 = l_lean_parser_command_open__spec_hiding_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_6, 0, x_5);
return x_6;
}
}
obj* _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6;
x_0 = l_lean_parser_command_open__spec_renaming_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_6, 0, x_5);
return x_6;
}
}
obj* _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6;
x_0 = l_lean_parser_command_open__spec_only_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_6, 0, x_5);
return x_6;
}
}
obj* _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6;
x_0 = l_lean_parser_command_open__spec_as_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_6, 0, x_5);
return x_6;
}
}
obj* _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__5() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 1:
{
obj* x_7;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_5 = x_7;
goto lbl_6;
}
case 3:
{
obj* x_10;
x_10 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_5 = x_10;
goto lbl_6;
}
default:
{
obj* x_12;
lean::dec(x_1);
x_12 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_5 = x_12;
goto lbl_6;
}
}
lbl_6:
{
obj* x_13; obj* x_14;
if (lean::obj_tag(x_0) == 0)
{
obj* x_16;
x_16 = lean::box(3);
x_13 = x_0;
x_14 = x_16;
goto lbl_15;
}
else
{
obj* x_17; obj* x_19;
x_17 = lean::cnstr_get(x_0, 0);
lean::inc(x_17);
x_19 = lean::cnstr_get(x_0, 1);
lean::inc(x_19);
lean::dec(x_0);
x_13 = x_19;
x_14 = x_17;
goto lbl_15;
}
lbl_15:
{
obj* x_22; obj* x_24;
x_24 = l_lean_parser_syntax_as__node___main(x_14);
if (lean::obj_tag(x_24) == 0)
{
obj* x_25;
x_25 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4;
x_22 = x_25;
goto lbl_23;
}
else
{
obj* x_26; obj* x_28; obj* x_29;
x_26 = lean::cnstr_get(x_24, 0);
if (lean::is_exclusive(x_24)) {
lean::cnstr_set(x_24, 0, lean::box(0));
x_28 = x_24;
} else {
lean::inc(x_26);
lean::dec(x_24);
x_28 = lean::box(0);
}
x_29 = lean::cnstr_get(x_26, 1);
lean::inc(x_29);
lean::dec(x_26);
if (lean::obj_tag(x_29) == 0)
{
obj* x_33;
lean::dec(x_28);
x_33 = lean::box(0);
x_22 = x_33;
goto lbl_23;
}
else
{
obj* x_34;
x_34 = lean::cnstr_get(x_29, 1);
lean::inc(x_34);
if (lean::obj_tag(x_34) == 0)
{
obj* x_36; obj* x_39; obj* x_40; obj* x_43; obj* x_44;
x_36 = lean::cnstr_get(x_29, 0);
lean::inc(x_36);
lean::dec(x_29);
x_39 = l_lean_parser_command_open__spec_as_has__view;
x_40 = lean::cnstr_get(x_39, 0);
lean::inc(x_40);
lean::dec(x_39);
x_43 = lean::apply_1(x_40, x_36);
if (lean::is_scalar(x_28)) {
x_44 = lean::alloc_cnstr(1, 1, 0);
} else {
x_44 = x_28;
}
lean::cnstr_set(x_44, 0, x_43);
x_22 = x_44;
goto lbl_23;
}
else
{
obj* x_48;
lean::dec(x_29);
lean::dec(x_34);
lean::dec(x_28);
x_48 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4;
x_22 = x_48;
goto lbl_23;
}
}
}
lbl_23:
{
obj* x_49; obj* x_50;
if (lean::obj_tag(x_13) == 0)
{
obj* x_52;
x_52 = lean::box(3);
x_49 = x_13;
x_50 = x_52;
goto lbl_51;
}
else
{
obj* x_53; obj* x_55;
x_53 = lean::cnstr_get(x_13, 0);
lean::inc(x_53);
x_55 = lean::cnstr_get(x_13, 1);
lean::inc(x_55);
lean::dec(x_13);
x_49 = x_55;
x_50 = x_53;
goto lbl_51;
}
lbl_51:
{
obj* x_58; obj* x_60;
x_60 = l_lean_parser_syntax_as__node___main(x_50);
if (lean::obj_tag(x_60) == 0)
{
obj* x_61;
x_61 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3;
x_58 = x_61;
goto lbl_59;
}
else
{
obj* x_62; obj* x_64; obj* x_65;
x_62 = lean::cnstr_get(x_60, 0);
if (lean::is_exclusive(x_60)) {
lean::cnstr_set(x_60, 0, lean::box(0));
x_64 = x_60;
} else {
lean::inc(x_62);
lean::dec(x_60);
x_64 = lean::box(0);
}
x_65 = lean::cnstr_get(x_62, 1);
lean::inc(x_65);
lean::dec(x_62);
if (lean::obj_tag(x_65) == 0)
{
obj* x_69;
lean::dec(x_64);
x_69 = lean::box(0);
x_58 = x_69;
goto lbl_59;
}
else
{
obj* x_70;
x_70 = lean::cnstr_get(x_65, 1);
lean::inc(x_70);
if (lean::obj_tag(x_70) == 0)
{
obj* x_72; obj* x_75; obj* x_76; obj* x_79; obj* x_80;
x_72 = lean::cnstr_get(x_65, 0);
lean::inc(x_72);
lean::dec(x_65);
x_75 = l_lean_parser_command_open__spec_only_has__view;
x_76 = lean::cnstr_get(x_75, 0);
lean::inc(x_76);
lean::dec(x_75);
x_79 = lean::apply_1(x_76, x_72);
if (lean::is_scalar(x_64)) {
x_80 = lean::alloc_cnstr(1, 1, 0);
} else {
x_80 = x_64;
}
lean::cnstr_set(x_80, 0, x_79);
x_58 = x_80;
goto lbl_59;
}
else
{
obj* x_84;
lean::dec(x_65);
lean::dec(x_64);
lean::dec(x_70);
x_84 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3;
x_58 = x_84;
goto lbl_59;
}
}
}
lbl_59:
{
obj* x_85; obj* x_87; obj* x_88; obj* x_90; obj* x_91;
if (lean::obj_tag(x_49) == 0)
{
obj* x_93;
x_93 = lean::box(3);
x_90 = x_49;
x_91 = x_93;
goto lbl_92;
}
else
{
obj* x_94; obj* x_96;
x_94 = lean::cnstr_get(x_49, 0);
lean::inc(x_94);
x_96 = lean::cnstr_get(x_49, 1);
lean::inc(x_96);
lean::dec(x_49);
x_90 = x_96;
x_91 = x_94;
goto lbl_92;
}
lbl_86:
{
obj* x_99; obj* x_100;
x_99 = lean::box(3);
x_100 = l_lean_parser_syntax_as__node___main(x_99);
if (lean::obj_tag(x_100) == 0)
{
obj* x_101; obj* x_102;
x_101 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
x_102 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_102, 0, x_5);
lean::cnstr_set(x_102, 1, x_22);
lean::cnstr_set(x_102, 2, x_58);
lean::cnstr_set(x_102, 3, x_85);
lean::cnstr_set(x_102, 4, x_101);
return x_102;
}
else
{
obj* x_103; obj* x_105; obj* x_106;
x_103 = lean::cnstr_get(x_100, 0);
if (lean::is_exclusive(x_100)) {
lean::cnstr_set(x_100, 0, lean::box(0));
x_105 = x_100;
} else {
lean::inc(x_103);
lean::dec(x_100);
x_105 = lean::box(0);
}
x_106 = lean::cnstr_get(x_103, 1);
lean::inc(x_106);
lean::dec(x_103);
if (lean::obj_tag(x_106) == 0)
{
obj* x_110; obj* x_111;
lean::dec(x_105);
x_110 = lean::box(0);
x_111 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_111, 0, x_5);
lean::cnstr_set(x_111, 1, x_22);
lean::cnstr_set(x_111, 2, x_58);
lean::cnstr_set(x_111, 3, x_85);
lean::cnstr_set(x_111, 4, x_110);
return x_111;
}
else
{
obj* x_112;
x_112 = lean::cnstr_get(x_106, 1);
lean::inc(x_112);
if (lean::obj_tag(x_112) == 0)
{
obj* x_114; obj* x_117; obj* x_118; obj* x_121; obj* x_122; obj* x_123;
x_114 = lean::cnstr_get(x_106, 0);
lean::inc(x_114);
lean::dec(x_106);
x_117 = l_lean_parser_command_open__spec_hiding_has__view;
x_118 = lean::cnstr_get(x_117, 0);
lean::inc(x_118);
lean::dec(x_117);
x_121 = lean::apply_1(x_118, x_114);
if (lean::is_scalar(x_105)) {
x_122 = lean::alloc_cnstr(1, 1, 0);
} else {
x_122 = x_105;
}
lean::cnstr_set(x_122, 0, x_121);
x_123 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_123, 0, x_5);
lean::cnstr_set(x_123, 1, x_22);
lean::cnstr_set(x_123, 2, x_58);
lean::cnstr_set(x_123, 3, x_85);
lean::cnstr_set(x_123, 4, x_122);
return x_123;
}
else
{
obj* x_127; obj* x_128;
lean::dec(x_112);
lean::dec(x_105);
lean::dec(x_106);
x_127 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
x_128 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_128, 0, x_5);
lean::cnstr_set(x_128, 1, x_22);
lean::cnstr_set(x_128, 2, x_58);
lean::cnstr_set(x_128, 3, x_85);
lean::cnstr_set(x_128, 4, x_127);
return x_128;
}
}
}
}
lbl_89:
{
obj* x_129;
x_129 = l_lean_parser_syntax_as__node___main(x_88);
if (lean::obj_tag(x_129) == 0)
{
obj* x_130; obj* x_131;
x_130 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
x_131 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_131, 0, x_5);
lean::cnstr_set(x_131, 1, x_22);
lean::cnstr_set(x_131, 2, x_58);
lean::cnstr_set(x_131, 3, x_87);
lean::cnstr_set(x_131, 4, x_130);
return x_131;
}
else
{
obj* x_132; obj* x_134; obj* x_135;
x_132 = lean::cnstr_get(x_129, 0);
if (lean::is_exclusive(x_129)) {
lean::cnstr_set(x_129, 0, lean::box(0));
x_134 = x_129;
} else {
lean::inc(x_132);
lean::dec(x_129);
x_134 = lean::box(0);
}
x_135 = lean::cnstr_get(x_132, 1);
lean::inc(x_135);
lean::dec(x_132);
if (lean::obj_tag(x_135) == 0)
{
obj* x_139; obj* x_140;
lean::dec(x_134);
x_139 = lean::box(0);
x_140 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_140, 0, x_5);
lean::cnstr_set(x_140, 1, x_22);
lean::cnstr_set(x_140, 2, x_58);
lean::cnstr_set(x_140, 3, x_87);
lean::cnstr_set(x_140, 4, x_139);
return x_140;
}
else
{
obj* x_141;
x_141 = lean::cnstr_get(x_135, 1);
lean::inc(x_141);
if (lean::obj_tag(x_141) == 0)
{
obj* x_143; obj* x_146; obj* x_147; obj* x_150; obj* x_151; obj* x_152;
x_143 = lean::cnstr_get(x_135, 0);
lean::inc(x_143);
lean::dec(x_135);
x_146 = l_lean_parser_command_open__spec_hiding_has__view;
x_147 = lean::cnstr_get(x_146, 0);
lean::inc(x_147);
lean::dec(x_146);
x_150 = lean::apply_1(x_147, x_143);
if (lean::is_scalar(x_134)) {
x_151 = lean::alloc_cnstr(1, 1, 0);
} else {
x_151 = x_134;
}
lean::cnstr_set(x_151, 0, x_150);
x_152 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_152, 0, x_5);
lean::cnstr_set(x_152, 1, x_22);
lean::cnstr_set(x_152, 2, x_58);
lean::cnstr_set(x_152, 3, x_87);
lean::cnstr_set(x_152, 4, x_151);
return x_152;
}
else
{
obj* x_156; obj* x_157;
lean::dec(x_141);
lean::dec(x_135);
lean::dec(x_134);
x_156 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
x_157 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_157, 0, x_5);
lean::cnstr_set(x_157, 1, x_22);
lean::cnstr_set(x_157, 2, x_58);
lean::cnstr_set(x_157, 3, x_87);
lean::cnstr_set(x_157, 4, x_156);
return x_157;
}
}
}
}
lbl_92:
{
obj* x_158;
x_158 = l_lean_parser_syntax_as__node___main(x_91);
if (lean::obj_tag(x_158) == 0)
{
if (lean::obj_tag(x_90) == 0)
{
obj* x_159;
x_159 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
x_85 = x_159;
goto lbl_86;
}
else
{
obj* x_160; obj* x_163;
x_160 = lean::cnstr_get(x_90, 0);
lean::inc(x_160);
lean::dec(x_90);
x_163 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
x_87 = x_163;
x_88 = x_160;
goto lbl_89;
}
}
else
{
obj* x_164; obj* x_166; obj* x_167;
x_164 = lean::cnstr_get(x_158, 0);
if (lean::is_exclusive(x_158)) {
lean::cnstr_set(x_158, 0, lean::box(0));
x_166 = x_158;
} else {
lean::inc(x_164);
lean::dec(x_158);
x_166 = lean::box(0);
}
x_167 = lean::cnstr_get(x_164, 1);
lean::inc(x_167);
lean::dec(x_164);
if (lean::obj_tag(x_167) == 0)
{
obj* x_171;
lean::dec(x_166);
x_171 = lean::box(0);
if (lean::obj_tag(x_90) == 0)
{
x_85 = x_171;
goto lbl_86;
}
else
{
obj* x_172;
x_172 = lean::cnstr_get(x_90, 0);
lean::inc(x_172);
lean::dec(x_90);
x_87 = x_171;
x_88 = x_172;
goto lbl_89;
}
}
else
{
obj* x_175;
x_175 = lean::cnstr_get(x_167, 1);
lean::inc(x_175);
if (lean::obj_tag(x_175) == 0)
{
obj* x_177; obj* x_180; obj* x_181; obj* x_184; obj* x_185;
x_177 = lean::cnstr_get(x_167, 0);
lean::inc(x_177);
lean::dec(x_167);
x_180 = l_lean_parser_command_open__spec_renaming_has__view;
x_181 = lean::cnstr_get(x_180, 0);
lean::inc(x_181);
lean::dec(x_180);
x_184 = lean::apply_1(x_181, x_177);
if (lean::is_scalar(x_166)) {
x_185 = lean::alloc_cnstr(1, 1, 0);
} else {
x_185 = x_166;
}
lean::cnstr_set(x_185, 0, x_184);
if (lean::obj_tag(x_90) == 0)
{
x_85 = x_185;
goto lbl_86;
}
else
{
obj* x_186;
x_186 = lean::cnstr_get(x_90, 0);
lean::inc(x_186);
lean::dec(x_90);
x_87 = x_185;
x_88 = x_186;
goto lbl_89;
}
}
else
{
lean::dec(x_175);
lean::dec(x_166);
lean::dec(x_167);
if (lean::obj_tag(x_90) == 0)
{
obj* x_192;
x_192 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
x_85 = x_192;
goto lbl_86;
}
else
{
obj* x_193; obj* x_196;
x_193 = lean::cnstr_get(x_90, 0);
lean::inc(x_193);
lean::dec(x_90);
x_196 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
x_87 = x_196;
x_88 = x_193;
goto lbl_89;
}
}
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__5;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 1:
{
obj* x_20;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_18 = x_20;
goto lbl_19;
}
case 3:
{
obj* x_23;
x_23 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_18 = x_23;
goto lbl_19;
}
default:
{
obj* x_25;
lean::dec(x_2);
x_25 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_18 = x_25;
goto lbl_19;
}
}
lbl_19:
{
obj* x_26; obj* x_27;
if (lean::obj_tag(x_1) == 0)
{
obj* x_29;
x_29 = lean::box(3);
x_26 = x_1;
x_27 = x_29;
goto lbl_28;
}
else
{
obj* x_30; obj* x_32;
x_30 = lean::cnstr_get(x_1, 0);
lean::inc(x_30);
x_32 = lean::cnstr_get(x_1, 1);
lean::inc(x_32);
lean::dec(x_1);
x_26 = x_32;
x_27 = x_30;
goto lbl_28;
}
lbl_28:
{
obj* x_35; obj* x_37;
x_37 = l_lean_parser_syntax_as__node___main(x_27);
if (lean::obj_tag(x_37) == 0)
{
obj* x_38;
x_38 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4;
x_35 = x_38;
goto lbl_36;
}
else
{
obj* x_39; obj* x_41; obj* x_42;
x_39 = lean::cnstr_get(x_37, 0);
if (lean::is_exclusive(x_37)) {
lean::cnstr_set(x_37, 0, lean::box(0));
x_41 = x_37;
} else {
lean::inc(x_39);
lean::dec(x_37);
x_41 = lean::box(0);
}
x_42 = lean::cnstr_get(x_39, 1);
lean::inc(x_42);
lean::dec(x_39);
if (lean::obj_tag(x_42) == 0)
{
obj* x_46;
lean::dec(x_41);
x_46 = lean::box(0);
x_35 = x_46;
goto lbl_36;
}
else
{
obj* x_47;
x_47 = lean::cnstr_get(x_42, 1);
lean::inc(x_47);
if (lean::obj_tag(x_47) == 0)
{
obj* x_49; obj* x_52; obj* x_53; obj* x_56; obj* x_57;
x_49 = lean::cnstr_get(x_42, 0);
lean::inc(x_49);
lean::dec(x_42);
x_52 = l_lean_parser_command_open__spec_as_has__view;
x_53 = lean::cnstr_get(x_52, 0);
lean::inc(x_53);
lean::dec(x_52);
x_56 = lean::apply_1(x_53, x_49);
if (lean::is_scalar(x_41)) {
x_57 = lean::alloc_cnstr(1, 1, 0);
} else {
x_57 = x_41;
}
lean::cnstr_set(x_57, 0, x_56);
x_35 = x_57;
goto lbl_36;
}
else
{
obj* x_61;
lean::dec(x_47);
lean::dec(x_41);
lean::dec(x_42);
x_61 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4;
x_35 = x_61;
goto lbl_36;
}
}
}
lbl_36:
{
obj* x_62; obj* x_63;
if (lean::obj_tag(x_26) == 0)
{
obj* x_65;
x_65 = lean::box(3);
x_62 = x_26;
x_63 = x_65;
goto lbl_64;
}
else
{
obj* x_66; obj* x_68;
x_66 = lean::cnstr_get(x_26, 0);
lean::inc(x_66);
x_68 = lean::cnstr_get(x_26, 1);
lean::inc(x_68);
lean::dec(x_26);
x_62 = x_68;
x_63 = x_66;
goto lbl_64;
}
lbl_64:
{
obj* x_71; obj* x_73;
x_73 = l_lean_parser_syntax_as__node___main(x_63);
if (lean::obj_tag(x_73) == 0)
{
obj* x_74;
x_74 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3;
x_71 = x_74;
goto lbl_72;
}
else
{
obj* x_75; obj* x_77; obj* x_78;
x_75 = lean::cnstr_get(x_73, 0);
if (lean::is_exclusive(x_73)) {
lean::cnstr_set(x_73, 0, lean::box(0));
x_77 = x_73;
} else {
lean::inc(x_75);
lean::dec(x_73);
x_77 = lean::box(0);
}
x_78 = lean::cnstr_get(x_75, 1);
lean::inc(x_78);
lean::dec(x_75);
if (lean::obj_tag(x_78) == 0)
{
obj* x_82;
lean::dec(x_77);
x_82 = lean::box(0);
x_71 = x_82;
goto lbl_72;
}
else
{
obj* x_83;
x_83 = lean::cnstr_get(x_78, 1);
lean::inc(x_83);
if (lean::obj_tag(x_83) == 0)
{
obj* x_85; obj* x_88; obj* x_89; obj* x_92; obj* x_93;
x_85 = lean::cnstr_get(x_78, 0);
lean::inc(x_85);
lean::dec(x_78);
x_88 = l_lean_parser_command_open__spec_only_has__view;
x_89 = lean::cnstr_get(x_88, 0);
lean::inc(x_89);
lean::dec(x_88);
x_92 = lean::apply_1(x_89, x_85);
if (lean::is_scalar(x_77)) {
x_93 = lean::alloc_cnstr(1, 1, 0);
} else {
x_93 = x_77;
}
lean::cnstr_set(x_93, 0, x_92);
x_71 = x_93;
goto lbl_72;
}
else
{
obj* x_97;
lean::dec(x_78);
lean::dec(x_83);
lean::dec(x_77);
x_97 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3;
x_71 = x_97;
goto lbl_72;
}
}
}
lbl_72:
{
obj* x_98; obj* x_100; obj* x_101; obj* x_103; obj* x_104;
if (lean::obj_tag(x_62) == 0)
{
obj* x_106;
x_106 = lean::box(3);
x_103 = x_62;
x_104 = x_106;
goto lbl_105;
}
else
{
obj* x_107; obj* x_109;
x_107 = lean::cnstr_get(x_62, 0);
lean::inc(x_107);
x_109 = lean::cnstr_get(x_62, 1);
lean::inc(x_109);
lean::dec(x_62);
x_103 = x_109;
x_104 = x_107;
goto lbl_105;
}
lbl_99:
{
obj* x_112; obj* x_113;
x_112 = lean::box(3);
x_113 = l_lean_parser_syntax_as__node___main(x_112);
if (lean::obj_tag(x_113) == 0)
{
obj* x_114; obj* x_115;
x_114 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
x_115 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_115, 0, x_18);
lean::cnstr_set(x_115, 1, x_35);
lean::cnstr_set(x_115, 2, x_71);
lean::cnstr_set(x_115, 3, x_98);
lean::cnstr_set(x_115, 4, x_114);
return x_115;
}
else
{
obj* x_116; obj* x_118; obj* x_119;
x_116 = lean::cnstr_get(x_113, 0);
if (lean::is_exclusive(x_113)) {
lean::cnstr_set(x_113, 0, lean::box(0));
x_118 = x_113;
} else {
lean::inc(x_116);
lean::dec(x_113);
x_118 = lean::box(0);
}
x_119 = lean::cnstr_get(x_116, 1);
lean::inc(x_119);
lean::dec(x_116);
if (lean::obj_tag(x_119) == 0)
{
obj* x_123; obj* x_124;
lean::dec(x_118);
x_123 = lean::box(0);
x_124 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_124, 0, x_18);
lean::cnstr_set(x_124, 1, x_35);
lean::cnstr_set(x_124, 2, x_71);
lean::cnstr_set(x_124, 3, x_98);
lean::cnstr_set(x_124, 4, x_123);
return x_124;
}
else
{
obj* x_125;
x_125 = lean::cnstr_get(x_119, 1);
lean::inc(x_125);
if (lean::obj_tag(x_125) == 0)
{
obj* x_127; obj* x_130; obj* x_131; obj* x_134; obj* x_135; obj* x_136;
x_127 = lean::cnstr_get(x_119, 0);
lean::inc(x_127);
lean::dec(x_119);
x_130 = l_lean_parser_command_open__spec_hiding_has__view;
x_131 = lean::cnstr_get(x_130, 0);
lean::inc(x_131);
lean::dec(x_130);
x_134 = lean::apply_1(x_131, x_127);
if (lean::is_scalar(x_118)) {
x_135 = lean::alloc_cnstr(1, 1, 0);
} else {
x_135 = x_118;
}
lean::cnstr_set(x_135, 0, x_134);
x_136 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_136, 0, x_18);
lean::cnstr_set(x_136, 1, x_35);
lean::cnstr_set(x_136, 2, x_71);
lean::cnstr_set(x_136, 3, x_98);
lean::cnstr_set(x_136, 4, x_135);
return x_136;
}
else
{
obj* x_140; obj* x_141;
lean::dec(x_119);
lean::dec(x_118);
lean::dec(x_125);
x_140 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
x_141 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_141, 0, x_18);
lean::cnstr_set(x_141, 1, x_35);
lean::cnstr_set(x_141, 2, x_71);
lean::cnstr_set(x_141, 3, x_98);
lean::cnstr_set(x_141, 4, x_140);
return x_141;
}
}
}
}
lbl_102:
{
obj* x_142;
x_142 = l_lean_parser_syntax_as__node___main(x_101);
if (lean::obj_tag(x_142) == 0)
{
obj* x_143; obj* x_144;
x_143 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
x_144 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_144, 0, x_18);
lean::cnstr_set(x_144, 1, x_35);
lean::cnstr_set(x_144, 2, x_71);
lean::cnstr_set(x_144, 3, x_100);
lean::cnstr_set(x_144, 4, x_143);
return x_144;
}
else
{
obj* x_145; obj* x_147; obj* x_148;
x_145 = lean::cnstr_get(x_142, 0);
if (lean::is_exclusive(x_142)) {
lean::cnstr_set(x_142, 0, lean::box(0));
x_147 = x_142;
} else {
lean::inc(x_145);
lean::dec(x_142);
x_147 = lean::box(0);
}
x_148 = lean::cnstr_get(x_145, 1);
lean::inc(x_148);
lean::dec(x_145);
if (lean::obj_tag(x_148) == 0)
{
obj* x_152; obj* x_153;
lean::dec(x_147);
x_152 = lean::box(0);
x_153 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_153, 0, x_18);
lean::cnstr_set(x_153, 1, x_35);
lean::cnstr_set(x_153, 2, x_71);
lean::cnstr_set(x_153, 3, x_100);
lean::cnstr_set(x_153, 4, x_152);
return x_153;
}
else
{
obj* x_154;
x_154 = lean::cnstr_get(x_148, 1);
lean::inc(x_154);
if (lean::obj_tag(x_154) == 0)
{
obj* x_156; obj* x_159; obj* x_160; obj* x_163; obj* x_164; obj* x_165;
x_156 = lean::cnstr_get(x_148, 0);
lean::inc(x_156);
lean::dec(x_148);
x_159 = l_lean_parser_command_open__spec_hiding_has__view;
x_160 = lean::cnstr_get(x_159, 0);
lean::inc(x_160);
lean::dec(x_159);
x_163 = lean::apply_1(x_160, x_156);
if (lean::is_scalar(x_147)) {
x_164 = lean::alloc_cnstr(1, 1, 0);
} else {
x_164 = x_147;
}
lean::cnstr_set(x_164, 0, x_163);
x_165 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_165, 0, x_18);
lean::cnstr_set(x_165, 1, x_35);
lean::cnstr_set(x_165, 2, x_71);
lean::cnstr_set(x_165, 3, x_100);
lean::cnstr_set(x_165, 4, x_164);
return x_165;
}
else
{
obj* x_169; obj* x_170;
lean::dec(x_147);
lean::dec(x_148);
lean::dec(x_154);
x_169 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1;
x_170 = lean::alloc_cnstr(0, 5, 0);
lean::cnstr_set(x_170, 0, x_18);
lean::cnstr_set(x_170, 1, x_35);
lean::cnstr_set(x_170, 2, x_71);
lean::cnstr_set(x_170, 3, x_100);
lean::cnstr_set(x_170, 4, x_169);
return x_170;
}
}
}
}
lbl_105:
{
obj* x_171;
x_171 = l_lean_parser_syntax_as__node___main(x_104);
if (lean::obj_tag(x_171) == 0)
{
if (lean::obj_tag(x_103) == 0)
{
obj* x_172;
x_172 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
x_98 = x_172;
goto lbl_99;
}
else
{
obj* x_173; obj* x_176;
x_173 = lean::cnstr_get(x_103, 0);
lean::inc(x_173);
lean::dec(x_103);
x_176 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
x_100 = x_176;
x_101 = x_173;
goto lbl_102;
}
}
else
{
obj* x_177; obj* x_179; obj* x_180;
x_177 = lean::cnstr_get(x_171, 0);
if (lean::is_exclusive(x_171)) {
lean::cnstr_set(x_171, 0, lean::box(0));
x_179 = x_171;
} else {
lean::inc(x_177);
lean::dec(x_171);
x_179 = lean::box(0);
}
x_180 = lean::cnstr_get(x_177, 1);
lean::inc(x_180);
lean::dec(x_177);
if (lean::obj_tag(x_180) == 0)
{
obj* x_184;
lean::dec(x_179);
x_184 = lean::box(0);
if (lean::obj_tag(x_103) == 0)
{
x_98 = x_184;
goto lbl_99;
}
else
{
obj* x_185;
x_185 = lean::cnstr_get(x_103, 0);
lean::inc(x_185);
lean::dec(x_103);
x_100 = x_184;
x_101 = x_185;
goto lbl_102;
}
}
else
{
obj* x_188;
x_188 = lean::cnstr_get(x_180, 1);
lean::inc(x_188);
if (lean::obj_tag(x_188) == 0)
{
obj* x_190; obj* x_193; obj* x_194; obj* x_197; obj* x_198;
x_190 = lean::cnstr_get(x_180, 0);
lean::inc(x_190);
lean::dec(x_180);
x_193 = l_lean_parser_command_open__spec_renaming_has__view;
x_194 = lean::cnstr_get(x_193, 0);
lean::inc(x_194);
lean::dec(x_193);
x_197 = lean::apply_1(x_194, x_190);
if (lean::is_scalar(x_179)) {
x_198 = lean::alloc_cnstr(1, 1, 0);
} else {
x_198 = x_179;
}
lean::cnstr_set(x_198, 0, x_197);
if (lean::obj_tag(x_103) == 0)
{
x_98 = x_198;
goto lbl_99;
}
else
{
obj* x_199;
x_199 = lean::cnstr_get(x_103, 0);
lean::inc(x_199);
lean::dec(x_103);
x_100 = x_198;
x_101 = x_199;
goto lbl_102;
}
}
else
{
lean::dec(x_179);
lean::dec(x_188);
lean::dec(x_180);
if (lean::obj_tag(x_103) == 0)
{
obj* x_205;
x_205 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
x_98 = x_205;
goto lbl_99;
}
else
{
obj* x_206; obj* x_209;
x_206 = lean::cnstr_get(x_103, 0);
lean::inc(x_206);
lean::dec(x_103);
x_209 = l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2;
x_100 = x_209;
x_101 = x_206;
goto lbl_102;
}
}
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_open__spec_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_7; obj* x_9; obj* x_12; obj* x_13; obj* x_14;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
x_7 = lean::cnstr_get(x_0, 3);
lean::inc(x_7);
x_9 = lean::cnstr_get(x_0, 4);
lean::inc(x_9);
lean::dec(x_0);
x_12 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_12, 0, x_1);
x_13 = lean::box(0);
if (lean::obj_tag(x_3) == 0)
{
obj* x_16;
x_16 = l_lean_parser_combinators_many___rarg___closed__1;
x_14 = x_16;
goto lbl_15;
}
else
{
obj* x_17; obj* x_20; obj* x_21; obj* x_24; obj* x_25; obj* x_26; obj* x_27;
x_17 = lean::cnstr_get(x_3, 0);
lean::inc(x_17);
lean::dec(x_3);
x_20 = l_lean_parser_command_open__spec_as_has__view;
x_21 = lean::cnstr_get(x_20, 1);
lean::inc(x_21);
lean::dec(x_20);
x_24 = lean::apply_1(x_21, x_17);
x_25 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_25, 0, x_24);
lean::cnstr_set(x_25, 1, x_13);
x_26 = l_lean_parser_no__kind;
x_27 = l_lean_parser_syntax_mk__node(x_26, x_25);
x_14 = x_27;
goto lbl_15;
}
lbl_15:
{
obj* x_28; obj* x_30; obj* x_31;
if (lean::obj_tag(x_5) == 0)
{
if (lean::obj_tag(x_7) == 0)
{
obj* x_33;
x_33 = l_lean_parser_combinators_many___rarg___closed__1;
x_28 = x_33;
goto lbl_29;
}
else
{
obj* x_34; obj* x_37;
x_34 = lean::cnstr_get(x_7, 0);
lean::inc(x_34);
lean::dec(x_7);
x_37 = l_lean_parser_combinators_many___rarg___closed__1;
x_30 = x_37;
x_31 = x_34;
goto lbl_32;
}
}
else
{
obj* x_38; obj* x_41; obj* x_42; obj* x_45; obj* x_46; obj* x_47; obj* x_48;
x_38 = lean::cnstr_get(x_5, 0);
lean::inc(x_38);
lean::dec(x_5);
x_41 = l_lean_parser_command_open__spec_only_has__view;
x_42 = lean::cnstr_get(x_41, 1);
lean::inc(x_42);
lean::dec(x_41);
x_45 = lean::apply_1(x_42, x_38);
x_46 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_46, 0, x_45);
lean::cnstr_set(x_46, 1, x_13);
x_47 = l_lean_parser_no__kind;
x_48 = l_lean_parser_syntax_mk__node(x_47, x_46);
if (lean::obj_tag(x_7) == 0)
{
x_28 = x_48;
goto lbl_29;
}
else
{
obj* x_49;
x_49 = lean::cnstr_get(x_7, 0);
lean::inc(x_49);
lean::dec(x_7);
x_30 = x_48;
x_31 = x_49;
goto lbl_32;
}
}
lbl_29:
{
if (lean::obj_tag(x_9) == 0)
{
obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57;
x_52 = l_lean_parser_term_binder__content_has__view_x_27___lambda__2___closed__2;
x_53 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_53, 0, x_28);
lean::cnstr_set(x_53, 1, x_52);
x_54 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_54, 0, x_14);
lean::cnstr_set(x_54, 1, x_53);
x_55 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_55, 0, x_12);
lean::cnstr_set(x_55, 1, x_54);
x_56 = l_lean_parser_command_open__spec;
x_57 = l_lean_parser_syntax_mk__node(x_56, x_55);
return x_57;
}
else
{
obj* x_58; obj* x_61; obj* x_62; obj* x_65; obj* x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75; obj* x_76;
x_58 = lean::cnstr_get(x_9, 0);
lean::inc(x_58);
lean::dec(x_9);
x_61 = l_lean_parser_command_open__spec_hiding_has__view;
x_62 = lean::cnstr_get(x_61, 1);
lean::inc(x_62);
lean::dec(x_61);
x_65 = lean::apply_1(x_62, x_58);
x_66 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_66, 0, x_65);
lean::cnstr_set(x_66, 1, x_13);
x_67 = l_lean_parser_no__kind;
x_68 = l_lean_parser_syntax_mk__node(x_67, x_66);
x_69 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_69, 0, x_68);
lean::cnstr_set(x_69, 1, x_13);
x_70 = l_lean_parser_combinators_many___rarg___closed__1;
x_71 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_71, 0, x_70);
lean::cnstr_set(x_71, 1, x_69);
x_72 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_72, 0, x_28);
lean::cnstr_set(x_72, 1, x_71);
x_73 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_73, 0, x_14);
lean::cnstr_set(x_73, 1, x_72);
x_74 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_74, 0, x_12);
lean::cnstr_set(x_74, 1, x_73);
x_75 = l_lean_parser_command_open__spec;
x_76 = l_lean_parser_syntax_mk__node(x_75, x_74);
return x_76;
}
}
lbl_32:
{
obj* x_77; obj* x_78; obj* x_81; obj* x_82; obj* x_83; obj* x_84;
x_77 = l_lean_parser_command_open__spec_renaming_has__view;
x_78 = lean::cnstr_get(x_77, 1);
lean::inc(x_78);
lean::dec(x_77);
x_81 = lean::apply_1(x_78, x_31);
x_82 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_82, 0, x_81);
lean::cnstr_set(x_82, 1, x_13);
x_83 = l_lean_parser_no__kind;
x_84 = l_lean_parser_syntax_mk__node(x_83, x_82);
if (lean::obj_tag(x_9) == 0)
{
obj* x_85; obj* x_86; obj* x_87; obj* x_88; obj* x_89; obj* x_90; obj* x_91;
x_85 = l_lean_parser_detail__ident_has__view_x_27___lambda__2___closed__1;
x_86 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_86, 0, x_84);
lean::cnstr_set(x_86, 1, x_85);
x_87 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_87, 0, x_30);
lean::cnstr_set(x_87, 1, x_86);
x_88 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_88, 0, x_14);
lean::cnstr_set(x_88, 1, x_87);
x_89 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_89, 0, x_12);
lean::cnstr_set(x_89, 1, x_88);
x_90 = l_lean_parser_command_open__spec;
x_91 = l_lean_parser_syntax_mk__node(x_90, x_89);
return x_91;
}
else
{
obj* x_92; obj* x_95; obj* x_96; obj* x_99; obj* x_100; obj* x_101; obj* x_102; obj* x_103; obj* x_104; obj* x_105; obj* x_106; obj* x_107; obj* x_108;
x_92 = lean::cnstr_get(x_9, 0);
lean::inc(x_92);
lean::dec(x_9);
x_95 = l_lean_parser_command_open__spec_hiding_has__view;
x_96 = lean::cnstr_get(x_95, 1);
lean::inc(x_96);
lean::dec(x_95);
x_99 = lean::apply_1(x_96, x_92);
x_100 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_100, 0, x_99);
lean::cnstr_set(x_100, 1, x_13);
x_101 = l_lean_parser_syntax_mk__node(x_83, x_100);
x_102 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_102, 0, x_101);
lean::cnstr_set(x_102, 1, x_13);
x_103 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_103, 0, x_84);
lean::cnstr_set(x_103, 1, x_102);
x_104 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_104, 0, x_30);
lean::cnstr_set(x_104, 1, x_103);
x_105 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_105, 0, x_14);
lean::cnstr_set(x_105, 1, x_104);
x_106 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_106, 0, x_12);
lean::cnstr_set(x_106, 1, x_105);
x_107 = l_lean_parser_command_open__spec;
x_108 = l_lean_parser_syntax_mk__node(x_107, x_106);
return x_108;
}
}
}
}
}
obj* _init_l_lean_parser_command_open__spec_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_open__spec_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_open__spec_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_open__spec_parser_lean_parser_has__view() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_20; obj* x_21; obj* x_24; obj* x_25; obj* x_27; obj* x_28; obj* x_29; obj* x_32; obj* x_33; obj* x_34; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_45; obj* x_46; obj* x_47; obj* x_49; obj* x_50; obj* x_51; obj* x_52; obj* x_55; obj* x_56; obj* x_57; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_73; obj* x_74; obj* x_76; obj* x_77; obj* x_78; obj* x_79; obj* x_80; obj* x_81; obj* x_82; obj* x_83; obj* x_84; obj* x_85; obj* x_86; obj* x_87; obj* x_88; obj* x_90; obj* x_91; obj* x_92; obj* x_93; obj* x_94; obj* x_95; obj* x_96; obj* x_98;
x_0 = lean::mk_string("as");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::box(0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
lean::inc(x_8);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_7);
lean::inc(x_10);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_6);
lean::cnstr_set(x_12, 1, x_10);
x_13 = l_lean_parser_command_open__spec_as;
x_14 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_14, 0, x_13);
lean::closure_set(x_14, 1, x_12);
x_15 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_15, 0, x_14);
x_16 = lean::mk_string("(");
x_17 = l_string_trim(x_16);
lean::dec(x_16);
lean::inc(x_17);
x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_20, 0, x_17);
x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_21, 0, x_17);
lean::closure_set(x_21, 1, x_5);
lean::closure_set(x_21, 2, x_20);
lean::inc(x_10);
lean::inc(x_21);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_21);
lean::cnstr_set(x_24, 1, x_10);
x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_declaration_parser_lean_parser_has__view___lambda__1), 5, 1);
lean::closure_set(x_25, 0, x_24);
lean::inc(x_8);
x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__2), 5, 1);
lean::closure_set(x_27, 0, x_8);
x_28 = lean::mk_string(")");
x_29 = l_string_trim(x_28);
lean::dec(x_28);
lean::inc(x_29);
x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_32, 0, x_29);
x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_33, 0, x_29);
lean::closure_set(x_33, 1, x_5);
lean::closure_set(x_33, 2, x_32);
x_34 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_34, 0, x_33);
lean::cnstr_set(x_34, 1, x_7);
lean::inc(x_34);
x_36 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_36, 0, x_27);
lean::cnstr_set(x_36, 1, x_34);
x_37 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_37, 0, x_25);
lean::cnstr_set(x_37, 1, x_36);
x_38 = l_lean_parser_command_open__spec_only;
x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_39, 0, x_38);
lean::closure_set(x_39, 1, x_37);
x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_40, 0, x_39);
x_41 = lean::mk_string("renaming");
x_42 = l_string_trim(x_41);
lean::dec(x_41);
lean::inc(x_42);
x_45 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_45, 0, x_42);
x_46 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_46, 0, x_42);
lean::closure_set(x_46, 1, x_5);
lean::closure_set(x_46, 2, x_45);
x_47 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_47, 0, x_46);
lean::cnstr_set(x_47, 1, x_7);
lean::inc(x_21);
x_49 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_49, 0, x_21);
lean::cnstr_set(x_49, 1, x_47);
x_50 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_declaration_parser_lean_parser_has__view___lambda__1), 5, 1);
lean::closure_set(x_50, 0, x_49);
x_51 = lean::mk_string("->");
x_52 = l_string_trim(x_51);
lean::dec(x_51);
lean::inc(x_52);
x_55 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_55, 0, x_52);
x_56 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_56, 0, x_52);
lean::closure_set(x_56, 1, x_5);
lean::closure_set(x_56, 2, x_55);
x_57 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_57, 0, x_56);
lean::cnstr_set(x_57, 1, x_10);
lean::inc(x_8);
x_59 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_59, 0, x_8);
lean::cnstr_set(x_59, 1, x_57);
x_60 = l_lean_parser_command_open__spec_renaming_item;
x_61 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_61, 0, x_60);
lean::closure_set(x_61, 1, x_59);
x_62 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3), 5, 1);
lean::closure_set(x_62, 0, x_61);
lean::inc(x_34);
x_64 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_64, 0, x_62);
lean::cnstr_set(x_64, 1, x_34);
x_65 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_65, 0, x_50);
lean::cnstr_set(x_65, 1, x_64);
x_66 = l_lean_parser_command_open__spec_renaming;
x_67 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_67, 0, x_66);
lean::closure_set(x_67, 1, x_65);
x_68 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_68, 0, x_67);
x_69 = lean::mk_string("hiding");
x_70 = l_string_trim(x_69);
lean::dec(x_69);
lean::inc(x_70);
x_73 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_73, 0, x_70);
x_74 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_74, 0, x_70);
lean::closure_set(x_74, 1, x_5);
lean::closure_set(x_74, 2, x_73);
lean::inc(x_8);
x_76 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3), 5, 1);
lean::closure_set(x_76, 0, x_8);
x_77 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_77, 0, x_76);
lean::cnstr_set(x_77, 1, x_34);
x_78 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_78, 0, x_74);
lean::cnstr_set(x_78, 1, x_77);
x_79 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_79, 0, x_21);
lean::cnstr_set(x_79, 1, x_78);
x_80 = l_lean_parser_command_open__spec_hiding;
x_81 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_81, 0, x_80);
lean::closure_set(x_81, 1, x_79);
x_82 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_82, 0, x_81);
x_83 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_83, 0, x_82);
lean::cnstr_set(x_83, 1, x_7);
x_84 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_84, 0, x_68);
lean::cnstr_set(x_84, 1, x_83);
x_85 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_85, 0, x_40);
lean::cnstr_set(x_85, 1, x_84);
x_86 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_86, 0, x_15);
lean::cnstr_set(x_86, 1, x_85);
x_87 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_87, 0, x_8);
lean::cnstr_set(x_87, 1, x_86);
x_88 = l_lean_parser_command_open__spec;
lean::inc(x_87);
x_90 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_90, 0, x_88);
lean::closure_set(x_90, 1, x_87);
x_91 = l_lean_parser_command__parser__m_monad___closed__1;
x_92 = l_lean_parser_command__parser__m_monad__except___closed__1;
x_93 = l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__1;
x_94 = l_lean_parser_command__parser__m_alternative___closed__1;
x_95 = l_lean_parser_command_open__spec_has__view;
x_96 = l_lean_parser_combinators_node_view___rarg(x_91, x_92, x_93, x_94, x_88, x_87, x_95);
lean::dec(x_87);
x_98 = l_lean_parser_combinators_many1_view___rarg(x_91, x_92, x_93, x_94, x_90, x_96);
lean::dec(x_90);
return x_98;
}
}
obj* _init_l_lean_parser_command_open__spec_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_5; obj* x_6; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_15; obj* x_16; obj* x_18; obj* x_20; obj* x_21; obj* x_22; obj* x_24; obj* x_26; obj* x_28; obj* x_30; obj* x_32; obj* x_34; obj* x_35; obj* x_37; obj* x_39; obj* x_41; obj* x_43; obj* x_45; obj* x_46; obj* x_48; obj* x_51; obj* x_53; obj* x_55; obj* x_57; obj* x_60; obj* x_63; obj* x_65; obj* x_67; obj* x_68; obj* x_70; obj* x_73; obj* x_76; obj* x_78; obj* x_80; obj* x_82; obj* x_85; obj* x_88; obj* x_91; obj* x_93; obj* x_95;
x_0 = lean::box(0);
x_1 = lean::mk_string("as");
x_2 = lean::mk_nat_obj(0u);
x_3 = l_lean_parser_symbol_tokens___rarg(x_1, x_2);
lean::dec(x_1);
x_5 = l_lean_parser_list_cons_tokens___rarg(x_0, x_0);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_3, x_5);
lean::dec(x_3);
x_8 = l_lean_parser_tokens___rarg(x_6);
lean::dec(x_6);
x_10 = l_lean_parser_tokens___rarg(x_8);
lean::dec(x_8);
x_12 = lean::mk_string("(");
x_13 = l_lean_parser_symbol_tokens___rarg(x_12, x_2);
lean::dec(x_12);
x_15 = l_lean_parser_list_cons_tokens___rarg(x_13, x_5);
x_16 = l_lean_parser_tokens___rarg(x_15);
lean::dec(x_15);
x_18 = l_lean_parser_tokens___rarg(x_16);
lean::dec(x_16);
x_20 = l_lean_parser_tokens___rarg(x_0);
x_21 = lean::mk_string(")");
x_22 = l_lean_parser_symbol_tokens___rarg(x_21, x_2);
lean::dec(x_21);
x_24 = l_lean_parser_list_cons_tokens___rarg(x_22, x_0);
lean::dec(x_22);
x_26 = l_lean_parser_list_cons_tokens___rarg(x_20, x_24);
lean::dec(x_20);
x_28 = l_lean_parser_list_cons_tokens___rarg(x_18, x_26);
lean::dec(x_18);
x_30 = l_lean_parser_tokens___rarg(x_28);
lean::dec(x_28);
x_32 = l_lean_parser_tokens___rarg(x_30);
lean::dec(x_30);
x_34 = lean::mk_string("renaming");
x_35 = l_lean_parser_symbol_tokens___rarg(x_34, x_2);
lean::dec(x_34);
x_37 = l_lean_parser_list_cons_tokens___rarg(x_35, x_0);
lean::dec(x_35);
x_39 = l_lean_parser_list_cons_tokens___rarg(x_13, x_37);
lean::dec(x_37);
x_41 = l_lean_parser_tokens___rarg(x_39);
lean::dec(x_39);
x_43 = l_lean_parser_tokens___rarg(x_41);
lean::dec(x_41);
x_45 = lean::mk_string("->");
x_46 = l_lean_parser_symbol_tokens___rarg(x_45, x_2);
lean::dec(x_45);
x_48 = l_lean_parser_list_cons_tokens___rarg(x_46, x_5);
lean::dec(x_5);
lean::dec(x_46);
x_51 = l_lean_parser_list_cons_tokens___rarg(x_0, x_48);
lean::dec(x_48);
x_53 = l_lean_parser_tokens___rarg(x_51);
lean::dec(x_51);
x_55 = l_lean_parser_tokens___rarg(x_53);
lean::dec(x_53);
x_57 = l_lean_parser_list_cons_tokens___rarg(x_55, x_24);
lean::dec(x_24);
lean::dec(x_55);
x_60 = l_lean_parser_list_cons_tokens___rarg(x_43, x_57);
lean::dec(x_57);
lean::dec(x_43);
x_63 = l_lean_parser_tokens___rarg(x_60);
lean::dec(x_60);
x_65 = l_lean_parser_tokens___rarg(x_63);
lean::dec(x_63);
x_67 = lean::mk_string("hiding");
x_68 = l_lean_parser_symbol_tokens___rarg(x_67, x_2);
lean::dec(x_67);
x_70 = l_lean_parser_list_cons_tokens___rarg(x_68, x_26);
lean::dec(x_26);
lean::dec(x_68);
x_73 = l_lean_parser_list_cons_tokens___rarg(x_13, x_70);
lean::dec(x_70);
lean::dec(x_13);
x_76 = l_lean_parser_tokens___rarg(x_73);
lean::dec(x_73);
x_78 = l_lean_parser_tokens___rarg(x_76);
lean::dec(x_76);
x_80 = l_lean_parser_list_cons_tokens___rarg(x_78, x_0);
lean::dec(x_78);
x_82 = l_lean_parser_list_cons_tokens___rarg(x_65, x_80);
lean::dec(x_80);
lean::dec(x_65);
x_85 = l_lean_parser_list_cons_tokens___rarg(x_32, x_82);
lean::dec(x_82);
lean::dec(x_32);
x_88 = l_lean_parser_list_cons_tokens___rarg(x_10, x_85);
lean::dec(x_85);
lean::dec(x_10);
x_91 = l_lean_parser_list_cons_tokens___rarg(x_0, x_88);
lean::dec(x_88);
x_93 = l_lean_parser_tokens___rarg(x_91);
lean::dec(x_91);
x_95 = l_lean_parser_tokens___rarg(x_93);
lean::dec(x_93);
return x_95;
}
}
obj* _init_l_lean_parser_command_open__spec_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_10; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_20; obj* x_21; obj* x_24; obj* x_25; obj* x_27; obj* x_28; obj* x_29; obj* x_32; obj* x_33; obj* x_34; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_45; obj* x_46; obj* x_47; obj* x_49; obj* x_50; obj* x_51; obj* x_52; obj* x_55; obj* x_56; obj* x_57; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_73; obj* x_74; obj* x_76; obj* x_77; obj* x_78; obj* x_79; obj* x_80; obj* x_81; obj* x_82; obj* x_83; obj* x_84; obj* x_85; obj* x_86; obj* x_87; obj* x_88; obj* x_89;
x_0 = lean::mk_string("as");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::box(0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
lean::inc(x_8);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_7);
lean::inc(x_10);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_6);
lean::cnstr_set(x_12, 1, x_10);
x_13 = l_lean_parser_command_open__spec_as;
x_14 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_14, 0, x_13);
lean::closure_set(x_14, 1, x_12);
x_15 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_15, 0, x_14);
x_16 = lean::mk_string("(");
x_17 = l_string_trim(x_16);
lean::dec(x_16);
lean::inc(x_17);
x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_20, 0, x_17);
x_21 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_21, 0, x_17);
lean::closure_set(x_21, 1, x_5);
lean::closure_set(x_21, 2, x_20);
lean::inc(x_10);
lean::inc(x_21);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_21);
lean::cnstr_set(x_24, 1, x_10);
x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_declaration_parser_lean_parser_has__view___lambda__1), 5, 1);
lean::closure_set(x_25, 0, x_24);
lean::inc(x_8);
x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__2), 5, 1);
lean::closure_set(x_27, 0, x_8);
x_28 = lean::mk_string(")");
x_29 = l_string_trim(x_28);
lean::dec(x_28);
lean::inc(x_29);
x_32 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_32, 0, x_29);
x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_33, 0, x_29);
lean::closure_set(x_33, 1, x_5);
lean::closure_set(x_33, 2, x_32);
x_34 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_34, 0, x_33);
lean::cnstr_set(x_34, 1, x_7);
lean::inc(x_34);
x_36 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_36, 0, x_27);
lean::cnstr_set(x_36, 1, x_34);
x_37 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_37, 0, x_25);
lean::cnstr_set(x_37, 1, x_36);
x_38 = l_lean_parser_command_open__spec_only;
x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_39, 0, x_38);
lean::closure_set(x_39, 1, x_37);
x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_40, 0, x_39);
x_41 = lean::mk_string("renaming");
x_42 = l_string_trim(x_41);
lean::dec(x_41);
lean::inc(x_42);
x_45 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_45, 0, x_42);
x_46 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_46, 0, x_42);
lean::closure_set(x_46, 1, x_5);
lean::closure_set(x_46, 2, x_45);
x_47 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_47, 0, x_46);
lean::cnstr_set(x_47, 1, x_7);
lean::inc(x_21);
x_49 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_49, 0, x_21);
lean::cnstr_set(x_49, 1, x_47);
x_50 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_declaration_parser_lean_parser_has__view___lambda__1), 5, 1);
lean::closure_set(x_50, 0, x_49);
x_51 = lean::mk_string("->");
x_52 = l_string_trim(x_51);
lean::dec(x_51);
lean::inc(x_52);
x_55 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_55, 0, x_52);
x_56 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_56, 0, x_52);
lean::closure_set(x_56, 1, x_5);
lean::closure_set(x_56, 2, x_55);
x_57 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_57, 0, x_56);
lean::cnstr_set(x_57, 1, x_10);
lean::inc(x_8);
x_59 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_59, 0, x_8);
lean::cnstr_set(x_59, 1, x_57);
x_60 = l_lean_parser_command_open__spec_renaming_item;
x_61 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_61, 0, x_60);
lean::closure_set(x_61, 1, x_59);
x_62 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3), 5, 1);
lean::closure_set(x_62, 0, x_61);
lean::inc(x_34);
x_64 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_64, 0, x_62);
lean::cnstr_set(x_64, 1, x_34);
x_65 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_65, 0, x_50);
lean::cnstr_set(x_65, 1, x_64);
x_66 = l_lean_parser_command_open__spec_renaming;
x_67 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_67, 0, x_66);
lean::closure_set(x_67, 1, x_65);
x_68 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_68, 0, x_67);
x_69 = lean::mk_string("hiding");
x_70 = l_string_trim(x_69);
lean::dec(x_69);
lean::inc(x_70);
x_73 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_73, 0, x_70);
x_74 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_74, 0, x_70);
lean::closure_set(x_74, 1, x_5);
lean::closure_set(x_74, 2, x_73);
lean::inc(x_8);
x_76 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3), 5, 1);
lean::closure_set(x_76, 0, x_8);
x_77 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_77, 0, x_76);
lean::cnstr_set(x_77, 1, x_34);
x_78 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_78, 0, x_74);
lean::cnstr_set(x_78, 1, x_77);
x_79 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_79, 0, x_21);
lean::cnstr_set(x_79, 1, x_78);
x_80 = l_lean_parser_command_open__spec_hiding;
x_81 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_81, 0, x_80);
lean::closure_set(x_81, 1, x_79);
x_82 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_82, 0, x_81);
x_83 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_83, 0, x_82);
lean::cnstr_set(x_83, 1, x_7);
x_84 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_84, 0, x_68);
lean::cnstr_set(x_84, 1, x_83);
x_85 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_85, 0, x_40);
lean::cnstr_set(x_85, 1, x_84);
x_86 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_86, 0, x_15);
lean::cnstr_set(x_86, 1, x_85);
x_87 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_87, 0, x_8);
lean::cnstr_set(x_87, 1, x_86);
x_88 = l_lean_parser_command_open__spec;
x_89 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_89, 0, x_88);
lean::closure_set(x_89, 1, x_87);
return x_89;
}
}
obj* l_lean_parser_command_open__spec_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5;
x_4 = l_lean_parser_command_open__spec_parser___closed__1;
x_5 = l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3(x_4, x_0, x_1, x_2, x_3);
return x_5;
}
}
obj* _init_l_lean_parser_command_open() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("open");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7;
x_0 = l_lean_parser_command_open__spec_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
x_6 = lean::box(0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_5);
lean::cnstr_set(x_7, 1, x_6);
return x_7;
}
}
obj* _init_l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_command_open__spec_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3() {
_start:
{
obj* x_0; obj* x_2;
x_2 = lean::box(0);
x_0 = x_2;
goto lbl_1;
lbl_1:
{
obj* x_3; obj* x_4;
x_3 = lean::box(3);
x_4 = l_lean_parser_syntax_as__node___main(x_3);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5; obj* x_6;
x_5 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1;
x_6 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_6, 0, x_0);
lean::cnstr_set(x_6, 1, x_5);
return x_6;
}
else
{
obj* x_7; obj* x_10; obj* x_13; obj* x_14; obj* x_15;
x_7 = lean::cnstr_get(x_4, 0);
lean::inc(x_7);
lean::dec(x_4);
x_10 = lean::cnstr_get(x_7, 1);
lean::inc(x_10);
lean::dec(x_7);
x_13 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2;
x_14 = l_list_map___main___rarg(x_13, x_10);
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_0);
lean::cnstr_set(x_15, 1, x_14);
return x_15;
}
}
}
}
obj* l_lean_parser_command_open_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_4; obj* x_6;
x_6 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_6) == 0)
{
obj* x_7;
x_7 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3;
return x_7;
}
else
{
obj* x_8; obj* x_10; obj* x_11;
x_8 = lean::cnstr_get(x_6, 0);
if (lean::is_exclusive(x_6)) {
lean::cnstr_set(x_6, 0, lean::box(0));
x_10 = x_6;
} else {
lean::inc(x_8);
lean::dec(x_6);
x_10 = lean::box(0);
}
x_11 = lean::cnstr_get(x_8, 1);
lean::inc(x_11);
lean::dec(x_8);
if (lean::obj_tag(x_11) == 0)
{
lean::dec(x_10);
if (lean::obj_tag(x_11) == 0)
{
obj* x_15;
x_15 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3;
return x_15;
}
else
{
obj* x_16; obj* x_19;
x_16 = lean::cnstr_get(x_11, 0);
lean::inc(x_16);
lean::dec(x_11);
x_19 = lean::box(0);
x_3 = x_19;
x_4 = x_16;
goto lbl_5;
}
}
else
{
obj* x_20;
x_20 = lean::cnstr_get(x_11, 0);
lean::inc(x_20);
switch (lean::obj_tag(x_20)) {
case 0:
{
obj* x_22; obj* x_25; obj* x_28;
x_22 = lean::cnstr_get(x_11, 1);
lean::inc(x_22);
lean::dec(x_11);
x_25 = lean::cnstr_get(x_20, 0);
lean::inc(x_25);
lean::dec(x_20);
if (lean::is_scalar(x_10)) {
x_28 = lean::alloc_cnstr(1, 1, 0);
} else {
x_28 = x_10;
}
lean::cnstr_set(x_28, 0, x_25);
if (lean::obj_tag(x_22) == 0)
{
x_1 = x_28;
goto lbl_2;
}
else
{
obj* x_29;
x_29 = lean::cnstr_get(x_22, 0);
lean::inc(x_29);
lean::dec(x_22);
x_3 = x_28;
x_4 = x_29;
goto lbl_5;
}
}
case 3:
{
obj* x_33;
lean::dec(x_10);
x_33 = lean::cnstr_get(x_11, 1);
lean::inc(x_33);
lean::dec(x_11);
if (lean::obj_tag(x_33) == 0)
{
obj* x_36;
x_36 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3;
return x_36;
}
else
{
obj* x_37; obj* x_40;
x_37 = lean::cnstr_get(x_33, 0);
lean::inc(x_37);
lean::dec(x_33);
x_40 = lean::box(0);
x_3 = x_40;
x_4 = x_37;
goto lbl_5;
}
}
default:
{
obj* x_43;
lean::dec(x_10);
lean::dec(x_20);
x_43 = lean::cnstr_get(x_11, 1);
lean::inc(x_43);
lean::dec(x_11);
if (lean::obj_tag(x_43) == 0)
{
obj* x_46;
x_46 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3;
return x_46;
}
else
{
obj* x_47; obj* x_50;
x_47 = lean::cnstr_get(x_43, 0);
lean::inc(x_47);
lean::dec(x_43);
x_50 = lean::box(0);
x_3 = x_50;
x_4 = x_47;
goto lbl_5;
}
}
}
}
}
lbl_2:
{
obj* x_51; obj* x_52;
x_51 = lean::box(3);
x_52 = l_lean_parser_syntax_as__node___main(x_51);
if (lean::obj_tag(x_52) == 0)
{
obj* x_53; obj* x_54;
x_53 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1;
x_54 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_54, 0, x_1);
lean::cnstr_set(x_54, 1, x_53);
return x_54;
}
else
{
obj* x_55; obj* x_58; obj* x_61; obj* x_62; obj* x_63;
x_55 = lean::cnstr_get(x_52, 0);
lean::inc(x_55);
lean::dec(x_52);
x_58 = lean::cnstr_get(x_55, 1);
lean::inc(x_58);
lean::dec(x_55);
x_61 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2;
x_62 = l_list_map___main___rarg(x_61, x_58);
x_63 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_63, 0, x_1);
lean::cnstr_set(x_63, 1, x_62);
return x_63;
}
}
lbl_5:
{
obj* x_64;
x_64 = l_lean_parser_syntax_as__node___main(x_4);
if (lean::obj_tag(x_64) == 0)
{
obj* x_65; obj* x_66;
x_65 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1;
x_66 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_66, 0, x_3);
lean::cnstr_set(x_66, 1, x_65);
return x_66;
}
else
{
obj* x_67; obj* x_70; obj* x_73; obj* x_74; obj* x_75;
x_67 = lean::cnstr_get(x_64, 0);
lean::inc(x_67);
lean::dec(x_64);
x_70 = lean::cnstr_get(x_67, 1);
lean::inc(x_70);
lean::dec(x_67);
x_73 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2;
x_74 = l_list_map___main___rarg(x_73, x_70);
x_75 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_75, 0, x_3);
lean::cnstr_set(x_75, 1, x_74);
return x_75;
}
}
}
}
obj* _init_l_lean_parser_command_open_has__view_x_27___lambda__2___closed__1() {
_start:
{
obj* x_0; obj* x_1;
x_0 = l_lean_parser_command_open__spec_has__view;
x_1 = lean::cnstr_get(x_0, 1);
lean::inc(x_1);
lean::dec(x_0);
return x_1;
}
}
obj* l_lean_parser_command_open_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_lean_parser_command_open_has__view_x_27___lambda__2___closed__1;
x_7 = l_list_map___main___rarg(x_6, x_3);
x_8 = l_lean_parser_no__kind;
x_9 = l_lean_parser_syntax_mk__node(x_8, x_7);
x_10 = lean::box(0);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set(x_11, 1, x_10);
if (lean::obj_tag(x_1) == 0)
{
obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_12 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_13 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_11);
x_14 = l_lean_parser_command_open;
x_15 = l_lean_parser_syntax_mk__node(x_14, x_13);
return x_15;
}
else
{
obj* x_16; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_24; obj* x_25; obj* x_26;
x_16 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_18 = x_1;
} else {
lean::inc(x_16);
lean::dec(x_1);
x_18 = lean::box(0);
}
x_19 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_19, 0, x_16);
if (lean::is_scalar(x_18)) {
x_20 = lean::alloc_cnstr(1, 1, 0);
} else {
x_20 = x_18;
}
lean::cnstr_set(x_20, 0, x_19);
x_21 = lean::box(3);
x_22 = l_option_get__or__else___main___rarg(x_20, x_21);
lean::dec(x_20);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_22);
lean::cnstr_set(x_24, 1, x_11);
x_25 = l_lean_parser_command_open;
x_26 = l_lean_parser_syntax_mk__node(x_25, x_24);
return x_26;
}
}
}
obj* _init_l_lean_parser_command_open_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_open_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_open_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_open_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_10;
x_0 = lean::mk_string("open");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_command_open__spec_parser_lean_parser_has__tokens;
x_6 = l_lean_parser_list_cons_tokens___rarg(x_5, x_4);
x_7 = l_lean_parser_list_cons_tokens___rarg(x_2, x_6);
lean::dec(x_6);
lean::dec(x_2);
x_10 = l_lean_parser_tokens___rarg(x_7);
lean::dec(x_7);
return x_10;
}
}
obj* _init_l_lean_parser_command_open_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::mk_string("open");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::box(0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_parser), 4, 0);
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_7);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_6);
lean::cnstr_set(x_10, 1, x_9);
return x_10;
}
}
obj* l_lean_parser_command_open_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_open;
x_5 = l_lean_parser_command_open_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_export() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("export");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_2;
x_2 = lean::box(0);
x_0 = x_2;
goto lbl_1;
lbl_1:
{
obj* x_3; obj* x_4;
x_3 = lean::box(3);
x_4 = l_lean_parser_syntax_as__node___main(x_3);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5; obj* x_6;
x_5 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1;
x_6 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_6, 0, x_0);
lean::cnstr_set(x_6, 1, x_5);
return x_6;
}
else
{
obj* x_7; obj* x_10; obj* x_13; obj* x_14; obj* x_15;
x_7 = lean::cnstr_get(x_4, 0);
lean::inc(x_7);
lean::dec(x_4);
x_10 = lean::cnstr_get(x_7, 1);
lean::inc(x_10);
lean::dec(x_7);
x_13 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2;
x_14 = l_list_map___main___rarg(x_13, x_10);
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_0);
lean::cnstr_set(x_15, 1, x_14);
return x_15;
}
}
}
}
obj* l_lean_parser_command_export_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_4; obj* x_6;
x_6 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_6) == 0)
{
obj* x_7;
x_7 = l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1;
return x_7;
}
else
{
obj* x_8; obj* x_10; obj* x_11;
x_8 = lean::cnstr_get(x_6, 0);
if (lean::is_exclusive(x_6)) {
lean::cnstr_set(x_6, 0, lean::box(0));
x_10 = x_6;
} else {
lean::inc(x_8);
lean::dec(x_6);
x_10 = lean::box(0);
}
x_11 = lean::cnstr_get(x_8, 1);
lean::inc(x_11);
lean::dec(x_8);
if (lean::obj_tag(x_11) == 0)
{
lean::dec(x_10);
if (lean::obj_tag(x_11) == 0)
{
obj* x_15;
x_15 = l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1;
return x_15;
}
else
{
obj* x_16; obj* x_19;
x_16 = lean::cnstr_get(x_11, 0);
lean::inc(x_16);
lean::dec(x_11);
x_19 = lean::box(0);
x_3 = x_19;
x_4 = x_16;
goto lbl_5;
}
}
else
{
obj* x_20;
x_20 = lean::cnstr_get(x_11, 0);
lean::inc(x_20);
switch (lean::obj_tag(x_20)) {
case 0:
{
obj* x_22; obj* x_25; obj* x_28;
x_22 = lean::cnstr_get(x_11, 1);
lean::inc(x_22);
lean::dec(x_11);
x_25 = lean::cnstr_get(x_20, 0);
lean::inc(x_25);
lean::dec(x_20);
if (lean::is_scalar(x_10)) {
x_28 = lean::alloc_cnstr(1, 1, 0);
} else {
x_28 = x_10;
}
lean::cnstr_set(x_28, 0, x_25);
if (lean::obj_tag(x_22) == 0)
{
x_1 = x_28;
goto lbl_2;
}
else
{
obj* x_29;
x_29 = lean::cnstr_get(x_22, 0);
lean::inc(x_29);
lean::dec(x_22);
x_3 = x_28;
x_4 = x_29;
goto lbl_5;
}
}
case 3:
{
obj* x_33;
lean::dec(x_10);
x_33 = lean::cnstr_get(x_11, 1);
lean::inc(x_33);
lean::dec(x_11);
if (lean::obj_tag(x_33) == 0)
{
obj* x_36;
x_36 = l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1;
return x_36;
}
else
{
obj* x_37; obj* x_40;
x_37 = lean::cnstr_get(x_33, 0);
lean::inc(x_37);
lean::dec(x_33);
x_40 = lean::box(0);
x_3 = x_40;
x_4 = x_37;
goto lbl_5;
}
}
default:
{
obj* x_43;
lean::dec(x_10);
lean::dec(x_20);
x_43 = lean::cnstr_get(x_11, 1);
lean::inc(x_43);
lean::dec(x_11);
if (lean::obj_tag(x_43) == 0)
{
obj* x_46;
x_46 = l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1;
return x_46;
}
else
{
obj* x_47; obj* x_50;
x_47 = lean::cnstr_get(x_43, 0);
lean::inc(x_47);
lean::dec(x_43);
x_50 = lean::box(0);
x_3 = x_50;
x_4 = x_47;
goto lbl_5;
}
}
}
}
}
lbl_2:
{
obj* x_51; obj* x_52;
x_51 = lean::box(3);
x_52 = l_lean_parser_syntax_as__node___main(x_51);
if (lean::obj_tag(x_52) == 0)
{
obj* x_53; obj* x_54;
x_53 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1;
x_54 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_54, 0, x_1);
lean::cnstr_set(x_54, 1, x_53);
return x_54;
}
else
{
obj* x_55; obj* x_58; obj* x_61; obj* x_62; obj* x_63;
x_55 = lean::cnstr_get(x_52, 0);
lean::inc(x_55);
lean::dec(x_52);
x_58 = lean::cnstr_get(x_55, 1);
lean::inc(x_58);
lean::dec(x_55);
x_61 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2;
x_62 = l_list_map___main___rarg(x_61, x_58);
x_63 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_63, 0, x_1);
lean::cnstr_set(x_63, 1, x_62);
return x_63;
}
}
lbl_5:
{
obj* x_64;
x_64 = l_lean_parser_syntax_as__node___main(x_4);
if (lean::obj_tag(x_64) == 0)
{
obj* x_65; obj* x_66;
x_65 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1;
x_66 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_66, 0, x_3);
lean::cnstr_set(x_66, 1, x_65);
return x_66;
}
else
{
obj* x_67; obj* x_70; obj* x_73; obj* x_74; obj* x_75;
x_67 = lean::cnstr_get(x_64, 0);
lean::inc(x_67);
lean::dec(x_64);
x_70 = lean::cnstr_get(x_67, 1);
lean::inc(x_70);
lean::dec(x_67);
x_73 = l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2;
x_74 = l_list_map___main___rarg(x_73, x_70);
x_75 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_75, 0, x_3);
lean::cnstr_set(x_75, 1, x_74);
return x_75;
}
}
}
}
obj* l_lean_parser_command_export_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_lean_parser_command_open_has__view_x_27___lambda__2___closed__1;
x_7 = l_list_map___main___rarg(x_6, x_3);
x_8 = l_lean_parser_no__kind;
x_9 = l_lean_parser_syntax_mk__node(x_8, x_7);
x_10 = lean::box(0);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set(x_11, 1, x_10);
if (lean::obj_tag(x_1) == 0)
{
obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_12 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_13 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_11);
x_14 = l_lean_parser_command_export;
x_15 = l_lean_parser_syntax_mk__node(x_14, x_13);
return x_15;
}
else
{
obj* x_16; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_24; obj* x_25; obj* x_26;
x_16 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_18 = x_1;
} else {
lean::inc(x_16);
lean::dec(x_1);
x_18 = lean::box(0);
}
x_19 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_19, 0, x_16);
if (lean::is_scalar(x_18)) {
x_20 = lean::alloc_cnstr(1, 1, 0);
} else {
x_20 = x_18;
}
lean::cnstr_set(x_20, 0, x_19);
x_21 = lean::box(3);
x_22 = l_option_get__or__else___main___rarg(x_20, x_21);
lean::dec(x_20);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_22);
lean::cnstr_set(x_24, 1, x_11);
x_25 = l_lean_parser_command_export;
x_26 = l_lean_parser_syntax_mk__node(x_25, x_24);
return x_26;
}
}
}
obj* _init_l_lean_parser_command_export_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_export_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_export_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_export_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_export_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_export_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_10;
x_0 = lean::mk_string("export");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_command_open__spec_parser_lean_parser_has__tokens;
x_6 = l_lean_parser_list_cons_tokens___rarg(x_5, x_4);
x_7 = l_lean_parser_list_cons_tokens___rarg(x_2, x_6);
lean::dec(x_6);
lean::dec(x_2);
x_10 = l_lean_parser_tokens___rarg(x_7);
lean::dec(x_7);
return x_10;
}
}
obj* _init_l_lean_parser_command_export_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::mk_string("export");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::box(0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open__spec_parser), 4, 0);
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_7);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_6);
lean::cnstr_set(x_10, 1, x_9);
return x_10;
}
}
obj* l_lean_parser_command_export_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_export;
x_5 = l_lean_parser_command_export_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_section() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("section");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_section_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14;
if (lean::obj_tag(x_0) == 0)
{
obj* x_16;
x_16 = lean::box(3);
x_14 = x_16;
goto lbl_15;
}
else
{
obj* x_17;
x_17 = lean::cnstr_get(x_0, 0);
lean::inc(x_17);
lean::dec(x_0);
x_14 = x_17;
goto lbl_15;
}
lbl_15:
{
obj* x_20;
x_20 = l_lean_parser_syntax_as__node___main(x_14);
if (lean::obj_tag(x_20) == 0)
{
obj* x_21; obj* x_22;
x_21 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_5);
lean::cnstr_set(x_22, 1, x_21);
return x_22;
}
else
{
obj* x_23; obj* x_25; obj* x_26;
x_23 = lean::cnstr_get(x_20, 0);
if (lean::is_exclusive(x_20)) {
lean::cnstr_set(x_20, 0, lean::box(0));
x_25 = x_20;
} else {
lean::inc(x_23);
lean::dec(x_20);
x_25 = lean::box(0);
}
x_26 = lean::cnstr_get(x_23, 1);
lean::inc(x_26);
lean::dec(x_23);
if (lean::obj_tag(x_26) == 0)
{
obj* x_30; obj* x_31;
lean::dec(x_25);
x_30 = lean::box(0);
x_31 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_31, 0, x_5);
lean::cnstr_set(x_31, 1, x_30);
return x_31;
}
else
{
obj* x_32;
x_32 = lean::cnstr_get(x_26, 1);
lean::inc(x_32);
if (lean::obj_tag(x_32) == 0)
{
obj* x_34;
x_34 = lean::cnstr_get(x_26, 0);
lean::inc(x_34);
lean::dec(x_26);
switch (lean::obj_tag(x_34)) {
case 1:
{
obj* x_37; obj* x_40; obj* x_41;
x_37 = lean::cnstr_get(x_34, 0);
lean::inc(x_37);
lean::dec(x_34);
if (lean::is_scalar(x_25)) {
x_40 = lean::alloc_cnstr(1, 1, 0);
} else {
x_40 = x_25;
}
lean::cnstr_set(x_40, 0, x_37);
x_41 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_41, 0, x_5);
lean::cnstr_set(x_41, 1, x_40);
return x_41;
}
case 3:
{
obj* x_43; obj* x_44;
lean::dec(x_25);
x_43 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
x_44 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_44, 0, x_5);
lean::cnstr_set(x_44, 1, x_43);
return x_44;
}
default:
{
obj* x_47; obj* x_48;
lean::dec(x_25);
lean::dec(x_34);
x_47 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
x_48 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_48, 0, x_5);
lean::cnstr_set(x_48, 1, x_47);
return x_48;
}
}
}
else
{
obj* x_52; obj* x_53;
lean::dec(x_32);
lean::dec(x_25);
lean::dec(x_26);
x_52 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
x_53 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_53, 0, x_5);
lean::cnstr_set(x_53, 1, x_52);
return x_53;
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_section_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_section_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
obj* x_27;
if (lean::obj_tag(x_1) == 0)
{
obj* x_29;
x_29 = lean::box(3);
x_27 = x_29;
goto lbl_28;
}
else
{
obj* x_30;
x_30 = lean::cnstr_get(x_1, 0);
lean::inc(x_30);
lean::dec(x_1);
x_27 = x_30;
goto lbl_28;
}
lbl_28:
{
obj* x_33;
x_33 = l_lean_parser_syntax_as__node___main(x_27);
if (lean::obj_tag(x_33) == 0)
{
obj* x_34; obj* x_35;
x_34 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_18);
lean::cnstr_set(x_35, 1, x_34);
return x_35;
}
else
{
obj* x_36; obj* x_38; obj* x_39;
x_36 = lean::cnstr_get(x_33, 0);
if (lean::is_exclusive(x_33)) {
lean::cnstr_set(x_33, 0, lean::box(0));
x_38 = x_33;
} else {
lean::inc(x_36);
lean::dec(x_33);
x_38 = lean::box(0);
}
x_39 = lean::cnstr_get(x_36, 1);
lean::inc(x_39);
lean::dec(x_36);
if (lean::obj_tag(x_39) == 0)
{
obj* x_43; obj* x_44;
lean::dec(x_38);
x_43 = lean::box(0);
x_44 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_44, 0, x_18);
lean::cnstr_set(x_44, 1, x_43);
return x_44;
}
else
{
obj* x_45;
x_45 = lean::cnstr_get(x_39, 1);
lean::inc(x_45);
if (lean::obj_tag(x_45) == 0)
{
obj* x_47;
x_47 = lean::cnstr_get(x_39, 0);
lean::inc(x_47);
lean::dec(x_39);
switch (lean::obj_tag(x_47)) {
case 1:
{
obj* x_50; obj* x_53; obj* x_54;
x_50 = lean::cnstr_get(x_47, 0);
lean::inc(x_50);
lean::dec(x_47);
if (lean::is_scalar(x_38)) {
x_53 = lean::alloc_cnstr(1, 1, 0);
} else {
x_53 = x_38;
}
lean::cnstr_set(x_53, 0, x_50);
x_54 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_54, 0, x_18);
lean::cnstr_set(x_54, 1, x_53);
return x_54;
}
case 3:
{
obj* x_56; obj* x_57;
lean::dec(x_38);
x_56 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
x_57 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_57, 0, x_18);
lean::cnstr_set(x_57, 1, x_56);
return x_57;
}
default:
{
obj* x_60; obj* x_61;
lean::dec(x_47);
lean::dec(x_38);
x_60 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
x_61 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_61, 0, x_18);
lean::cnstr_set(x_61, 1, x_60);
return x_61;
}
}
}
else
{
obj* x_65; obj* x_66;
lean::dec(x_39);
lean::dec(x_45);
lean::dec(x_38);
x_65 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
x_66 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_66, 0, x_18);
lean::cnstr_set(x_66, 1, x_65);
return x_66;
}
}
}
}
}
}
}
}
obj* _init_l_lean_parser_command_section_has__view_x_27___lambda__2___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::box(3);
x_3 = l_option_get__or__else___main___rarg(x_1, x_2);
x_4 = l_lean_parser_no__kind;
x_5 = l_lean_parser_syntax_mk__node(x_4, x_0);
x_6 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_6, 0, x_5);
lean::cnstr_set(x_6, 1, x_0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_3);
lean::cnstr_set(x_7, 1, x_6);
x_8 = l_lean_parser_command_section;
x_9 = l_lean_parser_syntax_mk__node(x_8, x_7);
return x_9;
}
}
obj* l_lean_parser_command_section_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = lean::box(0);
if (lean::obj_tag(x_1) == 0)
{
if (lean::obj_tag(x_3) == 0)
{
obj* x_7;
x_7 = l_lean_parser_command_section_has__view_x_27___lambda__2___closed__1;
return x_7;
}
else
{
obj* x_8; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19;
x_8 = lean::cnstr_get(x_3, 0);
lean::inc(x_8);
lean::dec(x_3);
x_11 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_11, 0, x_8);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_6);
x_13 = l_lean_parser_no__kind;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_14);
lean::cnstr_set(x_15, 1, x_6);
x_16 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_15);
x_18 = l_lean_parser_command_section;
x_19 = l_lean_parser_syntax_mk__node(x_18, x_17);
return x_19;
}
}
else
{
obj* x_20; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26;
x_20 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_22 = x_1;
} else {
lean::inc(x_20);
lean::dec(x_1);
x_22 = lean::box(0);
}
x_23 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
if (lean::is_scalar(x_22)) {
x_24 = lean::alloc_cnstr(1, 1, 0);
} else {
x_24 = x_22;
}
lean::cnstr_set(x_24, 0, x_23);
x_25 = lean::box(3);
x_26 = l_option_get__or__else___main___rarg(x_24, x_25);
lean::dec(x_24);
if (lean::obj_tag(x_3) == 0)
{
obj* x_28; obj* x_29; obj* x_30; obj* x_31;
x_28 = l_lean_parser_detail__ident_has__view_x_27___lambda__2___closed__1;
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_26);
lean::cnstr_set(x_29, 1, x_28);
x_30 = l_lean_parser_command_section;
x_31 = l_lean_parser_syntax_mk__node(x_30, x_29);
return x_31;
}
else
{
obj* x_32; 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 = lean::cnstr_get(x_3, 0);
lean::inc(x_32);
lean::dec(x_3);
x_35 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_35, 0, x_32);
x_36 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_36, 0, x_35);
lean::cnstr_set(x_36, 1, x_6);
x_37 = l_lean_parser_no__kind;
x_38 = l_lean_parser_syntax_mk__node(x_37, x_36);
x_39 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_39, 0, x_38);
lean::cnstr_set(x_39, 1, x_6);
x_40 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_40, 0, x_26);
lean::cnstr_set(x_40, 1, x_39);
x_41 = l_lean_parser_command_section;
x_42 = l_lean_parser_syntax_mk__node(x_41, x_40);
return x_42;
}
}
}
}
obj* _init_l_lean_parser_command_section_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_section_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_section_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_section_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_section_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_section_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_11;
x_0 = lean::mk_string("section");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_5, x_4);
lean::dec(x_5);
x_8 = l_lean_parser_list_cons_tokens___rarg(x_2, x_6);
lean::dec(x_6);
lean::dec(x_2);
x_11 = l_lean_parser_tokens___rarg(x_8);
lean::dec(x_8);
return x_11;
}
}
obj* _init_l_lean_parser_command_section_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::mk_string("section");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_6);
lean::cnstr_set(x_11, 1, x_10);
return x_11;
}
}
obj* l_lean_parser_command_section_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_section;
x_5 = l_lean_parser_command_section_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_namespace() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("namespace");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_namespace_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_14; obj* x_15;
x_14 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_5);
lean::cnstr_set(x_15, 1, x_14);
return x_15;
}
else
{
obj* x_16;
x_16 = lean::cnstr_get(x_0, 0);
lean::inc(x_16);
lean::dec(x_0);
switch (lean::obj_tag(x_16)) {
case 1:
{
obj* x_19; obj* x_22;
x_19 = lean::cnstr_get(x_16, 0);
lean::inc(x_19);
lean::dec(x_16);
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_5);
lean::cnstr_set(x_22, 1, x_19);
return x_22;
}
case 3:
{
obj* x_23; obj* x_24;
x_23 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_24 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_24, 0, x_5);
lean::cnstr_set(x_24, 1, x_23);
return x_24;
}
default:
{
obj* x_26; obj* x_27;
lean::dec(x_16);
x_26 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_27 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_27, 0, x_5);
lean::cnstr_set(x_27, 1, x_26);
return x_27;
}
}
}
}
}
}
}
obj* l_lean_parser_command_namespace_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_namespace_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_27; obj* x_28;
x_27 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_28 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_28, 0, x_18);
lean::cnstr_set(x_28, 1, x_27);
return x_28;
}
else
{
obj* x_29;
x_29 = lean::cnstr_get(x_1, 0);
lean::inc(x_29);
lean::dec(x_1);
switch (lean::obj_tag(x_29)) {
case 1:
{
obj* x_32; obj* x_35;
x_32 = lean::cnstr_get(x_29, 0);
lean::inc(x_32);
lean::dec(x_29);
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_18);
lean::cnstr_set(x_35, 1, x_32);
return x_35;
}
case 3:
{
obj* x_36; obj* x_37;
x_36 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_37 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_37, 0, x_18);
lean::cnstr_set(x_37, 1, x_36);
return x_37;
}
default:
{
obj* x_39; obj* x_40;
lean::dec(x_29);
x_39 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_40 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_40, 0, x_18);
lean::cnstr_set(x_40, 1, x_39);
return x_40;
}
}
}
}
}
}
}
obj* l_lean_parser_command_namespace_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_6, 0, x_3);
x_7 = lean::box(0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
if (lean::obj_tag(x_1) == 0)
{
obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_9 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_9);
lean::cnstr_set(x_10, 1, x_8);
x_11 = l_lean_parser_command_namespace;
x_12 = l_lean_parser_syntax_mk__node(x_11, x_10);
return x_12;
}
else
{
obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_21; obj* x_22; obj* x_23;
x_13 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_15 = x_1;
} else {
lean::inc(x_13);
lean::dec(x_1);
x_15 = lean::box(0);
}
x_16 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_16, 0, x_13);
if (lean::is_scalar(x_15)) {
x_17 = lean::alloc_cnstr(1, 1, 0);
} else {
x_17 = x_15;
}
lean::cnstr_set(x_17, 0, x_16);
x_18 = lean::box(3);
x_19 = l_option_get__or__else___main___rarg(x_17, x_18);
lean::dec(x_17);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_19);
lean::cnstr_set(x_21, 1, x_8);
x_22 = l_lean_parser_command_namespace;
x_23 = l_lean_parser_syntax_mk__node(x_22, x_21);
return x_23;
}
}
}
obj* _init_l_lean_parser_command_namespace_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_namespace_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_namespace_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_namespace_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_namespace_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_namespace_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_9;
x_0 = lean::mk_string("namespace");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_list_cons_tokens___rarg(x_4, x_4);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_2, x_5);
lean::dec(x_5);
lean::dec(x_2);
x_9 = l_lean_parser_tokens___rarg(x_6);
lean::dec(x_6);
return x_9;
}
}
obj* _init_l_lean_parser_command_namespace_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_0 = lean::mk_string("namespace");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::box(0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_7);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_6);
lean::cnstr_set(x_10, 1, x_9);
return x_10;
}
}
obj* l_lean_parser_command_namespace_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_namespace;
x_5 = l_lean_parser_command_namespace_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_variable() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("variable");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5;
x_0 = l_lean_parser_term_binder_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
return x_5;
}
}
obj* _init_l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_5; obj* x_6; obj* x_7;
x_0 = lean::box(0);
x_1 = l_lean_parser_term_binder_has__view;
x_2 = lean::cnstr_get(x_1, 0);
lean::inc(x_2);
lean::dec(x_1);
x_5 = lean::box(3);
x_6 = lean::apply_1(x_2, x_5);
x_7 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_7, 0, x_0);
lean::cnstr_set(x_7, 1, x_6);
return x_7;
}
}
obj* _init_l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__3() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_5; obj* x_8;
x_5 = lean::cnstr_get(x_1, 0);
lean::inc(x_5);
lean::dec(x_1);
x_8 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_8, 0, x_5);
if (lean::obj_tag(x_0) == 0)
{
obj* x_9; obj* x_10;
x_9 = l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__1;
x_10 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
return x_10;
}
else
{
obj* x_11; obj* x_14; obj* x_15; obj* x_18; obj* x_19;
x_11 = lean::cnstr_get(x_0, 0);
lean::inc(x_11);
lean::dec(x_0);
x_14 = l_lean_parser_term_binder_has__view;
x_15 = lean::cnstr_get(x_14, 0);
lean::inc(x_15);
lean::dec(x_14);
x_18 = lean::apply_1(x_15, x_11);
x_19 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_19, 0, x_8);
lean::cnstr_set(x_19, 1, x_18);
return x_19;
}
}
case 3:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_20;
x_20 = l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2;
return x_20;
}
else
{
obj* x_21; obj* x_24; obj* x_25; obj* x_26; obj* x_29; obj* x_30;
x_21 = lean::cnstr_get(x_0, 0);
lean::inc(x_21);
lean::dec(x_0);
x_24 = lean::box(0);
x_25 = l_lean_parser_term_binder_has__view;
x_26 = lean::cnstr_get(x_25, 0);
lean::inc(x_26);
lean::dec(x_25);
x_29 = lean::apply_1(x_26, x_21);
x_30 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_30, 0, x_24);
lean::cnstr_set(x_30, 1, x_29);
return x_30;
}
}
default:
{
lean::dec(x_1);
if (lean::obj_tag(x_0) == 0)
{
obj* x_32;
x_32 = l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2;
return x_32;
}
else
{
obj* x_33; obj* x_36; obj* x_37; obj* x_38; obj* x_41; obj* x_42;
x_33 = lean::cnstr_get(x_0, 0);
lean::inc(x_33);
lean::dec(x_0);
x_36 = lean::box(0);
x_37 = l_lean_parser_term_binder_has__view;
x_38 = lean::cnstr_get(x_37, 0);
lean::inc(x_38);
lean::dec(x_37);
x_41 = lean::apply_1(x_38, x_33);
x_42 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_42, 0, x_36);
lean::cnstr_set(x_42, 1, x_41);
return x_42;
}
}
}
}
}
}
obj* l_lean_parser_command_variable_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__3;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_18; obj* x_21;
x_18 = lean::cnstr_get(x_2, 0);
lean::inc(x_18);
lean::dec(x_2);
x_21 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_21, 0, x_18);
if (lean::obj_tag(x_1) == 0)
{
obj* x_22; obj* x_23;
x_22 = l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__1;
x_23 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_22);
return x_23;
}
else
{
obj* x_24; obj* x_27; obj* x_28; obj* x_31; obj* x_32;
x_24 = lean::cnstr_get(x_1, 0);
lean::inc(x_24);
lean::dec(x_1);
x_27 = l_lean_parser_term_binder_has__view;
x_28 = lean::cnstr_get(x_27, 0);
lean::inc(x_28);
lean::dec(x_27);
x_31 = lean::apply_1(x_28, x_24);
x_32 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_32, 0, x_21);
lean::cnstr_set(x_32, 1, x_31);
return x_32;
}
}
case 3:
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_33;
x_33 = l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2;
return x_33;
}
else
{
obj* x_34; obj* x_37; obj* x_38; obj* x_39; obj* x_42; obj* x_43;
x_34 = lean::cnstr_get(x_1, 0);
lean::inc(x_34);
lean::dec(x_1);
x_37 = lean::box(0);
x_38 = l_lean_parser_term_binder_has__view;
x_39 = lean::cnstr_get(x_38, 0);
lean::inc(x_39);
lean::dec(x_38);
x_42 = lean::apply_1(x_39, x_34);
x_43 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_43, 0, x_37);
lean::cnstr_set(x_43, 1, x_42);
return x_43;
}
}
default:
{
lean::dec(x_2);
if (lean::obj_tag(x_1) == 0)
{
obj* x_45;
x_45 = l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2;
return x_45;
}
else
{
obj* x_46; obj* x_49; obj* x_50; obj* x_51; obj* x_54; obj* x_55;
x_46 = lean::cnstr_get(x_1, 0);
lean::inc(x_46);
lean::dec(x_1);
x_49 = lean::box(0);
x_50 = l_lean_parser_term_binder_has__view;
x_51 = lean::cnstr_get(x_50, 0);
lean::inc(x_51);
lean::dec(x_50);
x_54 = lean::apply_1(x_51, x_46);
x_55 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_55, 0, x_49);
lean::cnstr_set(x_55, 1, x_54);
return x_55;
}
}
}
}
}
}
obj* l_lean_parser_command_variable_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_10; obj* x_11; obj* x_12;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_lean_parser_term_binder_has__view;
x_7 = lean::cnstr_get(x_6, 1);
lean::inc(x_7);
lean::dec(x_6);
x_10 = lean::apply_1(x_7, x_3);
x_11 = lean::box(0);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_10);
lean::cnstr_set(x_12, 1, x_11);
if (lean::obj_tag(x_1) == 0)
{
obj* x_13; obj* x_14; obj* x_15; obj* x_16;
x_13 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_12);
x_15 = l_lean_parser_command_variable;
x_16 = l_lean_parser_syntax_mk__node(x_15, x_14);
return x_16;
}
else
{
obj* x_17; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_25; obj* x_26; obj* x_27;
x_17 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_19 = x_1;
} else {
lean::inc(x_17);
lean::dec(x_1);
x_19 = lean::box(0);
}
x_20 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_20, 0, x_17);
if (lean::is_scalar(x_19)) {
x_21 = lean::alloc_cnstr(1, 1, 0);
} else {
x_21 = x_19;
}
lean::cnstr_set(x_21, 0, x_20);
x_22 = lean::box(3);
x_23 = l_option_get__or__else___main___rarg(x_21, x_22);
lean::dec(x_21);
x_25 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_25, 0, x_23);
lean::cnstr_set(x_25, 1, x_12);
x_26 = l_lean_parser_command_variable;
x_27 = l_lean_parser_syntax_mk__node(x_26, x_25);
return x_27;
}
}
}
obj* _init_l_lean_parser_command_variable_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_variable_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_variable_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_variable_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_variable_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_variable_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_9; obj* x_12;
x_0 = lean::mk_string("variable");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = l_lean_parser_term_binder_parser_lean_parser_has__tokens;
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = lean::box(0);
x_7 = l_lean_parser_list_cons_tokens___rarg(x_5, x_6);
lean::dec(x_5);
x_9 = l_lean_parser_list_cons_tokens___rarg(x_2, x_7);
lean::dec(x_7);
lean::dec(x_2);
x_12 = l_lean_parser_tokens___rarg(x_9);
lean::dec(x_9);
return x_12;
}
}
obj* _init_l_lean_parser_command_variable_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::mk_string("variable");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term_binder_parser), 5, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term__parser_run), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_6);
lean::cnstr_set(x_11, 1, x_10);
return x_11;
}
}
obj* l_lean_parser_command_variable_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_variable;
x_5 = l_lean_parser_command_variable_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_variables() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("variables");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_5; obj* x_6; obj* x_7;
x_0 = lean::box(0);
x_1 = l_lean_parser_term_bracketed__binders_has__view;
x_2 = lean::cnstr_get(x_1, 0);
lean::inc(x_2);
lean::dec(x_1);
x_5 = lean::box(3);
x_6 = lean::apply_1(x_2, x_5);
x_7 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_7, 0, x_0);
lean::cnstr_set(x_7, 1, x_6);
return x_7;
}
}
obj* _init_l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_5; obj* x_8;
x_5 = lean::cnstr_get(x_1, 0);
lean::inc(x_5);
lean::dec(x_1);
x_8 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_8, 0, x_5);
if (lean::obj_tag(x_0) == 0)
{
obj* x_9; obj* x_10;
x_9 = l_lean_parser_command_decl__sig_has__view_x_27___lambda__1___closed__2;
x_10 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
return x_10;
}
else
{
obj* x_11; obj* x_14; obj* x_15; obj* x_18; obj* x_19;
x_11 = lean::cnstr_get(x_0, 0);
lean::inc(x_11);
lean::dec(x_0);
x_14 = l_lean_parser_term_bracketed__binders_has__view;
x_15 = lean::cnstr_get(x_14, 0);
lean::inc(x_15);
lean::dec(x_14);
x_18 = lean::apply_1(x_15, x_11);
x_19 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_19, 0, x_8);
lean::cnstr_set(x_19, 1, x_18);
return x_19;
}
}
case 3:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_20;
x_20 = l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1;
return x_20;
}
else
{
obj* x_21; obj* x_24; obj* x_25; obj* x_26; obj* x_29; obj* x_30;
x_21 = lean::cnstr_get(x_0, 0);
lean::inc(x_21);
lean::dec(x_0);
x_24 = lean::box(0);
x_25 = l_lean_parser_term_bracketed__binders_has__view;
x_26 = lean::cnstr_get(x_25, 0);
lean::inc(x_26);
lean::dec(x_25);
x_29 = lean::apply_1(x_26, x_21);
x_30 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_30, 0, x_24);
lean::cnstr_set(x_30, 1, x_29);
return x_30;
}
}
default:
{
lean::dec(x_1);
if (lean::obj_tag(x_0) == 0)
{
obj* x_32;
x_32 = l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1;
return x_32;
}
else
{
obj* x_33; obj* x_36; obj* x_37; obj* x_38; obj* x_41; obj* x_42;
x_33 = lean::cnstr_get(x_0, 0);
lean::inc(x_33);
lean::dec(x_0);
x_36 = lean::box(0);
x_37 = l_lean_parser_term_bracketed__binders_has__view;
x_38 = lean::cnstr_get(x_37, 0);
lean::inc(x_38);
lean::dec(x_37);
x_41 = lean::apply_1(x_38, x_33);
x_42 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_42, 0, x_36);
lean::cnstr_set(x_42, 1, x_41);
return x_42;
}
}
}
}
}
}
obj* l_lean_parser_command_variables_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__2;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_18; obj* x_21;
x_18 = lean::cnstr_get(x_2, 0);
lean::inc(x_18);
lean::dec(x_2);
x_21 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_21, 0, x_18);
if (lean::obj_tag(x_1) == 0)
{
obj* x_22; obj* x_23;
x_22 = l_lean_parser_command_decl__sig_has__view_x_27___lambda__1___closed__2;
x_23 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_22);
return x_23;
}
else
{
obj* x_24; obj* x_27; obj* x_28; obj* x_31; obj* x_32;
x_24 = lean::cnstr_get(x_1, 0);
lean::inc(x_24);
lean::dec(x_1);
x_27 = l_lean_parser_term_bracketed__binders_has__view;
x_28 = lean::cnstr_get(x_27, 0);
lean::inc(x_28);
lean::dec(x_27);
x_31 = lean::apply_1(x_28, x_24);
x_32 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_32, 0, x_21);
lean::cnstr_set(x_32, 1, x_31);
return x_32;
}
}
case 3:
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_33;
x_33 = l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1;
return x_33;
}
else
{
obj* x_34; obj* x_37; obj* x_38; obj* x_39; obj* x_42; obj* x_43;
x_34 = lean::cnstr_get(x_1, 0);
lean::inc(x_34);
lean::dec(x_1);
x_37 = lean::box(0);
x_38 = l_lean_parser_term_bracketed__binders_has__view;
x_39 = lean::cnstr_get(x_38, 0);
lean::inc(x_39);
lean::dec(x_38);
x_42 = lean::apply_1(x_39, x_34);
x_43 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_43, 0, x_37);
lean::cnstr_set(x_43, 1, x_42);
return x_43;
}
}
default:
{
lean::dec(x_2);
if (lean::obj_tag(x_1) == 0)
{
obj* x_45;
x_45 = l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1;
return x_45;
}
else
{
obj* x_46; obj* x_49; obj* x_50; obj* x_51; obj* x_54; obj* x_55;
x_46 = lean::cnstr_get(x_1, 0);
lean::inc(x_46);
lean::dec(x_1);
x_49 = lean::box(0);
x_50 = l_lean_parser_term_bracketed__binders_has__view;
x_51 = lean::cnstr_get(x_50, 0);
lean::inc(x_51);
lean::dec(x_50);
x_54 = lean::apply_1(x_51, x_46);
x_55 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_55, 0, x_49);
lean::cnstr_set(x_55, 1, x_54);
return x_55;
}
}
}
}
}
}
obj* l_lean_parser_command_variables_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_10; obj* x_11; obj* x_12;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_lean_parser_term_bracketed__binders_has__view;
x_7 = lean::cnstr_get(x_6, 1);
lean::inc(x_7);
lean::dec(x_6);
x_10 = lean::apply_1(x_7, x_3);
x_11 = lean::box(0);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_10);
lean::cnstr_set(x_12, 1, x_11);
if (lean::obj_tag(x_1) == 0)
{
obj* x_13; obj* x_14; obj* x_15; obj* x_16;
x_13 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_12);
x_15 = l_lean_parser_command_variables;
x_16 = l_lean_parser_syntax_mk__node(x_15, x_14);
return x_16;
}
else
{
obj* x_17; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_25; obj* x_26; obj* x_27;
x_17 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_19 = x_1;
} else {
lean::inc(x_17);
lean::dec(x_1);
x_19 = lean::box(0);
}
x_20 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_20, 0, x_17);
if (lean::is_scalar(x_19)) {
x_21 = lean::alloc_cnstr(1, 1, 0);
} else {
x_21 = x_19;
}
lean::cnstr_set(x_21, 0, x_20);
x_22 = lean::box(3);
x_23 = l_option_get__or__else___main___rarg(x_21, x_22);
lean::dec(x_21);
x_25 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_25, 0, x_23);
lean::cnstr_set(x_25, 1, x_12);
x_26 = l_lean_parser_command_variables;
x_27 = l_lean_parser_syntax_mk__node(x_26, x_25);
return x_27;
}
}
}
obj* _init_l_lean_parser_command_variables_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_variables_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_variables_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_variables_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_variables_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_variables_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_9; obj* x_12;
x_0 = lean::mk_string("variables");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = l_lean_parser_term_bracketed__binders_parser_lean_parser_has__tokens;
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = lean::box(0);
x_7 = l_lean_parser_list_cons_tokens___rarg(x_5, x_6);
lean::dec(x_5);
x_9 = l_lean_parser_list_cons_tokens___rarg(x_2, x_7);
lean::dec(x_7);
lean::dec(x_2);
x_12 = l_lean_parser_tokens___rarg(x_9);
lean::dec(x_9);
return x_12;
}
}
obj* _init_l_lean_parser_command_variables_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::mk_string("variables");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term_bracketed__binders_parser), 5, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term__parser_run), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_6);
lean::cnstr_set(x_11, 1, x_10);
return x_11;
}
}
obj* l_lean_parser_command_variables_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_variables;
x_5 = l_lean_parser_command_variables_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_include() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("include");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
lean::cnstr_set(x_0, 0, lean::box(0));
lean::cnstr_set(x_0, 1, lean::box(0));
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__1(x_4);
switch (lean::obj_tag(x_2)) {
case 1:
{
obj* x_8; obj* x_11;
x_8 = lean::cnstr_get(x_2, 0);
lean::inc(x_8);
lean::dec(x_2);
if (lean::is_scalar(x_6)) {
x_11 = lean::alloc_cnstr(1, 2, 0);
} else {
x_11 = x_6;
}
lean::cnstr_set(x_11, 0, x_8);
lean::cnstr_set(x_11, 1, x_7);
return x_11;
}
case 3:
{
obj* x_12; obj* x_13;
x_12 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_13 = lean::alloc_cnstr(1, 2, 0);
} else {
x_13 = x_6;
}
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_7);
return x_13;
}
default:
{
obj* x_15; obj* x_16;
lean::dec(x_2);
x_15 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_16 = lean::alloc_cnstr(1, 2, 0);
} else {
x_16 = x_6;
}
lean::cnstr_set(x_16, 0, x_15);
lean::cnstr_set(x_16, 1, x_7);
return x_16;
}
}
}
}
}
obj* l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__2(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_7, 0, x_2);
x_8 = l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__2(x_4);
if (lean::is_scalar(x_6)) {
x_9 = lean::alloc_cnstr(1, 2, 0);
} else {
x_9 = x_6;
}
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
return x_9;
}
}
}
obj* _init_l_lean_parser_command_include_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14;
if (lean::obj_tag(x_0) == 0)
{
obj* x_16;
x_16 = lean::box(3);
x_14 = x_16;
goto lbl_15;
}
else
{
obj* x_17;
x_17 = lean::cnstr_get(x_0, 0);
lean::inc(x_17);
lean::dec(x_0);
x_14 = x_17;
goto lbl_15;
}
lbl_15:
{
obj* x_20;
x_20 = l_lean_parser_syntax_as__node___main(x_14);
if (lean::obj_tag(x_20) == 0)
{
obj* x_21; obj* x_22;
x_21 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_5);
lean::cnstr_set(x_22, 1, x_21);
return x_22;
}
else
{
obj* x_23; obj* x_26; obj* x_29; obj* x_30;
x_23 = lean::cnstr_get(x_20, 0);
lean::inc(x_23);
lean::dec(x_20);
x_26 = lean::cnstr_get(x_23, 1);
lean::inc(x_26);
lean::dec(x_23);
x_29 = l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__1(x_26);
x_30 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_30, 0, x_5);
lean::cnstr_set(x_30, 1, x_29);
return x_30;
}
}
}
}
}
}
obj* l_lean_parser_command_include_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_include_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
obj* x_27;
if (lean::obj_tag(x_1) == 0)
{
obj* x_29;
x_29 = lean::box(3);
x_27 = x_29;
goto lbl_28;
}
else
{
obj* x_30;
x_30 = lean::cnstr_get(x_1, 0);
lean::inc(x_30);
lean::dec(x_1);
x_27 = x_30;
goto lbl_28;
}
lbl_28:
{
obj* x_33;
x_33 = l_lean_parser_syntax_as__node___main(x_27);
if (lean::obj_tag(x_33) == 0)
{
obj* x_34; obj* x_35;
x_34 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_18);
lean::cnstr_set(x_35, 1, x_34);
return x_35;
}
else
{
obj* x_36; obj* x_39; obj* x_42; obj* x_43;
x_36 = lean::cnstr_get(x_33, 0);
lean::inc(x_36);
lean::dec(x_33);
x_39 = lean::cnstr_get(x_36, 1);
lean::inc(x_39);
lean::dec(x_36);
x_42 = l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__1(x_39);
x_43 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_43, 0, x_18);
lean::cnstr_set(x_43, 1, x_42);
return x_43;
}
}
}
}
}
}
obj* l_lean_parser_command_include_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_list_map___main___at_lean_parser_command_include_has__view_x_27___spec__2(x_3);
x_7 = l_lean_parser_no__kind;
x_8 = l_lean_parser_syntax_mk__node(x_7, x_6);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
if (lean::obj_tag(x_1) == 0)
{
obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_11 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_10);
x_13 = l_lean_parser_command_include;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
return x_14;
}
else
{
obj* x_15; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_23; obj* x_24; obj* x_25;
x_15 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_17 = x_1;
} else {
lean::inc(x_15);
lean::dec(x_1);
x_17 = lean::box(0);
}
x_18 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_18, 0, x_15);
if (lean::is_scalar(x_17)) {
x_19 = lean::alloc_cnstr(1, 1, 0);
} else {
x_19 = x_17;
}
lean::cnstr_set(x_19, 0, x_18);
x_20 = lean::box(3);
x_21 = l_option_get__or__else___main___rarg(x_19, x_20);
lean::dec(x_19);
x_23 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_10);
x_24 = l_lean_parser_command_include;
x_25 = l_lean_parser_syntax_mk__node(x_24, x_23);
return x_25;
}
}
}
obj* _init_l_lean_parser_command_include_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_include_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_include_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_include_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_include_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_include_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_11;
x_0 = lean::mk_string("include ");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_5, x_4);
lean::dec(x_5);
x_8 = l_lean_parser_list_cons_tokens___rarg(x_2, x_6);
lean::dec(x_6);
lean::dec(x_2);
x_11 = l_lean_parser_tokens___rarg(x_8);
lean::dec(x_8);
return x_11;
}
}
obj* _init_l_lean_parser_command_include_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::mk_string("include ");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_6);
lean::cnstr_set(x_11, 1, x_10);
return x_11;
}
}
obj* l_lean_parser_command_include_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_include;
x_5 = l_lean_parser_command_include_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_omit() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("omit");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
lean::cnstr_set(x_0, 0, lean::box(0));
lean::cnstr_set(x_0, 1, lean::box(0));
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__1(x_4);
switch (lean::obj_tag(x_2)) {
case 1:
{
obj* x_8; obj* x_11;
x_8 = lean::cnstr_get(x_2, 0);
lean::inc(x_8);
lean::dec(x_2);
if (lean::is_scalar(x_6)) {
x_11 = lean::alloc_cnstr(1, 2, 0);
} else {
x_11 = x_6;
}
lean::cnstr_set(x_11, 0, x_8);
lean::cnstr_set(x_11, 1, x_7);
return x_11;
}
case 3:
{
obj* x_12; obj* x_13;
x_12 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_13 = lean::alloc_cnstr(1, 2, 0);
} else {
x_13 = x_6;
}
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_7);
return x_13;
}
default:
{
obj* x_15; obj* x_16;
lean::dec(x_2);
x_15 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_16 = lean::alloc_cnstr(1, 2, 0);
} else {
x_16 = x_6;
}
lean::cnstr_set(x_16, 0, x_15);
lean::cnstr_set(x_16, 1, x_7);
return x_16;
}
}
}
}
}
obj* l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__2(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_7, 0, x_2);
x_8 = l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__2(x_4);
if (lean::is_scalar(x_6)) {
x_9 = lean::alloc_cnstr(1, 2, 0);
} else {
x_9 = x_6;
}
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
return x_9;
}
}
}
obj* _init_l_lean_parser_command_omit_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14;
if (lean::obj_tag(x_0) == 0)
{
obj* x_16;
x_16 = lean::box(3);
x_14 = x_16;
goto lbl_15;
}
else
{
obj* x_17;
x_17 = lean::cnstr_get(x_0, 0);
lean::inc(x_17);
lean::dec(x_0);
x_14 = x_17;
goto lbl_15;
}
lbl_15:
{
obj* x_20;
x_20 = l_lean_parser_syntax_as__node___main(x_14);
if (lean::obj_tag(x_20) == 0)
{
obj* x_21; obj* x_22;
x_21 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_5);
lean::cnstr_set(x_22, 1, x_21);
return x_22;
}
else
{
obj* x_23; obj* x_26; obj* x_29; obj* x_30;
x_23 = lean::cnstr_get(x_20, 0);
lean::inc(x_23);
lean::dec(x_20);
x_26 = lean::cnstr_get(x_23, 1);
lean::inc(x_26);
lean::dec(x_23);
x_29 = l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__1(x_26);
x_30 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_30, 0, x_5);
lean::cnstr_set(x_30, 1, x_29);
return x_30;
}
}
}
}
}
}
obj* l_lean_parser_command_omit_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_omit_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
obj* x_27;
if (lean::obj_tag(x_1) == 0)
{
obj* x_29;
x_29 = lean::box(3);
x_27 = x_29;
goto lbl_28;
}
else
{
obj* x_30;
x_30 = lean::cnstr_get(x_1, 0);
lean::inc(x_30);
lean::dec(x_1);
x_27 = x_30;
goto lbl_28;
}
lbl_28:
{
obj* x_33;
x_33 = l_lean_parser_syntax_as__node___main(x_27);
if (lean::obj_tag(x_33) == 0)
{
obj* x_34; obj* x_35;
x_34 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_18);
lean::cnstr_set(x_35, 1, x_34);
return x_35;
}
else
{
obj* x_36; obj* x_39; obj* x_42; obj* x_43;
x_36 = lean::cnstr_get(x_33, 0);
lean::inc(x_36);
lean::dec(x_33);
x_39 = lean::cnstr_get(x_36, 1);
lean::inc(x_39);
lean::dec(x_36);
x_42 = l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__1(x_39);
x_43 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_43, 0, x_18);
lean::cnstr_set(x_43, 1, x_42);
return x_43;
}
}
}
}
}
}
obj* l_lean_parser_command_omit_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_list_map___main___at_lean_parser_command_omit_has__view_x_27___spec__2(x_3);
x_7 = l_lean_parser_no__kind;
x_8 = l_lean_parser_syntax_mk__node(x_7, x_6);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
if (lean::obj_tag(x_1) == 0)
{
obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_11 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_10);
x_13 = l_lean_parser_command_omit;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
return x_14;
}
else
{
obj* x_15; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_23; obj* x_24; obj* x_25;
x_15 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_17 = x_1;
} else {
lean::inc(x_15);
lean::dec(x_1);
x_17 = lean::box(0);
}
x_18 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_18, 0, x_15);
if (lean::is_scalar(x_17)) {
x_19 = lean::alloc_cnstr(1, 1, 0);
} else {
x_19 = x_17;
}
lean::cnstr_set(x_19, 0, x_18);
x_20 = lean::box(3);
x_21 = l_option_get__or__else___main___rarg(x_19, x_20);
lean::dec(x_19);
x_23 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_10);
x_24 = l_lean_parser_command_omit;
x_25 = l_lean_parser_syntax_mk__node(x_24, x_23);
return x_25;
}
}
}
obj* _init_l_lean_parser_command_omit_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_omit_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_omit_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_omit_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_omit_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_omit_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_11;
x_0 = lean::mk_string("omit ");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_5, x_4);
lean::dec(x_5);
x_8 = l_lean_parser_list_cons_tokens___rarg(x_2, x_6);
lean::dec(x_6);
lean::dec(x_2);
x_11 = l_lean_parser_tokens___rarg(x_8);
lean::dec(x_8);
return x_11;
}
}
obj* _init_l_lean_parser_command_omit_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::mk_string("omit ");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_6);
lean::cnstr_set(x_11, 1, x_10);
return x_11;
}
}
obj* l_lean_parser_command_omit_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_omit;
x_5 = l_lean_parser_command_omit_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_end() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("end");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_end_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14;
if (lean::obj_tag(x_0) == 0)
{
obj* x_16;
x_16 = lean::box(3);
x_14 = x_16;
goto lbl_15;
}
else
{
obj* x_17;
x_17 = lean::cnstr_get(x_0, 0);
lean::inc(x_17);
lean::dec(x_0);
x_14 = x_17;
goto lbl_15;
}
lbl_15:
{
obj* x_20;
x_20 = l_lean_parser_syntax_as__node___main(x_14);
if (lean::obj_tag(x_20) == 0)
{
obj* x_21; obj* x_22;
x_21 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_5);
lean::cnstr_set(x_22, 1, x_21);
return x_22;
}
else
{
obj* x_23; obj* x_25; obj* x_26;
x_23 = lean::cnstr_get(x_20, 0);
if (lean::is_exclusive(x_20)) {
lean::cnstr_set(x_20, 0, lean::box(0));
x_25 = x_20;
} else {
lean::inc(x_23);
lean::dec(x_20);
x_25 = lean::box(0);
}
x_26 = lean::cnstr_get(x_23, 1);
lean::inc(x_26);
lean::dec(x_23);
if (lean::obj_tag(x_26) == 0)
{
obj* x_30; obj* x_31;
lean::dec(x_25);
x_30 = lean::box(0);
x_31 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_31, 0, x_5);
lean::cnstr_set(x_31, 1, x_30);
return x_31;
}
else
{
obj* x_32;
x_32 = lean::cnstr_get(x_26, 1);
lean::inc(x_32);
if (lean::obj_tag(x_32) == 0)
{
obj* x_34;
x_34 = lean::cnstr_get(x_26, 0);
lean::inc(x_34);
lean::dec(x_26);
switch (lean::obj_tag(x_34)) {
case 1:
{
obj* x_37; obj* x_40; obj* x_41;
x_37 = lean::cnstr_get(x_34, 0);
lean::inc(x_37);
lean::dec(x_34);
if (lean::is_scalar(x_25)) {
x_40 = lean::alloc_cnstr(1, 1, 0);
} else {
x_40 = x_25;
}
lean::cnstr_set(x_40, 0, x_37);
x_41 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_41, 0, x_5);
lean::cnstr_set(x_41, 1, x_40);
return x_41;
}
case 3:
{
obj* x_43; obj* x_44;
lean::dec(x_25);
x_43 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
x_44 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_44, 0, x_5);
lean::cnstr_set(x_44, 1, x_43);
return x_44;
}
default:
{
obj* x_47; obj* x_48;
lean::dec(x_25);
lean::dec(x_34);
x_47 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
x_48 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_48, 0, x_5);
lean::cnstr_set(x_48, 1, x_47);
return x_48;
}
}
}
else
{
obj* x_52; obj* x_53;
lean::dec(x_32);
lean::dec(x_25);
lean::dec(x_26);
x_52 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
x_53 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_53, 0, x_5);
lean::cnstr_set(x_53, 1, x_52);
return x_53;
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_end_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_end_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
obj* x_27;
if (lean::obj_tag(x_1) == 0)
{
obj* x_29;
x_29 = lean::box(3);
x_27 = x_29;
goto lbl_28;
}
else
{
obj* x_30;
x_30 = lean::cnstr_get(x_1, 0);
lean::inc(x_30);
lean::dec(x_1);
x_27 = x_30;
goto lbl_28;
}
lbl_28:
{
obj* x_33;
x_33 = l_lean_parser_syntax_as__node___main(x_27);
if (lean::obj_tag(x_33) == 0)
{
obj* x_34; obj* x_35;
x_34 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_18);
lean::cnstr_set(x_35, 1, x_34);
return x_35;
}
else
{
obj* x_36; obj* x_38; obj* x_39;
x_36 = lean::cnstr_get(x_33, 0);
if (lean::is_exclusive(x_33)) {
lean::cnstr_set(x_33, 0, lean::box(0));
x_38 = x_33;
} else {
lean::inc(x_36);
lean::dec(x_33);
x_38 = lean::box(0);
}
x_39 = lean::cnstr_get(x_36, 1);
lean::inc(x_39);
lean::dec(x_36);
if (lean::obj_tag(x_39) == 0)
{
obj* x_43; obj* x_44;
lean::dec(x_38);
x_43 = lean::box(0);
x_44 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_44, 0, x_18);
lean::cnstr_set(x_44, 1, x_43);
return x_44;
}
else
{
obj* x_45;
x_45 = lean::cnstr_get(x_39, 1);
lean::inc(x_45);
if (lean::obj_tag(x_45) == 0)
{
obj* x_47;
x_47 = lean::cnstr_get(x_39, 0);
lean::inc(x_47);
lean::dec(x_39);
switch (lean::obj_tag(x_47)) {
case 1:
{
obj* x_50; obj* x_53; obj* x_54;
x_50 = lean::cnstr_get(x_47, 0);
lean::inc(x_50);
lean::dec(x_47);
if (lean::is_scalar(x_38)) {
x_53 = lean::alloc_cnstr(1, 1, 0);
} else {
x_53 = x_38;
}
lean::cnstr_set(x_53, 0, x_50);
x_54 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_54, 0, x_18);
lean::cnstr_set(x_54, 1, x_53);
return x_54;
}
case 3:
{
obj* x_56; obj* x_57;
lean::dec(x_38);
x_56 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
x_57 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_57, 0, x_18);
lean::cnstr_set(x_57, 1, x_56);
return x_57;
}
default:
{
obj* x_60; obj* x_61;
lean::dec(x_47);
lean::dec(x_38);
x_60 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__4;
x_61 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_61, 0, x_18);
lean::cnstr_set(x_61, 1, x_60);
return x_61;
}
}
}
else
{
obj* x_65; obj* x_66;
lean::dec(x_39);
lean::dec(x_45);
lean::dec(x_38);
x_65 = l_lean_parser_command_notation__spec_has__view_x_27___lambda__1___closed__6;
x_66 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_66, 0, x_18);
lean::cnstr_set(x_66, 1, x_65);
return x_66;
}
}
}
}
}
}
}
}
obj* _init_l_lean_parser_command_end_has__view_x_27___lambda__2___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::box(3);
x_3 = l_option_get__or__else___main___rarg(x_1, x_2);
x_4 = l_lean_parser_no__kind;
x_5 = l_lean_parser_syntax_mk__node(x_4, x_0);
x_6 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_6, 0, x_5);
lean::cnstr_set(x_6, 1, x_0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_3);
lean::cnstr_set(x_7, 1, x_6);
x_8 = l_lean_parser_command_end;
x_9 = l_lean_parser_syntax_mk__node(x_8, x_7);
return x_9;
}
}
obj* l_lean_parser_command_end_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = lean::box(0);
if (lean::obj_tag(x_1) == 0)
{
if (lean::obj_tag(x_3) == 0)
{
obj* x_7;
x_7 = l_lean_parser_command_end_has__view_x_27___lambda__2___closed__1;
return x_7;
}
else
{
obj* x_8; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19;
x_8 = lean::cnstr_get(x_3, 0);
lean::inc(x_8);
lean::dec(x_3);
x_11 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_11, 0, x_8);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_6);
x_13 = l_lean_parser_no__kind;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_14);
lean::cnstr_set(x_15, 1, x_6);
x_16 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_15);
x_18 = l_lean_parser_command_end;
x_19 = l_lean_parser_syntax_mk__node(x_18, x_17);
return x_19;
}
}
else
{
obj* x_20; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26;
x_20 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_22 = x_1;
} else {
lean::inc(x_20);
lean::dec(x_1);
x_22 = lean::box(0);
}
x_23 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
if (lean::is_scalar(x_22)) {
x_24 = lean::alloc_cnstr(1, 1, 0);
} else {
x_24 = x_22;
}
lean::cnstr_set(x_24, 0, x_23);
x_25 = lean::box(3);
x_26 = l_option_get__or__else___main___rarg(x_24, x_25);
lean::dec(x_24);
if (lean::obj_tag(x_3) == 0)
{
obj* x_28; obj* x_29; obj* x_30; obj* x_31;
x_28 = l_lean_parser_detail__ident_has__view_x_27___lambda__2___closed__1;
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_26);
lean::cnstr_set(x_29, 1, x_28);
x_30 = l_lean_parser_command_end;
x_31 = l_lean_parser_syntax_mk__node(x_30, x_29);
return x_31;
}
else
{
obj* x_32; 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 = lean::cnstr_get(x_3, 0);
lean::inc(x_32);
lean::dec(x_3);
x_35 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_35, 0, x_32);
x_36 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_36, 0, x_35);
lean::cnstr_set(x_36, 1, x_6);
x_37 = l_lean_parser_no__kind;
x_38 = l_lean_parser_syntax_mk__node(x_37, x_36);
x_39 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_39, 0, x_38);
lean::cnstr_set(x_39, 1, x_6);
x_40 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_40, 0, x_26);
lean::cnstr_set(x_40, 1, x_39);
x_41 = l_lean_parser_command_end;
x_42 = l_lean_parser_syntax_mk__node(x_41, x_40);
return x_42;
}
}
}
}
obj* _init_l_lean_parser_command_end_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_end_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_end_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_end_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_end_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_end_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_11;
x_0 = lean::mk_string("end");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_5, x_4);
lean::dec(x_5);
x_8 = l_lean_parser_list_cons_tokens___rarg(x_2, x_6);
lean::dec(x_6);
lean::dec(x_2);
x_11 = l_lean_parser_tokens___rarg(x_8);
lean::dec(x_8);
return x_11;
}
}
obj* _init_l_lean_parser_command_end_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::mk_string("end");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_6);
lean::cnstr_set(x_11, 1, x_10);
return x_11;
}
}
obj* l_lean_parser_command_end_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_end;
x_5 = l_lean_parser_command_end_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_universes() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("universes");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
lean::cnstr_set(x_0, 0, lean::box(0));
lean::cnstr_set(x_0, 1, lean::box(0));
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__1(x_4);
switch (lean::obj_tag(x_2)) {
case 1:
{
obj* x_8; obj* x_11;
x_8 = lean::cnstr_get(x_2, 0);
lean::inc(x_8);
lean::dec(x_2);
if (lean::is_scalar(x_6)) {
x_11 = lean::alloc_cnstr(1, 2, 0);
} else {
x_11 = x_6;
}
lean::cnstr_set(x_11, 0, x_8);
lean::cnstr_set(x_11, 1, x_7);
return x_11;
}
case 3:
{
obj* x_12; obj* x_13;
x_12 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_13 = lean::alloc_cnstr(1, 2, 0);
} else {
x_13 = x_6;
}
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_7);
return x_13;
}
default:
{
obj* x_15; obj* x_16;
lean::dec(x_2);
x_15 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_16 = lean::alloc_cnstr(1, 2, 0);
} else {
x_16 = x_6;
}
lean::cnstr_set(x_16, 0, x_15);
lean::cnstr_set(x_16, 1, x_7);
return x_16;
}
}
}
}
}
obj* l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__2(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_7, 0, x_2);
x_8 = l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__2(x_4);
if (lean::is_scalar(x_6)) {
x_9 = lean::alloc_cnstr(1, 2, 0);
} else {
x_9 = x_6;
}
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
return x_9;
}
}
}
obj* _init_l_lean_parser_command_universes_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14;
if (lean::obj_tag(x_0) == 0)
{
obj* x_16;
x_16 = lean::box(3);
x_14 = x_16;
goto lbl_15;
}
else
{
obj* x_17;
x_17 = lean::cnstr_get(x_0, 0);
lean::inc(x_17);
lean::dec(x_0);
x_14 = x_17;
goto lbl_15;
}
lbl_15:
{
obj* x_20;
x_20 = l_lean_parser_syntax_as__node___main(x_14);
if (lean::obj_tag(x_20) == 0)
{
obj* x_21; obj* x_22;
x_21 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_5);
lean::cnstr_set(x_22, 1, x_21);
return x_22;
}
else
{
obj* x_23; obj* x_26; obj* x_29; obj* x_30;
x_23 = lean::cnstr_get(x_20, 0);
lean::inc(x_23);
lean::dec(x_20);
x_26 = lean::cnstr_get(x_23, 1);
lean::inc(x_26);
lean::dec(x_23);
x_29 = l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__1(x_26);
x_30 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_30, 0, x_5);
lean::cnstr_set(x_30, 1, x_29);
return x_30;
}
}
}
}
}
}
obj* l_lean_parser_command_universes_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_universes_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
obj* x_27;
if (lean::obj_tag(x_1) == 0)
{
obj* x_29;
x_29 = lean::box(3);
x_27 = x_29;
goto lbl_28;
}
else
{
obj* x_30;
x_30 = lean::cnstr_get(x_1, 0);
lean::inc(x_30);
lean::dec(x_1);
x_27 = x_30;
goto lbl_28;
}
lbl_28:
{
obj* x_33;
x_33 = l_lean_parser_syntax_as__node___main(x_27);
if (lean::obj_tag(x_33) == 0)
{
obj* x_34; obj* x_35;
x_34 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_18);
lean::cnstr_set(x_35, 1, x_34);
return x_35;
}
else
{
obj* x_36; obj* x_39; obj* x_42; obj* x_43;
x_36 = lean::cnstr_get(x_33, 0);
lean::inc(x_36);
lean::dec(x_33);
x_39 = lean::cnstr_get(x_36, 1);
lean::inc(x_39);
lean::dec(x_36);
x_42 = l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__1(x_39);
x_43 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_43, 0, x_18);
lean::cnstr_set(x_43, 1, x_42);
return x_43;
}
}
}
}
}
}
obj* l_lean_parser_command_universes_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = l_list_map___main___at_lean_parser_command_universes_has__view_x_27___spec__2(x_3);
x_7 = l_lean_parser_no__kind;
x_8 = l_lean_parser_syntax_mk__node(x_7, x_6);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
if (lean::obj_tag(x_1) == 0)
{
obj* x_11; obj* x_12; obj* x_13; obj* x_14;
x_11 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_11);
lean::cnstr_set(x_12, 1, x_10);
x_13 = l_lean_parser_command_universes;
x_14 = l_lean_parser_syntax_mk__node(x_13, x_12);
return x_14;
}
else
{
obj* x_15; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_23; obj* x_24; obj* x_25;
x_15 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_17 = x_1;
} else {
lean::inc(x_15);
lean::dec(x_1);
x_17 = lean::box(0);
}
x_18 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_18, 0, x_15);
if (lean::is_scalar(x_17)) {
x_19 = lean::alloc_cnstr(1, 1, 0);
} else {
x_19 = x_17;
}
lean::cnstr_set(x_19, 0, x_18);
x_20 = lean::box(3);
x_21 = l_option_get__or__else___main___rarg(x_19, x_20);
lean::dec(x_19);
x_23 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_23, 0, x_21);
lean::cnstr_set(x_23, 1, x_10);
x_24 = l_lean_parser_command_universes;
x_25 = l_lean_parser_syntax_mk__node(x_24, x_23);
return x_25;
}
}
}
obj* _init_l_lean_parser_command_universes_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_universes_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_universes_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_universes_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_universes_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_universe() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("universe");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_universe_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_14; obj* x_15;
x_14 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_5);
lean::cnstr_set(x_15, 1, x_14);
return x_15;
}
else
{
obj* x_16;
x_16 = lean::cnstr_get(x_0, 0);
lean::inc(x_16);
lean::dec(x_0);
switch (lean::obj_tag(x_16)) {
case 1:
{
obj* x_19; obj* x_22;
x_19 = lean::cnstr_get(x_16, 0);
lean::inc(x_19);
lean::dec(x_16);
x_22 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_22, 0, x_5);
lean::cnstr_set(x_22, 1, x_19);
return x_22;
}
case 3:
{
obj* x_23; obj* x_24;
x_23 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_24 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_24, 0, x_5);
lean::cnstr_set(x_24, 1, x_23);
return x_24;
}
default:
{
obj* x_26; obj* x_27;
lean::dec(x_16);
x_26 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_27 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_27, 0, x_5);
lean::cnstr_set(x_27, 1, x_26);
return x_27;
}
}
}
}
}
}
}
obj* l_lean_parser_command_universe_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_universe_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_27; obj* x_28;
x_27 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_28 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_28, 0, x_18);
lean::cnstr_set(x_28, 1, x_27);
return x_28;
}
else
{
obj* x_29;
x_29 = lean::cnstr_get(x_1, 0);
lean::inc(x_29);
lean::dec(x_1);
switch (lean::obj_tag(x_29)) {
case 1:
{
obj* x_32; obj* x_35;
x_32 = lean::cnstr_get(x_29, 0);
lean::inc(x_32);
lean::dec(x_29);
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_18);
lean::cnstr_set(x_35, 1, x_32);
return x_35;
}
case 3:
{
obj* x_36; obj* x_37;
x_36 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_37 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_37, 0, x_18);
lean::cnstr_set(x_37, 1, x_36);
return x_37;
}
default:
{
obj* x_39; obj* x_40;
lean::dec(x_29);
x_39 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_40 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_40, 0, x_18);
lean::cnstr_set(x_40, 1, x_39);
return x_40;
}
}
}
}
}
}
}
obj* l_lean_parser_command_universe_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7; obj* x_8;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_6, 0, x_3);
x_7 = lean::box(0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
if (lean::obj_tag(x_1) == 0)
{
obj* x_9; obj* x_10; obj* x_11; obj* x_12;
x_9 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_9);
lean::cnstr_set(x_10, 1, x_8);
x_11 = l_lean_parser_command_universe;
x_12 = l_lean_parser_syntax_mk__node(x_11, x_10);
return x_12;
}
else
{
obj* x_13; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_21; obj* x_22; obj* x_23;
x_13 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_15 = x_1;
} else {
lean::inc(x_13);
lean::dec(x_1);
x_15 = lean::box(0);
}
x_16 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_16, 0, x_13);
if (lean::is_scalar(x_15)) {
x_17 = lean::alloc_cnstr(1, 1, 0);
} else {
x_17 = x_15;
}
lean::cnstr_set(x_17, 0, x_16);
x_18 = lean::box(3);
x_19 = l_option_get__or__else___main___rarg(x_17, x_18);
lean::dec(x_17);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_19);
lean::cnstr_set(x_21, 1, x_8);
x_22 = l_lean_parser_command_universe;
x_23 = l_lean_parser_syntax_mk__node(x_22, x_21);
return x_23;
}
}
}
obj* _init_l_lean_parser_command_universe_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_universe_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_universe_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_universe_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_universe_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_universe_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_11; obj* x_13; obj* x_14; obj* x_16; obj* x_17; obj* x_20; obj* x_22; obj* x_24; obj* x_27;
x_0 = lean::mk_string("universes");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_5, x_4);
lean::dec(x_5);
x_8 = l_lean_parser_list_cons_tokens___rarg(x_2, x_6);
lean::dec(x_6);
lean::dec(x_2);
x_11 = l_lean_parser_tokens___rarg(x_8);
lean::dec(x_8);
x_13 = lean::mk_string("universe");
x_14 = l_lean_parser_symbol_tokens___rarg(x_13, x_1);
lean::dec(x_13);
x_16 = l_lean_parser_list_cons_tokens___rarg(x_4, x_4);
x_17 = l_lean_parser_list_cons_tokens___rarg(x_14, x_16);
lean::dec(x_16);
lean::dec(x_14);
x_20 = l_lean_parser_tokens___rarg(x_17);
lean::dec(x_17);
x_22 = l_lean_parser_list_cons_tokens___rarg(x_20, x_4);
lean::dec(x_20);
x_24 = l_lean_parser_list_cons_tokens___rarg(x_11, x_22);
lean::dec(x_22);
lean::dec(x_11);
x_27 = l_lean_parser_tokens___rarg(x_24);
lean::dec(x_24);
return x_27;
}
}
obj* l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2___rarg(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) {
_start:
{
obj* x_9; obj* x_10;
lean::inc(x_4);
lean::inc(x_3);
lean::inc(x_2);
x_9 = lean::apply_4(x_0, x_2, x_3, x_4, x_5);
x_10 = lean::cnstr_get(x_9, 0);
lean::inc(x_10);
if (lean::obj_tag(x_10) == 0)
{
obj* x_16; obj* x_18; obj* x_19;
lean::dec(x_4);
lean::dec(x_1);
lean::dec(x_3);
lean::dec(x_2);
x_16 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
lean::cnstr_release(x_9, 0);
x_18 = x_9;
} else {
lean::inc(x_16);
lean::dec(x_9);
x_18 = lean::box(0);
}
if (lean::is_scalar(x_18)) {
x_19 = lean::alloc_cnstr(0, 2, 0);
} else {
x_19 = x_18;
}
lean::cnstr_set(x_19, 0, x_10);
lean::cnstr_set(x_19, 1, x_16);
return x_19;
}
else
{
uint8 x_20;
x_20 = lean::cnstr_get_scalar<uint8>(x_10, sizeof(void*)*1);
if (x_20 == 0)
{
obj* x_21; obj* x_24; obj* x_27; obj* x_28; obj* x_30; obj* x_32; obj* x_33; obj* x_34;
x_21 = lean::cnstr_get(x_9, 1);
lean::inc(x_21);
lean::dec(x_9);
x_24 = lean::cnstr_get(x_10, 0);
lean::inc(x_24);
lean::dec(x_10);
x_27 = lean::apply_4(x_1, x_2, x_3, x_4, x_21);
x_28 = lean::cnstr_get(x_27, 0);
x_30 = lean::cnstr_get(x_27, 1);
if (lean::is_exclusive(x_27)) {
x_32 = x_27;
} else {
lean::inc(x_28);
lean::inc(x_30);
lean::dec(x_27);
x_32 = lean::box(0);
}
x_33 = l_lean_parser_parsec__t_orelse__mk__res___rarg(x_24, x_28);
if (lean::is_scalar(x_32)) {
x_34 = lean::alloc_cnstr(0, 2, 0);
} else {
x_34 = x_32;
}
lean::cnstr_set(x_34, 0, x_33);
lean::cnstr_set(x_34, 1, x_30);
return x_34;
}
else
{
obj* x_39; obj* x_41; obj* x_42;
lean::dec(x_4);
lean::dec(x_1);
lean::dec(x_3);
lean::dec(x_2);
x_39 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
lean::cnstr_release(x_9, 0);
x_41 = x_9;
} else {
lean::inc(x_39);
lean::dec(x_9);
x_41 = lean::box(0);
}
if (lean::is_scalar(x_41)) {
x_42 = lean::alloc_cnstr(0, 2, 0);
} else {
x_42 = x_41;
}
lean::cnstr_set(x_42, 0, x_10);
lean::cnstr_set(x_42, 1, x_39);
return x_42;
}
}
}
}
obj* l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2___rarg), 6, 0);
return x_1;
}
}
obj* l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3___rarg(obj* x_0, obj* x_1) {
_start:
{
if (lean::obj_tag(x_1) == 0)
{
return x_0;
}
else
{
obj* x_2; obj* x_4; obj* x_7;
x_2 = lean::cnstr_get(x_1, 0);
lean::inc(x_2);
x_4 = lean::cnstr_get(x_1, 1);
lean::inc(x_4);
lean::dec(x_1);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2___rarg), 6, 2);
lean::closure_set(x_7, 0, x_0);
lean::closure_set(x_7, 1, x_2);
x_0 = x_7;
x_1 = x_4;
goto _start;
}
}
}
obj* l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3___rarg), 2, 0);
return x_1;
}
}
obj* l_lean_parser_combinators_any__of___at_lean_parser_command_universe_parser___spec__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_5 = lean::box(0);
x_6 = l_lean_parser_combinators_any__of___rarg___closed__1;
x_7 = l_mjoin___rarg___closed__1;
x_8 = l_lean_parser_monad__parsec_error___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__4___rarg(x_6, x_7, x_5, x_5, x_1, x_2, x_3, x_4);
lean::dec(x_3);
lean::dec(x_2);
lean::dec(x_1);
return x_8;
}
else
{
obj* x_12; obj* x_14; obj* x_17; obj* x_18;
x_12 = lean::cnstr_get(x_0, 0);
lean::inc(x_12);
x_14 = lean::cnstr_get(x_0, 1);
lean::inc(x_14);
lean::dec(x_0);
x_17 = l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3___rarg(x_12, x_14);
x_18 = lean::apply_4(x_17, x_1, x_2, x_3, x_4);
return x_18;
}
}
}
obj* _init_l_lean_parser_command_universe_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; 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_0 = lean::mk_string("universes");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
lean::inc(x_7);
x_9 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many1___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__3), 5, 1);
lean::closure_set(x_9, 0, x_7);
x_10 = lean::box(0);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set(x_11, 1, x_10);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_6);
lean::cnstr_set(x_12, 1, x_11);
x_13 = l_lean_parser_command_universes;
x_14 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_14, 0, x_13);
lean::closure_set(x_14, 1, x_12);
x_15 = lean::mk_string("universe");
x_16 = l_string_trim(x_15);
lean::dec(x_15);
lean::inc(x_16);
x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_19, 0, x_16);
x_20 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_20, 0, x_16);
lean::closure_set(x_20, 1, x_5);
lean::closure_set(x_20, 2, x_19);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_7);
lean::cnstr_set(x_21, 1, x_10);
x_22 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_22, 0, x_20);
lean::cnstr_set(x_22, 1, x_21);
x_23 = l_lean_parser_command_universe;
x_24 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_24, 0, x_23);
lean::closure_set(x_24, 1, x_22);
x_25 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_25, 0, x_24);
lean::cnstr_set(x_25, 1, x_10);
x_26 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_26, 0, x_14);
lean::cnstr_set(x_26, 1, x_25);
return x_26;
}
}
obj* l_lean_parser_command_universe_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5;
x_4 = l_lean_parser_command_universe_parser___closed__1;
x_5 = l_lean_parser_combinators_any__of___at_lean_parser_command_universe_parser___spec__1(x_4, x_0, x_1, x_2, x_3);
return x_5;
}
}
obj* l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_reader__t_orelse___at_lean_parser_command_universe_parser___spec__2(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_list_foldl___main___at_lean_parser_command_universe_parser___spec__3(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* _init_l_lean_parser_command_check() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("check");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::box(0);
x_1 = lean::box(3);
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_command_check_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_1) == 0)
{
obj* x_2;
x_2 = l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1;
return x_2;
}
else
{
obj* x_3; obj* x_5; obj* x_6;
x_3 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
lean::cnstr_set(x_1, 0, lean::box(0));
x_5 = x_1;
} else {
lean::inc(x_3);
lean::dec(x_1);
x_5 = lean::box(0);
}
x_6 = lean::cnstr_get(x_3, 1);
lean::inc(x_6);
lean::dec(x_3);
if (lean::obj_tag(x_6) == 0)
{
lean::dec(x_5);
if (lean::obj_tag(x_6) == 0)
{
obj* x_10;
x_10 = l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1;
return x_10;
}
else
{
obj* x_11; obj* x_14; obj* x_15;
x_11 = lean::cnstr_get(x_6, 0);
lean::inc(x_11);
lean::dec(x_6);
x_14 = lean::box(0);
x_15 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_15, 0, x_14);
lean::cnstr_set(x_15, 1, x_11);
return x_15;
}
}
else
{
obj* x_16;
x_16 = lean::cnstr_get(x_6, 0);
lean::inc(x_16);
switch (lean::obj_tag(x_16)) {
case 0:
{
obj* x_18; obj* x_21; obj* x_24;
x_18 = lean::cnstr_get(x_6, 1);
lean::inc(x_18);
lean::dec(x_6);
x_21 = lean::cnstr_get(x_16, 0);
lean::inc(x_21);
lean::dec(x_16);
if (lean::is_scalar(x_5)) {
x_24 = lean::alloc_cnstr(1, 1, 0);
} else {
x_24 = x_5;
}
lean::cnstr_set(x_24, 0, x_21);
if (lean::obj_tag(x_18) == 0)
{
obj* x_25; obj* x_26;
x_25 = lean::box(3);
x_26 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_26, 0, x_24);
lean::cnstr_set(x_26, 1, x_25);
return x_26;
}
else
{
obj* x_27; obj* x_30;
x_27 = lean::cnstr_get(x_18, 0);
lean::inc(x_27);
lean::dec(x_18);
x_30 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_30, 0, x_24);
lean::cnstr_set(x_30, 1, x_27);
return x_30;
}
}
case 3:
{
obj* x_32;
lean::dec(x_5);
x_32 = lean::cnstr_get(x_6, 1);
lean::inc(x_32);
lean::dec(x_6);
if (lean::obj_tag(x_32) == 0)
{
obj* x_35;
x_35 = l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1;
return x_35;
}
else
{
obj* x_36; obj* x_39; obj* x_40;
x_36 = lean::cnstr_get(x_32, 0);
lean::inc(x_36);
lean::dec(x_32);
x_39 = lean::box(0);
x_40 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_40, 0, x_39);
lean::cnstr_set(x_40, 1, x_36);
return x_40;
}
}
default:
{
obj* x_43;
lean::dec(x_5);
lean::dec(x_16);
x_43 = lean::cnstr_get(x_6, 1);
lean::inc(x_43);
lean::dec(x_6);
if (lean::obj_tag(x_43) == 0)
{
obj* x_46;
x_46 = l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1;
return x_46;
}
else
{
obj* x_47; obj* x_50; obj* x_51;
x_47 = lean::cnstr_get(x_43, 0);
lean::inc(x_47);
lean::dec(x_43);
x_50 = lean::box(0);
x_51 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_51, 0, x_50);
lean::cnstr_set(x_51, 1, x_47);
return x_51;
}
}
}
}
}
}
}
obj* l_lean_parser_command_check_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_6; obj* x_7;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
lean::dec(x_0);
x_6 = lean::box(0);
x_7 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_7, 0, x_3);
lean::cnstr_set(x_7, 1, x_6);
if (lean::obj_tag(x_1) == 0)
{
obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_8 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_9 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_9, 0, x_8);
lean::cnstr_set(x_9, 1, x_7);
x_10 = l_lean_parser_command_check;
x_11 = l_lean_parser_syntax_mk__node(x_10, x_9);
return x_11;
}
else
{
obj* x_12; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_20; obj* x_21; obj* x_22;
x_12 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_14 = x_1;
} else {
lean::inc(x_12);
lean::dec(x_1);
x_14 = lean::box(0);
}
x_15 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_15, 0, x_12);
if (lean::is_scalar(x_14)) {
x_16 = lean::alloc_cnstr(1, 1, 0);
} else {
x_16 = x_14;
}
lean::cnstr_set(x_16, 0, x_15);
x_17 = lean::box(3);
x_18 = l_option_get__or__else___main___rarg(x_16, x_17);
lean::dec(x_16);
x_20 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_20, 0, x_18);
lean::cnstr_set(x_20, 1, x_7);
x_21 = l_lean_parser_command_check;
x_22 = l_lean_parser_syntax_mk__node(x_21, x_20);
return x_22;
}
}
}
obj* _init_l_lean_parser_command_check_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_check_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_check_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_check_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_check_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_check_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_9; obj* x_12;
x_0 = lean::mk_string("#check");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = l_lean_parser_term_parser_lean_parser_has__tokens___closed__1;
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = lean::box(0);
x_7 = l_lean_parser_list_cons_tokens___rarg(x_5, x_6);
lean::dec(x_5);
x_9 = l_lean_parser_list_cons_tokens___rarg(x_2, x_7);
lean::dec(x_7);
lean::dec(x_2);
x_12 = l_lean_parser_tokens___rarg(x_9);
lean::dec(x_9);
return x_12;
}
}
obj* _init_l_lean_parser_command_check_parser_lean_parser_has__view() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18;
x_0 = lean::mk_string("#check");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term_parser), 6, 1);
lean::closure_set(x_7, 0, x_5);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term__parser_run), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_6);
lean::cnstr_set(x_11, 1, x_10);
x_12 = l_lean_parser_command__parser__m_monad___closed__1;
x_13 = l_lean_parser_command__parser__m_monad__except___closed__1;
x_14 = l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__1;
x_15 = l_lean_parser_command__parser__m_alternative___closed__1;
x_16 = l_lean_parser_command_check;
x_17 = l_lean_parser_command_check_has__view;
x_18 = l_lean_parser_combinators_node_view___rarg(x_12, x_13, x_14, x_15, x_16, x_11, x_17);
lean::dec(x_11);
return x_18;
}
}
obj* _init_l_lean_parser_command_check_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11;
x_0 = lean::mk_string("#check");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term_parser), 6, 1);
lean::closure_set(x_7, 0, x_5);
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term__parser_run), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_8);
lean::cnstr_set(x_10, 1, x_9);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_6);
lean::cnstr_set(x_11, 1, x_10);
return x_11;
}
}
obj* l_lean_parser_command_check_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_check;
x_5 = l_lean_parser_command_check_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_attribute() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("attribute");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
lean::cnstr_set(x_0, 0, lean::box(0));
lean::cnstr_set(x_0, 1, lean::box(0));
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__1(x_4);
switch (lean::obj_tag(x_2)) {
case 1:
{
obj* x_8; obj* x_11;
x_8 = lean::cnstr_get(x_2, 0);
lean::inc(x_8);
lean::dec(x_2);
if (lean::is_scalar(x_6)) {
x_11 = lean::alloc_cnstr(1, 2, 0);
} else {
x_11 = x_6;
}
lean::cnstr_set(x_11, 0, x_8);
lean::cnstr_set(x_11, 1, x_7);
return x_11;
}
case 3:
{
obj* x_12; obj* x_13;
x_12 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_13 = lean::alloc_cnstr(1, 2, 0);
} else {
x_13 = x_6;
}
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_7);
return x_13;
}
default:
{
obj* x_15; obj* x_16;
lean::dec(x_2);
x_15 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
if (lean::is_scalar(x_6)) {
x_16 = lean::alloc_cnstr(1, 2, 0);
} else {
x_16 = x_6;
}
lean::cnstr_set(x_16, 0, x_15);
lean::cnstr_set(x_16, 1, x_7);
return x_16;
}
}
}
}
}
obj* l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___at_lean_parser_command_attribute_has__view_x_27___spec__2(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2;
x_2 = lean::cnstr_get(x_0, 1);
lean::inc(x_2);
if (lean::obj_tag(x_2) == 0)
{
obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_4 = lean::cnstr_get(x_0, 0);
if (lean::is_exclusive(x_0)) {
lean::cnstr_release(x_0, 1);
x_6 = x_0;
} else {
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = l_lean_parser_command_attr__instance_has__view;
x_8 = lean::cnstr_get(x_7, 0);
lean::inc(x_8);
lean::dec(x_7);
x_11 = lean::apply_1(x_8, x_4);
x_12 = lean::box(0);
x_13 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_13, 0, x_11);
lean::cnstr_set(x_13, 1, x_12);
x_14 = lean::box(0);
if (lean::is_scalar(x_6)) {
x_15 = lean::alloc_cnstr(1, 2, 0);
} else {
x_15 = x_6;
}
lean::cnstr_set(x_15, 0, x_13);
lean::cnstr_set(x_15, 1, x_14);
return x_15;
}
else
{
obj* x_16; obj* x_19; obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_28; obj* x_29;
x_16 = lean::cnstr_get(x_0, 0);
lean::inc(x_16);
lean::dec(x_0);
x_19 = lean::cnstr_get(x_2, 0);
x_21 = lean::cnstr_get(x_2, 1);
if (lean::is_exclusive(x_2)) {
lean::cnstr_set(x_2, 0, lean::box(0));
lean::cnstr_set(x_2, 1, lean::box(0));
x_23 = x_2;
} else {
lean::inc(x_19);
lean::inc(x_21);
lean::dec(x_2);
x_23 = lean::box(0);
}
x_24 = l_lean_parser_command_attr__instance_has__view;
x_25 = lean::cnstr_get(x_24, 0);
lean::inc(x_25);
lean::dec(x_24);
x_28 = lean::apply_1(x_25, x_16);
x_29 = l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___at_lean_parser_command_attribute_has__view_x_27___spec__2(x_21);
switch (lean::obj_tag(x_19)) {
case 0:
{
obj* x_30; obj* x_33; obj* x_34; obj* x_35; obj* x_36;
x_30 = lean::cnstr_get(x_19, 0);
lean::inc(x_30);
lean::dec(x_19);
x_33 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_33, 0, x_30);
x_34 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_34, 0, x_33);
x_35 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_35, 0, x_28);
lean::cnstr_set(x_35, 1, x_34);
if (lean::is_scalar(x_23)) {
x_36 = lean::alloc_cnstr(1, 2, 0);
} else {
x_36 = x_23;
}
lean::cnstr_set(x_36, 0, x_35);
lean::cnstr_set(x_36, 1, x_29);
return x_36;
}
case 3:
{
obj* x_37; obj* x_38; obj* x_39;
x_37 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_38 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_38, 0, x_28);
lean::cnstr_set(x_38, 1, x_37);
if (lean::is_scalar(x_23)) {
x_39 = lean::alloc_cnstr(1, 2, 0);
} else {
x_39 = x_23;
}
lean::cnstr_set(x_39, 0, x_38);
lean::cnstr_set(x_39, 1, x_29);
return x_39;
}
default:
{
obj* x_41; obj* x_42; obj* x_43;
lean::dec(x_19);
x_41 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_42 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_42, 0, x_28);
lean::cnstr_set(x_42, 1, x_41);
if (lean::is_scalar(x_23)) {
x_43 = lean::alloc_cnstr(1, 2, 0);
} else {
x_43 = x_23;
}
lean::cnstr_set(x_43, 0, x_42);
lean::cnstr_set(x_43, 1, x_29);
return x_43;
}
}
}
}
}
}
obj* l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__3(obj* x_0, obj* x_1) {
_start:
{
if (lean::obj_tag(x_1) == 0)
{
obj* x_3;
lean::dec(x_0);
x_3 = lean::box(0);
return x_3;
}
else
{
obj* x_4; obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_15;
x_4 = lean::cnstr_get(x_1, 0);
x_6 = lean::cnstr_get(x_1, 1);
if (lean::is_exclusive(x_1)) {
lean::cnstr_set(x_1, 0, lean::box(0));
lean::cnstr_set(x_1, 1, lean::box(0));
x_8 = x_1;
} else {
lean::inc(x_4);
lean::inc(x_6);
lean::dec(x_1);
x_8 = lean::box(0);
}
x_9 = lean::cnstr_get(x_4, 0);
lean::inc(x_9);
x_11 = lean::cnstr_get(x_4, 1);
lean::inc(x_11);
lean::dec(x_4);
lean::inc(x_0);
x_15 = l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__3(x_0, x_6);
if (lean::obj_tag(x_11) == 0)
{
obj* x_16; obj* x_17; obj* x_20; obj* x_21; obj* x_22;
x_16 = l_lean_parser_command_attr__instance_has__view;
x_17 = lean::cnstr_get(x_16, 1);
lean::inc(x_17);
lean::dec(x_16);
x_20 = lean::apply_1(x_17, x_9);
if (lean::is_scalar(x_8)) {
x_21 = lean::alloc_cnstr(1, 2, 0);
} else {
x_21 = x_8;
}
lean::cnstr_set(x_21, 0, x_20);
lean::cnstr_set(x_21, 1, x_0);
x_22 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_22, 0, x_21);
lean::cnstr_set(x_22, 1, x_15);
return x_22;
}
else
{
obj* x_23; obj* x_26; obj* x_27; obj* x_30;
x_23 = lean::cnstr_get(x_11, 0);
lean::inc(x_23);
lean::dec(x_11);
x_26 = l_lean_parser_command_attr__instance_has__view;
x_27 = lean::cnstr_get(x_26, 1);
lean::inc(x_27);
lean::dec(x_26);
x_30 = lean::apply_1(x_27, x_9);
if (lean::obj_tag(x_23) == 0)
{
obj* x_31; obj* x_32; obj* x_33; obj* x_34;
x_31 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
if (lean::is_scalar(x_8)) {
x_32 = lean::alloc_cnstr(1, 2, 0);
} else {
x_32 = x_8;
}
lean::cnstr_set(x_32, 0, x_31);
lean::cnstr_set(x_32, 1, x_0);
x_33 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_33, 0, x_30);
lean::cnstr_set(x_33, 1, x_32);
x_34 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_34, 0, x_33);
lean::cnstr_set(x_34, 1, x_15);
return x_34;
}
else
{
obj* x_35; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_43; obj* x_44; obj* x_45;
x_35 = lean::cnstr_get(x_23, 0);
if (lean::is_exclusive(x_23)) {
x_37 = x_23;
} else {
lean::inc(x_35);
lean::dec(x_23);
x_37 = lean::box(0);
}
x_38 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_38, 0, x_35);
if (lean::is_scalar(x_37)) {
x_39 = lean::alloc_cnstr(1, 1, 0);
} else {
x_39 = x_37;
}
lean::cnstr_set(x_39, 0, x_38);
x_40 = lean::box(3);
x_41 = l_option_get__or__else___main___rarg(x_39, x_40);
lean::dec(x_39);
if (lean::is_scalar(x_8)) {
x_43 = lean::alloc_cnstr(1, 2, 0);
} else {
x_43 = x_8;
}
lean::cnstr_set(x_43, 0, x_41);
lean::cnstr_set(x_43, 1, x_0);
x_44 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_44, 0, x_30);
lean::cnstr_set(x_44, 1, x_43);
x_45 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_45, 0, x_44);
lean::cnstr_set(x_45, 1, x_15);
return x_45;
}
}
}
}
}
obj* l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__4(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = lean::box(0);
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_8; obj* x_9;
x_2 = lean::cnstr_get(x_0, 0);
x_4 = lean::cnstr_get(x_0, 1);
if (lean::is_exclusive(x_0)) {
x_6 = x_0;
} else {
lean::inc(x_2);
lean::inc(x_4);
lean::dec(x_0);
x_6 = lean::box(0);
}
x_7 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_7, 0, x_2);
x_8 = l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__4(x_4);
if (lean::is_scalar(x_6)) {
x_9 = lean::alloc_cnstr(1, 2, 0);
} else {
x_9 = x_6;
}
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_8);
return x_9;
}
}
}
obj* _init_l_lean_parser_command_attribute_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5; obj* x_7;
x_7 = l_lean_parser_syntax_as__node___main(x_1);
if (lean::obj_tag(x_7) == 0)
{
obj* x_8;
x_8 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_5 = x_8;
goto lbl_6;
}
else
{
obj* x_9; obj* x_11; obj* x_12;
x_9 = lean::cnstr_get(x_7, 0);
if (lean::is_exclusive(x_7)) {
lean::cnstr_set(x_7, 0, lean::box(0));
x_11 = x_7;
} else {
lean::inc(x_9);
lean::dec(x_7);
x_11 = lean::box(0);
}
x_12 = lean::cnstr_get(x_9, 1);
lean::inc(x_12);
lean::dec(x_9);
if (lean::obj_tag(x_12) == 0)
{
obj* x_16;
lean::dec(x_11);
x_16 = lean::box(0);
x_5 = x_16;
goto lbl_6;
}
else
{
obj* x_17;
x_17 = lean::cnstr_get(x_12, 1);
lean::inc(x_17);
if (lean::obj_tag(x_17) == 0)
{
obj* x_19;
x_19 = lean::cnstr_get(x_12, 0);
lean::inc(x_19);
lean::dec(x_12);
switch (lean::obj_tag(x_19)) {
case 0:
{
obj* x_22; obj* x_25; obj* x_26;
x_22 = lean::cnstr_get(x_19, 0);
lean::inc(x_22);
lean::dec(x_19);
if (lean::is_scalar(x_11)) {
x_25 = lean::alloc_cnstr(1, 1, 0);
} else {
x_25 = x_11;
}
lean::cnstr_set(x_25, 0, x_22);
x_26 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_26, 0, x_25);
x_5 = x_26;
goto lbl_6;
}
case 3:
{
obj* x_28;
lean::dec(x_11);
x_28 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_5 = x_28;
goto lbl_6;
}
default:
{
obj* x_31;
lean::dec(x_19);
lean::dec(x_11);
x_31 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_5 = x_31;
goto lbl_6;
}
}
}
else
{
obj* x_35;
lean::dec(x_11);
lean::dec(x_12);
lean::dec(x_17);
x_35 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_5 = x_35;
goto lbl_6;
}
}
}
lbl_6:
{
obj* x_36; obj* x_37;
if (lean::obj_tag(x_0) == 0)
{
obj* x_39;
x_39 = lean::box(3);
x_36 = x_0;
x_37 = x_39;
goto lbl_38;
}
else
{
obj* x_40; obj* x_42;
x_40 = lean::cnstr_get(x_0, 0);
lean::inc(x_40);
x_42 = lean::cnstr_get(x_0, 1);
lean::inc(x_42);
lean::dec(x_0);
x_36 = x_42;
x_37 = x_40;
goto lbl_38;
}
lbl_38:
{
obj* x_45;
switch (lean::obj_tag(x_37)) {
case 0:
{
obj* x_47; obj* x_50;
x_47 = lean::cnstr_get(x_37, 0);
lean::inc(x_47);
lean::dec(x_37);
x_50 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_50, 0, x_47);
x_45 = x_50;
goto lbl_46;
}
case 3:
{
obj* x_51;
x_51 = lean::box(0);
x_45 = x_51;
goto lbl_46;
}
default:
{
obj* x_53;
lean::dec(x_37);
x_53 = lean::box(0);
x_45 = x_53;
goto lbl_46;
}
}
lbl_46:
{
obj* x_54; obj* x_55;
if (lean::obj_tag(x_36) == 0)
{
obj* x_57;
x_57 = lean::box(3);
x_54 = x_36;
x_55 = x_57;
goto lbl_56;
}
else
{
obj* x_58; obj* x_60;
x_58 = lean::cnstr_get(x_36, 0);
lean::inc(x_58);
x_60 = lean::cnstr_get(x_36, 1);
lean::inc(x_60);
lean::dec(x_36);
x_54 = x_60;
x_55 = x_58;
goto lbl_56;
}
lbl_56:
{
obj* x_63;
switch (lean::obj_tag(x_55)) {
case 0:
{
obj* x_65; obj* x_68;
x_65 = lean::cnstr_get(x_55, 0);
lean::inc(x_65);
lean::dec(x_55);
x_68 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_68, 0, x_65);
x_63 = x_68;
goto lbl_64;
}
case 3:
{
obj* x_69;
x_69 = lean::box(0);
x_63 = x_69;
goto lbl_64;
}
default:
{
obj* x_71;
lean::dec(x_55);
x_71 = lean::box(0);
x_63 = x_71;
goto lbl_64;
}
}
lbl_64:
{
obj* x_72; obj* x_73;
if (lean::obj_tag(x_54) == 0)
{
obj* x_75;
x_75 = lean::box(3);
x_72 = x_54;
x_73 = x_75;
goto lbl_74;
}
else
{
obj* x_76; obj* x_78;
x_76 = lean::cnstr_get(x_54, 0);
lean::inc(x_76);
x_78 = lean::cnstr_get(x_54, 1);
lean::inc(x_78);
lean::dec(x_54);
x_72 = x_78;
x_73 = x_76;
goto lbl_74;
}
lbl_74:
{
obj* x_81; obj* x_83;
x_83 = l_lean_parser_syntax_as__node___main(x_73);
if (lean::obj_tag(x_83) == 0)
{
obj* x_84;
x_84 = l_lean_parser_command_decl__attributes_has__view_x_27___lambda__1___closed__1;
x_81 = x_84;
goto lbl_82;
}
else
{
obj* x_85; obj* x_88; obj* x_91;
x_85 = lean::cnstr_get(x_83, 0);
lean::inc(x_85);
lean::dec(x_83);
x_88 = lean::cnstr_get(x_85, 1);
lean::inc(x_88);
lean::dec(x_85);
x_91 = l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___at_lean_parser_command_attribute_has__view_x_27___spec__2(x_88);
x_81 = x_91;
goto lbl_82;
}
lbl_82:
{
obj* x_92; obj* x_93;
if (lean::obj_tag(x_72) == 0)
{
obj* x_95;
x_95 = lean::box(3);
x_92 = x_72;
x_93 = x_95;
goto lbl_94;
}
else
{
obj* x_96; obj* x_98;
x_96 = lean::cnstr_get(x_72, 0);
lean::inc(x_96);
x_98 = lean::cnstr_get(x_72, 1);
lean::inc(x_98);
lean::dec(x_72);
x_92 = x_98;
x_93 = x_96;
goto lbl_94;
}
lbl_94:
{
obj* x_101;
switch (lean::obj_tag(x_93)) {
case 0:
{
obj* x_103; obj* x_106;
x_103 = lean::cnstr_get(x_93, 0);
lean::inc(x_103);
lean::dec(x_93);
x_106 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_106, 0, x_103);
x_101 = x_106;
goto lbl_102;
}
case 3:
{
obj* x_107;
x_107 = lean::box(0);
x_101 = x_107;
goto lbl_102;
}
default:
{
obj* x_109;
lean::dec(x_93);
x_109 = lean::box(0);
x_101 = x_109;
goto lbl_102;
}
}
lbl_102:
{
obj* x_110;
if (lean::obj_tag(x_92) == 0)
{
obj* x_112;
x_112 = lean::box(3);
x_110 = x_112;
goto lbl_111;
}
else
{
obj* x_113;
x_113 = lean::cnstr_get(x_92, 0);
lean::inc(x_113);
lean::dec(x_92);
x_110 = x_113;
goto lbl_111;
}
lbl_111:
{
obj* x_116;
x_116 = l_lean_parser_syntax_as__node___main(x_110);
if (lean::obj_tag(x_116) == 0)
{
obj* x_117; obj* x_118;
x_117 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_118 = lean::alloc_cnstr(0, 6, 0);
lean::cnstr_set(x_118, 0, x_5);
lean::cnstr_set(x_118, 1, x_45);
lean::cnstr_set(x_118, 2, x_63);
lean::cnstr_set(x_118, 3, x_81);
lean::cnstr_set(x_118, 4, x_101);
lean::cnstr_set(x_118, 5, x_117);
return x_118;
}
else
{
obj* x_119; obj* x_122; obj* x_125; obj* x_126;
x_119 = lean::cnstr_get(x_116, 0);
lean::inc(x_119);
lean::dec(x_116);
x_122 = lean::cnstr_get(x_119, 1);
lean::inc(x_122);
lean::dec(x_119);
x_125 = l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__1(x_122);
x_126 = lean::alloc_cnstr(0, 6, 0);
lean::cnstr_set(x_126, 0, x_5);
lean::cnstr_set(x_126, 1, x_45);
lean::cnstr_set(x_126, 2, x_63);
lean::cnstr_set(x_126, 3, x_81);
lean::cnstr_set(x_126, 4, x_101);
lean::cnstr_set(x_126, 5, x_125);
return x_126;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_attribute_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_attribute_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
else
{
obj* x_18; obj* x_20; obj* x_23;
x_18 = lean::cnstr_get(x_9, 0);
lean::inc(x_18);
x_20 = lean::cnstr_get(x_9, 1);
lean::inc(x_20);
lean::dec(x_9);
x_23 = l_lean_parser_syntax_as__node___main(x_18);
if (lean::obj_tag(x_23) == 0)
{
if (lean::obj_tag(x_20) == 0)
{
obj* x_24;
x_24 = lean::box(3);
x_1 = x_20;
x_2 = x_24;
goto lbl_3;
}
else
{
obj* x_25; obj* x_27;
x_25 = lean::cnstr_get(x_20, 0);
lean::inc(x_25);
x_27 = lean::cnstr_get(x_20, 1);
lean::inc(x_27);
lean::dec(x_20);
x_1 = x_27;
x_2 = x_25;
goto lbl_3;
}
}
else
{
obj* x_30; obj* x_33; obj* x_36;
x_30 = lean::cnstr_get(x_23, 0);
lean::inc(x_30);
lean::dec(x_23);
x_33 = lean::cnstr_get(x_30, 1);
lean::inc(x_33);
lean::dec(x_30);
x_36 = l_list_append___rarg(x_33, x_20);
if (lean::obj_tag(x_36) == 0)
{
obj* x_37;
x_37 = lean::box(3);
x_1 = x_36;
x_2 = x_37;
goto lbl_3;
}
else
{
obj* x_38; obj* x_40;
x_38 = lean::cnstr_get(x_36, 0);
lean::inc(x_38);
x_40 = lean::cnstr_get(x_36, 1);
lean::inc(x_40);
lean::dec(x_36);
x_1 = x_40;
x_2 = x_38;
goto lbl_3;
}
}
}
}
lbl_3:
{
obj* x_43; obj* x_45;
x_45 = l_lean_parser_syntax_as__node___main(x_2);
if (lean::obj_tag(x_45) == 0)
{
obj* x_46;
x_46 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_43 = x_46;
goto lbl_44;
}
else
{
obj* x_47; obj* x_49; obj* x_50;
x_47 = lean::cnstr_get(x_45, 0);
if (lean::is_exclusive(x_45)) {
lean::cnstr_set(x_45, 0, lean::box(0));
x_49 = x_45;
} else {
lean::inc(x_47);
lean::dec(x_45);
x_49 = lean::box(0);
}
x_50 = lean::cnstr_get(x_47, 1);
lean::inc(x_50);
lean::dec(x_47);
if (lean::obj_tag(x_50) == 0)
{
obj* x_54;
lean::dec(x_49);
x_54 = lean::box(0);
x_43 = x_54;
goto lbl_44;
}
else
{
obj* x_55;
x_55 = lean::cnstr_get(x_50, 1);
lean::inc(x_55);
if (lean::obj_tag(x_55) == 0)
{
obj* x_57;
x_57 = lean::cnstr_get(x_50, 0);
lean::inc(x_57);
lean::dec(x_50);
switch (lean::obj_tag(x_57)) {
case 0:
{
obj* x_60; obj* x_63; obj* x_64;
x_60 = lean::cnstr_get(x_57, 0);
lean::inc(x_60);
lean::dec(x_57);
if (lean::is_scalar(x_49)) {
x_63 = lean::alloc_cnstr(1, 1, 0);
} else {
x_63 = x_49;
}
lean::cnstr_set(x_63, 0, x_60);
x_64 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_64, 0, x_63);
x_43 = x_64;
goto lbl_44;
}
case 3:
{
obj* x_66;
lean::dec(x_49);
x_66 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_43 = x_66;
goto lbl_44;
}
default:
{
obj* x_69;
lean::dec(x_49);
lean::dec(x_57);
x_69 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_43 = x_69;
goto lbl_44;
}
}
}
else
{
obj* x_73;
lean::dec(x_49);
lean::dec(x_55);
lean::dec(x_50);
x_73 = l_lean_parser_command_notation_has__view_x_27___lambda__1___closed__1;
x_43 = x_73;
goto lbl_44;
}
}
}
lbl_44:
{
obj* x_74; obj* x_75;
if (lean::obj_tag(x_1) == 0)
{
obj* x_77;
x_77 = lean::box(3);
x_74 = x_1;
x_75 = x_77;
goto lbl_76;
}
else
{
obj* x_78; obj* x_80;
x_78 = lean::cnstr_get(x_1, 0);
lean::inc(x_78);
x_80 = lean::cnstr_get(x_1, 1);
lean::inc(x_80);
lean::dec(x_1);
x_74 = x_80;
x_75 = x_78;
goto lbl_76;
}
lbl_76:
{
obj* x_83;
switch (lean::obj_tag(x_75)) {
case 0:
{
obj* x_85; obj* x_88;
x_85 = lean::cnstr_get(x_75, 0);
lean::inc(x_85);
lean::dec(x_75);
x_88 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_88, 0, x_85);
x_83 = x_88;
goto lbl_84;
}
case 3:
{
obj* x_89;
x_89 = lean::box(0);
x_83 = x_89;
goto lbl_84;
}
default:
{
obj* x_91;
lean::dec(x_75);
x_91 = lean::box(0);
x_83 = x_91;
goto lbl_84;
}
}
lbl_84:
{
obj* x_92; obj* x_93;
if (lean::obj_tag(x_74) == 0)
{
obj* x_95;
x_95 = lean::box(3);
x_92 = x_74;
x_93 = x_95;
goto lbl_94;
}
else
{
obj* x_96; obj* x_98;
x_96 = lean::cnstr_get(x_74, 0);
lean::inc(x_96);
x_98 = lean::cnstr_get(x_74, 1);
lean::inc(x_98);
lean::dec(x_74);
x_92 = x_98;
x_93 = x_96;
goto lbl_94;
}
lbl_94:
{
obj* x_101;
switch (lean::obj_tag(x_93)) {
case 0:
{
obj* x_103; obj* x_106;
x_103 = lean::cnstr_get(x_93, 0);
lean::inc(x_103);
lean::dec(x_93);
x_106 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_106, 0, x_103);
x_101 = x_106;
goto lbl_102;
}
case 3:
{
obj* x_107;
x_107 = lean::box(0);
x_101 = x_107;
goto lbl_102;
}
default:
{
obj* x_109;
lean::dec(x_93);
x_109 = lean::box(0);
x_101 = x_109;
goto lbl_102;
}
}
lbl_102:
{
obj* x_110; obj* x_111;
if (lean::obj_tag(x_92) == 0)
{
obj* x_113;
x_113 = lean::box(3);
x_110 = x_92;
x_111 = x_113;
goto lbl_112;
}
else
{
obj* x_114; obj* x_116;
x_114 = lean::cnstr_get(x_92, 0);
lean::inc(x_114);
x_116 = lean::cnstr_get(x_92, 1);
lean::inc(x_116);
lean::dec(x_92);
x_110 = x_116;
x_111 = x_114;
goto lbl_112;
}
lbl_112:
{
obj* x_119; obj* x_121;
x_121 = l_lean_parser_syntax_as__node___main(x_111);
if (lean::obj_tag(x_121) == 0)
{
obj* x_122;
x_122 = l_lean_parser_command_decl__attributes_has__view_x_27___lambda__1___closed__1;
x_119 = x_122;
goto lbl_120;
}
else
{
obj* x_123; obj* x_126; obj* x_129;
x_123 = lean::cnstr_get(x_121, 0);
lean::inc(x_123);
lean::dec(x_121);
x_126 = lean::cnstr_get(x_123, 1);
lean::inc(x_126);
lean::dec(x_123);
x_129 = l___private_init_lean_parser_combinators_3__sep__by_view__aux___main___at_lean_parser_command_attribute_has__view_x_27___spec__2(x_126);
x_119 = x_129;
goto lbl_120;
}
lbl_120:
{
obj* x_130; obj* x_131;
if (lean::obj_tag(x_110) == 0)
{
obj* x_133;
x_133 = lean::box(3);
x_130 = x_110;
x_131 = x_133;
goto lbl_132;
}
else
{
obj* x_134; obj* x_136;
x_134 = lean::cnstr_get(x_110, 0);
lean::inc(x_134);
x_136 = lean::cnstr_get(x_110, 1);
lean::inc(x_136);
lean::dec(x_110);
x_130 = x_136;
x_131 = x_134;
goto lbl_132;
}
lbl_132:
{
obj* x_139;
switch (lean::obj_tag(x_131)) {
case 0:
{
obj* x_141; obj* x_144;
x_141 = lean::cnstr_get(x_131, 0);
lean::inc(x_141);
lean::dec(x_131);
x_144 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_144, 0, x_141);
x_139 = x_144;
goto lbl_140;
}
case 3:
{
obj* x_145;
x_145 = lean::box(0);
x_139 = x_145;
goto lbl_140;
}
default:
{
obj* x_147;
lean::dec(x_131);
x_147 = lean::box(0);
x_139 = x_147;
goto lbl_140;
}
}
lbl_140:
{
obj* x_148;
if (lean::obj_tag(x_130) == 0)
{
obj* x_150;
x_150 = lean::box(3);
x_148 = x_150;
goto lbl_149;
}
else
{
obj* x_151;
x_151 = lean::cnstr_get(x_130, 0);
lean::inc(x_151);
lean::dec(x_130);
x_148 = x_151;
goto lbl_149;
}
lbl_149:
{
obj* x_154;
x_154 = l_lean_parser_syntax_as__node___main(x_148);
if (lean::obj_tag(x_154) == 0)
{
obj* x_155; obj* x_156;
x_155 = l_lean_parser_command_struct__binder__content_has__view_x_27___lambda__1___closed__1;
x_156 = lean::alloc_cnstr(0, 6, 0);
lean::cnstr_set(x_156, 0, x_43);
lean::cnstr_set(x_156, 1, x_83);
lean::cnstr_set(x_156, 2, x_101);
lean::cnstr_set(x_156, 3, x_119);
lean::cnstr_set(x_156, 4, x_139);
lean::cnstr_set(x_156, 5, x_155);
return x_156;
}
else
{
obj* x_157; obj* x_160; obj* x_163; obj* x_164;
x_157 = lean::cnstr_get(x_154, 0);
lean::inc(x_157);
lean::dec(x_154);
x_160 = lean::cnstr_get(x_157, 1);
lean::inc(x_160);
lean::dec(x_157);
x_163 = l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__1(x_160);
x_164 = lean::alloc_cnstr(0, 6, 0);
lean::cnstr_set(x_164, 0, x_43);
lean::cnstr_set(x_164, 1, x_83);
lean::cnstr_set(x_164, 2, x_101);
lean::cnstr_set(x_164, 3, x_119);
lean::cnstr_set(x_164, 4, x_139);
lean::cnstr_set(x_164, 5, x_163);
return x_164;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
obj* l_lean_parser_command_attribute_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_7; obj* x_9; obj* x_11; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
x_7 = lean::cnstr_get(x_0, 3);
lean::inc(x_7);
x_9 = lean::cnstr_get(x_0, 4);
lean::inc(x_9);
x_11 = lean::cnstr_get(x_0, 5);
lean::inc(x_11);
lean::dec(x_0);
x_14 = lean::box(0);
x_15 = l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__3(x_14, x_7);
x_16 = l_list_join___main___rarg(x_15);
x_17 = l_lean_parser_no__kind;
x_18 = l_lean_parser_syntax_mk__node(x_17, x_16);
x_19 = l_list_map___main___at_lean_parser_command_attribute_has__view_x_27___spec__4(x_11);
x_20 = l_lean_parser_syntax_mk__node(x_17, x_19);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_20);
lean::cnstr_set(x_21, 1, x_14);
if (lean::obj_tag(x_1) == 0)
{
obj* x_24;
x_24 = l_lean_parser_combinators_many___rarg___closed__1;
x_22 = x_24;
goto lbl_23;
}
else
{
obj* x_25;
x_25 = lean::cnstr_get(x_1, 0);
lean::inc(x_25);
lean::dec(x_1);
if (lean::obj_tag(x_25) == 0)
{
obj* x_28;
x_28 = l_lean_parser_command_notation_has__view_x_27___lambda__2___closed__1;
x_22 = x_28;
goto lbl_23;
}
else
{
obj* x_29; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_37; obj* x_38;
x_29 = lean::cnstr_get(x_25, 0);
if (lean::is_exclusive(x_25)) {
x_31 = x_25;
} else {
lean::inc(x_29);
lean::dec(x_25);
x_31 = lean::box(0);
}
x_32 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_32, 0, x_29);
if (lean::is_scalar(x_31)) {
x_33 = lean::alloc_cnstr(1, 1, 0);
} else {
x_33 = x_31;
}
lean::cnstr_set(x_33, 0, x_32);
x_34 = lean::box(3);
x_35 = l_option_get__or__else___main___rarg(x_33, x_34);
lean::dec(x_33);
x_37 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_37, 0, x_35);
lean::cnstr_set(x_37, 1, x_14);
x_38 = l_lean_parser_syntax_mk__node(x_17, x_37);
x_22 = x_38;
goto lbl_23;
}
}
lbl_23:
{
obj* x_39;
if (lean::obj_tag(x_3) == 0)
{
obj* x_41;
x_41 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_39 = x_41;
goto lbl_40;
}
else
{
obj* x_42; obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48;
x_42 = lean::cnstr_get(x_3, 0);
if (lean::is_exclusive(x_3)) {
x_44 = x_3;
} else {
lean::inc(x_42);
lean::dec(x_3);
x_44 = lean::box(0);
}
x_45 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_45, 0, x_42);
if (lean::is_scalar(x_44)) {
x_46 = lean::alloc_cnstr(1, 1, 0);
} else {
x_46 = x_44;
}
lean::cnstr_set(x_46, 0, x_45);
x_47 = lean::box(3);
x_48 = l_option_get__or__else___main___rarg(x_46, x_47);
lean::dec(x_46);
x_39 = x_48;
goto lbl_40;
}
lbl_40:
{
obj* x_50; obj* x_51; obj* x_52;
x_50 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_50, 0, x_39);
lean::cnstr_set(x_50, 1, x_14);
x_51 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_51, 0, x_22);
lean::cnstr_set(x_51, 1, x_50);
x_52 = l_lean_parser_syntax_mk__node(x_17, x_51);
if (lean::obj_tag(x_5) == 0)
{
if (lean::obj_tag(x_9) == 0)
{
obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58; obj* x_59;
x_53 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_54 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_54, 0, x_53);
lean::cnstr_set(x_54, 1, x_21);
x_55 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_55, 0, x_18);
lean::cnstr_set(x_55, 1, x_54);
x_56 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_56, 0, x_53);
lean::cnstr_set(x_56, 1, x_55);
x_57 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_57, 0, x_52);
lean::cnstr_set(x_57, 1, x_56);
x_58 = l_lean_parser_command_attribute;
x_59 = l_lean_parser_syntax_mk__node(x_58, x_57);
return x_59;
}
else
{
obj* x_60; obj* x_62; obj* x_63; obj* x_64; obj* x_65; obj* x_66; obj* x_68; obj* x_69; obj* x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74;
x_60 = lean::cnstr_get(x_9, 0);
if (lean::is_exclusive(x_9)) {
x_62 = x_9;
} else {
lean::inc(x_60);
lean::dec(x_9);
x_62 = lean::box(0);
}
x_63 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_63, 0, x_60);
if (lean::is_scalar(x_62)) {
x_64 = lean::alloc_cnstr(1, 1, 0);
} else {
x_64 = x_62;
}
lean::cnstr_set(x_64, 0, x_63);
x_65 = lean::box(3);
x_66 = l_option_get__or__else___main___rarg(x_64, x_65);
lean::dec(x_64);
x_68 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_68, 0, x_66);
lean::cnstr_set(x_68, 1, x_21);
x_69 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_69, 0, x_18);
lean::cnstr_set(x_69, 1, x_68);
x_70 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_71 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_71, 0, x_70);
lean::cnstr_set(x_71, 1, x_69);
x_72 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_72, 0, x_52);
lean::cnstr_set(x_72, 1, x_71);
x_73 = l_lean_parser_command_attribute;
x_74 = l_lean_parser_syntax_mk__node(x_73, x_72);
return x_74;
}
}
else
{
obj* x_75; obj* x_77; obj* x_78; obj* x_79; obj* x_80; obj* x_81;
x_75 = lean::cnstr_get(x_5, 0);
if (lean::is_exclusive(x_5)) {
x_77 = x_5;
} else {
lean::inc(x_75);
lean::dec(x_5);
x_77 = lean::box(0);
}
x_78 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_78, 0, x_75);
if (lean::is_scalar(x_77)) {
x_79 = lean::alloc_cnstr(1, 1, 0);
} else {
x_79 = x_77;
}
lean::cnstr_set(x_79, 0, x_78);
x_80 = lean::box(3);
x_81 = l_option_get__or__else___main___rarg(x_79, x_80);
lean::dec(x_79);
if (lean::obj_tag(x_9) == 0)
{
obj* x_83; obj* x_84; obj* x_85; obj* x_86; obj* x_87; obj* x_88; obj* x_89;
x_83 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_84 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_84, 0, x_83);
lean::cnstr_set(x_84, 1, x_21);
x_85 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_85, 0, x_18);
lean::cnstr_set(x_85, 1, x_84);
x_86 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_86, 0, x_81);
lean::cnstr_set(x_86, 1, x_85);
x_87 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_87, 0, x_52);
lean::cnstr_set(x_87, 1, x_86);
x_88 = l_lean_parser_command_attribute;
x_89 = l_lean_parser_syntax_mk__node(x_88, x_87);
return x_89;
}
else
{
obj* x_90; obj* x_92; obj* x_93; obj* x_94; obj* x_95; obj* x_97; obj* x_98; obj* x_99; obj* x_100; obj* x_101; obj* x_102;
x_90 = lean::cnstr_get(x_9, 0);
if (lean::is_exclusive(x_9)) {
x_92 = x_9;
} else {
lean::inc(x_90);
lean::dec(x_9);
x_92 = lean::box(0);
}
x_93 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_93, 0, x_90);
if (lean::is_scalar(x_92)) {
x_94 = lean::alloc_cnstr(1, 1, 0);
} else {
x_94 = x_92;
}
lean::cnstr_set(x_94, 0, x_93);
x_95 = l_option_get__or__else___main___rarg(x_94, x_80);
lean::dec(x_94);
x_97 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_97, 0, x_95);
lean::cnstr_set(x_97, 1, x_21);
x_98 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_98, 0, x_18);
lean::cnstr_set(x_98, 1, x_97);
x_99 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_99, 0, x_81);
lean::cnstr_set(x_99, 1, x_98);
x_100 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_100, 0, x_52);
lean::cnstr_set(x_100, 1, x_99);
x_101 = l_lean_parser_command_attribute;
x_102 = l_lean_parser_syntax_mk__node(x_101, x_100);
return x_102;
}
}
}
}
}
}
obj* _init_l_lean_parser_command_attribute_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_attribute_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_attribute_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_attribute_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_attribute_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_attribute_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_6; obj* x_7; obj* x_9; obj* x_10; obj* x_12; obj* x_15; obj* x_17; obj* x_19; obj* x_20; obj* x_22; obj* x_23; obj* x_25; obj* x_26; obj* x_28; obj* x_29; obj* x_31; obj* x_32; obj* x_34; obj* x_37; obj* x_40; obj* x_43; obj* x_46;
x_0 = lean::mk_string("local ");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = l_lean_parser_tokens___rarg(x_2);
lean::dec(x_2);
x_6 = lean::mk_string("attribute ");
x_7 = l_lean_parser_symbol_tokens___rarg(x_6, x_1);
lean::dec(x_6);
x_9 = lean::box(0);
x_10 = l_lean_parser_list_cons_tokens___rarg(x_7, x_9);
lean::dec(x_7);
x_12 = l_lean_parser_list_cons_tokens___rarg(x_4, x_10);
lean::dec(x_10);
lean::dec(x_4);
x_15 = l_lean_parser_tokens___rarg(x_12);
lean::dec(x_12);
x_17 = l_lean_parser_tokens___rarg(x_15);
lean::dec(x_15);
x_19 = lean::mk_string("[");
x_20 = l_lean_parser_symbol_tokens___rarg(x_19, x_1);
lean::dec(x_19);
x_22 = lean::mk_string(", ");
x_23 = l_lean_parser_symbol_tokens___rarg(x_22, x_1);
lean::dec(x_22);
x_25 = l_lean_parser_command_attr__instance_parser_lean_parser_has__tokens;
x_26 = l_lean_parser_combinators_sep__by1_tokens___rarg(x_25, x_23);
lean::dec(x_23);
x_28 = lean::mk_string("] ");
x_29 = l_lean_parser_symbol_tokens___rarg(x_28, x_1);
lean::dec(x_28);
x_31 = l_lean_parser_tokens___rarg(x_9);
x_32 = l_lean_parser_list_cons_tokens___rarg(x_31, x_9);
lean::dec(x_31);
x_34 = l_lean_parser_list_cons_tokens___rarg(x_29, x_32);
lean::dec(x_32);
lean::dec(x_29);
x_37 = l_lean_parser_list_cons_tokens___rarg(x_26, x_34);
lean::dec(x_34);
lean::dec(x_26);
x_40 = l_lean_parser_list_cons_tokens___rarg(x_20, x_37);
lean::dec(x_37);
lean::dec(x_20);
x_43 = l_lean_parser_list_cons_tokens___rarg(x_17, x_40);
lean::dec(x_40);
lean::dec(x_17);
x_46 = l_lean_parser_tokens___rarg(x_43);
lean::dec(x_43);
return x_46;
}
}
obj* _init_l_lean_parser_command_attribute_parser_lean_parser_has__view() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_28; obj* x_29; obj* x_30; uint8 x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48; obj* x_49; obj* x_50; obj* x_51; obj* x_52; obj* x_53;
x_0 = lean::mk_string("local ");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_7, 0, x_6);
x_8 = lean::mk_string("attribute ");
x_9 = l_string_trim(x_8);
lean::dec(x_8);
lean::inc(x_9);
x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_12, 0, x_9);
x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_13, 0, x_9);
lean::closure_set(x_13, 1, x_5);
lean::closure_set(x_13, 2, x_12);
x_14 = lean::box(0);
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_13);
lean::cnstr_set(x_15, 1, x_14);
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_7);
lean::cnstr_set(x_16, 1, x_15);
x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_declaration_parser_lean_parser_has__view___lambda__1), 5, 1);
lean::closure_set(x_17, 0, x_16);
x_18 = lean::mk_string("[");
x_19 = l_string_trim(x_18);
lean::dec(x_18);
lean::inc(x_19);
x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_22, 0, x_19);
x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_23, 0, x_19);
lean::closure_set(x_23, 1, x_5);
lean::closure_set(x_23, 2, x_22);
x_24 = lean::mk_string(", ");
x_25 = l_string_trim(x_24);
lean::dec(x_24);
lean::inc(x_25);
x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_28, 0, x_25);
x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_29, 0, x_25);
lean::closure_set(x_29, 1, x_5);
lean::closure_set(x_29, 2, x_28);
x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_attr__instance_parser), 4, 0);
x_31 = 1;
x_32 = lean::box(x_31);
x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_sep__by1___at_lean_parser_command_decl__attributes_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_33, 0, x_30);
lean::closure_set(x_33, 1, x_29);
lean::closure_set(x_33, 2, x_32);
x_34 = lean::mk_string("] ");
x_35 = l_string_trim(x_34);
lean::dec(x_34);
lean::inc(x_35);
x_38 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_38, 0, x_35);
x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_39, 0, x_35);
lean::closure_set(x_39, 1, x_5);
lean::closure_set(x_39, 2, x_38);
x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_41 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__2), 5, 1);
lean::closure_set(x_41, 0, x_40);
x_42 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_42, 0, x_41);
lean::cnstr_set(x_42, 1, x_14);
x_43 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_43, 0, x_39);
lean::cnstr_set(x_43, 1, x_42);
x_44 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_44, 0, x_33);
lean::cnstr_set(x_44, 1, x_43);
x_45 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_45, 0, x_23);
lean::cnstr_set(x_45, 1, x_44);
x_46 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_46, 0, x_17);
lean::cnstr_set(x_46, 1, x_45);
x_47 = l_lean_parser_command__parser__m_monad___closed__1;
x_48 = l_lean_parser_command__parser__m_monad__except___closed__1;
x_49 = l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__1;
x_50 = l_lean_parser_command__parser__m_alternative___closed__1;
x_51 = l_lean_parser_command_attribute;
x_52 = l_lean_parser_command_attribute_has__view;
x_53 = l_lean_parser_combinators_node_view___rarg(x_47, x_48, x_49, x_50, x_51, x_46, x_52);
lean::dec(x_46);
return x_53;
}
}
obj* _init_l_lean_parser_command_attribute_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_28; obj* x_29; obj* x_30; uint8 x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46;
x_0 = lean::mk_string("local ");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_optional___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__1), 5, 1);
lean::closure_set(x_7, 0, x_6);
x_8 = lean::mk_string("attribute ");
x_9 = l_string_trim(x_8);
lean::dec(x_8);
lean::inc(x_9);
x_12 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_12, 0, x_9);
x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_13, 0, x_9);
lean::closure_set(x_13, 1, x_5);
lean::closure_set(x_13, 2, x_12);
x_14 = lean::box(0);
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_13);
lean::cnstr_set(x_15, 1, x_14);
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_7);
lean::cnstr_set(x_16, 1, x_15);
x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_declaration_parser_lean_parser_has__view___lambda__1), 5, 1);
lean::closure_set(x_17, 0, x_16);
x_18 = lean::mk_string("[");
x_19 = l_string_trim(x_18);
lean::dec(x_18);
lean::inc(x_19);
x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_22, 0, x_19);
x_23 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_23, 0, x_19);
lean::closure_set(x_23, 1, x_5);
lean::closure_set(x_23, 2, x_22);
x_24 = lean::mk_string(", ");
x_25 = l_string_trim(x_24);
lean::dec(x_24);
lean::inc(x_25);
x_28 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_28, 0, x_25);
x_29 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_29, 0, x_25);
lean::closure_set(x_29, 1, x_5);
lean::closure_set(x_29, 2, x_28);
x_30 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_attr__instance_parser), 4, 0);
x_31 = 1;
x_32 = lean::box(x_31);
x_33 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_sep__by1___at_lean_parser_command_decl__attributes_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_33, 0, x_30);
lean::closure_set(x_33, 1, x_29);
lean::closure_set(x_33, 2, x_32);
x_34 = lean::mk_string("] ");
x_35 = l_string_trim(x_34);
lean::dec(x_34);
lean::inc(x_35);
x_38 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_38, 0, x_35);
x_39 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_39, 0, x_35);
lean::closure_set(x_39, 1, x_5);
lean::closure_set(x_39, 2, x_38);
x_40 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_41 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_many___at_lean_parser_command_attr__instance_parser_lean_parser_has__tokens___spec__2), 5, 1);
lean::closure_set(x_41, 0, x_40);
x_42 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_42, 0, x_41);
lean::cnstr_set(x_42, 1, x_14);
x_43 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_43, 0, x_39);
lean::cnstr_set(x_43, 1, x_42);
x_44 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_44, 0, x_33);
lean::cnstr_set(x_44, 1, x_43);
x_45 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_45, 0, x_23);
lean::cnstr_set(x_45, 1, x_44);
x_46 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_46, 0, x_17);
lean::cnstr_set(x_46, 1, x_45);
return x_46;
}
}
obj* l_lean_parser_command_attribute_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_attribute;
x_5 = l_lean_parser_command_attribute_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_init__quot() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("init_quot");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_init__quot_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6;
x_0 = lean::box(0);
x_1 = lean::box(0);
x_2 = lean::box(3);
x_3 = l_option_get__or__else___main___rarg(x_1, x_2);
x_4 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_4, 0, x_3);
lean::cnstr_set(x_4, 1, x_0);
x_5 = l_lean_parser_command_init__quot;
x_6 = l_lean_parser_syntax_mk__node(x_5, x_4);
return x_6;
}
}
obj* l_lean_parser_command_init__quot_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
if (lean::obj_tag(x_0) == 0)
{
obj* x_1;
x_1 = l_lean_parser_command_init__quot_has__view_x_27___lambda__1___closed__1;
return x_1;
}
else
{
obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13;
x_2 = lean::cnstr_get(x_0, 0);
if (lean::is_exclusive(x_0)) {
x_4 = x_0;
} else {
lean::inc(x_2);
lean::dec(x_0);
x_4 = lean::box(0);
}
x_5 = lean::box(0);
x_6 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_6, 0, x_2);
if (lean::is_scalar(x_4)) {
x_7 = lean::alloc_cnstr(1, 1, 0);
} else {
x_7 = x_4;
}
lean::cnstr_set(x_7, 0, x_6);
x_8 = lean::box(3);
x_9 = l_option_get__or__else___main___rarg(x_7, x_8);
lean::dec(x_7);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_9);
lean::cnstr_set(x_11, 1, x_5);
x_12 = l_lean_parser_command_init__quot;
x_13 = l_lean_parser_syntax_mk__node(x_12, x_11);
return x_13;
}
}
}
obj* _init_l_lean_parser_command_init__quot_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_string__lit_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_init__quot_has__view_x_27___lambda__1), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_init__quot_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_init__quot_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_init__quot_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_7;
x_0 = lean::mk_string("init_quot");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_list_cons_tokens___rarg(x_2, x_4);
lean::dec(x_2);
x_7 = l_lean_parser_tokens___rarg(x_5);
lean::dec(x_5);
return x_7;
}
}
obj* _init_l_lean_parser_command_init__quot_parser_lean_parser_has__view() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_0 = lean::mk_string("init_quot");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::box(0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
x_9 = l_lean_parser_command__parser__m_monad___closed__1;
x_10 = l_lean_parser_command__parser__m_monad__except___closed__1;
x_11 = l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__1;
x_12 = l_lean_parser_command__parser__m_alternative___closed__1;
x_13 = l_lean_parser_command_init__quot;
x_14 = l_lean_parser_command_init__quot_has__view;
x_15 = l_lean_parser_combinators_node_view___rarg(x_9, x_10, x_11, x_12, x_13, x_8, x_14);
lean::dec(x_8);
return x_15;
}
}
obj* _init_l_lean_parser_command_init__quot_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::mk_string("init_quot");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::box(0);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_6);
lean::cnstr_set(x_8, 1, x_7);
return x_8;
}
}
obj* l_lean_parser_command_init__quot_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_init__quot;
x_5 = l_lean_parser_command_init__quot_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_bool__option__value() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("bool_option_value");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(3);
x_4 = lean::mk_nat_obj(0u);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5; uint8 x_6;
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::nat_dec_eq(x_1, x_5);
lean::dec(x_1);
if (x_6 == 0)
{
obj* x_8;
x_8 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_8, 0, x_0);
return x_8;
}
else
{
obj* x_9;
x_9 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_9, 0, x_0);
return x_9;
}
}
}
}
obj* _init_l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("bool_option_value");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9; obj* x_11; obj* x_14; uint8 x_15;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 0);
lean::inc(x_9);
x_11 = lean::cnstr_get(x_6, 1);
lean::inc(x_11);
lean::dec(x_6);
x_14 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__2;
x_15 = lean_name_dec_eq(x_9, x_14);
lean::dec(x_9);
if (x_15 == 0)
{
obj* x_18;
lean::dec(x_11);
x_18 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_18;
}
else
{
if (lean::obj_tag(x_11) == 0)
{
obj* x_19;
x_19 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_19;
}
else
{
obj* x_20;
x_20 = lean::cnstr_get(x_11, 1);
lean::inc(x_20);
if (lean::obj_tag(x_20) == 0)
{
obj* x_22; obj* x_25;
x_22 = lean::cnstr_get(x_11, 0);
lean::inc(x_22);
lean::dec(x_11);
x_25 = l_lean_parser_syntax_as__node___main(x_22);
if (lean::obj_tag(x_25) == 0)
{
obj* x_26;
x_26 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_26;
}
else
{
obj* x_27; obj* x_30;
x_27 = lean::cnstr_get(x_25, 0);
lean::inc(x_27);
lean::dec(x_25);
x_30 = lean::cnstr_get(x_27, 0);
lean::inc(x_30);
switch (lean::obj_tag(x_30)) {
case 0:
{
obj* x_33;
lean::dec(x_27);
x_33 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_33;
}
case 1:
{
obj* x_36;
lean::dec(x_27);
lean::dec(x_30);
x_36 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_36;
}
default:
{
obj* x_37; obj* x_40; obj* x_42; obj* x_45; uint8 x_46;
x_37 = lean::cnstr_get(x_27, 1);
lean::inc(x_37);
lean::dec(x_27);
x_40 = lean::cnstr_get(x_30, 0);
lean::inc(x_40);
x_42 = lean::cnstr_get(x_30, 1);
lean::inc(x_42);
lean::dec(x_30);
x_45 = lean::box(0);
x_46 = lean_name_dec_eq(x_40, x_45);
lean::dec(x_40);
if (x_46 == 0)
{
obj* x_50;
lean::dec(x_42);
lean::dec(x_37);
x_50 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_50;
}
else
{
if (lean::obj_tag(x_37) == 0)
{
obj* x_52;
lean::dec(x_42);
x_52 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_52;
}
else
{
obj* x_53;
x_53 = lean::cnstr_get(x_37, 1);
lean::inc(x_53);
if (lean::obj_tag(x_53) == 0)
{
obj* x_55;
x_55 = lean::cnstr_get(x_37, 0);
lean::inc(x_55);
lean::dec(x_37);
x_1 = x_55;
x_2 = x_42;
goto lbl_3;
}
else
{
obj* x_61;
lean::dec(x_42);
lean::dec(x_53);
lean::dec(x_37);
x_61 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_61;
}
}
}
}
}
}
}
else
{
obj* x_64;
lean::dec(x_11);
lean::dec(x_20);
x_64 = l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1;
return x_64;
}
}
}
}
lbl_3:
{
obj* x_65; uint8 x_66;
x_65 = lean::mk_nat_obj(0u);
x_66 = lean::nat_dec_eq(x_2, x_65);
lean::dec(x_2);
if (x_66 == 0)
{
obj* x_68;
x_68 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_68, 0, x_1);
return x_68;
}
else
{
obj* x_69;
x_69 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_69, 0, x_1);
return x_69;
}
}
}
}
obj* l_lean_parser_command_bool__option__value_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::box(0);
if (lean::obj_tag(x_0) == 0)
{
obj* x_2; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10;
x_2 = lean::cnstr_get(x_0, 0);
lean::inc(x_2);
lean::dec(x_0);
x_5 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_5, 0, x_2);
lean::cnstr_set(x_5, 1, x_1);
x_6 = l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__1;
x_7 = l_lean_parser_syntax_mk__node(x_6, x_5);
x_8 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_8, 0, x_7);
lean::cnstr_set(x_8, 1, x_1);
x_9 = l_lean_parser_command_bool__option__value;
x_10 = l_lean_parser_syntax_mk__node(x_9, x_8);
return x_10;
}
else
{
obj* x_11; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19;
x_11 = lean::cnstr_get(x_0, 0);
lean::inc(x_11);
lean::dec(x_0);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_11);
lean::cnstr_set(x_14, 1, x_1);
x_15 = l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__3;
x_16 = l_lean_parser_syntax_mk__node(x_15, x_14);
x_17 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_1);
x_18 = l_lean_parser_command_bool__option__value;
x_19 = l_lean_parser_syntax_mk__node(x_18, x_17);
return x_19;
}
}
}
obj* _init_l_lean_parser_command_bool__option__value_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_bool__option__value_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_bool__option__value_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_bool__option__value_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_option__value() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("option_value");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(3);
x_4 = lean::mk_nat_obj(0u);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
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)
{
obj* x_7; uint8 x_8;
x_7 = lean::mk_nat_obj(1u);
x_8 = lean::nat_dec_eq(x_1, x_7);
lean::dec(x_1);
if (x_8 == 0)
{
obj* x_10; obj* x_11; obj* x_14; obj* x_15;
x_10 = l_lean_parser_number_has__view;
x_11 = lean::cnstr_get(x_10, 0);
lean::inc(x_11);
lean::dec(x_10);
x_14 = lean::apply_1(x_11, x_0);
x_15 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_15, 0, x_14);
return x_15;
}
else
{
obj* x_16; obj* x_17; obj* x_20; obj* x_21;
x_16 = l_lean_parser_string__lit_has__view;
x_17 = lean::cnstr_get(x_16, 0);
lean::inc(x_17);
lean::dec(x_16);
x_20 = lean::apply_1(x_17, x_0);
x_21 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_21, 0, x_20);
return x_21;
}
}
else
{
obj* x_23; obj* x_24; obj* x_27; obj* x_28;
lean::dec(x_1);
x_23 = l_lean_parser_command_bool__option__value_has__view;
x_24 = lean::cnstr_get(x_23, 0);
lean::inc(x_24);
lean::dec(x_23);
x_27 = lean::apply_1(x_24, x_0);
x_28 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_28, 0, x_27);
return x_28;
}
}
}
}
obj* _init_l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("option_value");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* l_lean_parser_command_option__value_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_5;
}
else
{
obj* x_6; obj* x_9; obj* x_11; obj* x_14; uint8 x_15;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 0);
lean::inc(x_9);
x_11 = lean::cnstr_get(x_6, 1);
lean::inc(x_11);
lean::dec(x_6);
x_14 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__2;
x_15 = lean_name_dec_eq(x_9, x_14);
lean::dec(x_9);
if (x_15 == 0)
{
obj* x_18;
lean::dec(x_11);
x_18 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_18;
}
else
{
if (lean::obj_tag(x_11) == 0)
{
obj* x_19;
x_19 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_19;
}
else
{
obj* x_20;
x_20 = lean::cnstr_get(x_11, 1);
lean::inc(x_20);
if (lean::obj_tag(x_20) == 0)
{
obj* x_22; obj* x_25;
x_22 = lean::cnstr_get(x_11, 0);
lean::inc(x_22);
lean::dec(x_11);
x_25 = l_lean_parser_syntax_as__node___main(x_22);
if (lean::obj_tag(x_25) == 0)
{
obj* x_26;
x_26 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_26;
}
else
{
obj* x_27; obj* x_30;
x_27 = lean::cnstr_get(x_25, 0);
lean::inc(x_27);
lean::dec(x_25);
x_30 = lean::cnstr_get(x_27, 0);
lean::inc(x_30);
switch (lean::obj_tag(x_30)) {
case 0:
{
obj* x_33;
lean::dec(x_27);
x_33 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_33;
}
case 1:
{
obj* x_36;
lean::dec(x_27);
lean::dec(x_30);
x_36 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_36;
}
default:
{
obj* x_37; obj* x_40; obj* x_42; obj* x_45; uint8 x_46;
x_37 = lean::cnstr_get(x_27, 1);
lean::inc(x_37);
lean::dec(x_27);
x_40 = lean::cnstr_get(x_30, 0);
lean::inc(x_40);
x_42 = lean::cnstr_get(x_30, 1);
lean::inc(x_42);
lean::dec(x_30);
x_45 = lean::box(0);
x_46 = lean_name_dec_eq(x_40, x_45);
lean::dec(x_40);
if (x_46 == 0)
{
obj* x_50;
lean::dec(x_42);
lean::dec(x_37);
x_50 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_50;
}
else
{
if (lean::obj_tag(x_37) == 0)
{
obj* x_52;
lean::dec(x_42);
x_52 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_52;
}
else
{
obj* x_53;
x_53 = lean::cnstr_get(x_37, 1);
lean::inc(x_53);
if (lean::obj_tag(x_53) == 0)
{
obj* x_55;
x_55 = lean::cnstr_get(x_37, 0);
lean::inc(x_55);
lean::dec(x_37);
x_1 = x_55;
x_2 = x_42;
goto lbl_3;
}
else
{
obj* x_61;
lean::dec(x_42);
lean::dec(x_53);
lean::dec(x_37);
x_61 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_61;
}
}
}
}
}
}
}
else
{
obj* x_64;
lean::dec(x_11);
lean::dec(x_20);
x_64 = l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1;
return x_64;
}
}
}
}
lbl_3:
{
obj* x_65; uint8 x_66;
x_65 = lean::mk_nat_obj(0u);
x_66 = lean::nat_dec_eq(x_2, x_65);
if (x_66 == 0)
{
obj* x_67; uint8 x_68;
x_67 = lean::mk_nat_obj(1u);
x_68 = lean::nat_dec_eq(x_2, x_67);
lean::dec(x_2);
if (x_68 == 0)
{
obj* x_70; obj* x_71; obj* x_74; obj* x_75;
x_70 = l_lean_parser_number_has__view;
x_71 = lean::cnstr_get(x_70, 0);
lean::inc(x_71);
lean::dec(x_70);
x_74 = lean::apply_1(x_71, x_1);
x_75 = lean::alloc_cnstr(2, 1, 0);
lean::cnstr_set(x_75, 0, x_74);
return x_75;
}
else
{
obj* x_76; obj* x_77; obj* x_80; obj* x_81;
x_76 = l_lean_parser_string__lit_has__view;
x_77 = lean::cnstr_get(x_76, 0);
lean::inc(x_77);
lean::dec(x_76);
x_80 = lean::apply_1(x_77, x_1);
x_81 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_81, 0, x_80);
return x_81;
}
}
else
{
obj* x_83; obj* x_84; obj* x_87; obj* x_88;
lean::dec(x_2);
x_83 = l_lean_parser_command_bool__option__value_has__view;
x_84 = lean::cnstr_get(x_83, 0);
lean::inc(x_84);
lean::dec(x_83);
x_87 = lean::apply_1(x_84, x_1);
x_88 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_88, 0, x_87);
return x_88;
}
}
}
}
obj* l_lean_parser_command_option__value_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::box(0);
switch (lean::obj_tag(x_0)) {
case 0:
{
obj* x_2; obj* x_5; obj* x_6; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15;
x_2 = lean::cnstr_get(x_0, 0);
lean::inc(x_2);
lean::dec(x_0);
x_5 = l_lean_parser_command_bool__option__value_has__view;
x_6 = lean::cnstr_get(x_5, 1);
lean::inc(x_6);
lean::dec(x_5);
x_9 = lean::apply_1(x_6, x_2);
x_10 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_10, 0, x_9);
lean::cnstr_set(x_10, 1, x_1);
x_11 = l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__1;
x_12 = l_lean_parser_syntax_mk__node(x_11, x_10);
x_13 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_13, 0, x_12);
lean::cnstr_set(x_13, 1, x_1);
x_14 = l_lean_parser_command_option__value;
x_15 = l_lean_parser_syntax_mk__node(x_14, x_13);
return x_15;
}
case 1:
{
obj* x_16; obj* x_19; obj* x_20; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29;
x_16 = lean::cnstr_get(x_0, 0);
lean::inc(x_16);
lean::dec(x_0);
x_19 = l_lean_parser_string__lit_has__view;
x_20 = lean::cnstr_get(x_19, 1);
lean::inc(x_20);
lean::dec(x_19);
x_23 = lean::apply_1(x_20, x_16);
x_24 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_24, 0, x_23);
lean::cnstr_set(x_24, 1, x_1);
x_25 = l_lean_parser_detail__ident__part_has__view_x_27___lambda__2___closed__3;
x_26 = l_lean_parser_syntax_mk__node(x_25, x_24);
x_27 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_27, 0, x_26);
lean::cnstr_set(x_27, 1, x_1);
x_28 = l_lean_parser_command_option__value;
x_29 = l_lean_parser_syntax_mk__node(x_28, x_27);
return x_29;
}
default:
{
obj* x_30; obj* x_33; obj* x_34; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43;
x_30 = lean::cnstr_get(x_0, 0);
lean::inc(x_30);
lean::dec(x_0);
x_33 = l_lean_parser_number_has__view;
x_34 = lean::cnstr_get(x_33, 1);
lean::inc(x_34);
lean::dec(x_33);
x_37 = lean::apply_1(x_34, x_30);
x_38 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_38, 0, x_37);
lean::cnstr_set(x_38, 1, x_1);
x_39 = l_lean_parser_number_has__view_x_27___lambda__2___closed__4;
x_40 = l_lean_parser_syntax_mk__node(x_39, x_38);
x_41 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_41, 0, x_40);
lean::cnstr_set(x_41, 1, x_1);
x_42 = l_lean_parser_command_option__value;
x_43 = l_lean_parser_syntax_mk__node(x_42, x_41);
return x_43;
}
}
}
}
obj* _init_l_lean_parser_command_option__value_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_option__value_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_option__value_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_option__value_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_option__value_has__view_x_27;
return x_0;
}
}
obj* _init_l_lean_parser_command_set__option() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8;
x_0 = lean::box(0);
x_1 = lean::mk_string("lean");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::mk_string("parser");
x_4 = lean_name_mk_string(x_2, x_3);
x_5 = lean::mk_string("command");
x_6 = lean_name_mk_string(x_4, x_5);
x_7 = lean::mk_string("set_option");
x_8 = lean_name_mk_string(x_6, x_7);
return x_8;
}
}
obj* _init_l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5;
x_0 = l_lean_parser_command_option__value_has__view;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
lean::dec(x_0);
x_4 = lean::box(3);
x_5 = lean::apply_1(x_1, x_4);
return x_5;
}
}
obj* _init_l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__2() {
_start:
{
obj* x_0; obj* x_1; obj* x_3; obj* x_4;
x_3 = lean::box(0);
x_4 = lean::box(3);
x_0 = x_3;
x_1 = x_4;
goto lbl_2;
lbl_2:
{
obj* x_5;
switch (lean::obj_tag(x_1)) {
case 0:
{
obj* x_7; obj* x_10;
x_7 = lean::cnstr_get(x_1, 0);
lean::inc(x_7);
lean::dec(x_1);
x_10 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_10, 0, x_7);
x_5 = x_10;
goto lbl_6;
}
case 3:
{
obj* x_11;
x_11 = lean::box(0);
x_5 = x_11;
goto lbl_6;
}
default:
{
obj* x_13;
lean::dec(x_1);
x_13 = lean::box(0);
x_5 = x_13;
goto lbl_6;
}
}
lbl_6:
{
obj* x_14; obj* x_15;
if (lean::obj_tag(x_0) == 0)
{
obj* x_17;
x_17 = lean::box(3);
x_14 = x_0;
x_15 = x_17;
goto lbl_16;
}
else
{
obj* x_18; obj* x_20;
x_18 = lean::cnstr_get(x_0, 0);
lean::inc(x_18);
x_20 = lean::cnstr_get(x_0, 1);
lean::inc(x_20);
lean::dec(x_0);
x_14 = x_20;
x_15 = x_18;
goto lbl_16;
}
lbl_16:
{
obj* x_23;
switch (lean::obj_tag(x_15)) {
case 1:
{
if (lean::obj_tag(x_14) == 0)
{
obj* x_25; obj* x_28; obj* x_29;
x_25 = lean::cnstr_get(x_15, 0);
lean::inc(x_25);
lean::dec(x_15);
x_28 = l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1;
x_29 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_29, 0, x_5);
lean::cnstr_set(x_29, 1, x_25);
lean::cnstr_set(x_29, 2, x_28);
return x_29;
}
else
{
obj* x_30; obj* x_33; obj* x_36; obj* x_37; obj* x_40; obj* x_41;
x_30 = lean::cnstr_get(x_15, 0);
lean::inc(x_30);
lean::dec(x_15);
x_33 = lean::cnstr_get(x_14, 0);
lean::inc(x_33);
lean::dec(x_14);
x_36 = l_lean_parser_command_option__value_has__view;
x_37 = lean::cnstr_get(x_36, 0);
lean::inc(x_37);
lean::dec(x_36);
x_40 = lean::apply_1(x_37, x_33);
x_41 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_41, 0, x_5);
lean::cnstr_set(x_41, 1, x_30);
lean::cnstr_set(x_41, 2, x_40);
return x_41;
}
}
case 3:
{
obj* x_42;
x_42 = lean::box(0);
x_23 = x_42;
goto lbl_24;
}
default:
{
obj* x_44;
lean::dec(x_15);
x_44 = lean::box(0);
x_23 = x_44;
goto lbl_24;
}
}
lbl_24:
{
lean::dec(x_23);
if (lean::obj_tag(x_14) == 0)
{
obj* x_46; obj* x_47; obj* x_48;
x_46 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_47 = l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1;
x_48 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_48, 0, x_5);
lean::cnstr_set(x_48, 1, x_46);
lean::cnstr_set(x_48, 2, x_47);
return x_48;
}
else
{
obj* x_49; obj* x_52; obj* x_53; obj* x_56; obj* x_57; obj* x_58;
x_49 = lean::cnstr_get(x_14, 0);
lean::inc(x_49);
lean::dec(x_14);
x_52 = l_lean_parser_command_option__value_has__view;
x_53 = lean::cnstr_get(x_52, 0);
lean::inc(x_53);
lean::dec(x_52);
x_56 = lean::apply_1(x_53, x_49);
x_57 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_58 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_58, 0, x_5);
lean::cnstr_set(x_58, 1, x_57);
lean::cnstr_set(x_58, 2, x_56);
return x_58;
}
}
}
}
}
}
}
obj* l_lean_parser_command_set__option_has__view_x_27___lambda__1(obj* x_0) {
_start:
{
obj* x_1; obj* x_2; obj* x_4;
x_4 = l_lean_parser_syntax_as__node___main(x_0);
if (lean::obj_tag(x_4) == 0)
{
obj* x_5;
x_5 = l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__2;
return x_5;
}
else
{
obj* x_6; obj* x_9;
x_6 = lean::cnstr_get(x_4, 0);
lean::inc(x_6);
lean::dec(x_4);
x_9 = lean::cnstr_get(x_6, 1);
lean::inc(x_9);
lean::dec(x_6);
if (lean::obj_tag(x_9) == 0)
{
obj* x_12;
x_12 = lean::box(3);
x_1 = x_9;
x_2 = x_12;
goto lbl_3;
}
else
{
obj* x_13; obj* x_15;
x_13 = lean::cnstr_get(x_9, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_9, 1);
lean::inc(x_15);
lean::dec(x_9);
x_1 = x_15;
x_2 = x_13;
goto lbl_3;
}
}
lbl_3:
{
obj* x_18;
switch (lean::obj_tag(x_2)) {
case 0:
{
obj* x_20; obj* x_23;
x_20 = lean::cnstr_get(x_2, 0);
lean::inc(x_20);
lean::dec(x_2);
x_23 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_23, 0, x_20);
x_18 = x_23;
goto lbl_19;
}
case 3:
{
obj* x_24;
x_24 = lean::box(0);
x_18 = x_24;
goto lbl_19;
}
default:
{
obj* x_26;
lean::dec(x_2);
x_26 = lean::box(0);
x_18 = x_26;
goto lbl_19;
}
}
lbl_19:
{
obj* x_27; obj* x_28;
if (lean::obj_tag(x_1) == 0)
{
obj* x_30;
x_30 = lean::box(3);
x_27 = x_1;
x_28 = x_30;
goto lbl_29;
}
else
{
obj* x_31; obj* x_33;
x_31 = lean::cnstr_get(x_1, 0);
lean::inc(x_31);
x_33 = lean::cnstr_get(x_1, 1);
lean::inc(x_33);
lean::dec(x_1);
x_27 = x_33;
x_28 = x_31;
goto lbl_29;
}
lbl_29:
{
obj* x_36;
switch (lean::obj_tag(x_28)) {
case 1:
{
if (lean::obj_tag(x_27) == 0)
{
obj* x_38; obj* x_41; obj* x_42;
x_38 = lean::cnstr_get(x_28, 0);
lean::inc(x_38);
lean::dec(x_28);
x_41 = l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1;
x_42 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_42, 0, x_18);
lean::cnstr_set(x_42, 1, x_38);
lean::cnstr_set(x_42, 2, x_41);
return x_42;
}
else
{
obj* x_43; obj* x_46; obj* x_49; obj* x_50; obj* x_53; obj* x_54;
x_43 = lean::cnstr_get(x_28, 0);
lean::inc(x_43);
lean::dec(x_28);
x_46 = lean::cnstr_get(x_27, 0);
lean::inc(x_46);
lean::dec(x_27);
x_49 = l_lean_parser_command_option__value_has__view;
x_50 = lean::cnstr_get(x_49, 0);
lean::inc(x_50);
lean::dec(x_49);
x_53 = lean::apply_1(x_50, x_46);
x_54 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_54, 0, x_18);
lean::cnstr_set(x_54, 1, x_43);
lean::cnstr_set(x_54, 2, x_53);
return x_54;
}
}
case 3:
{
obj* x_55;
x_55 = lean::box(0);
x_36 = x_55;
goto lbl_37;
}
default:
{
obj* x_57;
lean::dec(x_28);
x_57 = lean::box(0);
x_36 = x_57;
goto lbl_37;
}
}
lbl_37:
{
lean::dec(x_36);
if (lean::obj_tag(x_27) == 0)
{
obj* x_59; obj* x_60; obj* x_61;
x_59 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_60 = l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1;
x_61 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_61, 0, x_18);
lean::cnstr_set(x_61, 1, x_59);
lean::cnstr_set(x_61, 2, x_60);
return x_61;
}
else
{
obj* x_62; obj* x_65; obj* x_66; obj* x_69; obj* x_70; obj* x_71;
x_62 = lean::cnstr_get(x_27, 0);
lean::inc(x_62);
lean::dec(x_27);
x_65 = l_lean_parser_command_option__value_has__view;
x_66 = lean::cnstr_get(x_65, 0);
lean::inc(x_66);
lean::dec(x_65);
x_69 = lean::apply_1(x_66, x_62);
x_70 = l_lean_parser_ident_parser_view___rarg___lambda__1___closed__1;
x_71 = lean::alloc_cnstr(0, 3, 0);
lean::cnstr_set(x_71, 0, x_18);
lean::cnstr_set(x_71, 1, x_70);
lean::cnstr_set(x_71, 2, x_69);
return x_71;
}
}
}
}
}
}
}
obj* l_lean_parser_command_set__option_has__view_x_27___lambda__2(obj* x_0) {
_start:
{
obj* x_1; obj* x_3; obj* x_5; obj* x_8; obj* x_9; obj* x_10; obj* x_13; obj* x_14; obj* x_15; obj* x_16;
x_1 = lean::cnstr_get(x_0, 0);
lean::inc(x_1);
x_3 = lean::cnstr_get(x_0, 1);
lean::inc(x_3);
x_5 = lean::cnstr_get(x_0, 2);
lean::inc(x_5);
lean::dec(x_0);
x_8 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_8, 0, x_3);
x_9 = l_lean_parser_command_option__value_has__view;
x_10 = lean::cnstr_get(x_9, 1);
lean::inc(x_10);
lean::dec(x_9);
x_13 = lean::apply_1(x_10, x_5);
x_14 = lean::box(0);
x_15 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_15, 0, x_13);
lean::cnstr_set(x_15, 1, x_14);
x_16 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_16, 0, x_8);
lean::cnstr_set(x_16, 1, x_15);
if (lean::obj_tag(x_1) == 0)
{
obj* x_17; obj* x_18; obj* x_19; obj* x_20;
x_17 = l_lean_parser_raw_view___rarg___lambda__2___closed__1;
x_18 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_18, 0, x_17);
lean::cnstr_set(x_18, 1, x_16);
x_19 = l_lean_parser_command_set__option;
x_20 = l_lean_parser_syntax_mk__node(x_19, x_18);
return x_20;
}
else
{
obj* x_21; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_29; obj* x_30; obj* x_31;
x_21 = lean::cnstr_get(x_1, 0);
if (lean::is_exclusive(x_1)) {
x_23 = x_1;
} else {
lean::inc(x_21);
lean::dec(x_1);
x_23 = lean::box(0);
}
x_24 = lean::alloc_cnstr(0, 1, 0);
lean::cnstr_set(x_24, 0, x_21);
if (lean::is_scalar(x_23)) {
x_25 = lean::alloc_cnstr(1, 1, 0);
} else {
x_25 = x_23;
}
lean::cnstr_set(x_25, 0, x_24);
x_26 = lean::box(3);
x_27 = l_option_get__or__else___main___rarg(x_25, x_26);
lean::dec(x_25);
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_27);
lean::cnstr_set(x_29, 1, x_16);
x_30 = l_lean_parser_command_set__option;
x_31 = l_lean_parser_syntax_mk__node(x_30, x_29);
return x_31;
}
}
}
obj* _init_l_lean_parser_command_set__option_has__view_x_27() {
_start:
{
obj* x_0; obj* x_1; obj* x_2;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_set__option_has__view_x_27___lambda__1), 1, 0);
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_set__option_has__view_x_27___lambda__2), 1, 0);
x_2 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_2, 0, x_0);
lean::cnstr_set(x_2, 1, x_1);
return x_2;
}
}
obj* _init_l_lean_parser_command_set__option_has__view() {
_start:
{
obj* x_0;
x_0 = l_lean_parser_command_set__option_has__view_x_27;
return x_0;
}
}
obj* l_lean_parser_symbol__or__ident___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
obj* x_5; obj* x_10; obj* x_11;
x_5 = lean::cnstr_get(x_1, 0);
lean::inc(x_5);
lean::dec(x_1);
lean::inc(x_3);
lean::inc(x_5);
x_10 = l_lean_parser_token(x_5, x_3, x_4);
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;
x_13 = lean::cnstr_get(x_10, 1);
if (lean::is_exclusive(x_10)) {
lean::cnstr_release(x_10, 0);
lean::cnstr_set(x_10, 1, lean::box(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)) {
lean::cnstr_set(x_11, 0, lean::box(0));
lean::cnstr_set(x_11, 1, lean::box(0));
lean::cnstr_set(x_11, 2, lean::box(0));
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);
}
switch (lean::obj_tag(x_16)) {
case 0:
{
obj* x_25; obj* x_27; obj* x_30;
x_25 = lean::cnstr_get(x_16, 0);
lean::inc(x_25);
x_27 = lean::cnstr_get(x_25, 1);
lean::inc(x_27);
lean::dec(x_25);
x_30 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_30, 0, x_27);
x_23 = x_30;
goto lbl_24;
}
case 1:
{
obj* x_31; obj* x_33; obj* x_36; obj* x_38;
x_31 = lean::cnstr_get(x_16, 0);
lean::inc(x_31);
x_33 = lean::cnstr_get(x_31, 1);
lean::inc(x_33);
lean::dec(x_31);
x_36 = l_lean_parser_substring_to__string(x_33);
lean::dec(x_33);
x_38 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_38, 0, x_36);
x_23 = x_38;
goto lbl_24;
}
default:
{
obj* x_39;
x_39 = lean::box(0);
x_23 = x_39;
goto lbl_24;
}
}
lbl_24:
{
uint8 x_40;
if (lean::obj_tag(x_23) == 0)
{
uint8 x_42;
x_42 = 1;
x_40 = x_42;
goto lbl_41;
}
else
{
obj* x_43; uint8 x_46;
x_43 = lean::cnstr_get(x_23, 0);
lean::inc(x_43);
lean::dec(x_23);
x_46 = lean::string_dec_eq(x_43, x_0);
lean::dec(x_43);
if (x_46 == 0)
{
uint8 x_48;
x_48 = 1;
x_40 = x_48;
goto lbl_41;
}
else
{
uint8 x_49;
x_49 = 0;
x_40 = x_49;
goto lbl_41;
}
}
lbl_41:
{
if (x_40 == 0)
{
obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58; obj* x_59;
lean::dec(x_5);
lean::dec(x_3);
lean::dec(x_0);
x_53 = l_lean_parser_finish__comment__block___closed__2;
if (lean::is_scalar(x_22)) {
x_54 = lean::alloc_cnstr(0, 3, 0);
} else {
x_54 = x_22;
}
lean::cnstr_set(x_54, 0, x_16);
lean::cnstr_set(x_54, 1, x_18);
lean::cnstr_set(x_54, 2, x_53);
x_55 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_20, x_54);
x_56 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_57 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_56, x_55);
x_58 = l_lean_parser_parsec__t_try__mk__res___rarg(x_57);
if (lean::is_scalar(x_15)) {
x_59 = lean::alloc_cnstr(0, 2, 0);
} else {
x_59 = x_15;
}
lean::cnstr_set(x_59, 0, x_58);
lean::cnstr_set(x_59, 1, x_13);
return x_59;
}
else
{
obj* x_62; obj* x_63; obj* x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_71;
lean::dec(x_15);
lean::dec(x_22);
x_62 = l_string_quote(x_0);
x_63 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_63, 0, x_62);
x_64 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_64, 0, x_3);
x_65 = lean::box(0);
x_66 = l_string_join___closed__1;
x_67 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__1___rarg(x_66, x_63, x_64, x_65, x_5, x_18, x_13);
lean::dec(x_18);
lean::dec(x_5);
lean::dec(x_64);
x_71 = lean::cnstr_get(x_67, 0);
lean::inc(x_71);
if (lean::obj_tag(x_71) == 0)
{
obj* x_73; obj* x_75; obj* x_76; obj* x_78; obj* x_80; obj* x_81; obj* x_82; obj* x_83; obj* x_84; obj* x_85; obj* x_86; obj* x_87;
x_73 = lean::cnstr_get(x_67, 1);
if (lean::is_exclusive(x_67)) {
lean::cnstr_release(x_67, 0);
x_75 = x_67;
} else {
lean::inc(x_73);
lean::dec(x_67);
x_75 = lean::box(0);
}
x_76 = lean::cnstr_get(x_71, 1);
x_78 = lean::cnstr_get(x_71, 2);
if (lean::is_exclusive(x_71)) {
lean::cnstr_release(x_71, 0);
x_80 = x_71;
} else {
lean::inc(x_76);
lean::inc(x_78);
lean::dec(x_71);
x_80 = lean::box(0);
}
x_81 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
if (lean::is_scalar(x_80)) {
x_82 = lean::alloc_cnstr(0, 3, 0);
} else {
x_82 = x_80;
}
lean::cnstr_set(x_82, 0, x_16);
lean::cnstr_set(x_82, 1, x_76);
lean::cnstr_set(x_82, 2, x_81);
x_83 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_78, x_82);
x_84 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_20, x_83);
x_85 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_81, x_84);
x_86 = l_lean_parser_parsec__t_try__mk__res___rarg(x_85);
if (lean::is_scalar(x_75)) {
x_87 = lean::alloc_cnstr(0, 2, 0);
} else {
x_87 = x_75;
}
lean::cnstr_set(x_87, 0, x_86);
lean::cnstr_set(x_87, 1, x_73);
return x_87;
}
else
{
obj* x_89; obj* x_91; obj* x_92; uint8 x_94; obj* x_95; obj* x_96; obj* x_97; obj* x_98; obj* x_99; obj* x_100; obj* x_101; obj* x_102;
lean::dec(x_16);
x_89 = lean::cnstr_get(x_67, 1);
if (lean::is_exclusive(x_67)) {
lean::cnstr_release(x_67, 0);
x_91 = x_67;
} else {
lean::inc(x_89);
lean::dec(x_67);
x_91 = lean::box(0);
}
x_92 = lean::cnstr_get(x_71, 0);
x_94 = lean::cnstr_get_scalar<uint8>(x_71, sizeof(void*)*1);
if (lean::is_exclusive(x_71)) {
x_95 = x_71;
} else {
lean::inc(x_92);
lean::dec(x_71);
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_parsec__t_bind__mk__res___rarg(x_20, x_97);
x_99 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_100 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_99, x_98);
x_101 = l_lean_parser_parsec__t_try__mk__res___rarg(x_100);
if (lean::is_scalar(x_91)) {
x_102 = lean::alloc_cnstr(0, 2, 0);
} else {
x_102 = x_91;
}
lean::cnstr_set(x_102, 0, x_101);
lean::cnstr_set(x_102, 1, x_89);
return x_102;
}
}
}
}
}
else
{
obj* x_106; obj* x_108; obj* x_109; uint8 x_111; obj* x_112; obj* x_113; obj* x_114; obj* x_115; obj* x_116; obj* x_117; obj* x_118;
lean::dec(x_5);
lean::dec(x_3);
lean::dec(x_0);
x_106 = lean::cnstr_get(x_10, 1);
if (lean::is_exclusive(x_10)) {
lean::cnstr_release(x_10, 0);
x_108 = x_10;
} else {
lean::inc(x_106);
lean::dec(x_10);
x_108 = lean::box(0);
}
x_109 = lean::cnstr_get(x_11, 0);
x_111 = lean::cnstr_get_scalar<uint8>(x_11, sizeof(void*)*1);
if (lean::is_exclusive(x_11)) {
x_112 = x_11;
} else {
lean::inc(x_109);
lean::dec(x_11);
x_112 = lean::box(0);
}
if (lean::is_scalar(x_112)) {
x_113 = lean::alloc_cnstr(1, 1, 1);
} else {
x_113 = x_112;
}
lean::cnstr_set(x_113, 0, x_109);
lean::cnstr_set_scalar(x_113, sizeof(void*)*1, x_111);
x_114 = x_113;
x_115 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_116 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_115, x_114);
x_117 = l_lean_parser_parsec__t_try__mk__res___rarg(x_116);
if (lean::is_scalar(x_108)) {
x_118 = lean::alloc_cnstr(0, 2, 0);
} else {
x_118 = x_108;
}
lean::cnstr_set(x_118, 0, x_117);
lean::cnstr_set(x_118, 1, x_106);
return x_118;
}
}
}
obj* l_lean_parser_string__lit_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__2(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_9; obj* x_10;
x_4 = lean::cnstr_get(x_0, 0);
lean::inc(x_4);
lean::dec(x_0);
lean::inc(x_2);
lean::inc(x_4);
x_9 = l_lean_parser_token(x_4, x_2, x_3);
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_23;
x_12 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
lean::cnstr_release(x_9, 0);
lean::cnstr_set(x_9, 1, lean::box(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)) {
lean::cnstr_set(x_10, 0, lean::box(0));
lean::cnstr_set(x_10, 1, lean::box(0));
lean::cnstr_set(x_10, 2, lean::box(0));
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);
}
lean::inc(x_15);
x_23 = l_lean_parser_try__view___at_lean_parser_string__lit_parser___spec__1(x_15);
if (lean::obj_tag(x_23) == 0)
{
obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_35; obj* x_37; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46;
lean::dec(x_15);
lean::dec(x_14);
lean::dec(x_21);
x_27 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_27, 0, x_2);
x_28 = lean::box(0);
x_29 = l_string_join___closed__1;
x_30 = l_lean_parser_string__lit_parser___at_lean_parser_term_builtin__leading__parsers_lean_parser_has__tokens___spec__1___rarg___closed__1;
x_31 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__1___rarg(x_29, x_30, x_27, x_28, x_4, x_17, x_12);
lean::dec(x_17);
lean::dec(x_4);
lean::dec(x_27);
x_35 = lean::cnstr_get(x_31, 0);
x_37 = lean::cnstr_get(x_31, 1);
if (lean::is_exclusive(x_31)) {
x_39 = x_31;
} else {
lean::inc(x_35);
lean::inc(x_37);
lean::dec(x_31);
x_39 = lean::box(0);
}
x_40 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_41 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_40, x_35);
x_42 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_19, x_41);
x_43 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_40, x_42);
x_44 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_43, x_30);
x_45 = l_lean_parser_parsec__t_try__mk__res___rarg(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);
return x_46;
}
else
{
obj* x_50; obj* x_51; obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58;
lean::dec(x_4);
lean::dec(x_2);
lean::dec(x_23);
x_50 = l_lean_parser_finish__comment__block___closed__2;
if (lean::is_scalar(x_21)) {
x_51 = lean::alloc_cnstr(0, 3, 0);
} else {
x_51 = x_21;
}
lean::cnstr_set(x_51, 0, x_15);
lean::cnstr_set(x_51, 1, x_17);
lean::cnstr_set(x_51, 2, x_50);
x_52 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_19, x_51);
x_53 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_54 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_53, x_52);
x_55 = l_lean_parser_string__lit_parser___at_lean_parser_term_builtin__leading__parsers_lean_parser_has__tokens___spec__1___rarg___closed__1;
x_56 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_54, x_55);
x_57 = l_lean_parser_parsec__t_try__mk__res___rarg(x_56);
if (lean::is_scalar(x_14)) {
x_58 = lean::alloc_cnstr(0, 2, 0);
} else {
x_58 = x_14;
}
lean::cnstr_set(x_58, 0, x_57);
lean::cnstr_set(x_58, 1, x_12);
return x_58;
}
}
else
{
obj* x_61; obj* x_63; obj* x_64; uint8 x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75;
lean::dec(x_4);
lean::dec(x_2);
x_61 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
lean::cnstr_release(x_9, 0);
x_63 = x_9;
} else {
lean::inc(x_61);
lean::dec(x_9);
x_63 = lean::box(0);
}
x_64 = lean::cnstr_get(x_10, 0);
x_66 = lean::cnstr_get_scalar<uint8>(x_10, sizeof(void*)*1);
if (lean::is_exclusive(x_10)) {
x_67 = x_10;
} else {
lean::inc(x_64);
lean::dec(x_10);
x_67 = lean::box(0);
}
if (lean::is_scalar(x_67)) {
x_68 = lean::alloc_cnstr(1, 1, 1);
} else {
x_68 = x_67;
}
lean::cnstr_set(x_68, 0, x_64);
lean::cnstr_set_scalar(x_68, sizeof(void*)*1, x_66);
x_69 = x_68;
x_70 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_71 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_70, x_69);
x_72 = l_lean_parser_string__lit_parser___at_lean_parser_term_builtin__leading__parsers_lean_parser_has__tokens___spec__1___rarg___closed__1;
x_73 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_71, x_72);
x_74 = l_lean_parser_parsec__t_try__mk__res___rarg(x_73);
if (lean::is_scalar(x_63)) {
x_75 = lean::alloc_cnstr(0, 2, 0);
} else {
x_75 = x_63;
}
lean::cnstr_set(x_75, 0, x_74);
lean::cnstr_set(x_75, 1, x_61);
return x_75;
}
}
}
obj* l_lean_parser_number_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__3(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_9; obj* x_10;
x_4 = lean::cnstr_get(x_0, 0);
lean::inc(x_4);
lean::dec(x_0);
lean::inc(x_2);
lean::inc(x_4);
x_9 = l_lean_parser_token(x_4, x_2, x_3);
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_23;
x_12 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
lean::cnstr_release(x_9, 0);
lean::cnstr_set(x_9, 1, lean::box(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)) {
lean::cnstr_set(x_10, 0, lean::box(0));
lean::cnstr_set(x_10, 1, lean::box(0));
lean::cnstr_set(x_10, 2, lean::box(0));
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);
}
lean::inc(x_15);
x_23 = l_lean_parser_try__view___at_lean_parser_number_parser___spec__1(x_15);
if (lean::obj_tag(x_23) == 0)
{
obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_35; obj* x_37; obj* x_39; obj* x_40; obj* x_41; obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46;
lean::dec(x_15);
lean::dec(x_14);
lean::dec(x_21);
x_27 = lean::alloc_cnstr(1, 1, 0);
lean::cnstr_set(x_27, 0, x_2);
x_28 = lean::box(0);
x_29 = l_string_join___closed__1;
x_30 = l_lean_parser_number_parser___at_lean_parser_command_notation__spec_precedence__lit_parser_lean_parser_has__tokens___spec__1___rarg___closed__1;
x_31 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__1___rarg(x_29, x_30, x_27, x_28, x_4, x_17, x_12);
lean::dec(x_17);
lean::dec(x_4);
lean::dec(x_27);
x_35 = lean::cnstr_get(x_31, 0);
x_37 = lean::cnstr_get(x_31, 1);
if (lean::is_exclusive(x_31)) {
x_39 = x_31;
} else {
lean::inc(x_35);
lean::inc(x_37);
lean::dec(x_31);
x_39 = lean::box(0);
}
x_40 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_41 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_40, x_35);
x_42 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_19, x_41);
x_43 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_40, x_42);
x_44 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_43, x_30);
x_45 = l_lean_parser_parsec__t_try__mk__res___rarg(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);
return x_46;
}
else
{
obj* x_50; obj* x_51; obj* x_52; obj* x_53; obj* x_54; obj* x_55; obj* x_56; obj* x_57; obj* x_58;
lean::dec(x_4);
lean::dec(x_2);
lean::dec(x_23);
x_50 = l_lean_parser_finish__comment__block___closed__2;
if (lean::is_scalar(x_21)) {
x_51 = lean::alloc_cnstr(0, 3, 0);
} else {
x_51 = x_21;
}
lean::cnstr_set(x_51, 0, x_15);
lean::cnstr_set(x_51, 1, x_17);
lean::cnstr_set(x_51, 2, x_50);
x_52 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_19, x_51);
x_53 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_54 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_53, x_52);
x_55 = l_lean_parser_number_parser___at_lean_parser_command_notation__spec_precedence__lit_parser_lean_parser_has__tokens___spec__1___rarg___closed__1;
x_56 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_54, x_55);
x_57 = l_lean_parser_parsec__t_try__mk__res___rarg(x_56);
if (lean::is_scalar(x_14)) {
x_58 = lean::alloc_cnstr(0, 2, 0);
} else {
x_58 = x_14;
}
lean::cnstr_set(x_58, 0, x_57);
lean::cnstr_set(x_58, 1, x_12);
return x_58;
}
}
else
{
obj* x_61; obj* x_63; obj* x_64; uint8 x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75;
lean::dec(x_4);
lean::dec(x_2);
x_61 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
lean::cnstr_release(x_9, 0);
x_63 = x_9;
} else {
lean::inc(x_61);
lean::dec(x_9);
x_63 = lean::box(0);
}
x_64 = lean::cnstr_get(x_10, 0);
x_66 = lean::cnstr_get_scalar<uint8>(x_10, sizeof(void*)*1);
if (lean::is_exclusive(x_10)) {
x_67 = x_10;
} else {
lean::inc(x_64);
lean::dec(x_10);
x_67 = lean::box(0);
}
if (lean::is_scalar(x_67)) {
x_68 = lean::alloc_cnstr(1, 1, 1);
} else {
x_68 = x_67;
}
lean::cnstr_set(x_68, 0, x_64);
lean::cnstr_set_scalar(x_68, sizeof(void*)*1, x_66);
x_69 = x_68;
x_70 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_71 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_70, x_69);
x_72 = l_lean_parser_number_parser___at_lean_parser_command_notation__spec_precedence__lit_parser_lean_parser_has__tokens___spec__1___rarg___closed__1;
x_73 = l_lean_parser_parsec__t_labels__mk__res___rarg(x_71, x_72);
x_74 = l_lean_parser_parsec__t_try__mk__res___rarg(x_73);
if (lean::is_scalar(x_63)) {
x_75 = lean::alloc_cnstr(0, 2, 0);
} else {
x_75 = x_63;
}
lean::cnstr_set(x_75, 0, x_74);
lean::cnstr_set(x_75, 1, x_61);
return x_75;
}
}
}
obj* _init_l_lean_parser_command_set__option_parser_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_9; obj* x_11; obj* x_13; obj* x_16; obj* x_18; obj* x_20; obj* x_22; obj* x_24; obj* x_26; obj* x_29;
x_0 = lean::mk_string("set_option");
x_1 = lean::mk_nat_obj(0u);
x_2 = l_lean_parser_symbol_tokens___rarg(x_0, x_1);
lean::dec(x_0);
x_4 = lean::box(0);
x_5 = l_lean_parser_list_cons_tokens___rarg(x_4, x_4);
x_6 = l_lean_parser_list_cons_tokens___rarg(x_4, x_5);
lean::dec(x_5);
x_8 = l_lean_parser_tokens___rarg(x_6);
x_9 = l_lean_parser_list_cons_tokens___rarg(x_8, x_4);
lean::dec(x_8);
x_11 = l_lean_parser_tokens___rarg(x_9);
lean::dec(x_9);
x_13 = l_lean_parser_list_cons_tokens___rarg(x_11, x_6);
lean::dec(x_6);
lean::dec(x_11);
x_16 = l_lean_parser_tokens___rarg(x_13);
lean::dec(x_13);
x_18 = l_lean_parser_list_cons_tokens___rarg(x_16, x_4);
lean::dec(x_16);
x_20 = l_lean_parser_tokens___rarg(x_18);
lean::dec(x_18);
x_22 = l_lean_parser_list_cons_tokens___rarg(x_20, x_4);
lean::dec(x_20);
x_24 = l_lean_parser_list_cons_tokens___rarg(x_4, x_22);
lean::dec(x_22);
x_26 = l_lean_parser_list_cons_tokens___rarg(x_2, x_24);
lean::dec(x_24);
lean::dec(x_2);
x_29 = l_lean_parser_tokens___rarg(x_26);
lean::dec(x_26);
return x_29;
}
}
obj* l_lean_parser_symbol__or__ident___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__1___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
obj* x_5;
x_5 = l_lean_parser_symbol__or__ident___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__1(x_0, x_1, x_2, x_3, x_4);
lean::dec(x_2);
return x_5;
}
}
obj* l_lean_parser_string__lit_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__2___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4;
x_4 = l_lean_parser_string__lit_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__2(x_0, x_1, x_2, x_3);
lean::dec(x_1);
return x_4;
}
}
obj* l_lean_parser_number_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__3___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4;
x_4 = l_lean_parser_number_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__3(x_0, x_1, x_2, x_3);
lean::dec(x_1);
return x_4;
}
}
obj* _init_l_lean_parser_command_set__option_parser_lean_parser_has__view() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; obj* x_31; obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36;
x_0 = lean::mk_string("set_option");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::mk_string("true");
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__or__ident___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__1___boxed), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
lean::inc(x_8);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_8);
lean::cnstr_set(x_11, 1, x_9);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_8);
lean::cnstr_set(x_12, 1, x_11);
x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_choice__aux___main___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__2), 6, 2);
lean::closure_set(x_13, 0, x_12);
lean::closure_set(x_13, 1, x_5);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_9);
x_15 = l_lean_parser_command_bool__option__value;
x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_16, 0, x_15);
lean::closure_set(x_16, 1, x_14);
x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_number_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__3___boxed), 4, 0);
x_18 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_18, 0, x_17);
lean::cnstr_set(x_18, 1, x_9);
x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_string__lit_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__2___boxed), 4, 0);
x_20 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_20, 0, x_19);
lean::cnstr_set(x_20, 1, x_18);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_16);
lean::cnstr_set(x_21, 1, x_20);
x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_choice__aux___main___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__2), 6, 2);
lean::closure_set(x_22, 0, x_21);
lean::closure_set(x_22, 1, x_5);
x_23 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_23, 0, x_22);
lean::cnstr_set(x_23, 1, x_9);
x_24 = l_lean_parser_command_option__value;
x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_25, 0, x_24);
lean::closure_set(x_25, 1, x_23);
x_26 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_26, 0, x_25);
lean::cnstr_set(x_26, 1, x_9);
x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_28 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_28, 0, x_27);
lean::cnstr_set(x_28, 1, x_26);
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_6);
lean::cnstr_set(x_29, 1, x_28);
x_30 = l_lean_parser_command__parser__m_monad___closed__1;
x_31 = l_lean_parser_command__parser__m_monad__except___closed__1;
x_32 = l_lean_parser_command__parser__m_lean_parser_monad__parsec___closed__1;
x_33 = l_lean_parser_command__parser__m_alternative___closed__1;
x_34 = l_lean_parser_command_set__option;
x_35 = l_lean_parser_command_set__option_has__view;
x_36 = l_lean_parser_combinators_node_view___rarg(x_30, x_31, x_32, x_33, x_34, x_29, x_35);
lean::dec(x_29);
return x_36;
}
}
obj* _init_l_lean_parser_command_set__option_parser___closed__1() {
_start:
{
obj* x_0; obj* x_1; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_11; obj* x_12; obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29;
x_0 = lean::mk_string("set_option");
x_1 = l_string_trim(x_0);
lean::dec(x_0);
lean::inc(x_1);
x_4 = lean::alloc_closure(reinterpret_cast<void*>(l_dlist_singleton___rarg), 2, 1);
lean::closure_set(x_4, 0, x_1);
x_5 = lean::mk_nat_obj(0u);
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__core___at_lean_parser_command_doc__comment_parser_lean_parser_has__tokens___spec__1___boxed), 7, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_5);
lean::closure_set(x_6, 2, x_4);
x_7 = lean::mk_string("true");
x_8 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_symbol__or__ident___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__1___boxed), 5, 1);
lean::closure_set(x_8, 0, x_7);
x_9 = lean::box(0);
lean::inc(x_8);
x_11 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_11, 0, x_8);
lean::cnstr_set(x_11, 1, x_9);
x_12 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_12, 0, x_8);
lean::cnstr_set(x_12, 1, x_11);
x_13 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_choice__aux___main___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__2), 6, 2);
lean::closure_set(x_13, 0, x_12);
lean::closure_set(x_13, 1, x_5);
x_14 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_14, 0, x_13);
lean::cnstr_set(x_14, 1, x_9);
x_15 = l_lean_parser_command_bool__option__value;
x_16 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_16, 0, x_15);
lean::closure_set(x_16, 1, x_14);
x_17 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_number_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__3___boxed), 4, 0);
x_18 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_18, 0, x_17);
lean::cnstr_set(x_18, 1, x_9);
x_19 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_string__lit_parser___at_lean_parser_command_set__option_parser_lean_parser_has__tokens___spec__2___boxed), 4, 0);
x_20 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_20, 0, x_19);
lean::cnstr_set(x_20, 1, x_18);
x_21 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_21, 0, x_16);
lean::cnstr_set(x_21, 1, x_20);
x_22 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_choice__aux___main___at_lean_parser_command_decl__modifiers_parser_lean_parser_has__tokens___spec__2), 6, 2);
lean::closure_set(x_22, 0, x_21);
lean::closure_set(x_22, 1, x_5);
x_23 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_23, 0, x_22);
lean::cnstr_set(x_23, 1, x_9);
x_24 = l_lean_parser_command_option__value;
x_25 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4), 6, 2);
lean::closure_set(x_25, 0, x_24);
lean::closure_set(x_25, 1, x_23);
x_26 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_26, 0, x_25);
lean::cnstr_set(x_26, 1, x_9);
x_27 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_ident_parser___at_lean_parser_command_intro__rule_parser_lean_parser_has__tokens___spec__1___boxed), 4, 0);
x_28 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_28, 0, x_27);
lean::cnstr_set(x_28, 1, x_26);
x_29 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_29, 0, x_6);
lean::cnstr_set(x_29, 1, x_28);
return x_29;
}
}
obj* l_lean_parser_command_set__option_parser(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6;
x_4 = l_lean_parser_command_set__option;
x_5 = l_lean_parser_command_set__option_parser___closed__1;
x_6 = l_lean_parser_combinators_node___at_lean_parser_command_doc__comment_parser___spec__4(x_4, x_5, x_0, x_1, x_2, x_3);
return x_6;
}
}
obj* _init_l_lean_parser_command_builtin__command__parsers_lean_parser_has__tokens() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_14; obj* x_15; obj* x_17; obj* x_18; obj* x_20; obj* x_21; obj* x_23; obj* x_24; obj* x_26; obj* x_28; obj* x_29; obj* x_31; obj* x_34; obj* x_36; obj* x_38; obj* x_40; obj* x_42; obj* x_44; obj* x_47; obj* x_50; obj* x_52; obj* x_55; obj* x_56; obj* x_58; obj* x_60; obj* x_61; obj* x_63; obj* x_64; obj* x_66; obj* x_67; obj* x_69; obj* x_70; obj* x_72; obj* x_73; obj* x_75; obj* x_76; obj* x_78; obj* x_79; obj* x_81; obj* x_83; obj* x_85; obj* x_87; obj* x_89; obj* x_91; obj* x_93; obj* x_95; obj* x_97; obj* x_99; obj* x_101; obj* x_103; obj* x_105; obj* x_107;
x_0 = l_lean_parser_command_notation_parser_lean_parser_has__tokens;
x_1 = l_lean_parser_tokens___rarg(x_0);
x_2 = l_lean_parser_command_reserve__notation_parser_lean_parser_has__tokens;
x_3 = l_lean_parser_tokens___rarg(x_2);
x_4 = l_lean_parser_command_mixfix_parser_lean_parser_has__tokens;
x_5 = l_lean_parser_tokens___rarg(x_4);
x_6 = l_lean_parser_command_reserve__mixfix_parser_lean_parser_has__tokens;
x_7 = l_lean_parser_tokens___rarg(x_6);
x_8 = lean::box(0);
x_9 = l_lean_parser_command_set__option_parser_lean_parser_has__tokens;
x_10 = l_lean_parser_token__map__cons_tokens___rarg(x_9, x_8);
x_11 = l_lean_parser_command_init__quot_parser_lean_parser_has__tokens;
x_12 = l_lean_parser_token__map__cons_tokens___rarg(x_11, x_10);
lean::dec(x_10);
x_14 = l_lean_parser_command_omit_parser_lean_parser_has__tokens;
x_15 = l_lean_parser_token__map__cons_tokens___rarg(x_14, x_12);
lean::dec(x_12);
x_17 = l_lean_parser_command_include_parser_lean_parser_has__tokens;
x_18 = l_lean_parser_token__map__cons_tokens___rarg(x_17, x_15);
lean::dec(x_15);
x_20 = l_lean_parser_command_export_parser_lean_parser_has__tokens;
x_21 = l_lean_parser_token__map__cons_tokens___rarg(x_20, x_18);
lean::dec(x_18);
x_23 = l_lean_parser_command_attribute_parser_lean_parser_has__tokens;
x_24 = l_lean_parser_token__map__cons_tokens___rarg(x_23, x_21);
lean::dec(x_21);
x_26 = l_lean_parser_token__map__cons_tokens___rarg(x_23, x_24);
lean::dec(x_24);
x_28 = l_lean_parser_command_check_parser_lean_parser_has__tokens;
x_29 = l_lean_parser_token__map__cons_tokens___rarg(x_28, x_26);
lean::dec(x_26);
x_31 = l_lean_parser_token__map__cons_tokens___rarg(x_7, x_29);
lean::dec(x_29);
lean::dec(x_7);
x_34 = l_lean_parser_token__map__cons_tokens___rarg(x_5, x_31);
lean::dec(x_31);
x_36 = l_lean_parser_token__map__cons_tokens___rarg(x_5, x_34);
lean::dec(x_34);
x_38 = l_lean_parser_token__map__cons_tokens___rarg(x_5, x_36);
lean::dec(x_36);
x_40 = l_lean_parser_token__map__cons_tokens___rarg(x_5, x_38);
lean::dec(x_38);
x_42 = l_lean_parser_token__map__cons_tokens___rarg(x_5, x_40);
lean::dec(x_40);
x_44 = l_lean_parser_token__map__cons_tokens___rarg(x_5, x_42);
lean::dec(x_42);
lean::dec(x_5);
x_47 = l_lean_parser_token__map__cons_tokens___rarg(x_3, x_44);
lean::dec(x_44);
lean::dec(x_3);
x_50 = l_lean_parser_token__map__cons_tokens___rarg(x_1, x_47);
lean::dec(x_47);
x_52 = l_lean_parser_token__map__cons_tokens___rarg(x_1, x_50);
lean::dec(x_50);
lean::dec(x_1);
x_55 = l_lean_parser_command_universe_parser_lean_parser_has__tokens;
x_56 = l_lean_parser_token__map__cons_tokens___rarg(x_55, x_52);
lean::dec(x_52);
x_58 = l_lean_parser_token__map__cons_tokens___rarg(x_55, x_56);
lean::dec(x_56);
x_60 = l_lean_parser_command_section_parser_lean_parser_has__tokens;
x_61 = l_lean_parser_token__map__cons_tokens___rarg(x_60, x_58);
lean::dec(x_58);
x_63 = l_lean_parser_command_open_parser_lean_parser_has__tokens;
x_64 = l_lean_parser_token__map__cons_tokens___rarg(x_63, x_61);
lean::dec(x_61);
x_66 = l_lean_parser_command_end_parser_lean_parser_has__tokens;
x_67 = l_lean_parser_token__map__cons_tokens___rarg(x_66, x_64);
lean::dec(x_64);
x_69 = l_lean_parser_command_namespace_parser_lean_parser_has__tokens;
x_70 = l_lean_parser_token__map__cons_tokens___rarg(x_69, x_67);
lean::dec(x_67);
x_72 = l_lean_parser_command_variables_parser_lean_parser_has__tokens;
x_73 = l_lean_parser_token__map__cons_tokens___rarg(x_72, x_70);
lean::dec(x_70);
x_75 = l_lean_parser_command_variable_parser_lean_parser_has__tokens;
x_76 = l_lean_parser_token__map__cons_tokens___rarg(x_75, x_73);
lean::dec(x_73);
x_78 = l_lean_parser_command_declaration_parser_lean_parser_has__tokens;
x_79 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_76);
lean::dec(x_76);
x_81 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_79);
lean::dec(x_79);
x_83 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_81);
lean::dec(x_81);
x_85 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_83);
lean::dec(x_83);
x_87 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_85);
lean::dec(x_85);
x_89 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_87);
lean::dec(x_87);
x_91 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_89);
lean::dec(x_89);
x_93 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_91);
lean::dec(x_91);
x_95 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_93);
lean::dec(x_93);
x_97 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_95);
lean::dec(x_95);
x_99 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_97);
lean::dec(x_97);
x_101 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_99);
lean::dec(x_99);
x_103 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_101);
lean::dec(x_101);
x_105 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_103);
lean::dec(x_103);
x_107 = l_lean_parser_token__map__cons_tokens___rarg(x_78, x_105);
lean::dec(x_105);
return x_107;
}
}
obj* _init_l_lean_parser_command_builtin__command__parsers() {
_start:
{
obj* x_0; obj* x_1; obj* x_2; obj* x_3; obj* x_5; obj* x_6; obj* x_7; obj* x_9; obj* x_10; obj* x_11; obj* x_13; obj* x_14; obj* x_15; obj* x_17; obj* x_18; obj* x_19; obj* x_21; obj* x_22; obj* x_23; obj* x_25; obj* x_26; obj* x_27; obj* x_29; obj* x_30; obj* x_31; obj* x_33; obj* x_34; obj* x_35; obj* x_37; obj* x_38; obj* x_39; obj* x_41; obj* x_42; obj* x_43; obj* x_45; obj* x_46; obj* x_47; obj* x_49; obj* x_50; obj* x_51; obj* x_53; obj* x_54; obj* x_55; obj* x_57; obj* x_58; obj* x_59; obj* x_60; obj* x_61; obj* x_62; obj* x_63; obj* x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_68; obj* x_69; obj* x_70; obj* x_71; obj* x_72; obj* x_73; obj* x_74; obj* x_75; obj* x_76; obj* x_77; obj* x_78; obj* x_79; obj* x_80; obj* x_81; obj* x_82; obj* x_83; obj* x_84; obj* x_85; obj* x_86; obj* x_87; obj* x_89; obj* x_90; obj* x_91; obj* x_92; obj* x_93; obj* x_94; obj* x_95; obj* x_96; obj* x_99; obj* x_100; obj* x_101; obj* x_102; obj* x_103; obj* x_104; obj* x_105; obj* x_106; obj* x_108; obj* x_109; obj* x_110; obj* x_113; obj* x_114; obj* x_115; obj* x_117; obj* x_118; obj* x_119; obj* x_121; obj* x_122; obj* x_123; obj* x_125; obj* x_126; obj* x_127; obj* x_129; obj* x_130; obj* x_131; obj* x_132; obj* x_133; obj* x_134; obj* x_135; obj* x_136; obj* x_137; obj* x_138; obj* x_139; obj* x_140; obj* x_142; obj* x_143; obj* x_144; obj* x_145; obj* x_146; obj* x_147; obj* x_148; obj* x_149; obj* x_150; obj* x_151; obj* x_152; obj* x_153; obj* x_154; obj* x_155; obj* x_156; obj* x_157; obj* x_158; obj* x_159; obj* x_160; obj* x_161; obj* x_162; obj* x_163; obj* x_164; obj* x_165; obj* x_166; obj* x_167; obj* x_168; obj* x_169; obj* x_170; obj* x_171; obj* x_172; obj* x_173; obj* x_174; obj* x_175; obj* x_176; obj* x_177; obj* x_178; obj* x_179; obj* x_180; obj* x_181; obj* x_182; obj* x_183; obj* x_184; obj* x_185; obj* x_186; obj* x_187; obj* x_188; obj* x_189; obj* x_190; obj* x_191; obj* x_192; obj* x_193; obj* x_194; obj* x_195; obj* x_196; obj* x_197; obj* x_198; obj* x_199; obj* x_200; obj* x_201; obj* x_202; obj* x_203; obj* x_204; obj* x_205; obj* x_206; obj* x_207; obj* x_208;
x_0 = lean::box(0);
x_1 = lean::mk_string("/--");
x_2 = lean_name_mk_string(x_0, x_1);
x_3 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_declaration_parser), 4, 0);
lean::inc(x_3);
x_5 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_5, 0, x_2);
lean::cnstr_set(x_5, 1, x_3);
x_6 = lean::mk_string("@[");
x_7 = lean_name_mk_string(x_0, x_6);
lean::inc(x_3);
x_9 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set(x_9, 1, x_3);
x_10 = lean::mk_string("private");
x_11 = lean_name_mk_string(x_0, x_10);
lean::inc(x_3);
x_13 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_13, 0, x_11);
lean::cnstr_set(x_13, 1, x_3);
x_14 = lean::mk_string("protected");
x_15 = lean_name_mk_string(x_0, x_14);
lean::inc(x_3);
x_17 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_17, 0, x_15);
lean::cnstr_set(x_17, 1, x_3);
x_18 = lean::mk_string("noncomputable");
x_19 = lean_name_mk_string(x_0, x_18);
lean::inc(x_3);
x_21 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_21, 0, x_19);
lean::cnstr_set(x_21, 1, x_3);
x_22 = lean::mk_string("meta");
x_23 = lean_name_mk_string(x_0, x_22);
lean::inc(x_3);
x_25 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_25, 0, x_23);
lean::cnstr_set(x_25, 1, x_3);
x_26 = lean::mk_string("def");
x_27 = lean_name_mk_string(x_0, x_26);
lean::inc(x_3);
x_29 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_29, 0, x_27);
lean::cnstr_set(x_29, 1, x_3);
x_30 = lean::mk_string("abbreviation");
x_31 = lean_name_mk_string(x_0, x_30);
lean::inc(x_3);
x_33 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_33, 0, x_31);
lean::cnstr_set(x_33, 1, x_3);
x_34 = lean::mk_string("theorem");
x_35 = lean_name_mk_string(x_0, x_34);
lean::inc(x_3);
x_37 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_37, 0, x_35);
lean::cnstr_set(x_37, 1, x_3);
x_38 = lean::mk_string("instance");
x_39 = lean_name_mk_string(x_0, x_38);
lean::inc(x_3);
x_41 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_41, 0, x_39);
lean::cnstr_set(x_41, 1, x_3);
x_42 = lean::mk_string("axiom");
x_43 = lean_name_mk_string(x_0, x_42);
lean::inc(x_3);
x_45 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_45, 0, x_43);
lean::cnstr_set(x_45, 1, x_3);
x_46 = lean::mk_string("constant");
x_47 = lean_name_mk_string(x_0, x_46);
lean::inc(x_3);
x_49 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_49, 0, x_47);
lean::cnstr_set(x_49, 1, x_3);
x_50 = lean::mk_string("class");
x_51 = lean_name_mk_string(x_0, x_50);
lean::inc(x_3);
x_53 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_53, 0, x_51);
lean::cnstr_set(x_53, 1, x_3);
x_54 = lean::mk_string("inductive");
x_55 = lean_name_mk_string(x_0, x_54);
lean::inc(x_3);
x_57 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_57, 0, x_55);
lean::cnstr_set(x_57, 1, x_3);
x_58 = lean::mk_string("structure");
x_59 = lean_name_mk_string(x_0, x_58);
x_60 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_60, 0, x_59);
lean::cnstr_set(x_60, 1, x_3);
x_61 = lean::mk_string("variable");
x_62 = lean_name_mk_string(x_0, x_61);
x_63 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_variable_parser), 4, 0);
x_64 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_64, 0, x_62);
lean::cnstr_set(x_64, 1, x_63);
x_65 = lean::mk_string("variables");
x_66 = lean_name_mk_string(x_0, x_65);
x_67 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_variables_parser), 4, 0);
x_68 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_68, 0, x_66);
lean::cnstr_set(x_68, 1, x_67);
x_69 = lean::mk_string("namespace");
x_70 = lean_name_mk_string(x_0, x_69);
x_71 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_namespace_parser), 4, 0);
x_72 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_72, 0, x_70);
lean::cnstr_set(x_72, 1, x_71);
x_73 = lean::mk_string("end");
x_74 = lean_name_mk_string(x_0, x_73);
x_75 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_end_parser), 4, 0);
x_76 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_76, 0, x_74);
lean::cnstr_set(x_76, 1, x_75);
x_77 = lean::mk_string("open");
x_78 = lean_name_mk_string(x_0, x_77);
x_79 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_open_parser), 4, 0);
x_80 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_80, 0, x_78);
lean::cnstr_set(x_80, 1, x_79);
x_81 = lean::mk_string("section");
x_82 = lean_name_mk_string(x_0, x_81);
x_83 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_section_parser), 4, 0);
x_84 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_84, 0, x_82);
lean::cnstr_set(x_84, 1, x_83);
x_85 = lean::mk_string("universe");
x_86 = lean_name_mk_string(x_0, x_85);
x_87 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_universe_parser), 4, 0);
lean::inc(x_87);
x_89 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_89, 0, x_86);
lean::cnstr_set(x_89, 1, x_87);
x_90 = lean::mk_string("universes");
x_91 = lean_name_mk_string(x_0, x_90);
x_92 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_92, 0, x_91);
lean::cnstr_set(x_92, 1, x_87);
x_93 = lean::mk_string("local");
x_94 = lean_name_mk_string(x_0, x_93);
x_95 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_notation_parser), 5, 0);
x_96 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term__parser_run), 5, 1);
lean::closure_set(x_96, 0, x_95);
lean::inc(x_96);
lean::inc(x_94);
x_99 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_99, 0, x_94);
lean::cnstr_set(x_99, 1, x_96);
x_100 = lean::mk_string("notation");
x_101 = lean_name_mk_string(x_0, x_100);
x_102 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_102, 0, x_101);
lean::cnstr_set(x_102, 1, x_96);
x_103 = lean::mk_string("reserve");
x_104 = lean_name_mk_string(x_0, x_103);
x_105 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_reserve__notation_parser), 5, 0);
x_106 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term__parser_run), 5, 1);
lean::closure_set(x_106, 0, x_105);
lean::inc(x_104);
x_108 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_108, 0, x_104);
lean::cnstr_set(x_108, 1, x_106);
x_109 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_mixfix_parser), 5, 0);
x_110 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term__parser_run), 5, 1);
lean::closure_set(x_110, 0, x_109);
lean::inc(x_110);
lean::inc(x_94);
x_113 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_113, 0, x_94);
lean::cnstr_set(x_113, 1, x_110);
x_114 = lean::mk_string("prefix");
x_115 = lean_name_mk_string(x_0, x_114);
lean::inc(x_110);
x_117 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_117, 0, x_115);
lean::cnstr_set(x_117, 1, x_110);
x_118 = lean::mk_string("infix");
x_119 = lean_name_mk_string(x_0, x_118);
lean::inc(x_110);
x_121 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_121, 0, x_119);
lean::cnstr_set(x_121, 1, x_110);
x_122 = lean::mk_string("infixl");
x_123 = lean_name_mk_string(x_0, x_122);
lean::inc(x_110);
x_125 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_125, 0, x_123);
lean::cnstr_set(x_125, 1, x_110);
x_126 = lean::mk_string("infixr");
x_127 = lean_name_mk_string(x_0, x_126);
lean::inc(x_110);
x_129 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_129, 0, x_127);
lean::cnstr_set(x_129, 1, x_110);
x_130 = lean::mk_string("postfix");
x_131 = lean_name_mk_string(x_0, x_130);
x_132 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_132, 0, x_131);
lean::cnstr_set(x_132, 1, x_110);
x_133 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_reserve__mixfix_parser), 5, 0);
x_134 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_term__parser_run), 5, 1);
lean::closure_set(x_134, 0, x_133);
x_135 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_135, 0, x_104);
lean::cnstr_set(x_135, 1, x_134);
x_136 = lean::mk_string("#check");
x_137 = lean_name_mk_string(x_0, x_136);
x_138 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_check_parser), 4, 0);
x_139 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_139, 0, x_137);
lean::cnstr_set(x_139, 1, x_138);
x_140 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_attribute_parser), 4, 0);
lean::inc(x_140);
x_142 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_142, 0, x_94);
lean::cnstr_set(x_142, 1, x_140);
x_143 = lean::mk_string("attribute");
x_144 = lean_name_mk_string(x_0, x_143);
x_145 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_145, 0, x_144);
lean::cnstr_set(x_145, 1, x_140);
x_146 = lean::mk_string("export");
x_147 = lean_name_mk_string(x_0, x_146);
x_148 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_export_parser), 4, 0);
x_149 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_149, 0, x_147);
lean::cnstr_set(x_149, 1, x_148);
x_150 = lean::mk_string("include");
x_151 = lean_name_mk_string(x_0, x_150);
x_152 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_include_parser), 4, 0);
x_153 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_153, 0, x_151);
lean::cnstr_set(x_153, 1, x_152);
x_154 = lean::mk_string("omit");
x_155 = lean_name_mk_string(x_0, x_154);
x_156 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_omit_parser), 4, 0);
x_157 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_157, 0, x_155);
lean::cnstr_set(x_157, 1, x_156);
x_158 = lean::mk_string("init_quot");
x_159 = lean_name_mk_string(x_0, x_158);
x_160 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_init__quot_parser), 4, 0);
x_161 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_161, 0, x_159);
lean::cnstr_set(x_161, 1, x_160);
x_162 = lean::mk_string("set_option");
x_163 = lean_name_mk_string(x_0, x_162);
x_164 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command_set__option_parser), 4, 0);
x_165 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_165, 0, x_163);
lean::cnstr_set(x_165, 1, x_164);
x_166 = lean::box(0);
x_167 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_167, 0, x_165);
lean::cnstr_set(x_167, 1, x_166);
x_168 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_168, 0, x_161);
lean::cnstr_set(x_168, 1, x_167);
x_169 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_169, 0, x_157);
lean::cnstr_set(x_169, 1, x_168);
x_170 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_170, 0, x_153);
lean::cnstr_set(x_170, 1, x_169);
x_171 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_171, 0, x_149);
lean::cnstr_set(x_171, 1, x_170);
x_172 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_172, 0, x_145);
lean::cnstr_set(x_172, 1, x_171);
x_173 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_173, 0, x_142);
lean::cnstr_set(x_173, 1, x_172);
x_174 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_174, 0, x_139);
lean::cnstr_set(x_174, 1, x_173);
x_175 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_175, 0, x_135);
lean::cnstr_set(x_175, 1, x_174);
x_176 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_176, 0, x_132);
lean::cnstr_set(x_176, 1, x_175);
x_177 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_177, 0, x_129);
lean::cnstr_set(x_177, 1, x_176);
x_178 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_178, 0, x_125);
lean::cnstr_set(x_178, 1, x_177);
x_179 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_179, 0, x_121);
lean::cnstr_set(x_179, 1, x_178);
x_180 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_180, 0, x_117);
lean::cnstr_set(x_180, 1, x_179);
x_181 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_181, 0, x_113);
lean::cnstr_set(x_181, 1, x_180);
x_182 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_182, 0, x_108);
lean::cnstr_set(x_182, 1, x_181);
x_183 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_183, 0, x_102);
lean::cnstr_set(x_183, 1, x_182);
x_184 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_184, 0, x_99);
lean::cnstr_set(x_184, 1, x_183);
x_185 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_185, 0, x_92);
lean::cnstr_set(x_185, 1, x_184);
x_186 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_186, 0, x_89);
lean::cnstr_set(x_186, 1, x_185);
x_187 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_187, 0, x_84);
lean::cnstr_set(x_187, 1, x_186);
x_188 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_188, 0, x_80);
lean::cnstr_set(x_188, 1, x_187);
x_189 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_189, 0, x_76);
lean::cnstr_set(x_189, 1, x_188);
x_190 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_190, 0, x_72);
lean::cnstr_set(x_190, 1, x_189);
x_191 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_191, 0, x_68);
lean::cnstr_set(x_191, 1, x_190);
x_192 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_192, 0, x_64);
lean::cnstr_set(x_192, 1, x_191);
x_193 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_193, 0, x_60);
lean::cnstr_set(x_193, 1, x_192);
x_194 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_194, 0, x_57);
lean::cnstr_set(x_194, 1, x_193);
x_195 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_195, 0, x_53);
lean::cnstr_set(x_195, 1, x_194);
x_196 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_196, 0, x_49);
lean::cnstr_set(x_196, 1, x_195);
x_197 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_197, 0, x_45);
lean::cnstr_set(x_197, 1, x_196);
x_198 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_198, 0, x_41);
lean::cnstr_set(x_198, 1, x_197);
x_199 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_199, 0, x_37);
lean::cnstr_set(x_199, 1, x_198);
x_200 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_200, 0, x_33);
lean::cnstr_set(x_200, 1, x_199);
x_201 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_201, 0, x_29);
lean::cnstr_set(x_201, 1, x_200);
x_202 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_202, 0, x_25);
lean::cnstr_set(x_202, 1, x_201);
x_203 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_203, 0, x_21);
lean::cnstr_set(x_203, 1, x_202);
x_204 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_204, 0, x_17);
lean::cnstr_set(x_204, 1, x_203);
x_205 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_205, 0, x_13);
lean::cnstr_set(x_205, 1, x_204);
x_206 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_206, 0, x_9);
lean::cnstr_set(x_206, 1, x_205);
x_207 = lean::alloc_cnstr(1, 2, 0);
lean::cnstr_set(x_207, 0, x_5);
lean::cnstr_set(x_207, 1, x_206);
x_208 = l_lean_parser_token__map_of__list___main___rarg(x_207);
return x_208;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___rarg(obj* x_0, obj* x_1) {
_start:
{
obj* x_2; obj* x_3;
x_2 = lean::box(0);
x_3 = l_rbnode_find___main___at_lean_name__map_contains___spec__2(x_2, lean::box(0), lean::box(0), x_0, x_1);
return x_3;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___rarg___boxed), 2, 0);
return x_1;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___rarg(obj* x_0, obj* x_1) {
_start:
{
obj* x_2; obj* x_3;
x_2 = lean::box(0);
x_3 = l_rbnode_find___main___at_lean_name__map_contains___spec__2(x_2, lean::box(0), lean::box(0), x_0, x_1);
return x_3;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___rarg___boxed), 2, 0);
return x_1;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___rarg(obj* x_0, obj* x_1) {
_start:
{
obj* x_2; obj* x_3;
x_2 = lean::box(0);
x_3 = l_rbnode_find___main___at_lean_name__map_contains___spec__2(x_2, lean::box(0), lean::box(0), x_0, x_1);
return x_3;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___rarg___boxed), 2, 0);
return x_1;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___rarg(obj* x_0, obj* x_1) {
_start:
{
obj* x_2; obj* x_3;
x_2 = lean::box(0);
x_3 = l_rbnode_find___main___at_lean_name__map_contains___spec__2(x_2, lean::box(0), lean::box(0), x_0, x_1);
return x_3;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___rarg___boxed), 2, 0);
return x_1;
}
}
obj* l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___rarg(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
obj* x_5; obj* x_9; obj* x_10;
x_5 = lean::cnstr_get(x_1, 0);
lean::inc(x_5);
lean::dec(x_1);
lean::inc(x_5);
x_9 = l_lean_parser_monad__parsec_observing___at_lean_parser_peek__token___spec__2___rarg(x_5, x_3, x_4);
x_10 = lean::cnstr_get(x_9, 0);
lean::inc(x_10);
if (lean::obj_tag(x_10) == 0)
{
obj* x_12;
x_12 = lean::cnstr_get(x_10, 0);
lean::inc(x_12);
if (lean::obj_tag(x_12) == 0)
{
obj* x_16; obj* x_19; obj* x_21; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_30; obj* x_32; obj* x_34; obj* x_35; obj* x_36;
lean::dec(x_0);
lean::dec(x_12);
x_16 = lean::cnstr_get(x_9, 1);
lean::inc(x_16);
lean::dec(x_9);
x_19 = lean::cnstr_get(x_10, 1);
lean::inc(x_19);
x_21 = lean::cnstr_get(x_10, 2);
lean::inc(x_21);
lean::dec(x_10);
x_24 = lean::box(0);
x_25 = l_string_join___closed__1;
x_26 = l_mjoin___rarg___closed__1;
x_27 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__1___rarg(x_25, x_26, x_24, x_24, x_5, x_19, x_16);
lean::dec(x_19);
lean::dec(x_5);
x_30 = lean::cnstr_get(x_27, 0);
x_32 = lean::cnstr_get(x_27, 1);
if (lean::is_exclusive(x_27)) {
x_34 = x_27;
} else {
lean::inc(x_30);
lean::inc(x_32);
lean::dec(x_27);
x_34 = lean::box(0);
}
x_35 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_21, x_30);
if (lean::is_scalar(x_34)) {
x_36 = lean::alloc_cnstr(0, 2, 0);
} else {
x_36 = x_34;
}
lean::cnstr_set(x_36, 0, x_35);
lean::cnstr_set(x_36, 1, x_32);
return x_36;
}
else
{
obj* x_37;
x_37 = lean::cnstr_get(x_12, 0);
lean::inc(x_37);
lean::dec(x_12);
switch (lean::obj_tag(x_37)) {
case 0:
{
obj* x_40; obj* x_43; obj* x_46; obj* x_48; obj* x_51; obj* x_54; obj* x_55; obj* x_56; obj* x_58; obj* x_60; obj* x_62; obj* x_64; obj* x_65; obj* x_66; obj* x_67; obj* x_68;
x_40 = lean::cnstr_get(x_37, 0);
lean::inc(x_40);
lean::dec(x_37);
x_43 = lean::cnstr_get(x_9, 1);
lean::inc(x_43);
lean::dec(x_9);
x_46 = lean::cnstr_get(x_10, 1);
lean::inc(x_46);
x_48 = lean::cnstr_get(x_10, 2);
lean::inc(x_48);
lean::dec(x_10);
x_51 = lean::cnstr_get(x_40, 1);
lean::inc(x_51);
lean::dec(x_40);
x_54 = lean::box(0);
x_55 = lean_name_mk_string(x_54, x_51);
x_56 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___rarg(x_0, x_55);
lean::dec(x_55);
x_58 = l_option_to__monad___main___at_lean_parser_indexed___spec__2___rarg(x_56, x_5, x_46, x_43);
lean::dec(x_5);
x_60 = lean::cnstr_get(x_58, 0);
x_62 = lean::cnstr_get(x_58, 1);
if (lean::is_exclusive(x_58)) {
x_64 = x_58;
} else {
lean::inc(x_60);
lean::inc(x_62);
lean::dec(x_58);
x_64 = lean::box(0);
}
x_65 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_66 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_65, x_60);
x_67 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_48, x_66);
if (lean::is_scalar(x_64)) {
x_68 = lean::alloc_cnstr(0, 2, 0);
} else {
x_68 = x_64;
}
lean::cnstr_set(x_68, 0, x_67);
lean::cnstr_set(x_68, 1, x_62);
return x_68;
}
case 1:
{
obj* x_70; obj* x_73; obj* x_75; obj* x_78; obj* x_79; obj* x_80; obj* x_82; obj* x_84; obj* x_86; obj* x_87; obj* x_88; obj* x_89; obj* x_90;
lean::dec(x_37);
x_70 = lean::cnstr_get(x_9, 1);
lean::inc(x_70);
lean::dec(x_9);
x_73 = lean::cnstr_get(x_10, 1);
lean::inc(x_73);
x_75 = lean::cnstr_get(x_10, 2);
lean::inc(x_75);
lean::dec(x_10);
x_78 = l_lean_parser_indexed___rarg___lambda__1___closed__1;
x_79 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___rarg(x_0, x_78);
x_80 = l_option_to__monad___main___at_lean_parser_indexed___spec__2___rarg(x_79, x_5, x_73, x_70);
lean::dec(x_5);
x_82 = lean::cnstr_get(x_80, 0);
x_84 = lean::cnstr_get(x_80, 1);
if (lean::is_exclusive(x_80)) {
x_86 = x_80;
} else {
lean::inc(x_82);
lean::inc(x_84);
lean::dec(x_80);
x_86 = lean::box(0);
}
x_87 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_88 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_87, x_82);
x_89 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_75, x_88);
if (lean::is_scalar(x_86)) {
x_90 = lean::alloc_cnstr(0, 2, 0);
} else {
x_90 = x_86;
}
lean::cnstr_set(x_90, 0, x_89);
lean::cnstr_set(x_90, 1, x_84);
return x_90;
}
case 2:
{
obj* x_91; obj* x_94; obj* x_96; obj* x_99; obj* x_102; obj* x_105; obj* x_107; obj* x_109; obj* x_111; obj* x_113; obj* x_114; obj* x_115; obj* x_116; obj* x_117;
x_91 = lean::cnstr_get(x_9, 1);
lean::inc(x_91);
lean::dec(x_9);
x_94 = lean::cnstr_get(x_10, 1);
lean::inc(x_94);
x_96 = lean::cnstr_get(x_10, 2);
lean::inc(x_96);
lean::dec(x_10);
x_99 = lean::cnstr_get(x_37, 0);
lean::inc(x_99);
lean::dec(x_37);
x_102 = lean::cnstr_get(x_99, 0);
lean::inc(x_102);
lean::dec(x_99);
x_105 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___rarg(x_0, x_102);
lean::dec(x_102);
x_107 = l_option_to__monad___main___at_lean_parser_indexed___spec__2___rarg(x_105, x_5, x_94, x_91);
lean::dec(x_5);
x_109 = lean::cnstr_get(x_107, 0);
x_111 = lean::cnstr_get(x_107, 1);
if (lean::is_exclusive(x_107)) {
x_113 = x_107;
} else {
lean::inc(x_109);
lean::inc(x_111);
lean::dec(x_107);
x_113 = lean::box(0);
}
x_114 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_115 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_114, x_109);
x_116 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_96, x_115);
if (lean::is_scalar(x_113)) {
x_117 = lean::alloc_cnstr(0, 2, 0);
} else {
x_117 = x_113;
}
lean::cnstr_set(x_117, 0, x_116);
lean::cnstr_set(x_117, 1, x_111);
return x_117;
}
default:
{
obj* x_118; obj* x_121; obj* x_123; obj* x_126; obj* x_127; obj* x_128; obj* x_129; obj* x_131;
x_118 = lean::cnstr_get(x_9, 1);
lean::inc(x_118);
lean::dec(x_9);
x_121 = lean::cnstr_get(x_10, 1);
lean::inc(x_121);
x_123 = lean::cnstr_get(x_10, 2);
lean::inc(x_123);
lean::dec(x_10);
x_126 = lean::box(0);
x_127 = l_string_join___closed__1;
x_128 = l_mjoin___rarg___closed__1;
x_129 = l_lean_parser_monad__parsec_error___at___private_init_lean_parser_token_1__finish__comment__block__aux___main___spec__1___rarg(x_127, x_128, x_126, x_126, x_5, x_121, x_118);
lean::dec(x_121);
x_131 = lean::cnstr_get(x_129, 0);
lean::inc(x_131);
if (lean::obj_tag(x_131) == 0)
{
obj* x_133; obj* x_136; obj* x_138; obj* x_140; obj* x_143; obj* x_145; obj* x_147; obj* x_149; obj* x_151; obj* x_152; obj* x_153; obj* x_154;
x_133 = lean::cnstr_get(x_129, 1);
lean::inc(x_133);
lean::dec(x_129);
x_136 = lean::cnstr_get(x_131, 0);
lean::inc(x_136);
x_138 = lean::cnstr_get(x_131, 1);
lean::inc(x_138);
x_140 = lean::cnstr_get(x_131, 2);
lean::inc(x_140);
lean::dec(x_131);
x_143 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___rarg(x_0, x_136);
lean::dec(x_136);
x_145 = l_option_to__monad___main___at_lean_parser_indexed___spec__2___rarg(x_143, x_5, x_138, x_133);
lean::dec(x_5);
x_147 = lean::cnstr_get(x_145, 0);
x_149 = lean::cnstr_get(x_145, 1);
if (lean::is_exclusive(x_145)) {
x_151 = x_145;
} else {
lean::inc(x_147);
lean::inc(x_149);
lean::dec(x_145);
x_151 = lean::box(0);
}
x_152 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_140, x_147);
x_153 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_123, x_152);
if (lean::is_scalar(x_151)) {
x_154 = lean::alloc_cnstr(0, 2, 0);
} else {
x_154 = x_151;
}
lean::cnstr_set(x_154, 0, x_153);
lean::cnstr_set(x_154, 1, x_149);
return x_154;
}
else
{
obj* x_157; obj* x_159; obj* x_160; uint8 x_162; obj* x_163; obj* x_164; obj* x_165; obj* x_166; obj* x_167;
lean::dec(x_5);
lean::dec(x_0);
x_157 = lean::cnstr_get(x_129, 1);
if (lean::is_exclusive(x_129)) {
lean::cnstr_release(x_129, 0);
x_159 = x_129;
} else {
lean::inc(x_157);
lean::dec(x_129);
x_159 = lean::box(0);
}
x_160 = lean::cnstr_get(x_131, 0);
x_162 = lean::cnstr_get_scalar<uint8>(x_131, sizeof(void*)*1);
if (lean::is_exclusive(x_131)) {
x_163 = x_131;
} else {
lean::inc(x_160);
lean::dec(x_131);
x_163 = lean::box(0);
}
if (lean::is_scalar(x_163)) {
x_164 = lean::alloc_cnstr(1, 1, 1);
} else {
x_164 = x_163;
}
lean::cnstr_set(x_164, 0, x_160);
lean::cnstr_set_scalar(x_164, sizeof(void*)*1, x_162);
x_165 = x_164;
x_166 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_123, x_165);
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_166);
lean::cnstr_set(x_167, 1, x_157);
return x_167;
}
}
}
}
}
else
{
obj* x_170; obj* x_172; obj* x_173; uint8 x_175; obj* x_176; obj* x_177; obj* x_178; obj* x_179;
lean::dec(x_5);
lean::dec(x_0);
x_170 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
lean::cnstr_release(x_9, 0);
x_172 = x_9;
} else {
lean::inc(x_170);
lean::dec(x_9);
x_172 = lean::box(0);
}
x_173 = lean::cnstr_get(x_10, 0);
x_175 = lean::cnstr_get_scalar<uint8>(x_10, sizeof(void*)*1);
if (lean::is_exclusive(x_10)) {
x_176 = x_10;
} else {
lean::inc(x_173);
lean::dec(x_10);
x_176 = lean::box(0);
}
if (lean::is_scalar(x_176)) {
x_177 = lean::alloc_cnstr(1, 1, 1);
} else {
x_177 = x_176;
}
lean::cnstr_set(x_177, 0, x_173);
lean::cnstr_set_scalar(x_177, sizeof(void*)*1, x_175);
x_178 = x_177;
if (lean::is_scalar(x_172)) {
x_179 = lean::alloc_cnstr(0, 2, 0);
} else {
x_179 = x_172;
}
lean::cnstr_set(x_179, 0, x_178);
lean::cnstr_set(x_179, 1, x_170);
return x_179;
}
}
}
obj* l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___rarg___boxed), 5, 0);
return x_1;
}
}
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___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; uint8 x_8; obj* x_9; obj* x_10; obj* x_11;
x_6 = l_option_get__or__else___main___rarg(x_2, x_4);
x_7 = lean::alloc_cnstr(0, 4, 0);
lean::cnstr_set(x_7, 0, x_6);
lean::cnstr_set(x_7, 1, x_0);
lean::cnstr_set(x_7, 2, x_1);
lean::cnstr_set(x_7, 3, x_3);
x_8 = 0;
x_9 = lean::alloc_cnstr(1, 1, 1);
lean::cnstr_set(x_9, 0, x_7);
lean::cnstr_set_scalar(x_9, sizeof(void*)*1, x_8);
x_10 = x_9;
x_11 = lean::alloc_cnstr(0, 2, 0);
lean::cnstr_set(x_11, 0, x_10);
lean::cnstr_set(x_11, 1, x_5);
return x_11;
}
}
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7(obj* x_0) {
_start:
{
obj* x_1;
x_1 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___rarg___boxed), 6, 0);
return x_1;
}
}
obj* l___private_init_lean_parser_rec_1__run__aux___at_lean_parser_command__parser_run___spec__9(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;
x_6 = l___private_init_lean_parser_rec_1__run__aux___main___rarg(x_0, x_1, x_2, x_3);
x_7 = lean::apply_2(x_6, x_4, x_5);
return x_7;
}
}
obj* l_lean_parser_rec__t_run___at_lean_parser_command__parser_run___spec__8(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;
x_6 = lean::alloc_closure(reinterpret_cast<void*>(l___private_init_lean_parser_rec_1__run__aux___at_lean_parser_command__parser_run___spec__9___boxed), 6, 3);
lean::closure_set(x_6, 0, x_1);
lean::closure_set(x_6, 1, x_2);
lean::closure_set(x_6, 2, x_3);
x_7 = lean::apply_3(x_0, x_6, x_4, x_5);
return x_7;
}
}
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___lambda__1(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3; obj* x_4; obj* x_5; obj* x_6;
x_3 = lean::box(0);
x_4 = l_lean_parser_rec__t_run__parsec___rarg___lambda__1___closed__1;
x_5 = l_mjoin___rarg___closed__1;
x_6 = l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___rarg(x_4, x_5, x_3, x_3, x_1, x_2);
return x_6;
}
}
obj* _init_l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___closed__1() {
_start:
{
obj* x_0;
x_0 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___lambda__1___boxed), 3, 0);
return x_0;
}
}
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6(obj* x_0, obj* x_1, obj* x_2, obj* x_3) {
_start:
{
obj* x_4; obj* x_5; obj* x_6; obj* x_8; obj* x_9; obj* x_10; obj* x_12; obj* x_14; obj* x_15; obj* x_16; obj* x_17;
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 = l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___closed__1;
x_9 = l_lean_parser_rec__t_run___at_lean_parser_command__parser_run___spec__8(x_0, x_8, x_1, x_6, x_2, x_3);
x_10 = lean::cnstr_get(x_9, 0);
x_12 = lean::cnstr_get(x_9, 1);
if (lean::is_exclusive(x_9)) {
x_14 = x_9;
} else {
lean::inc(x_10);
lean::inc(x_12);
lean::dec(x_9);
x_14 = lean::box(0);
}
x_15 = l_lean_parser_parsec_result_mk__eps___rarg___closed__1;
x_16 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_15, x_10);
if (lean::is_scalar(x_14)) {
x_17 = lean::alloc_cnstr(0, 2, 0);
} else {
x_17 = x_14;
}
lean::cnstr_set(x_17, 0, x_16);
lean::cnstr_set(x_17, 1, x_12);
return x_17;
}
}
obj* l_lean_parser_command__parser_run___lambda__1(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) {
_start:
{
obj* x_7; obj* x_8;
lean::inc(x_1);
x_7 = l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___rarg(x_0, x_1, x_3, x_4, x_5);
x_8 = lean::cnstr_get(x_7, 0);
lean::inc(x_8);
if (lean::obj_tag(x_8) == 0)
{
obj* x_10; obj* x_13; obj* x_15; obj* x_17; obj* x_20; obj* x_21; obj* x_23; obj* x_25; obj* x_26; obj* x_27;
x_10 = lean::cnstr_get(x_7, 1);
lean::inc(x_10);
lean::dec(x_7);
x_13 = lean::cnstr_get(x_8, 0);
lean::inc(x_13);
x_15 = lean::cnstr_get(x_8, 1);
lean::inc(x_15);
x_17 = lean::cnstr_get(x_8, 2);
lean::inc(x_17);
lean::dec(x_8);
x_20 = l_lean_parser_combinators_any__of___at_lean_parser_command_universe_parser___spec__1(x_13, x_1, x_3, x_15, x_10);
x_21 = lean::cnstr_get(x_20, 0);
x_23 = lean::cnstr_get(x_20, 1);
if (lean::is_exclusive(x_20)) {
x_25 = x_20;
} else {
lean::inc(x_21);
lean::inc(x_23);
lean::dec(x_20);
x_25 = lean::box(0);
}
x_26 = l_lean_parser_parsec__t_bind__mk__res___rarg(x_17, x_21);
if (lean::is_scalar(x_25)) {
x_27 = lean::alloc_cnstr(0, 2, 0);
} else {
x_27 = x_25;
}
lean::cnstr_set(x_27, 0, x_26);
lean::cnstr_set(x_27, 1, x_23);
return x_27;
}
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;
lean::dec(x_1);
lean::dec(x_3);
x_30 = lean::cnstr_get(x_7, 1);
if (lean::is_exclusive(x_7)) {
lean::cnstr_release(x_7, 0);
x_32 = x_7;
} else {
lean::inc(x_30);
lean::dec(x_7);
x_32 = lean::box(0);
}
x_33 = lean::cnstr_get(x_8, 0);
x_35 = lean::cnstr_get_scalar<uint8>(x_8, sizeof(void*)*1);
if (lean::is_exclusive(x_8)) {
x_36 = x_8;
} else {
lean::inc(x_33);
lean::dec(x_8);
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);
return x_39;
}
}
}
obj* l_lean_parser_command__parser_run(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
obj* x_6; obj* x_7; obj* x_8;
lean::inc(x_2);
x_6 = lean::apply_1(x_1, x_2);
x_7 = lean::alloc_closure(reinterpret_cast<void*>(l_lean_parser_command__parser_run___lambda__1___boxed), 6, 2);
lean::closure_set(x_7, 0, x_0);
lean::closure_set(x_7, 1, x_2);
x_8 = l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6(x_6, x_7, x_3, x_4);
return x_8;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___rarg___boxed(obj* x_0, obj* x_1) {
_start:
{
obj* x_2;
x_2 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___rarg(x_0, x_1);
lean::dec(x_1);
return x_2;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__2(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___rarg___boxed(obj* x_0, obj* x_1) {
_start:
{
obj* x_2;
x_2 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___rarg(x_0, x_1);
lean::dec(x_1);
return x_2;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__3(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___rarg___boxed(obj* x_0, obj* x_1) {
_start:
{
obj* x_2;
x_2 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___rarg(x_0, x_1);
lean::dec(x_1);
return x_2;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__4(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___rarg___boxed(obj* x_0, obj* x_1) {
_start:
{
obj* x_2;
x_2 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___rarg(x_0, x_1);
lean::dec(x_1);
return x_2;
}
}
obj* l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_rbmap_find___main___at_lean_parser_command__parser_run___spec__5(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___rarg___boxed(obj* x_0, obj* x_1, obj* x_2, obj* x_3, obj* x_4) {
_start:
{
obj* x_5;
x_5 = l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___rarg(x_0, x_1, x_2, x_3, x_4);
lean::dec(x_2);
return x_5;
}
}
obj* l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_indexed___at_lean_parser_command__parser_run___spec__1(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___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_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___rarg(x_0, x_1, x_2, x_3, x_4, x_5);
lean::dec(x_2);
lean::dec(x_4);
return x_6;
}
}
obj* l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7___boxed(obj* x_0) {
_start:
{
obj* x_1;
x_1 = l_lean_parser_monad__parsec_error___at_lean_parser_command__parser_run___spec__7(x_0);
lean::dec(x_0);
return x_1;
}
}
obj* l___private_init_lean_parser_rec_1__run__aux___at_lean_parser_command__parser_run___spec__9___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___private_init_lean_parser_rec_1__run__aux___at_lean_parser_command__parser_run___spec__9(x_0, x_1, x_2, x_3, x_4, x_5);
lean::dec(x_2);
return x_6;
}
}
obj* l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___lambda__1___boxed(obj* x_0, obj* x_1, obj* x_2) {
_start:
{
obj* x_3;
x_3 = l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___lambda__1(x_0, x_1, x_2);
lean::dec(x_0);
lean::dec(x_1);
return x_3;
}
}
obj* l_lean_parser_command__parser_run___lambda__1___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_command__parser_run___lambda__1(x_0, x_1, x_2, x_3, x_4, x_5);
lean::dec(x_2);
return x_6;
}
}
void initialize_init_lean_parser_declaration();
static bool _G_initialized = false;
void initialize_init_lean_parser_command() {
if (_G_initialized) return;
_G_initialized = true;
initialize_init_lean_parser_declaration();
l_lean_parser_command_parser_lean_parser_has__view = _init_l_lean_parser_command_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_command_parser_lean_parser_has__view);
l_lean_parser_command_parser_lean_parser_has__tokens = _init_l_lean_parser_command_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_parser_lean_parser_has__tokens);
l_lean_parser_command_parser___rarg___closed__1 = _init_l_lean_parser_command_parser___rarg___closed__1();
lean::mark_persistent(l_lean_parser_command_parser___rarg___closed__1);
l_lean_parser_command_open__spec_as = _init_l_lean_parser_command_open__spec_as();
lean::mark_persistent(l_lean_parser_command_open__spec_as);
l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_open__spec_as_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_open__spec_as_has__view_x_27 = _init_l_lean_parser_command_open__spec_as_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_open__spec_as_has__view_x_27);
l_lean_parser_command_open__spec_as_has__view = _init_l_lean_parser_command_open__spec_as_has__view();
lean::mark_persistent(l_lean_parser_command_open__spec_as_has__view);
l_lean_parser_command_open__spec_only = _init_l_lean_parser_command_open__spec_only();
lean::mark_persistent(l_lean_parser_command_open__spec_only);
l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_open__spec_only_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_open__spec_only_has__view_x_27 = _init_l_lean_parser_command_open__spec_only_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_open__spec_only_has__view_x_27);
l_lean_parser_command_open__spec_only_has__view = _init_l_lean_parser_command_open__spec_only_has__view();
lean::mark_persistent(l_lean_parser_command_open__spec_only_has__view);
l_lean_parser_command_open__spec_renaming_item = _init_l_lean_parser_command_open__spec_renaming_item();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_item);
l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_item_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_open__spec_renaming_item_has__view_x_27 = _init_l_lean_parser_command_open__spec_renaming_item_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_item_has__view_x_27);
l_lean_parser_command_open__spec_renaming_item_has__view = _init_l_lean_parser_command_open__spec_renaming_item_has__view();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_item_has__view);
l_lean_parser_command_open__spec_renaming = _init_l_lean_parser_command_open__spec_renaming();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming);
l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__2);
l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__3 = _init_l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__3();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__1___closed__3);
l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2___closed__1 = _init_l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2___closed__1();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_has__view_x_27___lambda__2___closed__1);
l_lean_parser_command_open__spec_renaming_has__view_x_27 = _init_l_lean_parser_command_open__spec_renaming_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_has__view_x_27);
l_lean_parser_command_open__spec_renaming_has__view = _init_l_lean_parser_command_open__spec_renaming_has__view();
lean::mark_persistent(l_lean_parser_command_open__spec_renaming_has__view);
l_lean_parser_command_open__spec_hiding = _init_l_lean_parser_command_open__spec_hiding();
lean::mark_persistent(l_lean_parser_command_open__spec_hiding);
l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_open__spec_hiding_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_open__spec_hiding_has__view_x_27 = _init_l_lean_parser_command_open__spec_hiding_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_open__spec_hiding_has__view_x_27);
l_lean_parser_command_open__spec_hiding_has__view = _init_l_lean_parser_command_open__spec_hiding_has__view();
lean::mark_persistent(l_lean_parser_command_open__spec_hiding_has__view);
l_lean_parser_command_open__spec = _init_l_lean_parser_command_open__spec();
lean::mark_persistent(l_lean_parser_command_open__spec);
l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__2);
l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3 = _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3();
lean::mark_persistent(l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__3);
l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4 = _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4();
lean::mark_persistent(l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__4);
l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__5 = _init_l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__5();
lean::mark_persistent(l_lean_parser_command_open__spec_has__view_x_27___lambda__1___closed__5);
l_lean_parser_command_open__spec_has__view_x_27 = _init_l_lean_parser_command_open__spec_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_open__spec_has__view_x_27);
l_lean_parser_command_open__spec_has__view = _init_l_lean_parser_command_open__spec_has__view();
lean::mark_persistent(l_lean_parser_command_open__spec_has__view);
l_lean_parser_command_open__spec_parser_lean_parser_has__view = _init_l_lean_parser_command_open__spec_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_command_open__spec_parser_lean_parser_has__view);
l_lean_parser_command_open__spec_parser_lean_parser_has__tokens = _init_l_lean_parser_command_open__spec_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_open__spec_parser_lean_parser_has__tokens);
l_lean_parser_command_open__spec_parser___closed__1 = _init_l_lean_parser_command_open__spec_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_open__spec_parser___closed__1);
l_lean_parser_command_open = _init_l_lean_parser_command_open();
lean::mark_persistent(l_lean_parser_command_open);
l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_open_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_command_open_has__view_x_27___lambda__1___closed__2);
l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3 = _init_l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3();
lean::mark_persistent(l_lean_parser_command_open_has__view_x_27___lambda__1___closed__3);
l_lean_parser_command_open_has__view_x_27___lambda__2___closed__1 = _init_l_lean_parser_command_open_has__view_x_27___lambda__2___closed__1();
lean::mark_persistent(l_lean_parser_command_open_has__view_x_27___lambda__2___closed__1);
l_lean_parser_command_open_has__view_x_27 = _init_l_lean_parser_command_open_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_open_has__view_x_27);
l_lean_parser_command_open_has__view = _init_l_lean_parser_command_open_has__view();
lean::mark_persistent(l_lean_parser_command_open_has__view);
l_lean_parser_command_open_parser_lean_parser_has__tokens = _init_l_lean_parser_command_open_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_open_parser_lean_parser_has__tokens);
l_lean_parser_command_open_parser___closed__1 = _init_l_lean_parser_command_open_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_open_parser___closed__1);
l_lean_parser_command_export = _init_l_lean_parser_command_export();
lean::mark_persistent(l_lean_parser_command_export);
l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_export_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_export_has__view_x_27 = _init_l_lean_parser_command_export_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_export_has__view_x_27);
l_lean_parser_command_export_has__view = _init_l_lean_parser_command_export_has__view();
lean::mark_persistent(l_lean_parser_command_export_has__view);
l_lean_parser_command_export_parser_lean_parser_has__tokens = _init_l_lean_parser_command_export_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_export_parser_lean_parser_has__tokens);
l_lean_parser_command_export_parser___closed__1 = _init_l_lean_parser_command_export_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_export_parser___closed__1);
l_lean_parser_command_section = _init_l_lean_parser_command_section();
lean::mark_persistent(l_lean_parser_command_section);
l_lean_parser_command_section_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_section_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_section_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_section_has__view_x_27___lambda__2___closed__1 = _init_l_lean_parser_command_section_has__view_x_27___lambda__2___closed__1();
lean::mark_persistent(l_lean_parser_command_section_has__view_x_27___lambda__2___closed__1);
l_lean_parser_command_section_has__view_x_27 = _init_l_lean_parser_command_section_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_section_has__view_x_27);
l_lean_parser_command_section_has__view = _init_l_lean_parser_command_section_has__view();
lean::mark_persistent(l_lean_parser_command_section_has__view);
l_lean_parser_command_section_parser_lean_parser_has__tokens = _init_l_lean_parser_command_section_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_section_parser_lean_parser_has__tokens);
l_lean_parser_command_section_parser___closed__1 = _init_l_lean_parser_command_section_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_section_parser___closed__1);
l_lean_parser_command_namespace = _init_l_lean_parser_command_namespace();
lean::mark_persistent(l_lean_parser_command_namespace);
l_lean_parser_command_namespace_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_namespace_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_namespace_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_namespace_has__view_x_27 = _init_l_lean_parser_command_namespace_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_namespace_has__view_x_27);
l_lean_parser_command_namespace_has__view = _init_l_lean_parser_command_namespace_has__view();
lean::mark_persistent(l_lean_parser_command_namespace_has__view);
l_lean_parser_command_namespace_parser_lean_parser_has__tokens = _init_l_lean_parser_command_namespace_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_namespace_parser_lean_parser_has__tokens);
l_lean_parser_command_namespace_parser___closed__1 = _init_l_lean_parser_command_namespace_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_namespace_parser___closed__1);
l_lean_parser_command_variable = _init_l_lean_parser_command_variable();
lean::mark_persistent(l_lean_parser_command_variable);
l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__2);
l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__3 = _init_l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__3();
lean::mark_persistent(l_lean_parser_command_variable_has__view_x_27___lambda__1___closed__3);
l_lean_parser_command_variable_has__view_x_27 = _init_l_lean_parser_command_variable_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_variable_has__view_x_27);
l_lean_parser_command_variable_has__view = _init_l_lean_parser_command_variable_has__view();
lean::mark_persistent(l_lean_parser_command_variable_has__view);
l_lean_parser_command_variable_parser_lean_parser_has__tokens = _init_l_lean_parser_command_variable_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_variable_parser_lean_parser_has__tokens);
l_lean_parser_command_variable_parser___closed__1 = _init_l_lean_parser_command_variable_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_variable_parser___closed__1);
l_lean_parser_command_variables = _init_l_lean_parser_command_variables();
lean::mark_persistent(l_lean_parser_command_variables);
l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_command_variables_has__view_x_27___lambda__1___closed__2);
l_lean_parser_command_variables_has__view_x_27 = _init_l_lean_parser_command_variables_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_variables_has__view_x_27);
l_lean_parser_command_variables_has__view = _init_l_lean_parser_command_variables_has__view();
lean::mark_persistent(l_lean_parser_command_variables_has__view);
l_lean_parser_command_variables_parser_lean_parser_has__tokens = _init_l_lean_parser_command_variables_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_variables_parser_lean_parser_has__tokens);
l_lean_parser_command_variables_parser___closed__1 = _init_l_lean_parser_command_variables_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_variables_parser___closed__1);
l_lean_parser_command_include = _init_l_lean_parser_command_include();
lean::mark_persistent(l_lean_parser_command_include);
l_lean_parser_command_include_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_include_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_include_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_include_has__view_x_27 = _init_l_lean_parser_command_include_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_include_has__view_x_27);
l_lean_parser_command_include_has__view = _init_l_lean_parser_command_include_has__view();
lean::mark_persistent(l_lean_parser_command_include_has__view);
l_lean_parser_command_include_parser_lean_parser_has__tokens = _init_l_lean_parser_command_include_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_include_parser_lean_parser_has__tokens);
l_lean_parser_command_include_parser___closed__1 = _init_l_lean_parser_command_include_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_include_parser___closed__1);
l_lean_parser_command_omit = _init_l_lean_parser_command_omit();
lean::mark_persistent(l_lean_parser_command_omit);
l_lean_parser_command_omit_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_omit_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_omit_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_omit_has__view_x_27 = _init_l_lean_parser_command_omit_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_omit_has__view_x_27);
l_lean_parser_command_omit_has__view = _init_l_lean_parser_command_omit_has__view();
lean::mark_persistent(l_lean_parser_command_omit_has__view);
l_lean_parser_command_omit_parser_lean_parser_has__tokens = _init_l_lean_parser_command_omit_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_omit_parser_lean_parser_has__tokens);
l_lean_parser_command_omit_parser___closed__1 = _init_l_lean_parser_command_omit_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_omit_parser___closed__1);
l_lean_parser_command_end = _init_l_lean_parser_command_end();
lean::mark_persistent(l_lean_parser_command_end);
l_lean_parser_command_end_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_end_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_end_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_end_has__view_x_27___lambda__2___closed__1 = _init_l_lean_parser_command_end_has__view_x_27___lambda__2___closed__1();
lean::mark_persistent(l_lean_parser_command_end_has__view_x_27___lambda__2___closed__1);
l_lean_parser_command_end_has__view_x_27 = _init_l_lean_parser_command_end_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_end_has__view_x_27);
l_lean_parser_command_end_has__view = _init_l_lean_parser_command_end_has__view();
lean::mark_persistent(l_lean_parser_command_end_has__view);
l_lean_parser_command_end_parser_lean_parser_has__tokens = _init_l_lean_parser_command_end_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_end_parser_lean_parser_has__tokens);
l_lean_parser_command_end_parser___closed__1 = _init_l_lean_parser_command_end_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_end_parser___closed__1);
l_lean_parser_command_universes = _init_l_lean_parser_command_universes();
lean::mark_persistent(l_lean_parser_command_universes);
l_lean_parser_command_universes_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_universes_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_universes_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_universes_has__view_x_27 = _init_l_lean_parser_command_universes_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_universes_has__view_x_27);
l_lean_parser_command_universes_has__view = _init_l_lean_parser_command_universes_has__view();
lean::mark_persistent(l_lean_parser_command_universes_has__view);
l_lean_parser_command_universe = _init_l_lean_parser_command_universe();
lean::mark_persistent(l_lean_parser_command_universe);
l_lean_parser_command_universe_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_universe_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_universe_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_universe_has__view_x_27 = _init_l_lean_parser_command_universe_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_universe_has__view_x_27);
l_lean_parser_command_universe_has__view = _init_l_lean_parser_command_universe_has__view();
lean::mark_persistent(l_lean_parser_command_universe_has__view);
l_lean_parser_command_universe_parser_lean_parser_has__tokens = _init_l_lean_parser_command_universe_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_universe_parser_lean_parser_has__tokens);
l_lean_parser_command_universe_parser___closed__1 = _init_l_lean_parser_command_universe_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_universe_parser___closed__1);
l_lean_parser_command_check = _init_l_lean_parser_command_check();
lean::mark_persistent(l_lean_parser_command_check);
l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_check_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_check_has__view_x_27 = _init_l_lean_parser_command_check_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_check_has__view_x_27);
l_lean_parser_command_check_has__view = _init_l_lean_parser_command_check_has__view();
lean::mark_persistent(l_lean_parser_command_check_has__view);
l_lean_parser_command_check_parser_lean_parser_has__tokens = _init_l_lean_parser_command_check_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_check_parser_lean_parser_has__tokens);
l_lean_parser_command_check_parser_lean_parser_has__view = _init_l_lean_parser_command_check_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_command_check_parser_lean_parser_has__view);
l_lean_parser_command_check_parser___closed__1 = _init_l_lean_parser_command_check_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_check_parser___closed__1);
l_lean_parser_command_attribute = _init_l_lean_parser_command_attribute();
lean::mark_persistent(l_lean_parser_command_attribute);
l_lean_parser_command_attribute_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_attribute_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_attribute_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_attribute_has__view_x_27 = _init_l_lean_parser_command_attribute_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_attribute_has__view_x_27);
l_lean_parser_command_attribute_has__view = _init_l_lean_parser_command_attribute_has__view();
lean::mark_persistent(l_lean_parser_command_attribute_has__view);
l_lean_parser_command_attribute_parser_lean_parser_has__tokens = _init_l_lean_parser_command_attribute_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_attribute_parser_lean_parser_has__tokens);
l_lean_parser_command_attribute_parser_lean_parser_has__view = _init_l_lean_parser_command_attribute_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_command_attribute_parser_lean_parser_has__view);
l_lean_parser_command_attribute_parser___closed__1 = _init_l_lean_parser_command_attribute_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_attribute_parser___closed__1);
l_lean_parser_command_init__quot = _init_l_lean_parser_command_init__quot();
lean::mark_persistent(l_lean_parser_command_init__quot);
l_lean_parser_command_init__quot_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_init__quot_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_init__quot_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_init__quot_has__view_x_27 = _init_l_lean_parser_command_init__quot_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_init__quot_has__view_x_27);
l_lean_parser_command_init__quot_has__view = _init_l_lean_parser_command_init__quot_has__view();
lean::mark_persistent(l_lean_parser_command_init__quot_has__view);
l_lean_parser_command_init__quot_parser_lean_parser_has__tokens = _init_l_lean_parser_command_init__quot_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_init__quot_parser_lean_parser_has__tokens);
l_lean_parser_command_init__quot_parser_lean_parser_has__view = _init_l_lean_parser_command_init__quot_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_command_init__quot_parser_lean_parser_has__view);
l_lean_parser_command_init__quot_parser___closed__1 = _init_l_lean_parser_command_init__quot_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_init__quot_parser___closed__1);
l_lean_parser_command_bool__option__value = _init_l_lean_parser_command_bool__option__value();
lean::mark_persistent(l_lean_parser_command_bool__option__value);
l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_command_bool__option__value_has__view_x_27___lambda__1___closed__2);
l_lean_parser_command_bool__option__value_has__view_x_27 = _init_l_lean_parser_command_bool__option__value_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_bool__option__value_has__view_x_27);
l_lean_parser_command_bool__option__value_has__view = _init_l_lean_parser_command_bool__option__value_has__view();
lean::mark_persistent(l_lean_parser_command_bool__option__value_has__view);
l_lean_parser_command_option__value = _init_l_lean_parser_command_option__value();
lean::mark_persistent(l_lean_parser_command_option__value);
l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_command_option__value_has__view_x_27___lambda__1___closed__2);
l_lean_parser_command_option__value_has__view_x_27 = _init_l_lean_parser_command_option__value_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_option__value_has__view_x_27);
l_lean_parser_command_option__value_has__view = _init_l_lean_parser_command_option__value_has__view();
lean::mark_persistent(l_lean_parser_command_option__value_has__view);
l_lean_parser_command_set__option = _init_l_lean_parser_command_set__option();
lean::mark_persistent(l_lean_parser_command_set__option);
l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1 = _init_l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1();
lean::mark_persistent(l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__1);
l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__2 = _init_l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__2();
lean::mark_persistent(l_lean_parser_command_set__option_has__view_x_27___lambda__1___closed__2);
l_lean_parser_command_set__option_has__view_x_27 = _init_l_lean_parser_command_set__option_has__view_x_27();
lean::mark_persistent(l_lean_parser_command_set__option_has__view_x_27);
l_lean_parser_command_set__option_has__view = _init_l_lean_parser_command_set__option_has__view();
lean::mark_persistent(l_lean_parser_command_set__option_has__view);
l_lean_parser_command_set__option_parser_lean_parser_has__tokens = _init_l_lean_parser_command_set__option_parser_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_set__option_parser_lean_parser_has__tokens);
l_lean_parser_command_set__option_parser_lean_parser_has__view = _init_l_lean_parser_command_set__option_parser_lean_parser_has__view();
lean::mark_persistent(l_lean_parser_command_set__option_parser_lean_parser_has__view);
l_lean_parser_command_set__option_parser___closed__1 = _init_l_lean_parser_command_set__option_parser___closed__1();
lean::mark_persistent(l_lean_parser_command_set__option_parser___closed__1);
l_lean_parser_command_builtin__command__parsers_lean_parser_has__tokens = _init_l_lean_parser_command_builtin__command__parsers_lean_parser_has__tokens();
lean::mark_persistent(l_lean_parser_command_builtin__command__parsers_lean_parser_has__tokens);
l_lean_parser_command_builtin__command__parsers = _init_l_lean_parser_command_builtin__command__parsers();
lean::mark_persistent(l_lean_parser_command_builtin__command__parsers);
l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___closed__1 = _init_l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___closed__1();
lean::mark_persistent(l_lean_parser_rec__t_run__parsec___at_lean_parser_command__parser_run___spec__6___closed__1);
}