// Lean compiler output
// Module: Lean.Elab.Macro
// Imports: Init Lean.Elab.MacroArgUtil
#include <lean/lean.h>
#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
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__27;
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___boxed(lean_object**);
lean_object* l_Lean_Elab_Command_expandMacroArg(lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* l_Lean_Syntax_getHeadInfo_x3f(lean_object*);
extern lean_object* l_Lean_nullKind;
lean_object* l_Lean_Macro_getCurrNamespace(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__2;
lean_object* lean_name_mk_string(lean_object*, lean_object*);
lean_object* lean_array_uget(lean_object*, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro___closed__2;
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_expandMacro___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__8;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__4;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__17;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro___closed__1;
static lean_object* l_Lean_Elab_Command_expandMacro___closed__8;
static lean_object* l_Lean_Elab_Command_expandMacro___closed__4;
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*);
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___closed__9;
lean_object* lean_array_push(lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__1;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
static lean_object* l_Lean_Elab_Command_expandMacro___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__7;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__19;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__25;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__5;
static lean_object* l_Lean_Elab_Command_expandMacro___closed__3;
static lean_object* l_Lean_Elab_Command_expandMacro___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__3;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__14;
lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__28;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro(lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
extern lean_object* l_Lean_numLitKind;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__1;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__21;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__4;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange(lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___closed__6;
lean_object* l_Nat_repr(lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_expandMacro___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getId(lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__22;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__13;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__1___closed__1;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro(lean_object*);
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__23;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__6;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__20;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__2;
lean_object* l_Array_unzip___rarg(lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__16;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro___closed__3;
lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*);
size_t lean_usize_of_nat(lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__29;
uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__30;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__3___closed__1;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__7;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro___closed__6;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
extern lean_object* l_Lean_Elab_macroAttribute;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__24;
static lean_object* l_Lean_Elab_Command_expandMacro___closed__7;
lean_object* l_Lean_Syntax_getArgs(lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__10;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__6___closed__1;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__6___closed__2;
static lean_object* l_Lean_Elab_Command_expandMacro___closed__10;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__15;
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__18;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__12;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isNone(lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__11;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at_Lean_Elab_Command_expandMacro___spec__2(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___closed__26;
static lean_object* l_Lean_Elab_Command_expandMacro___closed__2;
lean_object* l_Lean_Syntax_mkLit(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro___closed__4;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_expandMacro___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; 
x_6 = lean_usize_dec_lt(x_2, x_1);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_4);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_5);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_array_uget(x_3, x_2);
x_9 = lean_unsigned_to_nat(0u);
x_10 = lean_array_uset(x_3, x_2, x_9);
lean_inc(x_4);
x_11 = l_Lean_Elab_Command_expandMacroArg(x_8, x_4, x_5);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
x_14 = 1;
x_15 = lean_usize_add(x_2, x_14);
x_16 = lean_array_uset(x_10, x_2, x_12);
x_2 = x_15;
x_3 = x_16;
x_5 = x_13;
goto _start;
}
else
{
uint8_t x_18; 
lean_dec(x_10);
lean_dec(x_4);
x_18 = !lean_is_exclusive(x_11);
if (x_18 == 0)
{
return x_11;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_11, 0);
x_20 = lean_ctor_get(x_11, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_11);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at_Lean_Elab_Command_expandMacro___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_2, 5);
lean_inc(x_4);
lean_dec(x_2);
x_5 = l_Lean_mkIdentFrom(x_4, x_1);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_5 = l_Lean_Elab_Command_expandMacro___lambda__1___closed__1;
x_6 = lean_array_push(x_5, x_1);
x_7 = lean_array_push(x_6, x_2);
x_8 = lean_box(2);
x_9 = l_Lean_nullKind;
x_10 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
lean_ctor_set(x_10, 2, x_7);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_4);
return x_11;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("macro_rules");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("null");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__2;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__3;
x_3 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__4;
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__6;
x_2 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("matchAlts");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("matchAlt");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("|");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("quot");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("`(");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(")");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(3u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("=>");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(4u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(5u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__4;
x_2 = l_Array_append___rarg(x_1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__3;
x_3 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__18;
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__17;
x_2 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__19;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("syntax");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("namedName");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("(");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("name");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(":=");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("namedPrio");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__27() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("priority");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(":");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(9u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("precedence");
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, size_t x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) {
_start:
{
lean_object* x_18; 
lean_inc(x_16);
x_18 = l_Lean_Macro_getCurrNamespace(x_16, x_17);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; size_t x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_18, 1);
lean_inc(x_20);
lean_dec(x_18);
lean_inc(x_15);
x_21 = l_Lean_Name_append(x_19, x_15);
lean_dec(x_19);
x_22 = lean_box(2);
x_23 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_1);
lean_inc(x_16);
x_199 = l_Lean_mkIdentFromRef___at_Lean_Elab_Command_expandMacro___spec__2(x_15, x_16, x_20);
x_200 = lean_ctor_get(x_199, 0);
lean_inc(x_200);
x_201 = lean_ctor_get(x_199, 1);
lean_inc(x_201);
lean_dec(x_199);
lean_inc(x_16);
x_202 = l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(x_16, x_201);
x_203 = lean_ctor_get(x_202, 0);
lean_inc(x_203);
x_204 = lean_ctor_get(x_202, 1);
lean_inc(x_204);
lean_dec(x_202);
x_205 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__21;
lean_inc(x_3);
x_206 = lean_name_mk_string(x_3, x_205);
x_207 = l_Lean_Syntax_getHeadInfo_x3f(x_5);
x_208 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__22;
lean_inc(x_3);
x_209 = lean_name_mk_string(x_3, x_208);
x_210 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__23;
lean_inc(x_203);
x_211 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_211, 0, x_203);
lean_ctor_set(x_211, 1, x_210);
x_212 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__24;
lean_inc(x_203);
x_213 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_213, 0, x_203);
lean_ctor_set(x_213, 1, x_212);
x_214 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__25;
lean_inc(x_203);
x_215 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_215, 0, x_203);
lean_ctor_set(x_215, 1, x_214);
x_216 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__13;
lean_inc(x_203);
x_217 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_217, 0, x_203);
lean_ctor_set(x_217, 1, x_216);
x_218 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__17;
x_219 = lean_array_push(x_218, x_211);
lean_inc(x_219);
x_220 = lean_array_push(x_219, x_213);
lean_inc(x_215);
x_221 = lean_array_push(x_220, x_215);
x_222 = lean_array_push(x_221, x_200);
lean_inc(x_217);
x_223 = lean_array_push(x_222, x_217);
x_224 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_224, 0, x_22);
lean_ctor_set(x_224, 1, x_209);
lean_ctor_set(x_224, 2, x_223);
x_225 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__6;
x_226 = lean_array_push(x_225, x_224);
x_227 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__3;
x_228 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_228, 0, x_22);
lean_ctor_set(x_228, 1, x_227);
lean_ctor_set(x_228, 2, x_226);
x_229 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__26;
lean_inc(x_3);
x_230 = lean_name_mk_string(x_3, x_229);
x_231 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__27;
lean_inc(x_203);
x_232 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_232, 0, x_203);
lean_ctor_set(x_232, 1, x_231);
x_233 = l_Nat_repr(x_8);
x_234 = l_Lean_numLitKind;
x_235 = l_Lean_Syntax_mkLit(x_234, x_233, x_22);
x_236 = lean_array_push(x_219, x_232);
x_237 = lean_array_push(x_236, x_215);
x_238 = lean_array_push(x_237, x_235);
x_239 = lean_array_push(x_238, x_217);
x_240 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_240, 0, x_22);
lean_ctor_set(x_240, 1, x_230);
lean_ctor_set(x_240, 2, x_239);
x_241 = lean_array_push(x_225, x_240);
x_242 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_242, 0, x_22);
lean_ctor_set(x_242, 1, x_227);
lean_ctor_set(x_242, 2, x_241);
x_243 = lean_array_get_size(x_9);
x_244 = lean_usize_of_nat(x_243);
lean_dec(x_243);
x_245 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_244, x_10, x_9);
x_246 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__4;
x_247 = l_Array_append___rarg(x_246, x_245);
x_248 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_248, 0, x_22);
lean_ctor_set(x_248, 1, x_227);
lean_ctor_set(x_248, 2, x_247);
x_249 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__28;
lean_inc(x_203);
x_250 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_250, 0, x_203);
lean_ctor_set(x_250, 1, x_249);
if (lean_obj_tag(x_7) == 0)
{
x_251 = x_246;
goto block_287;
}
else
{
lean_object* x_288; lean_object* x_289; 
x_288 = lean_ctor_get(x_7, 0);
lean_inc(x_288);
x_289 = lean_array_push(x_225, x_288);
x_251 = x_289;
goto block_287;
}
block_198:
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_26 = l_Lean_Syntax_getArgs(x_2);
x_27 = lean_array_get_size(x_26);
lean_dec(x_26);
x_28 = lean_unsigned_to_nat(1u);
x_29 = lean_nat_dec_eq(x_27, x_28);
lean_dec(x_27);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_30 = l_Lean_Syntax_getArg(x_2, x_28);
lean_dec(x_2);
lean_inc(x_16);
x_31 = l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(x_16, x_25);
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_31, 1);
lean_inc(x_33);
lean_dec(x_31);
x_34 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__1;
x_35 = lean_name_mk_string(x_3, x_34);
x_36 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__7;
x_37 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_37, 0, x_22);
lean_ctor_set(x_37, 1, x_4);
lean_ctor_set(x_37, 2, x_36);
x_38 = l_Lean_Syntax_getHeadInfo_x3f(x_5);
x_39 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__8;
lean_inc(x_6);
x_40 = lean_name_mk_string(x_6, x_39);
x_41 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__9;
lean_inc(x_6);
x_42 = lean_name_mk_string(x_6, x_41);
x_43 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__10;
lean_inc(x_32);
x_44 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_44, 0, x_32);
lean_ctor_set(x_44, 1, x_43);
x_45 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__11;
x_46 = lean_name_mk_string(x_6, x_45);
x_47 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__12;
lean_inc(x_32);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_32);
lean_ctor_set(x_48, 1, x_47);
x_49 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__13;
lean_inc(x_32);
x_50 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_50, 0, x_32);
lean_ctor_set(x_50, 1, x_49);
x_51 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__14;
x_52 = lean_array_push(x_51, x_48);
lean_inc(x_52);
x_53 = lean_array_push(x_52, x_23);
lean_inc(x_50);
x_54 = lean_array_push(x_53, x_50);
lean_inc(x_46);
x_55 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_55, 0, x_22);
lean_ctor_set(x_55, 1, x_46);
lean_ctor_set(x_55, 2, x_54);
x_56 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__6;
x_57 = lean_array_push(x_56, x_55);
x_58 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__3;
x_59 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_59, 0, x_22);
lean_ctor_set(x_59, 1, x_58);
lean_ctor_set(x_59, 2, x_57);
x_60 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__15;
lean_inc(x_32);
x_61 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_61, 0, x_32);
lean_ctor_set(x_61, 1, x_60);
x_62 = lean_array_push(x_52, x_30);
x_63 = lean_array_push(x_62, x_50);
x_64 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_64, 0, x_22);
lean_ctor_set(x_64, 1, x_46);
lean_ctor_set(x_64, 2, x_63);
x_65 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__16;
x_66 = lean_array_push(x_65, x_44);
x_67 = lean_array_push(x_66, x_59);
x_68 = lean_array_push(x_67, x_61);
x_69 = lean_array_push(x_68, x_64);
x_70 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_70, 0, x_22);
lean_ctor_set(x_70, 1, x_42);
lean_ctor_set(x_70, 2, x_69);
x_71 = lean_array_push(x_56, x_70);
x_72 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_72, 0, x_22);
lean_ctor_set(x_72, 1, x_58);
lean_ctor_set(x_72, 2, x_71);
x_73 = lean_array_push(x_56, x_72);
x_74 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_74, 0, x_22);
lean_ctor_set(x_74, 1, x_40);
lean_ctor_set(x_74, 2, x_73);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_75; lean_object* x_76; 
x_75 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__20;
x_76 = lean_array_push(x_75, x_37);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_77 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_77, 0, x_32);
lean_ctor_set(x_77, 1, x_34);
x_78 = lean_array_push(x_76, x_77);
x_79 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_80 = lean_array_push(x_78, x_79);
x_81 = lean_array_push(x_80, x_74);
x_82 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_82, 0, x_22);
lean_ctor_set(x_82, 1, x_35);
lean_ctor_set(x_82, 2, x_81);
x_83 = l_Lean_Elab_Command_expandMacro___lambda__1(x_24, x_82, x_16, x_33);
lean_dec(x_16);
return x_83;
}
else
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
lean_dec(x_32);
x_84 = lean_ctor_get(x_38, 0);
lean_inc(x_84);
lean_dec(x_38);
x_85 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_34);
x_86 = lean_array_push(x_76, x_85);
x_87 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_88 = lean_array_push(x_86, x_87);
x_89 = lean_array_push(x_88, x_74);
x_90 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_90, 0, x_22);
lean_ctor_set(x_90, 1, x_35);
lean_ctor_set(x_90, 2, x_89);
x_91 = l_Lean_Elab_Command_expandMacro___lambda__1(x_24, x_90, x_16, x_33);
lean_dec(x_16);
return x_91;
}
}
else
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; 
x_92 = lean_ctor_get(x_7, 0);
lean_inc(x_92);
lean_dec(x_7);
x_93 = lean_array_push(x_56, x_92);
x_94 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__4;
x_95 = l_Array_append___rarg(x_94, x_93);
x_96 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_96, 0, x_22);
lean_ctor_set(x_96, 1, x_58);
lean_ctor_set(x_96, 2, x_95);
x_97 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__17;
x_98 = lean_array_push(x_97, x_96);
x_99 = lean_array_push(x_98, x_37);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; 
x_100 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_100, 0, x_32);
lean_ctor_set(x_100, 1, x_34);
x_101 = lean_array_push(x_99, x_100);
x_102 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_103 = lean_array_push(x_101, x_102);
x_104 = lean_array_push(x_103, x_74);
x_105 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_105, 0, x_22);
lean_ctor_set(x_105, 1, x_35);
lean_ctor_set(x_105, 2, x_104);
x_106 = l_Lean_Elab_Command_expandMacro___lambda__1(x_24, x_105, x_16, x_33);
lean_dec(x_16);
return x_106;
}
else
{
lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; 
lean_dec(x_32);
x_107 = lean_ctor_get(x_38, 0);
lean_inc(x_107);
lean_dec(x_38);
x_108 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_34);
x_109 = lean_array_push(x_99, x_108);
x_110 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_111 = lean_array_push(x_109, x_110);
x_112 = lean_array_push(x_111, x_74);
x_113 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_113, 0, x_22);
lean_ctor_set(x_113, 1, x_35);
lean_ctor_set(x_113, 2, x_112);
x_114 = l_Lean_Elab_Command_expandMacro___lambda__1(x_24, x_113, x_16, x_33);
lean_dec(x_16);
return x_114;
}
}
}
else
{
lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; 
x_115 = lean_unsigned_to_nat(0u);
x_116 = l_Lean_Syntax_getArg(x_2, x_115);
lean_dec(x_2);
lean_inc(x_16);
x_117 = l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(x_16, x_25);
x_118 = lean_ctor_get(x_117, 0);
lean_inc(x_118);
x_119 = lean_ctor_get(x_117, 1);
lean_inc(x_119);
lean_dec(x_117);
x_120 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__1;
x_121 = lean_name_mk_string(x_3, x_120);
x_122 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__7;
x_123 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_123, 0, x_22);
lean_ctor_set(x_123, 1, x_4);
lean_ctor_set(x_123, 2, x_122);
x_124 = l_Lean_Syntax_getHeadInfo_x3f(x_5);
x_125 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__8;
lean_inc(x_6);
x_126 = lean_name_mk_string(x_6, x_125);
x_127 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__9;
lean_inc(x_6);
x_128 = lean_name_mk_string(x_6, x_127);
x_129 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__10;
lean_inc(x_118);
x_130 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_130, 0, x_118);
lean_ctor_set(x_130, 1, x_129);
x_131 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__11;
x_132 = lean_name_mk_string(x_6, x_131);
x_133 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__12;
lean_inc(x_118);
x_134 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_134, 0, x_118);
lean_ctor_set(x_134, 1, x_133);
x_135 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__13;
lean_inc(x_118);
x_136 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_136, 0, x_118);
lean_ctor_set(x_136, 1, x_135);
x_137 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__14;
x_138 = lean_array_push(x_137, x_134);
x_139 = lean_array_push(x_138, x_23);
x_140 = lean_array_push(x_139, x_136);
x_141 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_141, 0, x_22);
lean_ctor_set(x_141, 1, x_132);
lean_ctor_set(x_141, 2, x_140);
x_142 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__6;
x_143 = lean_array_push(x_142, x_141);
x_144 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__3;
x_145 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_145, 0, x_22);
lean_ctor_set(x_145, 1, x_144);
lean_ctor_set(x_145, 2, x_143);
x_146 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__15;
lean_inc(x_118);
x_147 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_147, 0, x_118);
lean_ctor_set(x_147, 1, x_146);
x_148 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__16;
x_149 = lean_array_push(x_148, x_130);
x_150 = lean_array_push(x_149, x_145);
x_151 = lean_array_push(x_150, x_147);
x_152 = lean_array_push(x_151, x_116);
x_153 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_153, 0, x_22);
lean_ctor_set(x_153, 1, x_128);
lean_ctor_set(x_153, 2, x_152);
x_154 = lean_array_push(x_142, x_153);
x_155 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_155, 0, x_22);
lean_ctor_set(x_155, 1, x_144);
lean_ctor_set(x_155, 2, x_154);
x_156 = lean_array_push(x_142, x_155);
x_157 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_157, 0, x_22);
lean_ctor_set(x_157, 1, x_126);
lean_ctor_set(x_157, 2, x_156);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_158; lean_object* x_159; 
x_158 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__20;
x_159 = lean_array_push(x_158, x_123);
if (lean_obj_tag(x_124) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; 
x_160 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_160, 0, x_118);
lean_ctor_set(x_160, 1, x_120);
x_161 = lean_array_push(x_159, x_160);
x_162 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_163 = lean_array_push(x_161, x_162);
x_164 = lean_array_push(x_163, x_157);
x_165 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_165, 0, x_22);
lean_ctor_set(x_165, 1, x_121);
lean_ctor_set(x_165, 2, x_164);
x_166 = l_Lean_Elab_Command_expandMacro___lambda__1(x_24, x_165, x_16, x_119);
lean_dec(x_16);
return x_166;
}
else
{
lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; 
lean_dec(x_118);
x_167 = lean_ctor_get(x_124, 0);
lean_inc(x_167);
lean_dec(x_124);
x_168 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_168, 0, x_167);
lean_ctor_set(x_168, 1, x_120);
x_169 = lean_array_push(x_159, x_168);
x_170 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_171 = lean_array_push(x_169, x_170);
x_172 = lean_array_push(x_171, x_157);
x_173 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_173, 0, x_22);
lean_ctor_set(x_173, 1, x_121);
lean_ctor_set(x_173, 2, x_172);
x_174 = l_Lean_Elab_Command_expandMacro___lambda__1(x_24, x_173, x_16, x_119);
lean_dec(x_16);
return x_174;
}
}
else
{
lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; 
x_175 = lean_ctor_get(x_7, 0);
lean_inc(x_175);
lean_dec(x_7);
x_176 = lean_array_push(x_142, x_175);
x_177 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__4;
x_178 = l_Array_append___rarg(x_177, x_176);
x_179 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_179, 0, x_22);
lean_ctor_set(x_179, 1, x_144);
lean_ctor_set(x_179, 2, x_178);
x_180 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__17;
x_181 = lean_array_push(x_180, x_179);
x_182 = lean_array_push(x_181, x_123);
if (lean_obj_tag(x_124) == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; 
x_183 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_183, 0, x_118);
lean_ctor_set(x_183, 1, x_120);
x_184 = lean_array_push(x_182, x_183);
x_185 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_186 = lean_array_push(x_184, x_185);
x_187 = lean_array_push(x_186, x_157);
x_188 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_188, 0, x_22);
lean_ctor_set(x_188, 1, x_121);
lean_ctor_set(x_188, 2, x_187);
x_189 = l_Lean_Elab_Command_expandMacro___lambda__1(x_24, x_188, x_16, x_119);
lean_dec(x_16);
return x_189;
}
else
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
lean_dec(x_118);
x_190 = lean_ctor_get(x_124, 0);
lean_inc(x_190);
lean_dec(x_124);
x_191 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_191, 0, x_190);
lean_ctor_set(x_191, 1, x_120);
x_192 = lean_array_push(x_182, x_191);
x_193 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__5;
x_194 = lean_array_push(x_192, x_193);
x_195 = lean_array_push(x_194, x_157);
x_196 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_196, 0, x_22);
lean_ctor_set(x_196, 1, x_121);
lean_ctor_set(x_196, 2, x_195);
x_197 = l_Lean_Elab_Command_expandMacro___lambda__1(x_24, x_196, x_16, x_119);
lean_dec(x_16);
return x_197;
}
}
}
}
block_287:
{
lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; 
x_252 = l_Array_append___rarg(x_246, x_251);
x_253 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_253, 0, x_22);
lean_ctor_set(x_253, 1, x_227);
lean_ctor_set(x_253, 2, x_252);
x_254 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__29;
x_255 = lean_array_push(x_254, x_253);
x_256 = lean_array_push(x_255, x_11);
if (lean_obj_tag(x_207) == 0)
{
x_257 = x_203;
goto block_285;
}
else
{
lean_object* x_286; 
lean_dec(x_203);
x_286 = lean_ctor_get(x_207, 0);
lean_inc(x_286);
lean_dec(x_207);
x_257 = x_286;
goto block_285;
}
block_285:
{
lean_object* x_258; lean_object* x_259; 
x_258 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_258, 0, x_257);
lean_ctor_set(x_258, 1, x_205);
x_259 = lean_array_push(x_256, x_258);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; 
lean_dec(x_14);
x_260 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__19;
x_261 = lean_array_push(x_259, x_260);
x_262 = lean_array_push(x_261, x_228);
x_263 = lean_array_push(x_262, x_242);
x_264 = lean_array_push(x_263, x_248);
x_265 = lean_array_push(x_264, x_250);
x_266 = lean_array_push(x_265, x_13);
x_267 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_267, 0, x_22);
lean_ctor_set(x_267, 1, x_206);
lean_ctor_set(x_267, 2, x_266);
x_24 = x_267;
x_25 = x_204;
goto block_198;
}
else
{
lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; 
x_268 = lean_ctor_get(x_12, 0);
lean_inc(x_268);
lean_dec(x_12);
x_269 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__30;
x_270 = lean_name_mk_string(x_14, x_269);
x_271 = l_Lean_Elab_Command_expandMacro___lambda__1___closed__1;
lean_inc(x_250);
x_272 = lean_array_push(x_271, x_250);
x_273 = lean_array_push(x_272, x_268);
x_274 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_274, 0, x_22);
lean_ctor_set(x_274, 1, x_270);
lean_ctor_set(x_274, 2, x_273);
x_275 = lean_array_push(x_225, x_274);
x_276 = l_Array_append___rarg(x_246, x_275);
x_277 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_277, 0, x_22);
lean_ctor_set(x_277, 1, x_227);
lean_ctor_set(x_277, 2, x_276);
x_278 = lean_array_push(x_259, x_277);
x_279 = lean_array_push(x_278, x_228);
x_280 = lean_array_push(x_279, x_242);
x_281 = lean_array_push(x_280, x_248);
x_282 = lean_array_push(x_281, x_250);
x_283 = lean_array_push(x_282, x_13);
x_284 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_284, 0, x_22);
lean_ctor_set(x_284, 1, x_206);
lean_ctor_set(x_284, 2, x_283);
x_24 = x_284;
x_25 = x_204;
goto block_198;
}
}
}
}
else
{
uint8_t x_290; 
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_290 = !lean_is_exclusive(x_18);
if (x_290 == 0)
{
return x_18;
}
else
{
lean_object* x_291; lean_object* x_292; lean_object* x_293; 
x_291 = lean_ctor_get(x_18, 0);
x_292 = lean_ctor_get(x_18, 1);
lean_inc(x_292);
lean_inc(x_291);
lean_dec(x_18);
x_293 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_293, 0, x_291);
lean_ctor_set(x_293, 1, x_292);
return x_293;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("macroTail");
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
lean_dec(x_11);
x_15 = lean_unsigned_to_nat(6u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = lean_unsigned_to_nat(7u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
lean_dec(x_1);
x_19 = l_Lean_Elab_Command_expandMacro___lambda__3___closed__1;
lean_inc(x_2);
x_20 = lean_name_mk_string(x_2, x_19);
lean_inc(x_18);
x_21 = l_Lean_Syntax_isOfKind(x_18, x_20);
lean_dec(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
lean_dec(x_18);
lean_dec(x_16);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_22 = lean_box(1);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_14);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_24 = lean_unsigned_to_nat(1u);
x_25 = l_Lean_Syntax_getArg(x_18, x_24);
x_26 = lean_unsigned_to_nat(3u);
x_27 = l_Lean_Syntax_getArg(x_18, x_26);
lean_dec(x_18);
x_28 = l_Lean_Syntax_getArgs(x_16);
lean_dec(x_16);
lean_inc(x_13);
x_29 = l_Lean_evalOptPrio(x_12, x_13, x_14);
if (lean_obj_tag(x_29) == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; lean_object* x_35; 
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
lean_dec(x_29);
x_32 = lean_array_get_size(x_28);
x_33 = lean_usize_of_nat(x_32);
lean_dec(x_32);
x_34 = 0;
lean_inc(x_13);
x_35 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_expandMacro___spec__1(x_33, x_34, x_28, x_13, x_31);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
x_37 = lean_ctor_get(x_35, 1);
lean_inc(x_37);
lean_dec(x_35);
x_38 = l_Array_unzip___rarg(x_36);
lean_dec(x_36);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_39 = lean_ctor_get(x_38, 0);
lean_inc(x_39);
x_40 = lean_ctor_get(x_38, 1);
lean_inc(x_40);
lean_dec(x_38);
x_41 = l_Lean_Syntax_getId(x_25);
x_42 = lean_box(2);
x_43 = l_Lean_nullKind;
lean_inc(x_39);
x_44 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
lean_ctor_set(x_44, 2, x_39);
lean_inc(x_13);
x_45 = l_Lean_Elab_Command_mkNameFromParserSyntax(x_41, x_44, x_13, x_37);
if (lean_obj_tag(x_45) == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_45, 0);
lean_inc(x_46);
x_47 = lean_ctor_get(x_45, 1);
lean_inc(x_47);
lean_dec(x_45);
x_48 = l_Lean_Elab_Command_expandMacro___lambda__2(x_40, x_27, x_2, x_3, x_4, x_5, x_6, x_30, x_39, x_34, x_7, x_8, x_25, x_9, x_46, x_13, x_47);
lean_dec(x_4);
return x_48;
}
else
{
uint8_t x_49; 
lean_dec(x_40);
lean_dec(x_39);
lean_dec(x_30);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_13);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_49 = !lean_is_exclusive(x_45);
if (x_49 == 0)
{
return x_45;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_50 = lean_ctor_get(x_45, 0);
x_51 = lean_ctor_get(x_45, 1);
lean_inc(x_51);
lean_inc(x_50);
lean_dec(x_45);
x_52 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_52, 0, x_50);
lean_ctor_set(x_52, 1, x_51);
return x_52;
}
}
}
else
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_53 = lean_ctor_get(x_38, 0);
lean_inc(x_53);
x_54 = lean_ctor_get(x_38, 1);
lean_inc(x_54);
lean_dec(x_38);
x_55 = lean_ctor_get(x_10, 0);
lean_inc(x_55);
lean_dec(x_10);
x_56 = l_Lean_Syntax_getId(x_55);
lean_dec(x_55);
x_57 = l_Lean_Elab_Command_expandMacro___lambda__2(x_54, x_27, x_2, x_3, x_4, x_5, x_6, x_30, x_53, x_34, x_7, x_8, x_25, x_9, x_56, x_13, x_37);
lean_dec(x_4);
return x_57;
}
}
else
{
uint8_t x_58; 
lean_dec(x_30);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_13);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_58 = !lean_is_exclusive(x_35);
if (x_58 == 0)
{
return x_35;
}
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; 
x_59 = lean_ctor_get(x_35, 0);
x_60 = lean_ctor_get(x_35, 1);
lean_inc(x_60);
lean_inc(x_59);
lean_dec(x_35);
x_61 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_61, 0, x_59);
lean_ctor_set(x_61, 1, x_60);
return x_61;
}
}
}
else
{
uint8_t x_62; 
lean_dec(x_28);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_13);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_62 = !lean_is_exclusive(x_29);
if (x_62 == 0)
{
return x_29;
}
else
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; 
x_63 = lean_ctor_get(x_29, 0);
x_64 = lean_ctor_get(x_29, 1);
lean_inc(x_64);
lean_inc(x_63);
lean_dec(x_29);
x_65 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_65, 0, x_63);
lean_ctor_set(x_65, 1, x_64);
return x_65;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; lean_object* x_15; uint8_t x_16; 
lean_dec(x_10);
x_14 = lean_unsigned_to_nat(5u);
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
x_16 = l_Lean_Syntax_isNone(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_17 = l_Lean_nullKind;
x_18 = lean_unsigned_to_nat(1u);
lean_inc(x_15);
x_19 = l_Lean_Syntax_isNodeOf(x_15, x_17, x_18);
if (x_19 == 0)
{
lean_object* x_20; lean_object* x_21; 
lean_dec(x_15);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_20 = lean_box(1);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_13);
return x_21;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_22 = lean_unsigned_to_nat(0u);
x_23 = l_Lean_Syntax_getArg(x_15, x_22);
lean_dec(x_15);
x_24 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__26;
lean_inc(x_2);
x_25 = lean_name_mk_string(x_2, x_24);
lean_inc(x_23);
x_26 = l_Lean_Syntax_isOfKind(x_23, x_25);
lean_dec(x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; 
lean_dec(x_23);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_27 = lean_box(1);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_13);
return x_28;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_29 = lean_unsigned_to_nat(3u);
x_30 = l_Lean_Syntax_getArg(x_23, x_29);
lean_dec(x_23);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_30);
x_32 = lean_box(0);
x_33 = l_Lean_Elab_Command_expandMacro___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_11, x_32, x_31, x_12, x_13);
return x_33;
}
}
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
lean_dec(x_15);
x_34 = lean_box(0);
x_35 = lean_box(0);
x_36 = l_Lean_Elab_Command_expandMacro___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_11, x_35, x_34, x_12, x_13);
return x_36;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; 
lean_dec(x_9);
x_13 = lean_unsigned_to_nat(4u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = l_Lean_Syntax_isNone(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_16 = l_Lean_nullKind;
x_17 = lean_unsigned_to_nat(1u);
lean_inc(x_14);
x_18 = l_Lean_Syntax_isNodeOf(x_14, x_16, x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; 
lean_dec(x_14);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_19 = lean_box(1);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_12);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_21 = lean_unsigned_to_nat(0u);
x_22 = l_Lean_Syntax_getArg(x_14, x_21);
lean_dec(x_14);
x_23 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__22;
lean_inc(x_2);
x_24 = lean_name_mk_string(x_2, x_23);
lean_inc(x_22);
x_25 = l_Lean_Syntax_isOfKind(x_22, x_24);
lean_dec(x_24);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; 
lean_dec(x_22);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_26 = lean_box(1);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_12);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_28 = lean_unsigned_to_nat(3u);
x_29 = l_Lean_Syntax_getArg(x_22, x_28);
lean_dec(x_22);
x_30 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_30, 0, x_29);
x_31 = lean_box(0);
x_32 = l_Lean_Elab_Command_expandMacro___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_8, x_31, x_30, x_11, x_12);
return x_32;
}
}
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
lean_dec(x_14);
x_33 = lean_box(0);
x_34 = lean_box(0);
x_35 = l_Lean_Elab_Command_expandMacro___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_8, x_34, x_33, x_11, x_12);
return x_35;
}
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__6___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Term");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___lambda__6___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("attrKind");
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
lean_dec(x_4);
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = l_Lean_Elab_Command_expandMacro___lambda__6___closed__1;
lean_inc(x_2);
x_11 = lean_name_mk_string(x_2, x_10);
x_12 = l_Lean_Elab_Command_expandMacro___lambda__6___closed__2;
lean_inc(x_11);
x_13 = lean_name_mk_string(x_11, x_12);
lean_inc(x_9);
x_14 = l_Lean_Syntax_isOfKind(x_9, x_13);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_13);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_15 = lean_box(1);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_7);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_17 = lean_unsigned_to_nat(2u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
x_19 = lean_unsigned_to_nat(3u);
x_20 = l_Lean_Syntax_getArg(x_1, x_19);
x_21 = l_Lean_Syntax_isNone(x_20);
if (x_21 == 0)
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Lean_nullKind;
lean_inc(x_20);
x_23 = l_Lean_Syntax_isNodeOf(x_20, x_22, x_8);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; 
lean_dec(x_20);
lean_dec(x_18);
lean_dec(x_13);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_24 = lean_box(1);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_7);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_26 = lean_unsigned_to_nat(0u);
x_27 = l_Lean_Syntax_getArg(x_20, x_26);
lean_dec(x_20);
x_28 = l_Lean_Elab_Command_expandMacro___lambda__2___closed__30;
lean_inc(x_2);
x_29 = lean_name_mk_string(x_2, x_28);
lean_inc(x_27);
x_30 = l_Lean_Syntax_isOfKind(x_27, x_29);
lean_dec(x_29);
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; 
lean_dec(x_27);
lean_dec(x_18);
lean_dec(x_13);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_31 = lean_box(1);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_7);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_33 = l_Lean_Syntax_getArg(x_27, x_8);
lean_dec(x_27);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_33);
x_35 = lean_box(0);
x_36 = l_Lean_Elab_Command_expandMacro___lambda__5(x_1, x_3, x_13, x_18, x_11, x_5, x_9, x_2, x_35, x_34, x_6, x_7);
return x_36;
}
}
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
lean_dec(x_20);
x_37 = lean_box(0);
x_38 = lean_box(0);
x_39 = l_Lean_Elab_Command_expandMacro___lambda__5(x_1, x_3, x_13, x_18, x_11, x_5, x_9, x_2, x_38, x_37, x_6, x_7);
return x_39;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Lean");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_expandMacro___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Parser");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_expandMacro___closed__2;
x_2 = l_Lean_Elab_Command_expandMacro___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Command");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_expandMacro___closed__4;
x_2 = l_Lean_Elab_Command_expandMacro___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("macro");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_expandMacro___closed__6;
x_2 = l_Lean_Elab_Command_expandMacro___closed__7;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("docComment");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_expandMacro___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_expandMacro___closed__6;
x_2 = l_Lean_Elab_Command_expandMacro___closed__9;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Elab_Command_expandMacro___closed__8;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = l_Lean_Syntax_isNone(x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_11 = l_Lean_nullKind;
x_12 = lean_unsigned_to_nat(1u);
lean_inc(x_9);
x_13 = l_Lean_Syntax_isNodeOf(x_9, x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_9);
lean_dec(x_2);
lean_dec(x_1);
x_14 = lean_box(1);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_3);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_16 = l_Lean_Syntax_getArg(x_9, x_8);
lean_dec(x_9);
x_17 = l_Lean_Elab_Command_expandMacro___closed__10;
lean_inc(x_16);
x_18 = l_Lean_Syntax_isOfKind(x_16, x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; 
lean_dec(x_16);
lean_dec(x_2);
lean_dec(x_1);
x_19 = lean_box(1);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_3);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_16);
x_22 = l_Lean_Elab_Command_expandMacro___closed__4;
x_23 = l_Lean_Elab_Command_expandMacro___closed__6;
x_24 = lean_box(0);
x_25 = l_Lean_Elab_Command_expandMacro___lambda__6(x_1, x_22, x_23, x_24, x_21, x_2, x_3);
return x_25;
}
}
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_dec(x_9);
x_26 = lean_box(0);
x_27 = l_Lean_Elab_Command_expandMacro___closed__4;
x_28 = l_Lean_Elab_Command_expandMacro___closed__6;
x_29 = lean_box(0);
x_30 = l_Lean_Elab_Command_expandMacro___lambda__6(x_1, x_27, x_28, x_29, x_26, x_2, x_3);
return x_30;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_expandMacro___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
size_t x_6; size_t x_7; lean_object* x_8; 
x_6 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_7 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_8 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_expandMacro___spec__1(x_6, x_7, x_3, x_4, x_5);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_expandMacro___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacro___lambda__2___boxed(lean_object** _args) {
lean_object* x_1 = _args[0];
lean_object* x_2 = _args[1];
lean_object* x_3 = _args[2];
lean_object* x_4 = _args[3];
lean_object* x_5 = _args[4];
lean_object* x_6 = _args[5];
lean_object* x_7 = _args[6];
lean_object* x_8 = _args[7];
lean_object* x_9 = _args[8];
lean_object* x_10 = _args[9];
lean_object* x_11 = _args[10];
lean_object* x_12 = _args[11];
lean_object* x_13 = _args[12];
lean_object* x_14 = _args[13];
lean_object* x_15 = _args[14];
lean_object* x_16 = _args[15];
lean_object* x_17 = _args[16];
_start:
{
size_t x_18; lean_object* x_19; 
x_18 = lean_unbox_usize(x_10);
lean_dec(x_10);
x_19 = l_Lean_Elab_Command_expandMacro___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
lean_dec(x_5);
return x_19;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Elab");
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_expandMacro___closed__2;
x_2 = l___regBuiltin_Lean_Elab_Command_expandMacro___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Command_expandMacro___closed__2;
x_2 = l_Lean_Elab_Command_expandMacro___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("expandMacro");
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Command_expandMacro___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Command_expandMacro___closed__4;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMacro), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lean_Elab_macroAttribute;
x_3 = l_Lean_Elab_Command_expandMacro___closed__8;
x_4 = l___regBuiltin_Lean_Elab_Command_expandMacro___closed__5;
x_5 = l___regBuiltin_Lean_Elab_Command_expandMacro___closed__6;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(13u);
x_2 = lean_unsigned_to_nat(42u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(38u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__1;
x_2 = lean_unsigned_to_nat(42u);
x_3 = l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(13u);
x_2 = lean_unsigned_to_nat(46u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(13u);
x_2 = lean_unsigned_to_nat(57u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__4;
x_2 = lean_unsigned_to_nat(46u);
x_3 = l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__5;
x_4 = lean_unsigned_to_nat(57u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro_declRange(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Command_expandMacro___closed__5;
x_3 = l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Lean_Elab_MacroArgUtil(lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Elab_Macro(lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_MacroArgUtil(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Elab_Command_expandMacro___lambda__1___closed__1 = _init_l_Lean_Elab_Command_expandMacro___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__1___closed__1);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__1 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__1);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__2 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__2);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__3 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__3);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__4 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__4);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__5 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__5);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__6 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__6);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__7 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__7);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__8 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__8);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__9 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__9);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__10 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__10);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__11 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__11);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__12 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__12);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__13 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__13);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__14 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__14();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__14);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__15 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__15();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__15);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__16 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__16();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__16);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__17 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__17();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__17);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__18 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__18();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__18);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__19 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__19();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__19);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__20 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__20();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__20);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__21 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__21();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__21);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__22 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__22();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__22);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__23 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__23();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__23);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__24 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__24();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__24);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__25 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__25();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__25);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__26 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__26();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__26);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__27 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__27();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__27);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__28 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__28();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__28);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__29 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__29();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__29);
l_Lean_Elab_Command_expandMacro___lambda__2___closed__30 = _init_l_Lean_Elab_Command_expandMacro___lambda__2___closed__30();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__2___closed__30);
l_Lean_Elab_Command_expandMacro___lambda__3___closed__1 = _init_l_Lean_Elab_Command_expandMacro___lambda__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__3___closed__1);
l_Lean_Elab_Command_expandMacro___lambda__6___closed__1 = _init_l_Lean_Elab_Command_expandMacro___lambda__6___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__6___closed__1);
l_Lean_Elab_Command_expandMacro___lambda__6___closed__2 = _init_l_Lean_Elab_Command_expandMacro___lambda__6___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___lambda__6___closed__2);
l_Lean_Elab_Command_expandMacro___closed__1 = _init_l_Lean_Elab_Command_expandMacro___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__1);
l_Lean_Elab_Command_expandMacro___closed__2 = _init_l_Lean_Elab_Command_expandMacro___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__2);
l_Lean_Elab_Command_expandMacro___closed__3 = _init_l_Lean_Elab_Command_expandMacro___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__3);
l_Lean_Elab_Command_expandMacro___closed__4 = _init_l_Lean_Elab_Command_expandMacro___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__4);
l_Lean_Elab_Command_expandMacro___closed__5 = _init_l_Lean_Elab_Command_expandMacro___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__5);
l_Lean_Elab_Command_expandMacro___closed__6 = _init_l_Lean_Elab_Command_expandMacro___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__6);
l_Lean_Elab_Command_expandMacro___closed__7 = _init_l_Lean_Elab_Command_expandMacro___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__7);
l_Lean_Elab_Command_expandMacro___closed__8 = _init_l_Lean_Elab_Command_expandMacro___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__8);
l_Lean_Elab_Command_expandMacro___closed__9 = _init_l_Lean_Elab_Command_expandMacro___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__9);
l_Lean_Elab_Command_expandMacro___closed__10 = _init_l_Lean_Elab_Command_expandMacro___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_expandMacro___closed__10);
l___regBuiltin_Lean_Elab_Command_expandMacro___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro___closed__1);
l___regBuiltin_Lean_Elab_Command_expandMacro___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro___closed__2);
l___regBuiltin_Lean_Elab_Command_expandMacro___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro___closed__3);
l___regBuiltin_Lean_Elab_Command_expandMacro___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro___closed__4);
l___regBuiltin_Lean_Elab_Command_expandMacro___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro___closed__5);
l___regBuiltin_Lean_Elab_Command_expandMacro___closed__6 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro___closed__6);
res = l___regBuiltin_Lean_Elab_Command_expandMacro(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__1);
l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__2);
l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__3);
l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__4);
l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__5);
l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__6 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__6);
l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__7 = _init_l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro_declRange___closed__7);
res = l___regBuiltin_Lean_Elab_Command_expandMacro_declRange(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
