// Lean compiler output
// Module: Lake.DSL.Script
// Imports: Init Lake.Config.Package Lake.DSL.Attributes Lake.DSL.DeclUtil
#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_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__15;
lean_object* l_Lean_Macro_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__21;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__23;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__13;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__1;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__12;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___boxed(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_Lake_DSL_scriptDeclSpec___closed__24;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__44;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__26;
static lean_object* l_Lake_DSL_scriptDecl___closed__15;
static lean_object* l_Lake_DSL_scriptDecl___closed__6;
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lake_DSL_simpleBinder;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__25;
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__45;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__37;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__2;
extern lean_object* l_Lake_DSL_identOrStr;
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__39;
static lean_object* l_Lake_DSL_scriptDecl___closed__2;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___boxed(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* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_scriptDecl___closed__12;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__11;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__2;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__14;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__33;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__12;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__18;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__8;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__1;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__34;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__5;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__16;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__13;
LEAN_EXPORT lean_object* l_Lake_DSL_scriptDeclSpec;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__10;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__2;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__4;
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_scriptDecl___closed__8;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__14;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__1;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__9;
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl(lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_scriptDecl___closed__14;
lean_object* l_Lake_DSL_expandIdentOrStrAsIdent(lean_object*);
static lean_object* l_Lake_DSL_scriptDecl___closed__3;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__38;
static lean_object* l_Lake_DSL_scriptDecl___closed__4;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__7;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__40;
static lean_object* l_Lake_DSL_scriptDecl___closed__13;
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
extern lean_object* l_Lake_DSL_declValDo;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__27;
static lean_object* l_Lake_DSL_scriptDecl___closed__1;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__28;
LEAN_EXPORT lean_object* l_Lake_DSL_scriptDecl;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__3;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__1(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_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__35;
static lean_object* l_Lake_DSL_scriptDecl___closed__11;
static lean_object* l_Lake_DSL_scriptDecl___closed__7;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__20;
static lean_object* l_Lake_DSL_scriptDecl___closed__9;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__5;
lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__25;
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__5;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__2(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* l_Lake_DSL_expandAttrs(lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__16;
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
uint8_t l_Lean_Syntax_isNone(lean_object*);
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__19;
lean_object* l_Array_mkArray1___rarg(lean_object*);
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__21;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__31;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__15;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__9;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___closed__4;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__3;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__30;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___closed__6;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__11;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_scriptDecl___closed__5;
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___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*);
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__6;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__43;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__4;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__46;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__6;
static lean_object* l_Lake_DSL_scriptDecl___closed__10;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__23;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
lean_object* l_Lake_DSL_expandOptSimpleBinder(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__32;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__8;
lean_object* l_String_toSubstring_x27(lean_object*);
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__22;
static lean_object* l_Lake_DSL_scriptDecl___closed__17;
static lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___closed__36;
static lean_object* l_Lake_DSL_scriptDeclSpec___closed__17;
static lean_object* l_Lake_DSL_scriptDecl___closed__16;
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("DSL", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("scriptDeclSpec", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__1;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__2;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__3;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("andthen", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_scriptDeclSpec___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optional", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_scriptDeclSpec___closed__7;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ppSpace", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_scriptDeclSpec___closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__10;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__6;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__11;
x_3 = l_Lake_DSL_simpleBinder;
x_4 = lean_alloc_ctor(2, 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_Lake_DSL_scriptDeclSpec___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__8;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__12;
x_3 = lean_alloc_ctor(1, 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_Lake_DSL_scriptDeclSpec___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__6;
x_2 = l_Lake_DSL_identOrStr;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__13;
x_4 = lean_alloc_ctor(2, 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_Lake_DSL_scriptDeclSpec___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("orelse", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_scriptDeclSpec___closed__15;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declValSimple", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__19;
x_4 = l_Lake_DSL_scriptDeclSpec___closed__20;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__21;
x_2 = lean_alloc_ctor(8, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_scriptDeclSpec___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__16;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__22;
x_3 = l_Lake_DSL_declValDo;
x_4 = lean_alloc_ctor(2, 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_Lake_DSL_scriptDeclSpec___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__6;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__14;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__23;
x_4 = lean_alloc_ctor(2, 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_Lake_DSL_scriptDeclSpec___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__3;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__4;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__24;
x_4 = lean_alloc_ctor(9, 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_Lake_DSL_scriptDeclSpec() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__25;
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("scriptDecl", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__1;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__2;
x_3 = l_Lake_DSL_scriptDecl___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("docComment", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_scriptDecl___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_scriptDecl___closed__4;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__8;
x_2 = l_Lake_DSL_scriptDecl___closed__5;
x_3 = lean_alloc_ctor(1, 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_Lake_DSL_scriptDecl___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attributes", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDecl___closed__7;
x_4 = l_Lake_DSL_scriptDecl___closed__8;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_scriptDecl___closed__9;
x_2 = lean_alloc_ctor(8, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__8;
x_2 = l_Lake_DSL_scriptDecl___closed__10;
x_3 = lean_alloc_ctor(1, 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_Lake_DSL_scriptDecl___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__6;
x_2 = l_Lake_DSL_scriptDecl___closed__6;
x_3 = l_Lake_DSL_scriptDecl___closed__11;
x_4 = lean_alloc_ctor(2, 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_Lake_DSL_scriptDecl___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("script ", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_scriptDecl___closed__13;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_scriptDecl___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__6;
x_2 = l_Lake_DSL_scriptDecl___closed__12;
x_3 = l_Lake_DSL_scriptDecl___closed__14;
x_4 = lean_alloc_ctor(2, 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_Lake_DSL_scriptDecl___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__6;
x_2 = l_Lake_DSL_scriptDecl___closed__15;
x_3 = l_Lake_DSL_scriptDeclSpec;
x_4 = lean_alloc_ctor(2, 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_Lake_DSL_scriptDecl___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDecl___closed__2;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_Lake_DSL_scriptDecl___closed__16;
x_4 = lean_alloc_ctor(3, 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_Lake_DSL_scriptDecl() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_DSL_scriptDecl___closed__17;
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrInstance", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDecl___closed__7;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrKind", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDecl___closed__7;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__7() {
_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_Lake_DSL_expandScriptDecl___lambda__1___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Attr", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("simple", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__8;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__9;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("«script»", 10, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__11;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("script", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__13;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__15() {
_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_Lake_DSL_expandScriptDecl___lambda__1___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declaration", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__19;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__16;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declModifiers", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__19;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__18;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("@[", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("definition", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__19;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__23;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("def", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declId", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__19;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__26;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__28() {
_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_Lake_DSL_expandScriptDecl___lambda__1___closed__6;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
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_Lake_DSL_expandScriptDecl___lambda__1___closed__29() {
_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;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDeclSpec___closed__19;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__30;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("typeSpec", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDecl___closed__7;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__32;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__34() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__35() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ScriptFn", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__36() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__35;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__35;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__1;
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__35;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__39() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__38;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__40() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__39;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__42() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fun", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDecl___closed__7;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__44() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("basicFun", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDecl___closed__7;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__44;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__46() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("=>", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__47() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
x_2 = l_Array_append___rarg(x_1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__1(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; uint8_t x_14; 
x_13 = l_Lake_DSL_expandIdentOrStrAsIdent(x_1);
x_14 = !lean_is_exclusive(x_11);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_15 = lean_ctor_get(x_11, 1);
x_16 = lean_ctor_get(x_11, 2);
x_17 = lean_ctor_get(x_11, 5);
x_18 = l_Lean_replaceRef(x_2, x_17);
lean_dec(x_17);
lean_inc(x_18);
lean_inc(x_16);
lean_inc(x_15);
lean_ctor_set(x_11, 5, x_18);
x_19 = l_Lake_DSL_expandOptSimpleBinder(x_3, x_11, x_12);
lean_dec(x_11);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 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; lean_object* x_75; lean_object* x_76; 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; lean_object* x_84; lean_object* x_85; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = 0;
x_23 = l_Lean_SourceInfo_fromRef(x_18, x_22);
lean_dec(x_18);
x_24 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__6;
x_25 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
lean_inc(x_23);
x_26 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_26, 0, x_23);
lean_ctor_set(x_26, 1, x_24);
lean_ctor_set(x_26, 2, x_25);
x_27 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__4;
lean_inc(x_26);
lean_inc(x_23);
x_28 = l_Lean_Syntax_node1(x_23, x_27, x_26);
x_29 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__14;
lean_inc(x_16);
lean_inc(x_15);
x_30 = l_Lean_addMacroScope(x_15, x_29, x_16);
x_31 = lean_box(0);
x_32 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__12;
lean_inc(x_23);
x_33 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_33, 0, x_23);
lean_ctor_set(x_33, 1, x_32);
lean_ctor_set(x_33, 2, x_30);
lean_ctor_set(x_33, 3, x_31);
x_34 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
lean_inc(x_26);
lean_inc(x_23);
x_35 = l_Lean_Syntax_node2(x_23, x_34, x_33, x_26);
x_36 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
lean_inc(x_23);
x_37 = l_Lean_Syntax_node2(x_23, x_36, x_28, x_35);
x_38 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__15;
x_39 = lean_array_push(x_38, x_37);
x_40 = l_Lake_DSL_expandAttrs(x_4);
x_41 = l_Array_append___rarg(x_39, x_40);
lean_dec(x_40);
x_42 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
lean_inc(x_23);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_23);
lean_ctor_set(x_43, 1, x_42);
x_44 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__21;
x_45 = l_Lean_Syntax_SepArray_ofElems(x_44, x_41);
lean_dec(x_41);
x_46 = l_Array_append___rarg(x_25, x_45);
lean_dec(x_45);
lean_inc(x_23);
x_47 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_47, 0, x_23);
lean_ctor_set(x_47, 1, x_24);
lean_ctor_set(x_47, 2, x_46);
x_48 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc(x_23);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_23);
lean_ctor_set(x_49, 1, x_48);
x_50 = l_Lake_DSL_scriptDecl___closed__9;
lean_inc(x_23);
x_51 = l_Lean_Syntax_node3(x_23, x_50, x_43, x_47, x_49);
lean_inc(x_23);
x_52 = l_Lean_Syntax_node1(x_23, x_24, x_51);
x_53 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__25;
lean_inc(x_23);
x_54 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_54, 0, x_23);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
x_56 = lean_array_push(x_55, x_13);
x_57 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__28;
x_58 = lean_array_push(x_56, x_57);
x_59 = lean_box(2);
x_60 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__27;
x_61 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_61, 0, x_59);
lean_ctor_set(x_61, 1, x_60);
lean_ctor_set(x_61, 2, x_58);
x_62 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__34;
lean_inc(x_23);
x_63 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_63, 0, x_23);
lean_ctor_set(x_63, 1, x_62);
x_64 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__37;
x_65 = l_Lean_addMacroScope(x_15, x_64, x_16);
x_66 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__36;
x_67 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__40;
lean_inc(x_23);
x_68 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_68, 0, x_23);
lean_ctor_set(x_68, 1, x_66);
lean_ctor_set(x_68, 2, x_65);
lean_ctor_set(x_68, 3, x_67);
x_69 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__33;
lean_inc(x_23);
x_70 = l_Lean_Syntax_node2(x_23, x_69, x_63, x_68);
lean_inc(x_23);
x_71 = l_Lean_Syntax_node1(x_23, x_24, x_70);
x_72 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__31;
lean_inc(x_26);
lean_inc(x_23);
x_73 = l_Lean_Syntax_node2(x_23, x_72, x_26, x_71);
x_74 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
lean_inc(x_23);
x_75 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_75, 0, x_23);
lean_ctor_set(x_75, 1, x_74);
x_76 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
lean_inc(x_23);
x_77 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_77, 0, x_23);
lean_ctor_set(x_77, 1, x_76);
lean_inc(x_23);
x_78 = l_Lean_Syntax_node1(x_23, x_24, x_21);
x_79 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__46;
lean_inc(x_23);
x_80 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_80, 0, x_23);
lean_ctor_set(x_80, 1, x_79);
x_81 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__45;
lean_inc(x_26);
lean_inc(x_23);
x_82 = l_Lean_Syntax_node4(x_23, x_81, x_78, x_26, x_80, x_5);
x_83 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__43;
lean_inc(x_23);
x_84 = l_Lean_Syntax_node2(x_23, x_83, x_77, x_82);
lean_inc_n(x_26, 2);
lean_inc(x_23);
x_85 = l_Lean_Syntax_node2(x_23, x_6, x_26, x_26);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; 
x_86 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_23);
x_87 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_87, 0, x_23);
lean_ctor_set(x_87, 1, x_24);
lean_ctor_set(x_87, 2, x_86);
x_88 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
lean_inc_n(x_26, 4);
lean_inc(x_87);
lean_inc(x_23);
x_89 = l_Lean_Syntax_node6(x_23, x_88, x_87, x_52, x_26, x_26, x_26, x_26);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
lean_inc(x_23);
x_90 = l_Lean_Syntax_node4(x_23, x_8, x_75, x_84, x_85, x_87);
x_91 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_23);
x_92 = l_Lean_Syntax_node5(x_23, x_91, x_54, x_61, x_73, x_90, x_26);
x_93 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_94 = l_Lean_Syntax_node2(x_23, x_93, x_89, x_92);
lean_ctor_set(x_19, 0, x_94);
return x_19;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; 
lean_dec(x_87);
x_95 = lean_ctor_get(x_10, 0);
lean_inc(x_95);
lean_dec(x_10);
x_96 = l_Array_mkArray1___rarg(x_95);
x_97 = l_Array_append___rarg(x_25, x_96);
lean_dec(x_96);
lean_inc(x_23);
x_98 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_98, 0, x_23);
lean_ctor_set(x_98, 1, x_24);
lean_ctor_set(x_98, 2, x_97);
lean_inc(x_23);
x_99 = l_Lean_Syntax_node4(x_23, x_8, x_75, x_84, x_85, x_98);
x_100 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_23);
x_101 = l_Lean_Syntax_node5(x_23, x_100, x_54, x_61, x_73, x_99, x_26);
x_102 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_103 = l_Lean_Syntax_node2(x_23, x_102, x_89, x_101);
lean_ctor_set(x_19, 0, x_103);
return x_19;
}
}
else
{
lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 
x_104 = lean_ctor_get(x_7, 0);
lean_inc(x_104);
lean_dec(x_7);
x_105 = l_Array_mkArray1___rarg(x_104);
x_106 = l_Array_append___rarg(x_25, x_105);
lean_dec(x_105);
lean_inc(x_23);
x_107 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_107, 0, x_23);
lean_ctor_set(x_107, 1, x_24);
lean_ctor_set(x_107, 2, x_106);
x_108 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
lean_inc_n(x_26, 4);
lean_inc(x_23);
x_109 = l_Lean_Syntax_node6(x_23, x_108, x_107, x_52, x_26, x_26, x_26, x_26);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; 
x_110 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_23);
x_111 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_111, 0, x_23);
lean_ctor_set(x_111, 1, x_24);
lean_ctor_set(x_111, 2, x_110);
lean_inc(x_23);
x_112 = l_Lean_Syntax_node4(x_23, x_8, x_75, x_84, x_85, x_111);
x_113 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_23);
x_114 = l_Lean_Syntax_node5(x_23, x_113, x_54, x_61, x_73, x_112, x_26);
x_115 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_116 = l_Lean_Syntax_node2(x_23, x_115, x_109, x_114);
lean_ctor_set(x_19, 0, x_116);
return x_19;
}
else
{
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; 
x_117 = lean_ctor_get(x_10, 0);
lean_inc(x_117);
lean_dec(x_10);
x_118 = l_Array_mkArray1___rarg(x_117);
x_119 = l_Array_append___rarg(x_25, x_118);
lean_dec(x_118);
lean_inc(x_23);
x_120 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_120, 0, x_23);
lean_ctor_set(x_120, 1, x_24);
lean_ctor_set(x_120, 2, x_119);
lean_inc(x_23);
x_121 = l_Lean_Syntax_node4(x_23, x_8, x_75, x_84, x_85, x_120);
x_122 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_23);
x_123 = l_Lean_Syntax_node5(x_23, x_122, x_54, x_61, x_73, x_121, x_26);
x_124 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_125 = l_Lean_Syntax_node2(x_23, x_124, x_109, x_123);
lean_ctor_set(x_19, 0, x_125);
return x_19;
}
}
}
else
{
lean_object* x_126; lean_object* x_127; uint8_t 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; lean_object* x_158; lean_object* x_159; 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; 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_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; 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; lean_object* x_190; lean_object* x_191; 
x_126 = lean_ctor_get(x_19, 0);
x_127 = lean_ctor_get(x_19, 1);
lean_inc(x_127);
lean_inc(x_126);
lean_dec(x_19);
x_128 = 0;
x_129 = l_Lean_SourceInfo_fromRef(x_18, x_128);
lean_dec(x_18);
x_130 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__6;
x_131 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
lean_inc(x_129);
x_132 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_132, 0, x_129);
lean_ctor_set(x_132, 1, x_130);
lean_ctor_set(x_132, 2, x_131);
x_133 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__4;
lean_inc(x_132);
lean_inc(x_129);
x_134 = l_Lean_Syntax_node1(x_129, x_133, x_132);
x_135 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__14;
lean_inc(x_16);
lean_inc(x_15);
x_136 = l_Lean_addMacroScope(x_15, x_135, x_16);
x_137 = lean_box(0);
x_138 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__12;
lean_inc(x_129);
x_139 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_139, 0, x_129);
lean_ctor_set(x_139, 1, x_138);
lean_ctor_set(x_139, 2, x_136);
lean_ctor_set(x_139, 3, x_137);
x_140 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
lean_inc(x_132);
lean_inc(x_129);
x_141 = l_Lean_Syntax_node2(x_129, x_140, x_139, x_132);
x_142 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
lean_inc(x_129);
x_143 = l_Lean_Syntax_node2(x_129, x_142, x_134, x_141);
x_144 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__15;
x_145 = lean_array_push(x_144, x_143);
x_146 = l_Lake_DSL_expandAttrs(x_4);
x_147 = l_Array_append___rarg(x_145, x_146);
lean_dec(x_146);
x_148 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
lean_inc(x_129);
x_149 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_149, 0, x_129);
lean_ctor_set(x_149, 1, x_148);
x_150 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__21;
x_151 = l_Lean_Syntax_SepArray_ofElems(x_150, x_147);
lean_dec(x_147);
x_152 = l_Array_append___rarg(x_131, x_151);
lean_dec(x_151);
lean_inc(x_129);
x_153 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_153, 0, x_129);
lean_ctor_set(x_153, 1, x_130);
lean_ctor_set(x_153, 2, x_152);
x_154 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc(x_129);
x_155 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_155, 0, x_129);
lean_ctor_set(x_155, 1, x_154);
x_156 = l_Lake_DSL_scriptDecl___closed__9;
lean_inc(x_129);
x_157 = l_Lean_Syntax_node3(x_129, x_156, x_149, x_153, x_155);
lean_inc(x_129);
x_158 = l_Lean_Syntax_node1(x_129, x_130, x_157);
x_159 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__25;
lean_inc(x_129);
x_160 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_160, 0, x_129);
lean_ctor_set(x_160, 1, x_159);
x_161 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
x_162 = lean_array_push(x_161, x_13);
x_163 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__28;
x_164 = lean_array_push(x_162, x_163);
x_165 = lean_box(2);
x_166 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__27;
x_167 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_167, 0, x_165);
lean_ctor_set(x_167, 1, x_166);
lean_ctor_set(x_167, 2, x_164);
x_168 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__34;
lean_inc(x_129);
x_169 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_169, 0, x_129);
lean_ctor_set(x_169, 1, x_168);
x_170 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__37;
x_171 = l_Lean_addMacroScope(x_15, x_170, x_16);
x_172 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__36;
x_173 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__40;
lean_inc(x_129);
x_174 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_174, 0, x_129);
lean_ctor_set(x_174, 1, x_172);
lean_ctor_set(x_174, 2, x_171);
lean_ctor_set(x_174, 3, x_173);
x_175 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__33;
lean_inc(x_129);
x_176 = l_Lean_Syntax_node2(x_129, x_175, x_169, x_174);
lean_inc(x_129);
x_177 = l_Lean_Syntax_node1(x_129, x_130, x_176);
x_178 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__31;
lean_inc(x_132);
lean_inc(x_129);
x_179 = l_Lean_Syntax_node2(x_129, x_178, x_132, x_177);
x_180 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
lean_inc(x_129);
x_181 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_181, 0, x_129);
lean_ctor_set(x_181, 1, x_180);
x_182 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
lean_inc(x_129);
x_183 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_183, 0, x_129);
lean_ctor_set(x_183, 1, x_182);
lean_inc(x_129);
x_184 = l_Lean_Syntax_node1(x_129, x_130, x_126);
x_185 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__46;
lean_inc(x_129);
x_186 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_186, 0, x_129);
lean_ctor_set(x_186, 1, x_185);
x_187 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__45;
lean_inc(x_132);
lean_inc(x_129);
x_188 = l_Lean_Syntax_node4(x_129, x_187, x_184, x_132, x_186, x_5);
x_189 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__43;
lean_inc(x_129);
x_190 = l_Lean_Syntax_node2(x_129, x_189, x_183, x_188);
lean_inc_n(x_132, 2);
lean_inc(x_129);
x_191 = l_Lean_Syntax_node2(x_129, x_6, x_132, x_132);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; 
x_192 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_129);
x_193 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_193, 0, x_129);
lean_ctor_set(x_193, 1, x_130);
lean_ctor_set(x_193, 2, x_192);
x_194 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
lean_inc_n(x_132, 4);
lean_inc(x_193);
lean_inc(x_129);
x_195 = l_Lean_Syntax_node6(x_129, x_194, x_193, x_158, x_132, x_132, x_132, x_132);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
lean_inc(x_129);
x_196 = l_Lean_Syntax_node4(x_129, x_8, x_181, x_190, x_191, x_193);
x_197 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_129);
x_198 = l_Lean_Syntax_node5(x_129, x_197, x_160, x_167, x_179, x_196, x_132);
x_199 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_200 = l_Lean_Syntax_node2(x_129, x_199, x_195, x_198);
x_201 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_201, 0, x_200);
lean_ctor_set(x_201, 1, x_127);
return x_201;
}
else
{
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_dec(x_193);
x_202 = lean_ctor_get(x_10, 0);
lean_inc(x_202);
lean_dec(x_10);
x_203 = l_Array_mkArray1___rarg(x_202);
x_204 = l_Array_append___rarg(x_131, x_203);
lean_dec(x_203);
lean_inc(x_129);
x_205 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_205, 0, x_129);
lean_ctor_set(x_205, 1, x_130);
lean_ctor_set(x_205, 2, x_204);
lean_inc(x_129);
x_206 = l_Lean_Syntax_node4(x_129, x_8, x_181, x_190, x_191, x_205);
x_207 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_129);
x_208 = l_Lean_Syntax_node5(x_129, x_207, x_160, x_167, x_179, x_206, x_132);
x_209 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_210 = l_Lean_Syntax_node2(x_129, x_209, x_195, x_208);
x_211 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_211, 0, x_210);
lean_ctor_set(x_211, 1, x_127);
return x_211;
}
}
else
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; 
x_212 = lean_ctor_get(x_7, 0);
lean_inc(x_212);
lean_dec(x_7);
x_213 = l_Array_mkArray1___rarg(x_212);
x_214 = l_Array_append___rarg(x_131, x_213);
lean_dec(x_213);
lean_inc(x_129);
x_215 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_215, 0, x_129);
lean_ctor_set(x_215, 1, x_130);
lean_ctor_set(x_215, 2, x_214);
x_216 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
lean_inc_n(x_132, 4);
lean_inc(x_129);
x_217 = l_Lean_Syntax_node6(x_129, x_216, x_215, x_158, x_132, x_132, x_132, x_132);
if (lean_obj_tag(x_10) == 0)
{
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; 
x_218 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_129);
x_219 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_219, 0, x_129);
lean_ctor_set(x_219, 1, x_130);
lean_ctor_set(x_219, 2, x_218);
lean_inc(x_129);
x_220 = l_Lean_Syntax_node4(x_129, x_8, x_181, x_190, x_191, x_219);
x_221 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_129);
x_222 = l_Lean_Syntax_node5(x_129, x_221, x_160, x_167, x_179, x_220, x_132);
x_223 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_224 = l_Lean_Syntax_node2(x_129, x_223, x_217, x_222);
x_225 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_225, 0, x_224);
lean_ctor_set(x_225, 1, x_127);
return x_225;
}
else
{
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; 
x_226 = lean_ctor_get(x_10, 0);
lean_inc(x_226);
lean_dec(x_10);
x_227 = l_Array_mkArray1___rarg(x_226);
x_228 = l_Array_append___rarg(x_131, x_227);
lean_dec(x_227);
lean_inc(x_129);
x_229 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_229, 0, x_129);
lean_ctor_set(x_229, 1, x_130);
lean_ctor_set(x_229, 2, x_228);
lean_inc(x_129);
x_230 = l_Lean_Syntax_node4(x_129, x_8, x_181, x_190, x_191, x_229);
x_231 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_129);
x_232 = l_Lean_Syntax_node5(x_129, x_231, x_160, x_167, x_179, x_230, x_132);
x_233 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_234 = l_Lean_Syntax_node2(x_129, x_233, x_217, x_232);
x_235 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_235, 0, x_234);
lean_ctor_set(x_235, 1, x_127);
return x_235;
}
}
}
}
else
{
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; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; 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_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; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; 
x_236 = lean_ctor_get(x_11, 0);
x_237 = lean_ctor_get(x_11, 1);
x_238 = lean_ctor_get(x_11, 2);
x_239 = lean_ctor_get(x_11, 3);
x_240 = lean_ctor_get(x_11, 4);
x_241 = lean_ctor_get(x_11, 5);
lean_inc(x_241);
lean_inc(x_240);
lean_inc(x_239);
lean_inc(x_238);
lean_inc(x_237);
lean_inc(x_236);
lean_dec(x_11);
x_242 = l_Lean_replaceRef(x_2, x_241);
lean_dec(x_241);
lean_inc(x_242);
lean_inc(x_238);
lean_inc(x_237);
x_243 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_243, 0, x_236);
lean_ctor_set(x_243, 1, x_237);
lean_ctor_set(x_243, 2, x_238);
lean_ctor_set(x_243, 3, x_239);
lean_ctor_set(x_243, 4, x_240);
lean_ctor_set(x_243, 5, x_242);
x_244 = l_Lake_DSL_expandOptSimpleBinder(x_3, x_243, x_12);
lean_dec(x_243);
x_245 = lean_ctor_get(x_244, 0);
lean_inc(x_245);
x_246 = lean_ctor_get(x_244, 1);
lean_inc(x_246);
if (lean_is_exclusive(x_244)) {
 lean_ctor_release(x_244, 0);
 lean_ctor_release(x_244, 1);
 x_247 = x_244;
} else {
 lean_dec_ref(x_244);
 x_247 = lean_box(0);
}
x_248 = 0;
x_249 = l_Lean_SourceInfo_fromRef(x_242, x_248);
lean_dec(x_242);
x_250 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__6;
x_251 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
lean_inc(x_249);
x_252 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_252, 0, x_249);
lean_ctor_set(x_252, 1, x_250);
lean_ctor_set(x_252, 2, x_251);
x_253 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__4;
lean_inc(x_252);
lean_inc(x_249);
x_254 = l_Lean_Syntax_node1(x_249, x_253, x_252);
x_255 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__14;
lean_inc(x_238);
lean_inc(x_237);
x_256 = l_Lean_addMacroScope(x_237, x_255, x_238);
x_257 = lean_box(0);
x_258 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__12;
lean_inc(x_249);
x_259 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_259, 0, x_249);
lean_ctor_set(x_259, 1, x_258);
lean_ctor_set(x_259, 2, x_256);
lean_ctor_set(x_259, 3, x_257);
x_260 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__10;
lean_inc(x_252);
lean_inc(x_249);
x_261 = l_Lean_Syntax_node2(x_249, x_260, x_259, x_252);
x_262 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__2;
lean_inc(x_249);
x_263 = l_Lean_Syntax_node2(x_249, x_262, x_254, x_261);
x_264 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__15;
x_265 = lean_array_push(x_264, x_263);
x_266 = l_Lake_DSL_expandAttrs(x_4);
x_267 = l_Array_append___rarg(x_265, x_266);
lean_dec(x_266);
x_268 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__20;
lean_inc(x_249);
x_269 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_269, 0, x_249);
lean_ctor_set(x_269, 1, x_268);
x_270 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__21;
x_271 = l_Lean_Syntax_SepArray_ofElems(x_270, x_267);
lean_dec(x_267);
x_272 = l_Array_append___rarg(x_251, x_271);
lean_dec(x_271);
lean_inc(x_249);
x_273 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_273, 0, x_249);
lean_ctor_set(x_273, 1, x_250);
lean_ctor_set(x_273, 2, x_272);
x_274 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__22;
lean_inc(x_249);
x_275 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_275, 0, x_249);
lean_ctor_set(x_275, 1, x_274);
x_276 = l_Lake_DSL_scriptDecl___closed__9;
lean_inc(x_249);
x_277 = l_Lean_Syntax_node3(x_249, x_276, x_269, x_273, x_275);
lean_inc(x_249);
x_278 = l_Lean_Syntax_node1(x_249, x_250, x_277);
x_279 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__25;
lean_inc(x_249);
x_280 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_280, 0, x_249);
lean_ctor_set(x_280, 1, x_279);
x_281 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__29;
x_282 = lean_array_push(x_281, x_13);
x_283 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__28;
x_284 = lean_array_push(x_282, x_283);
x_285 = lean_box(2);
x_286 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__27;
x_287 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_287, 0, x_285);
lean_ctor_set(x_287, 1, x_286);
lean_ctor_set(x_287, 2, x_284);
x_288 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__34;
lean_inc(x_249);
x_289 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_289, 0, x_249);
lean_ctor_set(x_289, 1, x_288);
x_290 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__37;
x_291 = l_Lean_addMacroScope(x_237, x_290, x_238);
x_292 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__36;
x_293 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__40;
lean_inc(x_249);
x_294 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_294, 0, x_249);
lean_ctor_set(x_294, 1, x_292);
lean_ctor_set(x_294, 2, x_291);
lean_ctor_set(x_294, 3, x_293);
x_295 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__33;
lean_inc(x_249);
x_296 = l_Lean_Syntax_node2(x_249, x_295, x_289, x_294);
lean_inc(x_249);
x_297 = l_Lean_Syntax_node1(x_249, x_250, x_296);
x_298 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__31;
lean_inc(x_252);
lean_inc(x_249);
x_299 = l_Lean_Syntax_node2(x_249, x_298, x_252, x_297);
x_300 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
lean_inc(x_249);
x_301 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_301, 0, x_249);
lean_ctor_set(x_301, 1, x_300);
x_302 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__42;
lean_inc(x_249);
x_303 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_303, 0, x_249);
lean_ctor_set(x_303, 1, x_302);
lean_inc(x_249);
x_304 = l_Lean_Syntax_node1(x_249, x_250, x_245);
x_305 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__46;
lean_inc(x_249);
x_306 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_306, 0, x_249);
lean_ctor_set(x_306, 1, x_305);
x_307 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__45;
lean_inc(x_252);
lean_inc(x_249);
x_308 = l_Lean_Syntax_node4(x_249, x_307, x_304, x_252, x_306, x_5);
x_309 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__43;
lean_inc(x_249);
x_310 = l_Lean_Syntax_node2(x_249, x_309, x_303, x_308);
lean_inc_n(x_252, 2);
lean_inc(x_249);
x_311 = l_Lean_Syntax_node2(x_249, x_6, x_252, x_252);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; 
x_312 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_249);
x_313 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_313, 0, x_249);
lean_ctor_set(x_313, 1, x_250);
lean_ctor_set(x_313, 2, x_312);
x_314 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
lean_inc_n(x_252, 4);
lean_inc(x_313);
lean_inc(x_249);
x_315 = l_Lean_Syntax_node6(x_249, x_314, x_313, x_278, x_252, x_252, x_252, x_252);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; 
lean_inc(x_249);
x_316 = l_Lean_Syntax_node4(x_249, x_8, x_301, x_310, x_311, x_313);
x_317 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_249);
x_318 = l_Lean_Syntax_node5(x_249, x_317, x_280, x_287, x_299, x_316, x_252);
x_319 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_320 = l_Lean_Syntax_node2(x_249, x_319, x_315, x_318);
if (lean_is_scalar(x_247)) {
 x_321 = lean_alloc_ctor(0, 2, 0);
} else {
 x_321 = x_247;
}
lean_ctor_set(x_321, 0, x_320);
lean_ctor_set(x_321, 1, x_246);
return x_321;
}
else
{
lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; 
lean_dec(x_313);
x_322 = lean_ctor_get(x_10, 0);
lean_inc(x_322);
lean_dec(x_10);
x_323 = l_Array_mkArray1___rarg(x_322);
x_324 = l_Array_append___rarg(x_251, x_323);
lean_dec(x_323);
lean_inc(x_249);
x_325 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_325, 0, x_249);
lean_ctor_set(x_325, 1, x_250);
lean_ctor_set(x_325, 2, x_324);
lean_inc(x_249);
x_326 = l_Lean_Syntax_node4(x_249, x_8, x_301, x_310, x_311, x_325);
x_327 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_249);
x_328 = l_Lean_Syntax_node5(x_249, x_327, x_280, x_287, x_299, x_326, x_252);
x_329 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_330 = l_Lean_Syntax_node2(x_249, x_329, x_315, x_328);
if (lean_is_scalar(x_247)) {
 x_331 = lean_alloc_ctor(0, 2, 0);
} else {
 x_331 = x_247;
}
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_246);
return x_331;
}
}
else
{
lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_332 = lean_ctor_get(x_7, 0);
lean_inc(x_332);
lean_dec(x_7);
x_333 = l_Array_mkArray1___rarg(x_332);
x_334 = l_Array_append___rarg(x_251, x_333);
lean_dec(x_333);
lean_inc(x_249);
x_335 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_335, 0, x_249);
lean_ctor_set(x_335, 1, x_250);
lean_ctor_set(x_335, 2, x_334);
x_336 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__19;
lean_inc_n(x_252, 4);
lean_inc(x_249);
x_337 = l_Lean_Syntax_node6(x_249, x_336, x_335, x_278, x_252, x_252, x_252, x_252);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_338 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_249);
x_339 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_339, 0, x_249);
lean_ctor_set(x_339, 1, x_250);
lean_ctor_set(x_339, 2, x_338);
lean_inc(x_249);
x_340 = l_Lean_Syntax_node4(x_249, x_8, x_301, x_310, x_311, x_339);
x_341 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_249);
x_342 = l_Lean_Syntax_node5(x_249, x_341, x_280, x_287, x_299, x_340, x_252);
x_343 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_344 = l_Lean_Syntax_node2(x_249, x_343, x_337, x_342);
if (lean_is_scalar(x_247)) {
 x_345 = lean_alloc_ctor(0, 2, 0);
} else {
 x_345 = x_247;
}
lean_ctor_set(x_345, 0, x_344);
lean_ctor_set(x_345, 1, x_246);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; 
x_346 = lean_ctor_get(x_10, 0);
lean_inc(x_346);
lean_dec(x_10);
x_347 = l_Array_mkArray1___rarg(x_346);
x_348 = l_Array_append___rarg(x_251, x_347);
lean_dec(x_347);
lean_inc(x_249);
x_349 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_349, 0, x_249);
lean_ctor_set(x_349, 1, x_250);
lean_ctor_set(x_349, 2, x_348);
lean_inc(x_249);
x_350 = l_Lean_Syntax_node4(x_249, x_8, x_301, x_310, x_311, x_349);
x_351 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__24;
lean_inc(x_249);
x_352 = l_Lean_Syntax_node5(x_249, x_351, x_280, x_287, x_299, x_350, x_252);
x_353 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__17;
x_354 = l_Lean_Syntax_node2(x_249, x_353, x_337, x_352);
if (lean_is_scalar(x_247)) {
 x_355 = lean_alloc_ctor(0, 2, 0);
} else {
 x_355 = x_247;
}
lean_ctor_set(x_355, 0, x_354);
lean_ctor_set(x_355, 1, x_246);
return x_355;
}
}
}
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("do", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Termination", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("suffix", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__2;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; uint8_t x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; 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_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_14 = lean_ctor_get(x_12, 5);
x_15 = 0;
x_16 = l_Lean_SourceInfo_fromRef(x_14, x_15);
x_17 = 1;
x_18 = l_Lean_SourceInfo_fromRef(x_1, x_17);
x_19 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__13;
x_20 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
x_21 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__41;
lean_inc(x_16);
x_22 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_22, 0, x_16);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__1;
lean_inc(x_16);
x_24 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_24, 0, x_16);
lean_ctor_set(x_24, 1, x_23);
lean_inc(x_16);
x_25 = l_Lean_Syntax_node2(x_16, x_2, x_24, x_3);
x_26 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__6;
x_27 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__7;
lean_inc(x_16);
x_28 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_28, 0, x_16);
lean_ctor_set(x_28, 1, x_26);
lean_ctor_set(x_28, 2, x_27);
x_29 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__4;
lean_inc(x_28);
lean_inc(x_16);
x_30 = l_Lean_Syntax_node2(x_16, x_29, x_28, x_28);
if (lean_obj_tag(x_9) == 0)
{
x_31 = x_27;
goto block_76;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_9, 0);
lean_inc(x_77);
lean_dec(x_9);
x_78 = l_Array_mkArray1___rarg(x_77);
x_31 = x_78;
goto block_76;
}
block_76:
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = l_Array_append___rarg(x_27, x_31);
lean_dec(x_31);
lean_inc(x_16);
x_33 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_33, 0, x_16);
lean_ctor_set(x_33, 1, x_26);
lean_ctor_set(x_33, 2, x_32);
if (lean_obj_tag(x_8) == 0)
{
x_34 = x_27;
goto block_73;
}
else
{
lean_object* x_74; lean_object* x_75; 
x_74 = lean_ctor_get(x_8, 0);
lean_inc(x_74);
lean_dec(x_8);
x_75 = l_Array_mkArray1___rarg(x_74);
x_34 = x_75;
goto block_73;
}
block_73:
{
lean_object* x_35; lean_object* x_36; 
x_35 = l_Array_append___rarg(x_27, x_34);
lean_dec(x_34);
lean_inc(x_16);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_16);
lean_ctor_set(x_36, 1, x_26);
lean_ctor_set(x_36, 2, x_35);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_37; lean_object* x_38; 
x_37 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_16);
x_38 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_38, 0, x_16);
lean_ctor_set(x_38, 1, x_26);
lean_ctor_set(x_38, 2, x_37);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_39 = l_Lake_DSL_scriptDeclSpec___closed__21;
lean_inc(x_38);
lean_inc(x_16);
x_40 = l_Lean_Syntax_node4(x_16, x_39, x_22, x_25, x_30, x_38);
lean_inc(x_16);
x_41 = l_Lean_Syntax_node3(x_16, x_5, x_6, x_38, x_40);
x_42 = l_Lean_Syntax_node4(x_16, x_7, x_33, x_36, x_20, x_41);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_42);
lean_ctor_set(x_43, 1, x_13);
return x_43;
}
else
{
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; 
x_44 = lean_ctor_get(x_11, 0);
lean_inc(x_44);
lean_dec(x_11);
x_45 = l_Array_mkArray1___rarg(x_44);
x_46 = l_Array_append___rarg(x_27, x_45);
lean_dec(x_45);
lean_inc(x_16);
x_47 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_47, 0, x_16);
lean_ctor_set(x_47, 1, x_26);
lean_ctor_set(x_47, 2, x_46);
x_48 = l_Lake_DSL_scriptDeclSpec___closed__21;
lean_inc(x_16);
x_49 = l_Lean_Syntax_node4(x_16, x_48, x_22, x_25, x_30, x_47);
lean_inc(x_16);
x_50 = l_Lean_Syntax_node3(x_16, x_5, x_6, x_38, x_49);
x_51 = l_Lean_Syntax_node4(x_16, x_7, x_33, x_36, x_20, x_50);
x_52 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_52, 0, x_51);
lean_ctor_set(x_52, 1, x_13);
return x_52;
}
}
else
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_53 = lean_ctor_get(x_4, 0);
lean_inc(x_53);
lean_dec(x_4);
x_54 = l_Array_mkArray1___rarg(x_53);
x_55 = l_Array_append___rarg(x_27, x_54);
lean_dec(x_54);
lean_inc(x_16);
x_56 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_56, 0, x_16);
lean_ctor_set(x_56, 1, x_26);
lean_ctor_set(x_56, 2, x_55);
if (lean_obj_tag(x_11) == 0)
{
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; 
x_57 = l_Lake_DSL_expandScriptDecl___lambda__1___closed__47;
lean_inc(x_16);
x_58 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_58, 0, x_16);
lean_ctor_set(x_58, 1, x_26);
lean_ctor_set(x_58, 2, x_57);
x_59 = l_Lake_DSL_scriptDeclSpec___closed__21;
lean_inc(x_16);
x_60 = l_Lean_Syntax_node4(x_16, x_59, x_22, x_25, x_30, x_58);
lean_inc(x_16);
x_61 = l_Lean_Syntax_node3(x_16, x_5, x_6, x_56, x_60);
x_62 = l_Lean_Syntax_node4(x_16, x_7, x_33, x_36, x_20, x_61);
x_63 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_63, 0, x_62);
lean_ctor_set(x_63, 1, x_13);
return x_63;
}
else
{
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; 
x_64 = lean_ctor_get(x_11, 0);
lean_inc(x_64);
lean_dec(x_11);
x_65 = l_Array_mkArray1___rarg(x_64);
x_66 = l_Array_append___rarg(x_27, x_65);
lean_dec(x_65);
lean_inc(x_16);
x_67 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_67, 0, x_16);
lean_ctor_set(x_67, 1, x_26);
lean_ctor_set(x_67, 2, x_66);
x_68 = l_Lake_DSL_scriptDeclSpec___closed__21;
lean_inc(x_16);
x_69 = l_Lean_Syntax_node4(x_16, x_68, x_22, x_25, x_30, x_67);
lean_inc(x_16);
x_70 = l_Lean_Syntax_node3(x_16, x_5, x_6, x_56, x_69);
x_71 = l_Lean_Syntax_node4(x_16, x_7, x_33, x_36, x_20, x_70);
x_72 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_13);
return x_72;
}
}
}
}
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declValDo", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__1;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__2;
x_3 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ill-formed script declaration", 29, 29);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("whereDecls", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDecl___closed__7;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_DSL_expandScriptDecl___lambda__3___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_Lake_DSL_scriptDeclSpec___closed__17;
x_2 = l_Lake_DSL_scriptDeclSpec___closed__18;
x_3 = l_Lake_DSL_scriptDecl___closed__7;
x_4 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___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) {
_start:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_unsigned_to_nat(2u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__2;
lean_inc(x_14);
x_16 = l_Lean_Syntax_isOfKind(x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
lean_dec(x_8);
lean_dec(x_7);
x_17 = l_Lake_DSL_scriptDeclSpec___closed__21;
lean_inc(x_14);
x_18 = l_Lean_Syntax_isOfKind(x_14, x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; 
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_19 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_20 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_19, x_11, 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(1u);
x_22 = l_Lean_Syntax_getArg(x_14, x_21);
x_23 = l_Lean_Syntax_getArg(x_14, x_13);
x_24 = l_Lake_DSL_expandScriptDecl___lambda__2___closed__4;
lean_inc(x_23);
x_25 = l_Lean_Syntax_isOfKind(x_23, x_24);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; 
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_26 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_27 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_26, x_11, x_12);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_28 = lean_unsigned_to_nat(0u);
x_29 = l_Lean_Syntax_getArg(x_23, x_28);
x_30 = l_Lean_Syntax_matchesNull(x_29, x_28);
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; 
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_31 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_32 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_31, x_11, x_12);
return x_32;
}
else
{
lean_object* x_33; uint8_t x_34; 
x_33 = l_Lean_Syntax_getArg(x_23, x_21);
lean_dec(x_23);
x_34 = l_Lean_Syntax_matchesNull(x_33, x_28);
if (x_34 == 0)
{
lean_object* x_35; lean_object* x_36; 
lean_dec(x_22);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_35 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_36 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_35, x_11, x_12);
return x_36;
}
else
{
lean_object* x_37; lean_object* x_38; uint8_t x_39; 
x_37 = lean_unsigned_to_nat(3u);
x_38 = l_Lean_Syntax_getArg(x_14, x_37);
lean_dec(x_14);
x_39 = l_Lean_Syntax_isNone(x_38);
if (x_39 == 0)
{
uint8_t x_40; 
lean_inc(x_38);
x_40 = l_Lean_Syntax_matchesNull(x_38, x_21);
if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; 
lean_dec(x_38);
lean_dec(x_22);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_41 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_42 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_41, x_11, x_12);
return x_42;
}
else
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = l_Lean_Syntax_getArg(x_38, x_28);
lean_dec(x_38);
x_44 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__5;
lean_inc(x_43);
x_45 = l_Lean_Syntax_isOfKind(x_43, x_44);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; 
lean_dec(x_43);
lean_dec(x_22);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_46 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_47 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_46, x_11, x_12);
return x_47;
}
else
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_48 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_48, 0, x_43);
x_49 = lean_box(0);
x_50 = l_Lake_DSL_expandScriptDecl___lambda__1(x_3, x_4, x_10, x_5, x_22, x_24, x_6, x_17, x_49, x_48, x_11, x_12);
return x_50;
}
}
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; 
lean_dec(x_38);
x_51 = lean_box(0);
x_52 = lean_box(0);
x_53 = l_Lake_DSL_expandScriptDecl___lambda__1(x_3, x_4, x_10, x_5, x_22, x_24, x_6, x_17, x_52, x_51, x_11, x_12);
return x_53;
}
}
}
}
}
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; 
x_54 = lean_unsigned_to_nat(0u);
x_55 = l_Lean_Syntax_getArg(x_14, x_54);
x_56 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__6;
lean_inc(x_55);
x_57 = l_Lean_Syntax_isOfKind(x_55, x_56);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; 
lean_dec(x_55);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_58 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_59 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_58, x_11, x_12);
return x_59;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_60 = lean_unsigned_to_nat(1u);
x_61 = l_Lean_Syntax_getArg(x_55, x_60);
lean_dec(x_55);
x_62 = l_Lean_Syntax_getArg(x_14, x_60);
lean_dec(x_14);
x_63 = l_Lean_Syntax_isNone(x_62);
if (x_63 == 0)
{
uint8_t x_64; 
lean_inc(x_62);
x_64 = l_Lean_Syntax_matchesNull(x_62, x_60);
if (x_64 == 0)
{
lean_object* x_65; lean_object* x_66; 
lean_dec(x_62);
lean_dec(x_61);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_65 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_66 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_65, x_11, x_12);
return x_66;
}
else
{
lean_object* x_67; lean_object* x_68; uint8_t x_69; 
x_67 = l_Lean_Syntax_getArg(x_62, x_54);
lean_dec(x_62);
x_68 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__5;
lean_inc(x_67);
x_69 = l_Lean_Syntax_isOfKind(x_67, x_68);
if (x_69 == 0)
{
lean_object* x_70; lean_object* x_71; 
lean_dec(x_67);
lean_dec(x_61);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_70 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_71 = l_Lean_Macro_throwErrorAt___rarg(x_2, x_70, x_11, x_12);
return x_71;
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_72, 0, x_67);
x_73 = lean_box(0);
x_74 = l_Lake_DSL_expandScriptDecl___lambda__2(x_4, x_56, x_61, x_10, x_7, x_3, x_8, x_5, x_6, x_73, x_72, x_11, x_12);
lean_dec(x_11);
return x_74;
}
}
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; 
lean_dec(x_62);
x_75 = lean_box(0);
x_76 = lean_box(0);
x_77 = l_Lake_DSL_expandScriptDecl___lambda__2(x_4, x_56, x_61, x_10, x_7, x_3, x_8, x_5, x_6, x_76, x_75, x_11, x_12);
lean_dec(x_11);
return x_77;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___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) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_8 = lean_unsigned_to_nat(2u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(3u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = l_Lake_DSL_scriptDeclSpec___closed__4;
lean_inc(x_11);
x_13 = l_Lean_Syntax_isOfKind(x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_14 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_15 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_14, x_6, x_7);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_16 = lean_unsigned_to_nat(0u);
x_17 = l_Lean_Syntax_getArg(x_11, x_16);
x_18 = lean_unsigned_to_nat(1u);
x_19 = l_Lean_Syntax_getArg(x_11, x_18);
x_20 = l_Lean_Syntax_isNone(x_19);
if (x_20 == 0)
{
uint8_t x_21; 
lean_inc(x_19);
x_21 = l_Lean_Syntax_matchesNull(x_19, x_18);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_22 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_23 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_22, x_6, x_7);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_24 = l_Lean_Syntax_getArg(x_19, x_16);
lean_dec(x_19);
x_25 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_25, 0, x_24);
x_26 = lean_box(0);
x_27 = l_Lake_DSL_expandScriptDecl___lambda__3(x_11, x_1, x_17, x_9, x_5, x_2, x_12, x_3, x_26, x_25, x_6, x_7);
lean_dec(x_9);
lean_dec(x_11);
return x_27;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_dec(x_19);
x_28 = lean_box(0);
x_29 = lean_box(0);
x_30 = l_Lake_DSL_expandScriptDecl___lambda__3(x_11, x_1, x_17, x_9, x_5, x_2, x_12, x_3, x_29, x_28, x_6, x_7);
lean_dec(x_9);
lean_dec(x_11);
return x_30;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___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) {
_start:
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_unsigned_to_nat(1u);
x_8 = l_Lean_Syntax_getArg(x_1, x_7);
x_9 = l_Lean_Syntax_isNone(x_8);
if (x_9 == 0)
{
uint8_t x_10; 
lean_inc(x_8);
x_10 = l_Lean_Syntax_matchesNull(x_8, x_7);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_2);
x_11 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_12 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_11, x_5, x_6);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_13 = lean_unsigned_to_nat(0u);
x_14 = l_Lean_Syntax_getArg(x_8, x_13);
lean_dec(x_8);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_16 = lean_box(0);
x_17 = l_Lake_DSL_expandScriptDecl___lambda__4(x_1, x_4, x_2, x_16, x_15, x_5, x_6);
return x_17;
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
lean_dec(x_8);
x_18 = lean_box(0);
x_19 = lean_box(0);
x_20 = l_Lake_DSL_expandScriptDecl___lambda__4(x_1, x_4, x_2, x_19, x_18, x_5, x_6);
return x_20;
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lake_DSL_scriptDecl___closed__2;
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; 
x_6 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_7 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_6, x_2, x_3);
lean_dec(x_1);
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; uint8_t x_12; 
x_11 = lean_unsigned_to_nat(1u);
lean_inc(x_9);
x_12 = l_Lean_Syntax_matchesNull(x_9, x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_9);
x_13 = l_Lake_DSL_expandScriptDecl___lambda__3___closed__3;
x_14 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_13, x_2, x_3);
lean_dec(x_1);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = l_Lean_Syntax_getArg(x_9, x_8);
lean_dec(x_9);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
x_17 = lean_box(0);
x_18 = l_Lake_DSL_expandScriptDecl___lambda__5(x_1, x_4, x_17, x_16, x_2, x_3);
lean_dec(x_1);
return x_18;
}
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
lean_dec(x_9);
x_19 = lean_box(0);
x_20 = lean_box(0);
x_21 = l_Lake_DSL_expandScriptDecl___lambda__5(x_1, x_4, x_20, x_19, x_2, x_3);
lean_dec(x_1);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__1___boxed(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; 
x_13 = l_Lake_DSL_expandScriptDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_9);
lean_dec(x_2);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__2___boxed(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; 
x_14 = l_Lake_DSL_expandScriptDecl___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_1);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__3___boxed(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; 
x_13 = l_Lake_DSL_expandScriptDecl___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_9);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__4___boxed(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; 
x_8 = l_Lake_DSL_expandScriptDecl___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_4);
lean_dec(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lake_DSL_expandScriptDecl___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lake_DSL_expandScriptDecl___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
lean_dec(x_1);
return x_7;
}
}
lean_object* initialize_Init(uint8_t builtin, lean_object*);
lean_object* initialize_Lake_Config_Package(uint8_t builtin, lean_object*);
lean_object* initialize_Lake_DSL_Attributes(uint8_t builtin, lean_object*);
lean_object* initialize_Lake_DSL_DeclUtil(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_DSL_Script(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Config_Package(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_DSL_Attributes(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_DSL_DeclUtil(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lake_DSL_scriptDeclSpec___closed__1 = _init_l_Lake_DSL_scriptDeclSpec___closed__1();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__1);
l_Lake_DSL_scriptDeclSpec___closed__2 = _init_l_Lake_DSL_scriptDeclSpec___closed__2();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__2);
l_Lake_DSL_scriptDeclSpec___closed__3 = _init_l_Lake_DSL_scriptDeclSpec___closed__3();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__3);
l_Lake_DSL_scriptDeclSpec___closed__4 = _init_l_Lake_DSL_scriptDeclSpec___closed__4();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__4);
l_Lake_DSL_scriptDeclSpec___closed__5 = _init_l_Lake_DSL_scriptDeclSpec___closed__5();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__5);
l_Lake_DSL_scriptDeclSpec___closed__6 = _init_l_Lake_DSL_scriptDeclSpec___closed__6();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__6);
l_Lake_DSL_scriptDeclSpec___closed__7 = _init_l_Lake_DSL_scriptDeclSpec___closed__7();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__7);
l_Lake_DSL_scriptDeclSpec___closed__8 = _init_l_Lake_DSL_scriptDeclSpec___closed__8();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__8);
l_Lake_DSL_scriptDeclSpec___closed__9 = _init_l_Lake_DSL_scriptDeclSpec___closed__9();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__9);
l_Lake_DSL_scriptDeclSpec___closed__10 = _init_l_Lake_DSL_scriptDeclSpec___closed__10();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__10);
l_Lake_DSL_scriptDeclSpec___closed__11 = _init_l_Lake_DSL_scriptDeclSpec___closed__11();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__11);
l_Lake_DSL_scriptDeclSpec___closed__12 = _init_l_Lake_DSL_scriptDeclSpec___closed__12();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__12);
l_Lake_DSL_scriptDeclSpec___closed__13 = _init_l_Lake_DSL_scriptDeclSpec___closed__13();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__13);
l_Lake_DSL_scriptDeclSpec___closed__14 = _init_l_Lake_DSL_scriptDeclSpec___closed__14();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__14);
l_Lake_DSL_scriptDeclSpec___closed__15 = _init_l_Lake_DSL_scriptDeclSpec___closed__15();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__15);
l_Lake_DSL_scriptDeclSpec___closed__16 = _init_l_Lake_DSL_scriptDeclSpec___closed__16();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__16);
l_Lake_DSL_scriptDeclSpec___closed__17 = _init_l_Lake_DSL_scriptDeclSpec___closed__17();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__17);
l_Lake_DSL_scriptDeclSpec___closed__18 = _init_l_Lake_DSL_scriptDeclSpec___closed__18();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__18);
l_Lake_DSL_scriptDeclSpec___closed__19 = _init_l_Lake_DSL_scriptDeclSpec___closed__19();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__19);
l_Lake_DSL_scriptDeclSpec___closed__20 = _init_l_Lake_DSL_scriptDeclSpec___closed__20();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__20);
l_Lake_DSL_scriptDeclSpec___closed__21 = _init_l_Lake_DSL_scriptDeclSpec___closed__21();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__21);
l_Lake_DSL_scriptDeclSpec___closed__22 = _init_l_Lake_DSL_scriptDeclSpec___closed__22();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__22);
l_Lake_DSL_scriptDeclSpec___closed__23 = _init_l_Lake_DSL_scriptDeclSpec___closed__23();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__23);
l_Lake_DSL_scriptDeclSpec___closed__24 = _init_l_Lake_DSL_scriptDeclSpec___closed__24();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__24);
l_Lake_DSL_scriptDeclSpec___closed__25 = _init_l_Lake_DSL_scriptDeclSpec___closed__25();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec___closed__25);
l_Lake_DSL_scriptDeclSpec = _init_l_Lake_DSL_scriptDeclSpec();
lean_mark_persistent(l_Lake_DSL_scriptDeclSpec);
l_Lake_DSL_scriptDecl___closed__1 = _init_l_Lake_DSL_scriptDecl___closed__1();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__1);
l_Lake_DSL_scriptDecl___closed__2 = _init_l_Lake_DSL_scriptDecl___closed__2();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__2);
l_Lake_DSL_scriptDecl___closed__3 = _init_l_Lake_DSL_scriptDecl___closed__3();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__3);
l_Lake_DSL_scriptDecl___closed__4 = _init_l_Lake_DSL_scriptDecl___closed__4();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__4);
l_Lake_DSL_scriptDecl___closed__5 = _init_l_Lake_DSL_scriptDecl___closed__5();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__5);
l_Lake_DSL_scriptDecl___closed__6 = _init_l_Lake_DSL_scriptDecl___closed__6();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__6);
l_Lake_DSL_scriptDecl___closed__7 = _init_l_Lake_DSL_scriptDecl___closed__7();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__7);
l_Lake_DSL_scriptDecl___closed__8 = _init_l_Lake_DSL_scriptDecl___closed__8();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__8);
l_Lake_DSL_scriptDecl___closed__9 = _init_l_Lake_DSL_scriptDecl___closed__9();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__9);
l_Lake_DSL_scriptDecl___closed__10 = _init_l_Lake_DSL_scriptDecl___closed__10();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__10);
l_Lake_DSL_scriptDecl___closed__11 = _init_l_Lake_DSL_scriptDecl___closed__11();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__11);
l_Lake_DSL_scriptDecl___closed__12 = _init_l_Lake_DSL_scriptDecl___closed__12();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__12);
l_Lake_DSL_scriptDecl___closed__13 = _init_l_Lake_DSL_scriptDecl___closed__13();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__13);
l_Lake_DSL_scriptDecl___closed__14 = _init_l_Lake_DSL_scriptDecl___closed__14();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__14);
l_Lake_DSL_scriptDecl___closed__15 = _init_l_Lake_DSL_scriptDecl___closed__15();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__15);
l_Lake_DSL_scriptDecl___closed__16 = _init_l_Lake_DSL_scriptDecl___closed__16();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__16);
l_Lake_DSL_scriptDecl___closed__17 = _init_l_Lake_DSL_scriptDecl___closed__17();
lean_mark_persistent(l_Lake_DSL_scriptDecl___closed__17);
l_Lake_DSL_scriptDecl = _init_l_Lake_DSL_scriptDecl();
lean_mark_persistent(l_Lake_DSL_scriptDecl);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__1 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__1);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__2 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__2);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__3 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__3();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__3);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__4 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__4();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__4);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__5 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__5();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__5);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__6 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__6();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__6);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__7 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__7();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__7);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__8 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__8();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__8);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__9 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__9();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__9);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__10 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__10();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__10);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__11 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__11();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__11);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__12 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__12();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__12);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__13 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__13();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__13);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__14 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__14();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__14);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__15 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__15();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__15);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__16 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__16();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__16);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__17 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__17();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__17);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__18 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__18();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__18);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__19 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__19();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__19);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__20 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__20();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__20);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__21 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__21();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__21);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__22 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__22();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__22);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__23 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__23();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__23);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__24 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__24();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__24);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__25 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__25();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__25);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__26 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__26();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__26);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__27 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__27();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__27);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__28 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__28();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__28);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__29 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__29();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__29);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__30 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__30();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__30);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__31 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__31();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__31);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__32 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__32();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__32);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__33 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__33();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__33);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__34 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__34();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__34);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__35 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__35();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__35);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__36 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__36();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__36);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__37 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__37();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__37);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__38 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__38();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__38);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__39 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__39();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__39);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__40 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__40();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__40);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__41 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__41();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__41);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__42 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__42();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__42);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__43 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__43();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__43);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__44 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__44();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__44);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__45 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__45();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__45);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__46 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__46();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__46);
l_Lake_DSL_expandScriptDecl___lambda__1___closed__47 = _init_l_Lake_DSL_expandScriptDecl___lambda__1___closed__47();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__1___closed__47);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__1 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__1);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__2 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__2);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__3 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__3();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__3);
l_Lake_DSL_expandScriptDecl___lambda__2___closed__4 = _init_l_Lake_DSL_expandScriptDecl___lambda__2___closed__4();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__2___closed__4);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__1 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__1();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__1);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__2 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__2();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__2);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__3 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__3();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__3);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__4 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__4();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__4);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__5 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__5();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__5);
l_Lake_DSL_expandScriptDecl___lambda__3___closed__6 = _init_l_Lake_DSL_expandScriptDecl___lambda__3___closed__6();
lean_mark_persistent(l_Lake_DSL_expandScriptDecl___lambda__3___closed__6);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
