From f0fdab86bbb123c3219ac9d537e1818331c541f3 Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Wed, 18 Jun 2025 10:07:05 +0000 Subject: [PATCH] chore: update stage0 --- stage0/src/stdlib_flags.h | 2 - stage0/stdlib/Init/NotationExtra.c | 505 +- stage0/stdlib/Lake/Build/Actions.c | 2641 +- stage0/stdlib/Lake/Build/Facets.c | 254 +- stage0/stdlib/Lake/Build/Info.c | 120 + stage0/stdlib/Lake/Build/Job/Monad.c | 259 - stage0/stdlib/Lake/Build/Module.c | 52089 +++++++++++++++------ stage0/stdlib/Lake/Build/Trace.c | 350 +- stage0/stdlib/Lake/CLI/Main.c | 5345 +-- stage0/stdlib/Lake/CLI/Serve.c | 4430 +- stage0/stdlib/Lake/Config/Meta.c | 1918 +- stage0/stdlib/Lake/Config/Module.c | 255 +- stage0/stdlib/Lean/Elab/Tactic/Grind.c | 567 +- stage0/stdlib/Lean/Meta/Tactic/Replace.c | 859 +- stage0/stdlib/Lean/Meta/Tactic/Revert.c | 69 + 15 files changed, 46765 insertions(+), 22898 deletions(-) diff --git a/stage0/src/stdlib_flags.h b/stage0/src/stdlib_flags.h index 1bbdca66f7..79a0e58edd 100644 --- a/stage0/src/stdlib_flags.h +++ b/stage0/src/stdlib_flags.h @@ -1,7 +1,5 @@ #include "util/options.h" -// Dear bot, please update stage 0 - namespace lean { options get_default_options() { options opts; diff --git a/stage0/stdlib/Init/NotationExtra.c b/stage0/stdlib/Init/NotationExtra.c index 24295b9a3f..f7346754b1 100644 --- a/stage0/stdlib/Init/NotationExtra.c +++ b/stage0/stdlib/Init/NotationExtra.c @@ -217,6 +217,7 @@ static lean_object* l_term_u03a3_x27___x2c_____closed__5; static lean_object* l_Lean_calcStep___closed__2; static lean_object* l___aux__Init__NotationExtra______macroRules__tacticFunext________1___lambda__2___closed__6; static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__40; +static lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__17; static lean_object* l_Lean_term__Matches___x7c___closed__8; static lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__haveI__1___closed__2; LEAN_EXPORT lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -274,6 +275,7 @@ static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__com static lean_object* l_Lean_command____Unif__hint________Where___x7c___x2d_u22a2_____closed__39; static lean_object* l_Lean_unbracketedExplicitBinders___closed__6; static lean_object* l_Lean_unbracketedExplicitBinders___closed__4; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_tacticFunext_________closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_reverse___rarg(lean_object*); @@ -288,6 +290,7 @@ static lean_object* l___aux__Init__NotationExtra______macroRules__term_x25_x5b__ static lean_object* l_Lean_calcSteps___closed__12; static lean_object* l_tacticFunext_________closed__6; static lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__haveI__1___closed__9; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__50; static lean_object* l_unexpandSubtype___closed__2; static lean_object* l_Lean_Parser_Command_classAbbrev___closed__23; @@ -443,6 +446,7 @@ lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_expandExplicitBindersAux_loop___closed__16; static lean_object* l_Lean_unifConstraintElem___closed__9; static lean_object* l_Lean_calcFirstStep___closed__3; +static lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__16; static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__44; lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_unexpandPSigma___boxed(lean_object*, lean_object*, lean_object*); @@ -576,6 +580,7 @@ LEAN_EXPORT lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Par static lean_object* l_term_u2203___x2c_____closed__7; static lean_object* l_Lean_Parser_Command_classAbbrev___closed__15; static lean_object* l_Lean_expandExplicitBindersAux_loop___closed__18; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__3(lean_object*, size_t, size_t, lean_object*); static lean_object* l_tacticFunext_________closed__12; static lean_object* l_Lean_command____Unif__hint________Where___x7c___x2d_u22a2_____closed__23; LEAN_EXPORT lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -654,6 +659,7 @@ static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__com static lean_object* l_Lean_cdot___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); static lean_object* l_Lean_command____Unif__hint________Where___x7c___x2d_u22a2_____closed__44; +static lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__1; static lean_object* l_Lean_calcSteps___closed__8; LEAN_EXPORT lean_object* l_unexpandUnit___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_unexpandMkArray0___rarg(lean_object*, lean_object*); @@ -667,8 +673,7 @@ static lean_object* l_Lean_calcFirstStep___closed__10; static lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__haveI__1___lambda__1___closed__1; static lean_object* l_term_u03a3___x2c_____closed__7; lean_object* lean_nat_sub(lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__2; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2(lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_mkArray1___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_expandExplicitBinders___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -704,6 +709,7 @@ static lean_object* l_Lean_unbracketedExplicitBinders___closed__15; lean_object* lean_array_mk(lean_object*); static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__21; static lean_object* l___aux__Init__NotationExtra______macroRules__term_u03a3___x2c____1___closed__1; +static lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__18; LEAN_EXPORT lean_object* l_unexpandListToArray___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_tacticFunext_________closed__2; static lean_object* l_Lean_calcSteps___closed__9; @@ -725,6 +731,7 @@ static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__ter static lean_object* l_Lean_Parser_Command_classAbbrev___closed__4; static lean_object* l___aux__Init__NotationExtra______macroRules__tacticFunext________1___closed__2; static lean_object* l_Lean_command____Unif__hint________Where___x7c___x2d_u22a2_____closed__3; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__19; static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__term__Matches___x7c__1___closed__9; LEAN_EXPORT lean_object* l_unexpandArrayEmpty___boxed(lean_object*); @@ -734,7 +741,6 @@ static lean_object* l___aux__Init__NotationExtra______macroRules__term_x25_x5b__ static lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__8; LEAN_EXPORT lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__letI__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__1; static lean_object* l_Lean_term__Matches___x7c___closed__1; LEAN_EXPORT lean_object* l___aux__Init__NotationExtra______macroRules__term_x7b___x7d__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__NotationExtra______macroRules__term_x7b___x7d__1___lambda__1___closed__2; @@ -749,7 +755,7 @@ static lean_object* l_term___xd7____1___closed__1; static lean_object* l_Lean_command____Unif__hint________Where___x7c___x2d_u22a2_____closed__18; LEAN_EXPORT lean_object* l_unexpandPSigma(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_unbracketedExplicitBinders___closed__9; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l___aux__Init__NotationExtra______macroRules__tacticFunext________1___closed__4; lean_object* lean_array_get_size(lean_object*); @@ -788,6 +794,7 @@ static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__ter static lean_object* l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__2; static lean_object* l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__46; LEAN_EXPORT lean_object* l_tacticFunext______; +static lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__2; static lean_object* l_Lean_calcSteps___closed__1; static lean_object* l_Lean_cdot___closed__3; static lean_object* l_Lean_term__Matches___x7c___closed__5; @@ -12250,7 +12257,55 @@ goto _start; } } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__1() { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_lt(x_3, x_2); +if (x_5 == 0) +{ +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_6 = lean_array_uget(x_4, x_3); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_4, x_3, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_3, x_9); +x_11 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_10; +x_4 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_lt(x_3, x_2); +if (x_5 == 0) +{ +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_6 = lean_array_uget(x_4, x_3); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_4, x_3, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_3, x_9); +x_11 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_10; +x_4 = x_11; +goto _start; +} +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__1() { _start: { lean_object* x_1; @@ -12258,19 +12313,19 @@ x_1 = lean_mk_string_unchecked("structParent", 12, 12); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__2() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___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_Lean_unbracketedExplicitBinders___closed__1; x_2 = l_Lean_expandExplicitBindersAux_loop___closed__1; x_3 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__10; -x_4 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__1; +x_4 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -12295,7 +12350,7 @@ x_11 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_11, 0, x_1); lean_ctor_set(x_11, 1, x_2); lean_ctor_set(x_11, 2, x_3); -x_12 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__2; +x_12 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__2; lean_inc(x_1); x_13 = l_Lean_Syntax_node2(x_1, x_12, x_11, x_8); x_14 = 1; @@ -12310,24 +12365,36 @@ goto _start; static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__1() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__3; +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___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__2() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string_unchecked("structure", 9, 9); return x_1; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__2() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_unbracketedExplicitBinders___closed__1; x_2 = l_Lean_expandExplicitBindersAux_loop___closed__1; x_3 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__10; -x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__1; +x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__3() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__4() { _start: { lean_object* x_1; @@ -12335,19 +12402,19 @@ x_1 = lean_mk_string_unchecked("classTk", 7, 7); return x_1; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__4() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___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_Lean_unbracketedExplicitBinders___closed__1; x_2 = l_Lean_expandExplicitBindersAux_loop___closed__1; x_3 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__10; -x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__3; +x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__4; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__5() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__6() { _start: { lean_object* x_1; @@ -12355,7 +12422,31 @@ x_1 = lean_mk_string_unchecked("class", 5, 5); return x_1; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__6() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_expandExplicitBindersAux_loop___closed__12; +x_2 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__1; +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___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_command____Unif__hint________Where___x7c___x2d_u22a2_____closed__15; +x_2 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__7; +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___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__9() { _start: { lean_object* x_1; @@ -12363,19 +12454,19 @@ x_1 = lean_mk_string_unchecked("extends", 7, 7); return x_1; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__7() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___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_Lean_unbracketedExplicitBinders___closed__1; x_2 = l_Lean_expandExplicitBindersAux_loop___closed__1; x_3 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__10; -x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__6; +x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___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___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__8() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__11() { _start: { lean_object* x_1; @@ -12383,19 +12474,19 @@ x_1 = lean_mk_string_unchecked("optDeriving", 11, 11); return x_1; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__9() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_unbracketedExplicitBinders___closed__1; x_2 = l_Lean_expandExplicitBindersAux_loop___closed__1; x_3 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__10; -x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__8; +x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__11; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__10() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__13() { _start: { lean_object* x_1; @@ -12403,19 +12494,19 @@ x_1 = lean_mk_string_unchecked("attribute", 9, 9); return x_1; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__11() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_unbracketedExplicitBinders___closed__1; x_2 = l_Lean_expandExplicitBindersAux_loop___closed__1; x_3 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__10; -x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__10; +x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__13; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__12() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15() { _start: { lean_object* x_1; @@ -12423,19 +12514,19 @@ x_1 = lean_mk_string_unchecked("instance", 8, 8); return x_1; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__13() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_unbracketedExplicitBinders___closed__1; x_2 = l_Lean_expandExplicitBindersAux_loop___closed__1; x_3 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__20; -x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__12; +x_4 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__14() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__17() { _start: { lean_object* x_1; @@ -12443,12 +12534,12 @@ x_1 = lean_mk_string_unchecked("mk", 2, 2); return x_1; } } -static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15() { +static lean_object* _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__14; +x_2 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__17; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -12478,213 +12569,225 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; x_17 = lean_ctor_get(x_14, 0); lean_inc(x_17); lean_dec(x_14); x_18 = l_Lean_Syntax_getArgs(x_2); -x_87 = lean_unsigned_to_nat(0u); -x_88 = l_Lean_Syntax_getArg(x_3, x_87); -x_89 = l_Lean_Syntax_getId(x_88); -lean_dec(x_88); -x_90 = l_Lean_Name_hasMacroScopes(x_89); -if (x_90 == 0) +x_97 = lean_unsigned_to_nat(0u); +x_98 = l_Lean_Syntax_getArg(x_3, x_97); +x_99 = l_Lean_Syntax_getId(x_98); +lean_dec(x_98); +x_100 = l_Lean_Name_hasMacroScopes(x_99); +if (x_100 == 0) { -lean_object* x_91; lean_object* x_92; -x_91 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15; -x_92 = l_Lean_Name_append(x_89, x_91); -x_19 = x_92; -goto block_86; +lean_object* x_101; lean_object* x_102; +x_101 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__18; +x_102 = l_Lean_Name_append(x_99, x_101); +x_19 = x_102; +goto block_96; } else { -lean_object* x_93; uint8_t x_94; -x_93 = l_Lean_extractMacroScopes(x_89); -x_94 = !lean_is_exclusive(x_93); -if (x_94 == 0) +lean_object* x_103; uint8_t x_104; +x_103 = l_Lean_extractMacroScopes(x_99); +x_104 = !lean_is_exclusive(x_103); +if (x_104 == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = lean_ctor_get(x_93, 0); -x_96 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15; -x_97 = l_Lean_Name_append(x_95, x_96); -lean_ctor_set(x_93, 0, x_97); -x_98 = l_Lean_MacroScopesView_review(x_93); -x_19 = x_98; -goto block_86; +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_103, 0); +x_106 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__18; +x_107 = l_Lean_Name_append(x_105, x_106); +lean_ctor_set(x_103, 0, x_107); +x_108 = l_Lean_MacroScopesView_review(x_103); +x_19 = x_108; +goto block_96; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_99 = lean_ctor_get(x_93, 0); -x_100 = lean_ctor_get(x_93, 1); -x_101 = lean_ctor_get(x_93, 2); -x_102 = lean_ctor_get(x_93, 3); -lean_inc(x_102); -lean_inc(x_101); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_93); -x_103 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15; -x_104 = l_Lean_Name_append(x_99, x_103); -x_105 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_100); -lean_ctor_set(x_105, 2, x_101); -lean_ctor_set(x_105, 3, x_102); -x_106 = l_Lean_MacroScopesView_review(x_105); -x_19 = x_106; -goto block_86; +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_109 = lean_ctor_get(x_103, 0); +x_110 = lean_ctor_get(x_103, 1); +x_111 = lean_ctor_get(x_103, 2); +x_112 = lean_ctor_get(x_103, 3); +lean_inc(x_112); +lean_inc(x_111); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_103); +x_113 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__18; +x_114 = l_Lean_Name_append(x_109, x_113); +x_115 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_110); +lean_ctor_set(x_115, 2, x_111); +lean_ctor_set(x_115, 3, x_112); +x_116 = l_Lean_MacroScopesView_review(x_115); +x_19 = x_116; +goto block_96; } } -block_86: +block_96: { -uint8_t 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; lean_object* x_32; lean_object* x_33; size_t 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; +uint8_t 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; size_t x_28; lean_object* x_29; lean_object* x_30; size_t 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; size_t 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; x_20 = 0; x_21 = l_Lean_mkIdentFrom(x_3, x_19, x_20); x_22 = lean_ctor_get(x_7, 5); x_23 = l_Lean_SourceInfo_fromRef(x_22, x_20); -x_24 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__5; +x_24 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__6; lean_inc(x_23); x_25 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); -x_26 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__4; +x_26 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__5; lean_inc(x_23); x_27 = l_Lean_Syntax_node1(x_23, x_26, x_25); -x_28 = l_Lean_expandExplicitBindersAux_loop___closed__14; -x_29 = l_Array_append___rarg(x_28, x_18); -lean_dec(x_18); -x_30 = l_Lean_expandExplicitBindersAux_loop___closed__6; +x_28 = lean_array_size(x_18); +x_29 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__7; +x_30 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2(x_29, x_28, x_13, x_18); +x_31 = lean_array_size(x_30); +x_32 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__8; +x_33 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__3(x_32, x_31, x_13, x_30); +x_34 = l_Lean_expandExplicitBindersAux_loop___closed__14; +x_35 = l_Array_append___rarg(x_34, x_33); +lean_dec(x_33); +x_36 = l_Lean_expandExplicitBindersAux_loop___closed__6; lean_inc(x_23); -x_31 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_31, 0, x_23); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set(x_31, 2, x_29); -x_32 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__6; +x_37 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_37, 0, x_23); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_35); +x_38 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__9; lean_inc(x_23); -x_33 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_33, 0, x_23); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_array_size(x_17); -lean_inc(x_23); -x_35 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2(x_23, x_30, x_28, x_34, x_13, x_17); -x_36 = l___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___closed__14; -x_37 = l_Lean_mkSepArray(x_35, x_36); -lean_dec(x_35); -x_38 = l_Array_append___rarg(x_28, x_37); -lean_dec(x_37); -lean_inc(x_23); -x_39 = lean_alloc_ctor(1, 3, 0); +x_39 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_39, 0, x_23); -lean_ctor_set(x_39, 1, x_30); -lean_ctor_set(x_39, 2, x_38); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_array_size(x_17); lean_inc(x_23); -x_40 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_40, 0, x_23); -lean_ctor_set(x_40, 1, x_30); -lean_ctor_set(x_40, 2, x_28); -x_41 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__7; -lean_inc(x_40); +x_41 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4(x_23, x_36, x_34, x_40, x_13, x_17); +x_42 = l___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___closed__14; +x_43 = l_Lean_mkSepArray(x_41, x_42); +lean_dec(x_41); +x_44 = l_Array_append___rarg(x_34, x_43); +lean_dec(x_43); lean_inc(x_23); -x_42 = l_Lean_Syntax_node3(x_23, x_41, x_33, x_39, x_40); +x_45 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_45, 0, x_23); +lean_ctor_set(x_45, 1, x_36); +lean_ctor_set(x_45, 2, x_44); lean_inc(x_23); -x_43 = l_Lean_Syntax_node1(x_23, x_30, x_42); -x_44 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__9; -lean_inc(x_40); +x_46 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_46, 0, x_23); +lean_ctor_set(x_46, 1, x_36); +lean_ctor_set(x_46, 2, x_34); +x_47 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__10; +lean_inc(x_46); lean_inc(x_23); -x_45 = l_Lean_Syntax_node1(x_23, x_44, x_40); -x_46 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__10; +x_48 = l_Lean_Syntax_node3(x_23, x_47, x_39, x_45, x_46); lean_inc(x_23); -x_47 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_47, 0, x_23); -lean_ctor_set(x_47, 1, x_46); -x_48 = l_unexpandListNil___rarg___closed__3; +x_49 = l_Lean_Syntax_node1(x_23, x_36, x_48); +x_50 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__12; +lean_inc(x_46); 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_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__1; -lean_inc(x_40); -lean_inc(x_23); -x_51 = l_Lean_Syntax_node1(x_23, x_50, x_40); -x_52 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__12; +x_51 = l_Lean_Syntax_node1(x_23, x_50, x_46); +x_52 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__13; lean_inc(x_23); x_53 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_53, 0, x_23); lean_ctor_set(x_53, 1, x_52); -x_54 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__13; -lean_inc(x_40); +x_54 = l_unexpandListNil___rarg___closed__3; lean_inc(x_23); -x_55 = l_Lean_Syntax_node2(x_23, x_54, x_53, x_40); -x_56 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__19; +x_55 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_55, 0, x_23); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__1; +lean_inc(x_46); lean_inc(x_23); -x_57 = l_Lean_Syntax_node2(x_23, x_56, x_51, x_55); +x_57 = l_Lean_Syntax_node1(x_23, x_56, x_46); +x_58 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15; lean_inc(x_23); -x_58 = l_Lean_Syntax_node1(x_23, x_30, x_57); -x_59 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__26; +x_59 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_59, 0, x_23); +lean_ctor_set(x_59, 1, x_58); +x_60 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__16; +lean_inc(x_46); lean_inc(x_23); -x_60 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_60, 0, x_23); -lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_Syntax_node2(x_23, x_60, x_59, x_46); +x_62 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__19; lean_inc(x_23); -x_61 = l_Lean_Syntax_node1(x_23, x_30, x_21); -x_62 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__11; +x_63 = l_Lean_Syntax_node2(x_23, x_62, x_57, x_61); lean_inc(x_23); -x_63 = l_Lean_Syntax_node5(x_23, x_62, x_47, x_49, x_58, x_60, x_61); +x_64 = l_Lean_Syntax_node1(x_23, x_36, x_63); +x_65 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__26; +lean_inc(x_23); +x_66 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_66, 0, x_23); +lean_ctor_set(x_66, 1, x_65); +lean_inc(x_23); +x_67 = l_Lean_Syntax_node1(x_23, x_36, x_21); +x_68 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__14; +lean_inc(x_23); +x_69 = l_Lean_Syntax_node5(x_23, x_68, x_53, x_55, x_64, x_66, x_67); if (lean_obj_tag(x_6) == 0) { -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; -x_64 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__50; +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; +x_70 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__50; lean_inc(x_23); -x_65 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_65, 0, x_23); -lean_ctor_set(x_65, 1, x_30); -lean_ctor_set(x_65, 2, x_64); -x_66 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__2; +x_71 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_71, 0, x_23); +lean_ctor_set(x_71, 1, x_36); +lean_ctor_set(x_71, 2, x_70); +x_72 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__36; lean_inc(x_23); -x_67 = l_Lean_Syntax_node7(x_23, x_66, x_27, x_3, x_31, x_65, x_43, x_40, x_45); -x_68 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__12; +x_73 = l_Lean_Syntax_node2(x_23, x_72, x_37, x_71); +x_74 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__3; lean_inc(x_23); -x_69 = l_Lean_Syntax_node2(x_23, x_68, x_4, x_67); -x_70 = l_Lean_Syntax_node2(x_23, x_30, x_69, x_63); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_8); -return x_71; +x_75 = l_Lean_Syntax_node6(x_23, x_74, x_27, x_3, x_73, x_49, x_46, x_51); +x_76 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__12; +lean_inc(x_23); +x_77 = l_Lean_Syntax_node2(x_23, x_76, x_4, x_75); +x_78 = l_Lean_Syntax_node2(x_23, x_36, x_77, x_69); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_8); +return x_79; } else { -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_72 = lean_ctor_get(x_6, 0); -lean_inc(x_72); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_80 = lean_ctor_get(x_6, 0); +lean_inc(x_80); lean_dec(x_6); -x_73 = l_Lean_expandExplicitBindersAux_loop___closed__18; +x_81 = l_Lean_expandExplicitBindersAux_loop___closed__18; lean_inc(x_23); -x_74 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_74, 0, x_23); -lean_ctor_set(x_74, 1, x_73); -x_75 = l_Lean_expandExplicitBindersAux_loop___closed__17; +x_82 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_82, 0, x_23); +lean_ctor_set(x_82, 1, x_81); +x_83 = l_Lean_expandExplicitBindersAux_loop___closed__17; lean_inc(x_23); -x_76 = l_Lean_Syntax_node2(x_23, x_75, x_74, x_72); -x_77 = l_Array_mkArray1___rarg(x_76); -x_78 = l_Array_append___rarg(x_28, x_77); -lean_dec(x_77); +x_84 = l_Lean_Syntax_node2(x_23, x_83, x_82, x_80); +x_85 = l_Array_mkArray1___rarg(x_84); +x_86 = l_Array_append___rarg(x_34, x_85); +lean_dec(x_85); lean_inc(x_23); -x_79 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_79, 0, x_23); -lean_ctor_set(x_79, 1, x_30); -lean_ctor_set(x_79, 2, x_78); -x_80 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__2; +x_87 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_87, 0, x_23); +lean_ctor_set(x_87, 1, x_36); +lean_ctor_set(x_87, 2, x_86); +x_88 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__36; lean_inc(x_23); -x_81 = l_Lean_Syntax_node7(x_23, x_80, x_27, x_3, x_31, x_79, x_43, x_40, x_45); -x_82 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__12; +x_89 = l_Lean_Syntax_node2(x_23, x_88, x_37, x_87); +x_90 = l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__3; lean_inc(x_23); -x_83 = l_Lean_Syntax_node2(x_23, x_82, x_4, x_81); -x_84 = l_Lean_Syntax_node2(x_23, x_30, x_83, x_63); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_8); -return x_85; +x_91 = l_Lean_Syntax_node6(x_23, x_90, x_27, x_3, x_89, x_49, x_46, x_51); +x_92 = l_Lean___aux__Init__NotationExtra______macroRules__Lean__command____Unif__hint________Where___x7c___x2d_u22a2____1___lambda__1___closed__12; +lean_inc(x_23); +x_93 = l_Lean_Syntax_node2(x_23, x_92, x_4, x_91); +x_94 = l_Lean_Syntax_node2(x_23, x_36, x_93, x_69); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_8); +return x_95; } } } @@ -12807,7 +12910,33 @@ x_6 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Le return x_6; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__3(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__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) { _start: { size_t x_7; size_t x_8; lean_object* x_9; @@ -12815,7 +12944,7 @@ x_7 = lean_unbox_usize(x_4); lean_dec(x_4); x_8 = lean_unbox_usize(x_5); lean_dec(x_5); -x_9 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2(x_1, x_2, x_3, x_7, x_8, x_6); +x_9 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4(x_1, x_2, x_3, x_7, x_8, x_6); return x_9; } } @@ -17187,10 +17316,10 @@ l_Lean_Parser_Command_classAbbrev___closed__30 = _init_l_Lean_Parser_Command_cla lean_mark_persistent(l_Lean_Parser_Command_classAbbrev___closed__30); l_Lean_Parser_Command_classAbbrev = _init_l_Lean_Parser_Command_classAbbrev(); lean_mark_persistent(l_Lean_Parser_Command_classAbbrev); -l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__1 = _init_l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__1); -l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__2 = _init_l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__2(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__2___closed__2); +l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__1 = _init_l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__1); +l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__2 = _init_l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___spec__4___closed__2); l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__1 = _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__1(); lean_mark_persistent(l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__1); l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__2 = _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__2(); @@ -17221,6 +17350,12 @@ l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev lean_mark_persistent(l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__14); l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15 = _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15(); lean_mark_persistent(l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__15); +l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__16 = _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__16(); +lean_mark_persistent(l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__16); +l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__17 = _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__17(); +lean_mark_persistent(l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__17); +l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__18 = _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__18(); +lean_mark_persistent(l___aux__Init__NotationExtra______macroRules__Lean__Parser__Command__classAbbrev__1___lambda__1___closed__18); l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__haveI__1___lambda__1___closed__1 = _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__haveI__1___lambda__1___closed__1(); lean_mark_persistent(l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__haveI__1___lambda__1___closed__1); l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__haveI__1___lambda__1___closed__2 = _init_l___aux__Init__NotationExtra______macroRules__Lean__Parser__Term__haveI__1___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lake/Build/Actions.c b/stage0/stdlib/Lake/Build/Actions.c index f92aed897b..2a3a86ef77 100644 --- a/stage0/stdlib/Lake/Build/Actions.c +++ b/stage0/stdlib/Lake/Build/Actions.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lake.Build.Actions -// Imports: Lake.Config.Dynlib Lake.Util.Proc Lake.Util.NativeLib Lake.Util.FilePath Lake.Util.IO +// Imports: Lean.Setup Lean.Data.Json Lake.Config.Dynlib Lake.Util.Proc Lake.Util.NativeLib Lake.Util.FilePath Lake.Util.IO #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -19,20 +19,18 @@ lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_compileO(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_mkArgs___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_tar___lambda__1___closed__2; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); static lean_object* l_Lake_compileSharedLib___closed__1; static lean_object* l_Lake_tar___lambda__1___closed__5; lean_object* lean_io_prim_handle_put_str(lean_object*, lean_object*, lean_object*); lean_object* lean_uint32_to_nat(uint32_t); -static lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3; static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_mkArgs___spec__2___closed__1; lean_object* lean_io_remove_file(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_download___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_compileLeanModule___lambda__5___closed__1; static lean_object* l_Lake_download___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lake_compileSharedLib(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__6(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_EXPORT lean_object* l_Lake_compileLeanModule___lambda__6(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_compileLeanModule___lambda__4___closed__1; extern uint8_t l_System_Platform_isOSX; lean_object* lean_array_push(lean_object*, lean_object*); @@ -42,16 +40,16 @@ LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__2___boxed(lean_objec uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lake_untar___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lake_download(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_compileLeanModule___lambda__3___closed__2; lean_object* lean_io_getenv(lean_object*, lean_object*); -static lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; static lean_object* l_Lake_download___lambda__1___closed__5; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_compileLeanModule___lambda__6___closed__1; -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__6___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_EXPORT lean_object* l_Lake_compileLeanModule___lambda__6___boxed(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_download___lambda__1___closed__2; -LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_compileLeanModule(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*); +LEAN_EXPORT lean_object* l_Lake_compileLeanModule(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_tar___lambda__1___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_download___spec__1___closed__1; lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); @@ -76,10 +74,13 @@ LEAN_EXPORT lean_object* l_Lake_compileStaticLib___boxed(lean_object*, lean_obje static lean_object* l_Lake_untar___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lake_tar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_compileStaticLib___spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lake_download___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_mkCmdLog(lean_object*); static lean_object* l___private_Lake_Build_Actions_0__Lake_getMacOSXDeploymentEnv___closed__6; -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__7(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_EXPORT lean_object* l_Lake_compileLeanModule___lambda__7(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___private_Lean_Setup_0__Lean_toJsonModuleSetup____x40_Lean_Setup___hyg_1598_(lean_object*); LEAN_EXPORT lean_object* l_Lake_mkArgs(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_tar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,8 +94,6 @@ static lean_object* l_Lake_compileStaticLib___closed__3; LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_prim_handle_mk(lean_object*, uint8_t, lean_object*); static lean_object* l_Lake_untar___closed__2; -LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_compileStaticLib___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_mkArgs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_untar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); @@ -110,25 +109,24 @@ LEAN_EXPORT lean_object* l_Lake_compileO___boxed(lean_object*, lean_object*, lea static lean_object* l_Lake_compileStaticLib___closed__1; LEAN_EXPORT lean_object* l_Lake_download___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_tar___closed__5; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_compileLeanModule___lambda__4___closed__4; static lean_object* l_Lake_compileO___closed__1; lean_object* l_Std_Internal_Parsec_String_Parser_run___rarg(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__2; lean_object* l_System_SearchPath_toString(lean_object*); static lean_object* l___private_Lake_Build_Actions_0__Lake_getMacOSXDeploymentEnv___closed__5; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_foldlAux___at_Lake_mkArgs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(lean_object*, lean_object*, lean_object*); -static lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__1; uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); static lean_object* l_Lake_compileLeanModule___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lake_tar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_compileLeanModule___lambda__3___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_tar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_download___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__2; lean_object* l_Lake_mkRelPathString(lean_object*); static lean_object* l___private_Lake_Build_Actions_0__Lake_getMacOSXDeploymentEnv___closed__2; lean_object* l_Lean_Json_Parser_any(lean_object*); @@ -147,132 +145,30 @@ lean_object* lean_io_error_to_string(lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_mkArgs___spec__2___closed__2; lean_object* l___private_Lean_Message_0__Lean_fromJsonSerialMessage____x40_Lean_Message___hyg_4086_(lean_object*); static lean_object* l_Lake_mkArgs___closed__1; +lean_object* l_IO_FS_writeFile(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_tar___closed__3; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2___closed__1; -LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Lake_compileLeanModule___lambda__7___closed__1; lean_object* lean_array_get_size(lean_object*); +static lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__1; static lean_object* l_Lake_compileLeanModule___lambda__4___closed__3; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lake_compileStaticLib___closed__2; -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___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*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_compileLeanModule___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* l_Lake_LogEntry_ofSerialMessage(lean_object*); LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__5___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* l_Lean_Json_pretty(lean_object*, lean_object*); extern uint8_t l_System_Platform_isWindows; -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__7___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*); +LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__7___boxed(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_compileLeanModule___lambda__2___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l___private_Lake_Build_Actions_0__Lake_getMacOSXDeploymentEnv___closed__1; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_untar___closed__1; static lean_object* l_Lake_tar___lambda__1___closed__4; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Actions_0__Lake_getMacOSXDeploymentEnv___closed__3; -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("--load-dynlib", 13, 13); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; -x_10 = lean_usize_dec_lt(x_6, x_5); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -lean_dec(x_2); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_9); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; -x_13 = lean_array_uget(x_4, x_6); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -lean_inc(x_2); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_2); -x_16 = l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1___closed__1; -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_array_mk(x_17); -x_19 = l_Array_append___rarg(x_7, x_18); -lean_dec(x_18); -x_20 = 1; -x_21 = lean_usize_add(x_6, x_20); -x_6 = x_21; -x_7 = x_19; -goto _start; -} -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("--plugin", 8, 8); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; -x_10 = lean_usize_dec_lt(x_6, x_5); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -lean_dec(x_2); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_9); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; -x_13 = lean_array_uget(x_4, x_6); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -lean_inc(x_2); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_2); -x_16 = l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2___closed__1; -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_array_mk(x_17); -x_19 = l_Array_append___rarg(x_7, x_18); -lean_dec(x_18); -x_20 = 1; -x_21 = lean_usize_add(x_6, x_20); -x_6 = x_21; -x_7 = x_19; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___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_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___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) { _start: { lean_object* x_7; uint8_t x_8; @@ -413,7 +309,7 @@ return x_46; } } } -static lean_object* _init_l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__1() { +static lean_object* _init_l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__1() { _start: { lean_object* x_1; @@ -421,7 +317,7 @@ x_1 = lean_mk_string_unchecked("\n", 1, 1); return x_1; } } -static lean_object* _init_l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__2() { +static lean_object* _init_l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__2() { _start: { lean_object* x_1; @@ -429,7 +325,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Json_Parser_any), 1, 0); return x_1; } } -static lean_object* _init_l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3() { +static lean_object* _init_l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__3() { _start: { lean_object* x_1; @@ -437,7 +333,7 @@ x_1 = lean_mk_string_unchecked("stdout:\n", 8, 8); return x_1; } } -static lean_object* _init_l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4() { +static lean_object* _init_l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4() { _start: { lean_object* x_1; @@ -445,7 +341,7 @@ x_1 = lean_mk_string_unchecked("", 0, 0); return x_1; } } -LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__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_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__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) { _start: { if (lean_obj_tag(x_4) == 0) @@ -468,7 +364,7 @@ lean_inc(x_9); x_10 = lean_ctor_get(x_4, 1); lean_inc(x_10); lean_dec(x_4); -x_26 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__2; +x_26 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__2; lean_inc(x_9); x_27 = l_Std_Internal_Parsec_String_Parser_run___rarg(x_26, x_9); if (lean_obj_tag(x_27) == 0) @@ -507,9 +403,9 @@ lean_dec(x_33); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t 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; -x_35 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3; +x_35 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__3; x_36 = lean_string_append(x_35, x_3); -x_37 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_37 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_38 = lean_string_append(x_36, x_37); x_39 = 1; x_40 = lean_alloc_ctor(0, 1, 1); @@ -518,7 +414,7 @@ lean_ctor_set_uint8(x_40, sizeof(void*)*1, x_39); x_41 = lean_array_push(x_5, x_40); x_42 = lean_box(0); lean_inc(x_1); -x_43 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___lambda__1(x_32, x_1, x_3, x_42, x_41, x_6); +x_43 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___lambda__1(x_32, x_1, x_3, x_42, x_41, x_6); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -540,7 +436,7 @@ else lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; x_49 = lean_box(0); lean_inc(x_1); -x_50 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___lambda__1(x_32, x_1, x_3, x_49, x_5, x_6); +x_50 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___lambda__1(x_32, x_1, x_3, x_49, x_5, x_6); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -571,7 +467,7 @@ if (x_13 == 0) lean_object* x_14; lean_object* x_15; lean_object* x_16; x_14 = lean_string_append(x_3, x_9); lean_dec(x_9); -x_15 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__1; +x_15 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__1; x_16 = lean_string_append(x_14, x_15); x_3 = x_16; x_4 = x_10; @@ -588,7 +484,7 @@ if (x_19 == 0) lean_object* x_20; lean_object* x_21; lean_object* x_22; x_20 = lean_string_append(x_3, x_9); lean_dec(x_9); -x_21 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__1; +x_21 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__1; x_22 = lean_string_append(x_20, x_21); x_3 = x_22; x_4 = x_10; @@ -641,7 +537,7 @@ x_13 = l_Nat_reprFast(x_12); x_14 = l_Lake_compileLeanModule___lambda__1___closed__1; x_15 = lean_string_append(x_14, x_13); lean_dec(x_13); -x_16 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_16 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_17 = lean_string_append(x_15, x_16); x_18 = 3; x_19 = lean_alloc_ctor(0, 1, 1); @@ -686,7 +582,7 @@ lean_dec(x_9); x_12 = l_Lake_compileLeanModule___lambda__2___closed__1; x_13 = lean_string_append(x_12, x_11); lean_dec(x_11); -x_14 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_14 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_15 = lean_string_append(x_13, x_14); x_16 = 1; x_17 = lean_alloc_ctor(0, 1, 1); @@ -824,7 +720,7 @@ x_16 = lean_string_append(x_14, x_15); x_17 = lean_io_error_to_string(x_12); x_18 = lean_string_append(x_16, x_17); lean_dec(x_17); -x_19 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_19 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_20 = lean_string_append(x_18, x_19); x_21 = 3; x_22 = lean_alloc_ctor(0, 1, 1); @@ -856,7 +752,7 @@ x_31 = lean_string_append(x_29, x_30); x_32 = lean_io_error_to_string(x_27); x_33 = lean_string_append(x_31, x_32); lean_dec(x_32); -x_34 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_34 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_35 = lean_string_append(x_33, x_34); x_36 = 3; x_37 = lean_alloc_ctor(0, 1, 1); @@ -916,13 +812,21 @@ static lean_object* _init_l_Lake_compileLeanModule___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--json", 6, 6); +x_1 = lean_mk_string_unchecked("--setup", 7, 7); return x_1; } } static lean_object* _init_l_Lake_compileLeanModule___lambda__4___closed__2() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("--json", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lake_compileLeanModule___lambda__4___closed__3() { +_start: +{ uint8_t x_1; lean_object* x_2; x_1 = 1; x_2 = lean_alloc_ctor(0, 0, 3); @@ -932,7 +836,7 @@ lean_ctor_set_uint8(x_2, 2, x_1); return x_2; } } -static lean_object* _init_l_Lake_compileLeanModule___lambda__4___closed__3() { +static lean_object* _init_l_Lake_compileLeanModule___lambda__4___closed__4() { _start: { lean_object* x_1; @@ -943,1287 +847,643 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_11 = lean_box(0); -x_12 = lean_array_size(x_1); -x_13 = 0; -lean_inc(x_2); -x_14 = l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1(x_1, x_2, x_11, x_1, x_12, x_13, x_7, x_9, x_10); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) +lean_object* x_11; lean_object* x_12; lean_object* x_137; +x_137 = l_Lake_createParentDirs(x_1, x_10); +if (lean_obj_tag(x_137) == 0) { -lean_object* x_18; lean_object* x_19; size_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_18 = lean_ctor_get(x_15, 0); -x_19 = lean_ctor_get(x_15, 1); -x_20 = lean_array_size(x_3); -lean_inc(x_2); -x_21 = l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2(x_3, x_2, x_11, x_3, x_20, x_13, x_18, x_19, x_16); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_21)) { - lean_ctor_release(x_21, 0); - lean_ctor_release(x_21, 1); - x_24 = x_21; -} else { - lean_dec_ref(x_21); - x_24 = lean_box(0); +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_138 = lean_ctor_get(x_137, 1); +lean_inc(x_138); +lean_dec(x_137); +x_139 = l___private_Lean_Setup_0__Lean_toJsonModuleSetup____x40_Lean_Setup___hyg_1598_(x_6); +x_140 = lean_unsigned_to_nat(80u); +x_141 = l_Lean_Json_pretty(x_139, x_140); +x_142 = l_IO_FS_writeFile(x_1, x_141, x_138); +lean_dec(x_141); +if (lean_obj_tag(x_142) == 0) +{ +uint8_t x_143; +x_143 = !lean_is_exclusive(x_142); +if (x_143 == 0) +{ +lean_object* x_144; +x_144 = lean_ctor_get(x_142, 1); +lean_ctor_set(x_142, 1, x_9); +x_11 = x_142; +x_12 = x_144; +goto block_136; } -x_25 = !lean_is_exclusive(x_22); -if (x_25 == 0) +else { -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; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_26 = lean_ctor_get(x_22, 0); -x_27 = lean_ctor_get(x_22, 1); -x_28 = l_Lake_compileLeanModule___lambda__4___closed__1; -x_29 = lean_array_push(x_26, x_28); -x_30 = lean_box(0); -x_31 = l_System_SearchPath_toString(x_4); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_31); -x_33 = l_Lake_compileLeanModule___lambda__4___closed__3; -lean_ctor_set(x_22, 1, x_32); -lean_ctor_set(x_22, 0, x_33); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 1, x_2); -lean_ctor_set(x_15, 0, x_22); -x_34 = lean_array_mk(x_15); -x_35 = l_Lake_compileLeanModule___lambda__4___closed__2; -x_36 = 1; -x_37 = 0; -lean_inc(x_5); -x_38 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_38, 0, x_35); -lean_ctor_set(x_38, 1, x_5); -lean_ctor_set(x_38, 2, x_29); -lean_ctor_set(x_38, 3, x_30); -lean_ctor_set(x_38, 4, x_34); -lean_ctor_set_uint8(x_38, sizeof(void*)*5, x_36); -lean_ctor_set_uint8(x_38, sizeof(void*)*5 + 1, x_37); -x_39 = lean_array_get_size(x_27); -lean_inc(x_38); -x_124 = l_Lake_mkCmdLog(x_38); -x_125 = 0; -x_126 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set_uint8(x_126, sizeof(void*)*1, x_125); -x_127 = lean_array_push(x_27, x_126); -x_128 = lean_box(0); -x_129 = l_Lake_compileLeanModule___lambda__3(x_38, x_5, x_128, x_127, x_23); +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_142, 0); +x_146 = lean_ctor_get(x_142, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_142); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_9); +x_11 = x_147; +x_12 = x_146; +goto block_136; +} +} +else +{ +uint8_t x_148; +x_148 = !lean_is_exclusive(x_142); +if (x_148 == 0) +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_149 = lean_ctor_get(x_142, 0); +x_150 = lean_ctor_get(x_142, 1); +x_151 = lean_io_error_to_string(x_149); +x_152 = 3; +x_153 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set_uint8(x_153, sizeof(void*)*1, x_152); +x_154 = lean_array_get_size(x_9); +x_155 = lean_array_push(x_9, x_153); +lean_ctor_set(x_142, 1, x_155); +lean_ctor_set(x_142, 0, x_154); +x_11 = x_142; +x_12 = x_150; +goto block_136; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_156 = lean_ctor_get(x_142, 0); +x_157 = lean_ctor_get(x_142, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_142); +x_158 = lean_io_error_to_string(x_156); +x_159 = 3; +x_160 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_160, 0, x_158); +lean_ctor_set_uint8(x_160, sizeof(void*)*1, x_159); +x_161 = lean_array_get_size(x_9); +x_162 = lean_array_push(x_9, x_160); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 1, x_162); +x_11 = x_163; +x_12 = x_157; +goto block_136; +} +} +} +else +{ +uint8_t x_164; +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -if (lean_obj_tag(x_130) == 0) +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_164 = !lean_is_exclusive(x_137); +if (x_164 == 0) { -lean_object* x_131; -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_40 = x_130; -x_41 = x_131; -goto block_123; +lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_165 = lean_ctor_get(x_137, 0); +x_166 = lean_io_error_to_string(x_165); +x_167 = 3; +x_168 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set_uint8(x_168, sizeof(void*)*1, x_167); +x_169 = lean_array_get_size(x_9); +x_170 = lean_array_push(x_9, x_168); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +lean_ctor_set_tag(x_137, 0); +lean_ctor_set(x_137, 0, x_171); +return x_137; } else { -lean_object* x_132; uint8_t x_133; -x_132 = lean_ctor_get(x_129, 1); -lean_inc(x_132); -lean_dec(x_129); -x_133 = !lean_is_exclusive(x_130); -if (x_133 == 0) +lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_172 = lean_ctor_get(x_137, 0); +x_173 = lean_ctor_get(x_137, 1); +lean_inc(x_173); +lean_inc(x_172); +lean_dec(x_137); +x_174 = lean_io_error_to_string(x_172); +x_175 = 3; +x_176 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set_uint8(x_176, sizeof(void*)*1, x_175); +x_177 = lean_array_get_size(x_9); +x_178 = lean_array_push(x_9, x_176); +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_173); +return x_180; +} +} +block_136: { -lean_object* x_134; -x_134 = lean_ctor_get(x_130, 0); -lean_dec(x_134); -lean_inc(x_39); -lean_ctor_set(x_130, 0, x_39); -x_40 = x_130; -x_41 = x_132; -goto block_123; +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* 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; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_2); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_2); +x_15 = l_Lake_compileLeanModule___lambda__4___closed__1; +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_array_mk(x_16); +x_18 = l_Array_append___rarg(x_7, x_17); +lean_dec(x_17); +x_19 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_20 = lean_array_push(x_18, x_19); +x_21 = lean_box(0); +x_22 = l_System_SearchPath_toString(x_3); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = l_Lake_compileLeanModule___lambda__4___closed__4; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_2); +x_27 = lean_array_mk(x_26); +x_28 = l_Lake_compileLeanModule___lambda__4___closed__3; +x_29 = 1; +x_30 = 0; +lean_inc(x_4); +x_31 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_31, 0, x_28); +lean_ctor_set(x_31, 1, x_4); +lean_ctor_set(x_31, 2, x_20); +lean_ctor_set(x_31, 3, x_21); +lean_ctor_set(x_31, 4, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*5, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*5 + 1, x_30); +x_32 = lean_array_get_size(x_13); +lean_inc(x_31); +x_117 = l_Lake_mkCmdLog(x_31); +x_118 = 0; +x_119 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_118); +x_120 = lean_array_push(x_13, x_119); +x_121 = lean_box(0); +x_122 = l_Lake_compileLeanModule___lambda__3(x_31, x_4, x_121, x_120, x_12); +lean_dec(x_4); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +lean_object* x_124; +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_33 = x_123; +x_34 = x_124; +goto block_116; } else { -lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_130, 1); -lean_inc(x_135); -lean_dec(x_130); -lean_inc(x_39); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_39); -lean_ctor_set(x_136, 1, x_135); -x_40 = x_136; -x_41 = x_132; -goto block_123; +lean_object* x_125; uint8_t x_126; +x_125 = lean_ctor_get(x_122, 1); +lean_inc(x_125); +lean_dec(x_122); +x_126 = !lean_is_exclusive(x_123); +if (x_126 == 0) +{ +lean_object* x_127; +x_127 = lean_ctor_get(x_123, 0); +lean_dec(x_127); +lean_inc(x_32); +lean_ctor_set(x_123, 0, x_32); +x_33 = x_123; +x_34 = x_125; +goto block_116; +} +else +{ +lean_object* x_128; lean_object* x_129; +x_128 = lean_ctor_get(x_123, 1); +lean_inc(x_128); +lean_dec(x_123); +lean_inc(x_32); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_32); +lean_ctor_set(x_129, 1, x_128); +x_33 = x_129; +x_34 = x_125; +goto block_116; } } -block_123: +block_116: { -if (lean_obj_tag(x_40) == 0) +if (lean_obj_tag(x_33) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -lean_dec(x_24); -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = lean_ctor_get(x_42, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_35 = lean_ctor_get(x_33, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +x_38 = lean_string_utf8_byte_size(x_37); +x_39 = lean_unsigned_to_nat(0u); +x_40 = lean_nat_dec_eq(x_38, x_39); +lean_dec(x_38); +if (x_40 == 0) +{ +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; uint8_t x_49; +x_41 = l_String_split___at_Lean_stringToMessageData___spec__1(x_37); +lean_dec(x_37); +x_42 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; +x_43 = l_List_foldlM___at_Lake_compileLeanModule___spec__1(x_5, x_39, x_42, x_41, x_36, x_34); +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -x_45 = lean_string_utf8_byte_size(x_44); -x_46 = lean_unsigned_to_nat(0u); -x_47 = lean_nat_dec_eq(x_45, x_46); -lean_dec(x_45); -if (x_47 == 0) -{ -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; uint8_t x_56; -x_48 = l_String_split___at_Lean_stringToMessageData___spec__1(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_ctor_get(x_44, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); lean_dec(x_44); -x_49 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; -x_50 = l_List_foldlM___at_Lake_compileLeanModule___spec__3(x_6, x_46, x_49, x_48, x_43, x_41); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec(x_50); -x_53 = lean_ctor_get(x_51, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = lean_string_utf8_byte_size(x_53); -x_56 = lean_nat_dec_eq(x_55, x_46); -lean_dec(x_55); -if (x_56 == 0) +x_48 = lean_string_utf8_byte_size(x_46); +x_49 = lean_nat_dec_eq(x_48, x_39); +lean_dec(x_48); +if (x_49 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_57 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3; -x_58 = lean_string_append(x_57, x_53); -lean_dec(x_53); -x_59 = lean_string_append(x_58, x_49); -x_60 = 1; -x_61 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set_uint8(x_61, sizeof(void*)*1, x_60); -x_62 = lean_array_push(x_54, x_61); -x_63 = lean_box(0); -x_64 = l_Lake_compileLeanModule___lambda__2(x_42, x_63, x_62, x_52); -lean_dec(x_42); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -if (lean_obj_tag(x_65) == 0) +lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_50 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__3; +x_51 = lean_string_append(x_50, x_46); +lean_dec(x_46); +x_52 = lean_string_append(x_51, x_42); +x_53 = 1; +x_54 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set_uint8(x_54, sizeof(void*)*1, x_53); +x_55 = lean_array_push(x_47, x_54); +x_56 = lean_box(0); +x_57 = l_Lake_compileLeanModule___lambda__2(x_35, x_56, x_55, x_45); +lean_dec(x_35); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 0) { -uint8_t x_66; -lean_dec(x_39); -x_66 = !lean_is_exclusive(x_64); -if (x_66 == 0) +uint8_t x_59; +lean_dec(x_32); +x_59 = !lean_is_exclusive(x_57); +if (x_59 == 0) { -lean_object* x_67; -x_67 = lean_ctor_get(x_64, 0); -lean_dec(x_67); -return x_64; +lean_object* x_60; +x_60 = lean_ctor_get(x_57, 0); +lean_dec(x_60); +return x_57; } else { -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_64, 1); -lean_inc(x_68); +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_58); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +else +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_57); +if (x_63 == 0) +{ +lean_object* x_64; uint8_t x_65; +x_64 = lean_ctor_get(x_57, 0); lean_dec(x_64); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_65); -lean_ctor_set(x_69, 1, x_68); -return x_69; +x_65 = !lean_is_exclusive(x_58); +if (x_65 == 0) +{ +lean_object* x_66; +x_66 = lean_ctor_get(x_58, 0); +lean_dec(x_66); +lean_ctor_set(x_58, 0, x_32); +return x_57; +} +else +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_58, 1); +lean_inc(x_67); +lean_dec(x_58); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_32); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_57, 0, x_68); +return x_57; } } else { -uint8_t x_70; -x_70 = !lean_is_exclusive(x_64); -if (x_70 == 0) -{ -lean_object* x_71; uint8_t x_72; -x_71 = lean_ctor_get(x_64, 0); -lean_dec(x_71); -x_72 = !lean_is_exclusive(x_65); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = lean_ctor_get(x_65, 0); -lean_dec(x_73); -lean_ctor_set(x_65, 0, x_39); -return x_64; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_69 = lean_ctor_get(x_57, 1); +lean_inc(x_69); +lean_dec(x_57); +x_70 = lean_ctor_get(x_58, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_71 = x_58; +} else { + lean_dec_ref(x_58); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_32); +lean_ctor_set(x_72, 1, x_70); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_69); +return x_73; } -else -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_65, 1); -lean_inc(x_74); -lean_dec(x_65); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_39); -lean_ctor_set(x_75, 1, x_74); -lean_ctor_set(x_64, 0, x_75); -return x_64; } } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_76 = lean_ctor_get(x_64, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_46); +x_74 = lean_box(0); +x_75 = l_Lake_compileLeanModule___lambda__2(x_35, x_74, x_47, x_45); +lean_dec(x_35); +x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); -lean_dec(x_64); -x_77 = lean_ctor_get(x_65, 1); -lean_inc(x_77); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_78 = x_65; -} else { - lean_dec_ref(x_65); - x_78 = lean_box(0); +if (lean_obj_tag(x_76) == 0) +{ +uint8_t x_77; +lean_dec(x_32); +x_77 = !lean_is_exclusive(x_75); +if (x_77 == 0) +{ +lean_object* x_78; +x_78 = lean_ctor_get(x_75, 0); +lean_dec(x_78); +return x_75; } -if (lean_is_scalar(x_78)) { - x_79 = lean_alloc_ctor(1, 2, 0); -} else { - x_79 = x_78; -} -lean_ctor_set(x_79, 0, x_39); -lean_ctor_set(x_79, 1, x_77); +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_75, 1); +lean_inc(x_79); +lean_dec(x_75); x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_76); +lean_ctor_set(x_80, 0, x_76); +lean_ctor_set(x_80, 1, x_79); return x_80; } } -} else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_53); -x_81 = lean_box(0); -x_82 = l_Lake_compileLeanModule___lambda__2(x_42, x_81, x_54, x_52); -lean_dec(x_42); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -if (lean_obj_tag(x_83) == 0) +uint8_t x_81; +x_81 = !lean_is_exclusive(x_75); +if (x_81 == 0) { -uint8_t x_84; -lean_dec(x_39); -x_84 = !lean_is_exclusive(x_82); -if (x_84 == 0) -{ -lean_object* x_85; -x_85 = lean_ctor_get(x_82, 0); -lean_dec(x_85); -return x_82; -} -else -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_82, 1); -lean_inc(x_86); +lean_object* x_82; uint8_t x_83; +x_82 = lean_ctor_get(x_75, 0); lean_dec(x_82); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_83); -lean_ctor_set(x_87, 1, x_86); -return x_87; +x_83 = !lean_is_exclusive(x_76); +if (x_83 == 0) +{ +lean_object* x_84; +x_84 = lean_ctor_get(x_76, 0); +lean_dec(x_84); +lean_ctor_set(x_76, 0, x_32); +return x_75; +} +else +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_76, 1); +lean_inc(x_85); +lean_dec(x_76); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_32); +lean_ctor_set(x_86, 1, x_85); +lean_ctor_set(x_75, 0, x_86); +return x_75; } } else { -uint8_t x_88; -x_88 = !lean_is_exclusive(x_82); -if (x_88 == 0) -{ -lean_object* x_89; uint8_t x_90; -x_89 = lean_ctor_get(x_82, 0); -lean_dec(x_89); -x_90 = !lean_is_exclusive(x_83); -if (x_90 == 0) -{ -lean_object* x_91; -x_91 = lean_ctor_get(x_83, 0); -lean_dec(x_91); -lean_ctor_set(x_83, 0, x_39); -return x_82; +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_87 = lean_ctor_get(x_75, 1); +lean_inc(x_87); +lean_dec(x_75); +x_88 = lean_ctor_get(x_76, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_89 = x_76; +} else { + lean_dec_ref(x_76); + x_89 = lean_box(0); +} +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(1, 2, 0); +} else { + x_90 = x_89; +} +lean_ctor_set(x_90, 0, x_32); +lean_ctor_set(x_90, 1, x_88); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_87); +return x_91; +} } -else -{ -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_83, 1); -lean_inc(x_92); -lean_dec(x_83); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_39); -lean_ctor_set(x_93, 1, x_92); -lean_ctor_set(x_82, 0, x_93); -return x_82; } } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_94 = lean_ctor_get(x_82, 1); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_37); +lean_dec(x_5); +x_92 = lean_box(0); +x_93 = l_Lake_compileLeanModule___lambda__2(x_35, x_92, x_36, x_34); +lean_dec(x_35); +x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); -lean_dec(x_82); -x_95 = lean_ctor_get(x_83, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_96 = x_83; -} else { - lean_dec_ref(x_83); - x_96 = lean_box(0); +if (lean_obj_tag(x_94) == 0) +{ +uint8_t x_95; +lean_dec(x_32); +x_95 = !lean_is_exclusive(x_93); +if (x_95 == 0) +{ +lean_object* x_96; +x_96 = lean_ctor_get(x_93, 0); +lean_dec(x_96); +return x_93; } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); -} else { - x_97 = x_96; -} -lean_ctor_set(x_97, 0, x_39); -lean_ctor_set(x_97, 1, x_95); +else +{ +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_93, 1); +lean_inc(x_97); +lean_dec(x_93); x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_94); +lean_ctor_set(x_98, 0, x_94); +lean_ctor_set(x_98, 1, x_97); return x_98; } } -} -} else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_44); -lean_dec(x_6); -x_99 = lean_box(0); -x_100 = l_Lake_compileLeanModule___lambda__2(x_42, x_99, x_43, x_41); -lean_dec(x_42); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -if (lean_obj_tag(x_101) == 0) +uint8_t x_99; +x_99 = !lean_is_exclusive(x_93); +if (x_99 == 0) { -uint8_t x_102; -lean_dec(x_39); -x_102 = !lean_is_exclusive(x_100); -if (x_102 == 0) -{ -lean_object* x_103; -x_103 = lean_ctor_get(x_100, 0); -lean_dec(x_103); -return x_100; -} -else -{ -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_100, 1); -lean_inc(x_104); +lean_object* x_100; uint8_t x_101; +x_100 = lean_ctor_get(x_93, 0); lean_dec(x_100); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_101); -lean_ctor_set(x_105, 1, x_104); -return x_105; +x_101 = !lean_is_exclusive(x_94); +if (x_101 == 0) +{ +lean_object* x_102; +x_102 = lean_ctor_get(x_94, 0); +lean_dec(x_102); +lean_ctor_set(x_94, 0, x_32); +return x_93; +} +else +{ +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_94, 1); +lean_inc(x_103); +lean_dec(x_94); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_32); +lean_ctor_set(x_104, 1, x_103); +lean_ctor_set(x_93, 0, x_104); +return x_93; } } else { -uint8_t x_106; -x_106 = !lean_is_exclusive(x_100); -if (x_106 == 0) -{ -lean_object* x_107; uint8_t x_108; -x_107 = lean_ctor_get(x_100, 0); -lean_dec(x_107); -x_108 = !lean_is_exclusive(x_101); -if (x_108 == 0) -{ -lean_object* x_109; -x_109 = lean_ctor_get(x_101, 0); -lean_dec(x_109); -lean_ctor_set(x_101, 0, x_39); -return x_100; +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_105 = lean_ctor_get(x_93, 1); +lean_inc(x_105); +lean_dec(x_93); +x_106 = lean_ctor_get(x_94, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_107 = x_94; +} else { + lean_dec_ref(x_94); + x_107 = lean_box(0); +} +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_32); +lean_ctor_set(x_108, 1, x_106); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_105); +return x_109; +} } -else -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_101, 1); -lean_inc(x_110); -lean_dec(x_101); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_39); -lean_ctor_set(x_111, 1, x_110); -lean_ctor_set(x_100, 0, x_111); -return x_100; } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_112 = lean_ctor_get(x_100, 1); -lean_inc(x_112); -lean_dec(x_100); -x_113 = lean_ctor_get(x_101, 1); +uint8_t x_110; +lean_dec(x_5); +x_110 = !lean_is_exclusive(x_33); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +x_111 = lean_ctor_get(x_33, 0); +lean_dec(x_111); +lean_ctor_set(x_33, 0, x_32); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_33); +lean_ctor_set(x_112, 1, x_34); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_33, 1); lean_inc(x_113); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_114 = x_101; -} else { - lean_dec_ref(x_101); - x_114 = lean_box(0); -} -if (lean_is_scalar(x_114)) { - x_115 = lean_alloc_ctor(1, 2, 0); -} else { - x_115 = x_114; -} -lean_ctor_set(x_115, 0, x_39); -lean_ctor_set(x_115, 1, x_113); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_112); -return x_116; +lean_dec(x_33); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_32); +lean_ctor_set(x_114, 1, x_113); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_34); +return x_115; } } } } else { -uint8_t x_117; -lean_dec(x_6); -x_117 = !lean_is_exclusive(x_40); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; -x_118 = lean_ctor_get(x_40, 0); -lean_dec(x_118); -lean_ctor_set(x_40, 0, x_39); -if (lean_is_scalar(x_24)) { - x_119 = lean_alloc_ctor(0, 2, 0); -} else { - x_119 = x_24; -} -lean_ctor_set(x_119, 0, x_40); -lean_ctor_set(x_119, 1, x_41); -return x_119; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_40, 1); -lean_inc(x_120); -lean_dec(x_40); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_39); -lean_ctor_set(x_121, 1, x_120); -if (lean_is_scalar(x_24)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_24; -} -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_41); -return x_122; -} -} -} -} -else -{ -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; uint8_t x_148; uint8_t x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_216; uint8_t x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_137 = lean_ctor_get(x_22, 0); -x_138 = lean_ctor_get(x_22, 1); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_22); -x_139 = l_Lake_compileLeanModule___lambda__4___closed__1; -x_140 = lean_array_push(x_137, x_139); -x_141 = lean_box(0); -x_142 = l_System_SearchPath_toString(x_4); -x_143 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_143, 0, x_142); -x_144 = l_Lake_compileLeanModule___lambda__4___closed__3; -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_143); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 1, x_2); -lean_ctor_set(x_15, 0, x_145); -x_146 = lean_array_mk(x_15); -x_147 = l_Lake_compileLeanModule___lambda__4___closed__2; -x_148 = 1; -x_149 = 0; -lean_inc(x_5); -x_150 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_150, 0, x_147); -lean_ctor_set(x_150, 1, x_5); -lean_ctor_set(x_150, 2, x_140); -lean_ctor_set(x_150, 3, x_141); -lean_ctor_set(x_150, 4, x_146); -lean_ctor_set_uint8(x_150, sizeof(void*)*5, x_148); -lean_ctor_set_uint8(x_150, sizeof(void*)*5 + 1, x_149); -x_151 = lean_array_get_size(x_138); -lean_inc(x_150); -x_216 = l_Lake_mkCmdLog(x_150); -x_217 = 0; -x_218 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_218, 0, x_216); -lean_ctor_set_uint8(x_218, sizeof(void*)*1, x_217); -x_219 = lean_array_push(x_138, x_218); -x_220 = lean_box(0); -x_221 = l_Lake_compileLeanModule___lambda__3(x_150, x_5, x_220, x_219, x_23); +uint8_t x_130; +lean_dec(x_7); lean_dec(x_5); -x_222 = lean_ctor_get(x_221, 0); -lean_inc(x_222); -if (lean_obj_tag(x_222) == 0) +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_130 = !lean_is_exclusive(x_11); +if (x_130 == 0) { -lean_object* x_223; -x_223 = lean_ctor_get(x_221, 1); -lean_inc(x_223); -lean_dec(x_221); -x_152 = x_222; -x_153 = x_223; -goto block_215; +lean_object* x_131; +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_11); +lean_ctor_set(x_131, 1, x_12); +return x_131; } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_224 = lean_ctor_get(x_221, 1); -lean_inc(x_224); -lean_dec(x_221); -x_225 = lean_ctor_get(x_222, 1); -lean_inc(x_225); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_226 = x_222; -} else { - lean_dec_ref(x_222); - x_226 = lean_box(0); -} -lean_inc(x_151); -if (lean_is_scalar(x_226)) { - x_227 = lean_alloc_ctor(1, 2, 0); -} else { - x_227 = x_226; -} -lean_ctor_set(x_227, 0, x_151); -lean_ctor_set(x_227, 1, x_225); -x_152 = x_227; -x_153 = x_224; -goto block_215; -} -block_215: -{ -if (lean_obj_tag(x_152) == 0) -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; -lean_dec(x_24); -x_154 = lean_ctor_get(x_152, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_152, 1); -lean_inc(x_155); -lean_dec(x_152); -x_156 = lean_ctor_get(x_154, 0); -lean_inc(x_156); -x_157 = lean_string_utf8_byte_size(x_156); -x_158 = lean_unsigned_to_nat(0u); -x_159 = lean_nat_dec_eq(x_157, x_158); -lean_dec(x_157); -if (x_159 == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; -x_160 = l_String_split___at_Lean_stringToMessageData___spec__1(x_156); -lean_dec(x_156); -x_161 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; -x_162 = l_List_foldlM___at_Lake_compileLeanModule___spec__3(x_6, x_158, x_161, x_160, x_155, x_153); -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -lean_dec(x_162); -x_165 = lean_ctor_get(x_163, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_163, 1); -lean_inc(x_166); -lean_dec(x_163); -x_167 = lean_string_utf8_byte_size(x_165); -x_168 = lean_nat_dec_eq(x_167, x_158); -lean_dec(x_167); -if (x_168 == 0) -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_169 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3; -x_170 = lean_string_append(x_169, x_165); -lean_dec(x_165); -x_171 = lean_string_append(x_170, x_161); -x_172 = 1; -x_173 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_173, 0, x_171); -lean_ctor_set_uint8(x_173, sizeof(void*)*1, x_172); -x_174 = lean_array_push(x_166, x_173); -x_175 = lean_box(0); -x_176 = l_Lake_compileLeanModule___lambda__2(x_154, x_175, x_174, x_164); -lean_dec(x_154); -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -if (lean_obj_tag(x_177) == 0) -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_151); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_179 = x_176; -} else { - lean_dec_ref(x_176); - x_179 = lean_box(0); -} -if (lean_is_scalar(x_179)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_179; -} -lean_ctor_set(x_180, 0, x_177); -lean_ctor_set(x_180, 1, x_178); -return x_180; -} -else -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_181 = lean_ctor_get(x_176, 1); -lean_inc(x_181); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_182 = x_176; -} else { - lean_dec_ref(x_176); - x_182 = lean_box(0); -} -x_183 = lean_ctor_get(x_177, 1); -lean_inc(x_183); -if (lean_is_exclusive(x_177)) { - lean_ctor_release(x_177, 0); - lean_ctor_release(x_177, 1); - x_184 = x_177; -} else { - lean_dec_ref(x_177); - x_184 = lean_box(0); -} -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(1, 2, 0); -} else { - x_185 = x_184; -} -lean_ctor_set(x_185, 0, x_151); -lean_ctor_set(x_185, 1, x_183); -if (lean_is_scalar(x_182)) { - x_186 = lean_alloc_ctor(0, 2, 0); -} else { - x_186 = x_182; -} -lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_181); -return x_186; -} -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; -lean_dec(x_165); -x_187 = lean_box(0); -x_188 = l_Lake_compileLeanModule___lambda__2(x_154, x_187, x_166, x_164); -lean_dec(x_154); -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -if (lean_obj_tag(x_189) == 0) -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_151); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_191 = x_188; -} else { - lean_dec_ref(x_188); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(0, 2, 0); -} else { - x_192 = x_191; -} -lean_ctor_set(x_192, 0, x_189); -lean_ctor_set(x_192, 1, x_190); -return x_192; -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_193 = lean_ctor_get(x_188, 1); -lean_inc(x_193); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_194 = x_188; -} else { - lean_dec_ref(x_188); - x_194 = lean_box(0); -} -x_195 = lean_ctor_get(x_189, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_196 = x_189; -} else { - lean_dec_ref(x_189); - x_196 = lean_box(0); -} -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(1, 2, 0); -} else { - x_197 = x_196; -} -lean_ctor_set(x_197, 0, x_151); -lean_ctor_set(x_197, 1, x_195); -if (lean_is_scalar(x_194)) { - x_198 = lean_alloc_ctor(0, 2, 0); -} else { - x_198 = x_194; -} -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_193); -return x_198; -} -} -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -lean_dec(x_156); -lean_dec(x_6); -x_199 = lean_box(0); -x_200 = l_Lake_compileLeanModule___lambda__2(x_154, x_199, x_155, x_153); -lean_dec(x_154); -x_201 = lean_ctor_get(x_200, 0); -lean_inc(x_201); -if (lean_obj_tag(x_201) == 0) -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_dec(x_151); -x_202 = lean_ctor_get(x_200, 1); -lean_inc(x_202); -if (lean_is_exclusive(x_200)) { - lean_ctor_release(x_200, 0); - lean_ctor_release(x_200, 1); - x_203 = x_200; -} else { - lean_dec_ref(x_200); - x_203 = lean_box(0); -} -if (lean_is_scalar(x_203)) { - x_204 = lean_alloc_ctor(0, 2, 0); -} else { - x_204 = x_203; -} -lean_ctor_set(x_204, 0, x_201); -lean_ctor_set(x_204, 1, x_202); -return x_204; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_205 = lean_ctor_get(x_200, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_200)) { - lean_ctor_release(x_200, 0); - lean_ctor_release(x_200, 1); - x_206 = x_200; -} else { - lean_dec_ref(x_200); - x_206 = lean_box(0); -} -x_207 = lean_ctor_get(x_201, 1); -lean_inc(x_207); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_208 = x_201; -} else { - lean_dec_ref(x_201); - x_208 = lean_box(0); -} -if (lean_is_scalar(x_208)) { - x_209 = lean_alloc_ctor(1, 2, 0); -} else { - x_209 = x_208; -} -lean_ctor_set(x_209, 0, x_151); -lean_ctor_set(x_209, 1, x_207); -if (lean_is_scalar(x_206)) { - x_210 = lean_alloc_ctor(0, 2, 0); -} else { - x_210 = x_206; -} -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_205); -return x_210; -} -} -} -else -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -lean_dec(x_6); -x_211 = lean_ctor_get(x_152, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_212 = x_152; -} else { - lean_dec_ref(x_152); - x_212 = lean_box(0); -} -if (lean_is_scalar(x_212)) { - x_213 = lean_alloc_ctor(1, 2, 0); -} else { - x_213 = x_212; -} -lean_ctor_set(x_213, 0, x_151); -lean_ctor_set(x_213, 1, x_211); -if (lean_is_scalar(x_24)) { - x_214 = lean_alloc_ctor(0, 2, 0); -} else { - x_214 = x_24; -} -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_153); -return x_214; -} -} -} -} -else -{ -lean_object* x_228; lean_object* x_229; size_t x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; uint8_t x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_316; uint8_t x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_228 = lean_ctor_get(x_15, 0); -x_229 = lean_ctor_get(x_15, 1); -lean_inc(x_229); -lean_inc(x_228); -lean_dec(x_15); -x_230 = lean_array_size(x_3); -lean_inc(x_2); -x_231 = l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2(x_3, x_2, x_11, x_3, x_230, x_13, x_228, x_229, x_16); -x_232 = lean_ctor_get(x_231, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_231, 1); -lean_inc(x_233); -if (lean_is_exclusive(x_231)) { - lean_ctor_release(x_231, 0); - lean_ctor_release(x_231, 1); - x_234 = x_231; -} else { - lean_dec_ref(x_231); - x_234 = lean_box(0); -} -x_235 = lean_ctor_get(x_232, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_232, 1); -lean_inc(x_236); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - x_237 = x_232; -} else { - lean_dec_ref(x_232); - x_237 = lean_box(0); -} -x_238 = l_Lake_compileLeanModule___lambda__4___closed__1; -x_239 = lean_array_push(x_235, x_238); -x_240 = lean_box(0); -x_241 = l_System_SearchPath_toString(x_4); -x_242 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_242, 0, x_241); -x_243 = l_Lake_compileLeanModule___lambda__4___closed__3; -if (lean_is_scalar(x_237)) { - x_244 = lean_alloc_ctor(0, 2, 0); -} else { - x_244 = x_237; -} -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_242); -x_245 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_245, 0, x_244); -lean_ctor_set(x_245, 1, x_2); -x_246 = lean_array_mk(x_245); -x_247 = l_Lake_compileLeanModule___lambda__4___closed__2; -x_248 = 1; -x_249 = 0; -lean_inc(x_5); -x_250 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_250, 0, x_247); -lean_ctor_set(x_250, 1, x_5); -lean_ctor_set(x_250, 2, x_239); -lean_ctor_set(x_250, 3, x_240); -lean_ctor_set(x_250, 4, x_246); -lean_ctor_set_uint8(x_250, sizeof(void*)*5, x_248); -lean_ctor_set_uint8(x_250, sizeof(void*)*5 + 1, x_249); -x_251 = lean_array_get_size(x_236); -lean_inc(x_250); -x_316 = l_Lake_mkCmdLog(x_250); -x_317 = 0; -x_318 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_318, 0, x_316); -lean_ctor_set_uint8(x_318, sizeof(void*)*1, x_317); -x_319 = lean_array_push(x_236, x_318); -x_320 = lean_box(0); -x_321 = l_Lake_compileLeanModule___lambda__3(x_250, x_5, x_320, x_319, x_233); -lean_dec(x_5); -x_322 = lean_ctor_get(x_321, 0); -lean_inc(x_322); -if (lean_obj_tag(x_322) == 0) -{ -lean_object* x_323; -x_323 = lean_ctor_get(x_321, 1); -lean_inc(x_323); -lean_dec(x_321); -x_252 = x_322; -x_253 = x_323; -goto block_315; -} -else -{ -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; -x_324 = lean_ctor_get(x_321, 1); -lean_inc(x_324); -lean_dec(x_321); -x_325 = lean_ctor_get(x_322, 1); -lean_inc(x_325); -if (lean_is_exclusive(x_322)) { - lean_ctor_release(x_322, 0); - lean_ctor_release(x_322, 1); - x_326 = x_322; -} else { - lean_dec_ref(x_322); - x_326 = lean_box(0); -} -lean_inc(x_251); -if (lean_is_scalar(x_326)) { - x_327 = lean_alloc_ctor(1, 2, 0); -} else { - x_327 = x_326; -} -lean_ctor_set(x_327, 0, x_251); -lean_ctor_set(x_327, 1, x_325); -x_252 = x_327; -x_253 = x_324; -goto block_315; -} -block_315: -{ -if (lean_obj_tag(x_252) == 0) -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; -lean_dec(x_234); -x_254 = lean_ctor_get(x_252, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_252, 1); -lean_inc(x_255); -lean_dec(x_252); -x_256 = lean_ctor_get(x_254, 0); -lean_inc(x_256); -x_257 = lean_string_utf8_byte_size(x_256); -x_258 = lean_unsigned_to_nat(0u); -x_259 = lean_nat_dec_eq(x_257, x_258); -lean_dec(x_257); -if (x_259 == 0) -{ -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; -x_260 = l_String_split___at_Lean_stringToMessageData___spec__1(x_256); -lean_dec(x_256); -x_261 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; -x_262 = l_List_foldlM___at_Lake_compileLeanModule___spec__3(x_6, x_258, x_261, x_260, x_255, x_253); -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -lean_dec(x_262); -x_265 = lean_ctor_get(x_263, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_263, 1); -lean_inc(x_266); -lean_dec(x_263); -x_267 = lean_string_utf8_byte_size(x_265); -x_268 = lean_nat_dec_eq(x_267, x_258); -lean_dec(x_267); -if (x_268 == 0) -{ -lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_269 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3; -x_270 = lean_string_append(x_269, x_265); -lean_dec(x_265); -x_271 = lean_string_append(x_270, x_261); -x_272 = 1; -x_273 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_273, 0, x_271); -lean_ctor_set_uint8(x_273, sizeof(void*)*1, x_272); -x_274 = lean_array_push(x_266, x_273); -x_275 = lean_box(0); -x_276 = l_Lake_compileLeanModule___lambda__2(x_254, x_275, x_274, x_264); -lean_dec(x_254); -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -if (lean_obj_tag(x_277) == 0) -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; -lean_dec(x_251); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_279 = x_276; -} else { - lean_dec_ref(x_276); - x_279 = lean_box(0); -} -if (lean_is_scalar(x_279)) { - x_280 = lean_alloc_ctor(0, 2, 0); -} else { - x_280 = x_279; -} -lean_ctor_set(x_280, 0, x_277); -lean_ctor_set(x_280, 1, x_278); -return x_280; -} -else -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_281 = lean_ctor_get(x_276, 1); -lean_inc(x_281); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_282 = x_276; -} else { - lean_dec_ref(x_276); - x_282 = lean_box(0); -} -x_283 = lean_ctor_get(x_277, 1); -lean_inc(x_283); -if (lean_is_exclusive(x_277)) { - lean_ctor_release(x_277, 0); - lean_ctor_release(x_277, 1); - x_284 = x_277; -} else { - lean_dec_ref(x_277); - x_284 = lean_box(0); -} -if (lean_is_scalar(x_284)) { - x_285 = lean_alloc_ctor(1, 2, 0); -} else { - x_285 = x_284; -} -lean_ctor_set(x_285, 0, x_251); -lean_ctor_set(x_285, 1, x_283); -if (lean_is_scalar(x_282)) { - x_286 = lean_alloc_ctor(0, 2, 0); -} else { - x_286 = x_282; -} -lean_ctor_set(x_286, 0, x_285); -lean_ctor_set(x_286, 1, x_281); -return x_286; -} -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; -lean_dec(x_265); -x_287 = lean_box(0); -x_288 = l_Lake_compileLeanModule___lambda__2(x_254, x_287, x_266, x_264); -lean_dec(x_254); -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -if (lean_obj_tag(x_289) == 0) -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; -lean_dec(x_251); -x_290 = lean_ctor_get(x_288, 1); -lean_inc(x_290); -if (lean_is_exclusive(x_288)) { - lean_ctor_release(x_288, 0); - lean_ctor_release(x_288, 1); - x_291 = x_288; -} else { - lean_dec_ref(x_288); - x_291 = lean_box(0); -} -if (lean_is_scalar(x_291)) { - x_292 = lean_alloc_ctor(0, 2, 0); -} else { - x_292 = x_291; -} -lean_ctor_set(x_292, 0, x_289); -lean_ctor_set(x_292, 1, x_290); -return x_292; -} -else -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_293 = lean_ctor_get(x_288, 1); -lean_inc(x_293); -if (lean_is_exclusive(x_288)) { - lean_ctor_release(x_288, 0); - lean_ctor_release(x_288, 1); - x_294 = x_288; -} else { - lean_dec_ref(x_288); - x_294 = lean_box(0); -} -x_295 = lean_ctor_get(x_289, 1); -lean_inc(x_295); -if (lean_is_exclusive(x_289)) { - lean_ctor_release(x_289, 0); - lean_ctor_release(x_289, 1); - x_296 = x_289; -} else { - lean_dec_ref(x_289); - x_296 = lean_box(0); -} -if (lean_is_scalar(x_296)) { - x_297 = lean_alloc_ctor(1, 2, 0); -} else { - x_297 = x_296; -} -lean_ctor_set(x_297, 0, x_251); -lean_ctor_set(x_297, 1, x_295); -if (lean_is_scalar(x_294)) { - x_298 = lean_alloc_ctor(0, 2, 0); -} else { - x_298 = x_294; -} -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_293); -return x_298; -} -} -} -else -{ -lean_object* x_299; lean_object* x_300; lean_object* x_301; -lean_dec(x_256); -lean_dec(x_6); -x_299 = lean_box(0); -x_300 = l_Lake_compileLeanModule___lambda__2(x_254, x_299, x_255, x_253); -lean_dec(x_254); -x_301 = lean_ctor_get(x_300, 0); -lean_inc(x_301); -if (lean_obj_tag(x_301) == 0) -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; -lean_dec(x_251); -x_302 = lean_ctor_get(x_300, 1); -lean_inc(x_302); -if (lean_is_exclusive(x_300)) { - lean_ctor_release(x_300, 0); - lean_ctor_release(x_300, 1); - x_303 = x_300; -} else { - lean_dec_ref(x_300); - x_303 = lean_box(0); -} -if (lean_is_scalar(x_303)) { - x_304 = lean_alloc_ctor(0, 2, 0); -} else { - x_304 = x_303; -} -lean_ctor_set(x_304, 0, x_301); -lean_ctor_set(x_304, 1, x_302); -return x_304; -} -else -{ -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_305 = lean_ctor_get(x_300, 1); -lean_inc(x_305); -if (lean_is_exclusive(x_300)) { - lean_ctor_release(x_300, 0); - lean_ctor_release(x_300, 1); - x_306 = x_300; -} else { - lean_dec_ref(x_300); - x_306 = lean_box(0); -} -x_307 = lean_ctor_get(x_301, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_301)) { - lean_ctor_release(x_301, 0); - lean_ctor_release(x_301, 1); - x_308 = x_301; -} else { - lean_dec_ref(x_301); - x_308 = lean_box(0); -} -if (lean_is_scalar(x_308)) { - x_309 = lean_alloc_ctor(1, 2, 0); -} else { - x_309 = x_308; -} -lean_ctor_set(x_309, 0, x_251); -lean_ctor_set(x_309, 1, x_307); -if (lean_is_scalar(x_306)) { - x_310 = lean_alloc_ctor(0, 2, 0); -} else { - x_310 = x_306; -} -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_305); -return x_310; -} -} -} -else -{ -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; -lean_dec(x_6); -x_311 = lean_ctor_get(x_252, 1); -lean_inc(x_311); -if (lean_is_exclusive(x_252)) { - lean_ctor_release(x_252, 0); - lean_ctor_release(x_252, 1); - x_312 = x_252; -} else { - lean_dec_ref(x_252); - x_312 = lean_box(0); -} -if (lean_is_scalar(x_312)) { - x_313 = lean_alloc_ctor(1, 2, 0); -} else { - x_313 = x_312; -} -lean_ctor_set(x_313, 0, x_251); -lean_ctor_set(x_313, 1, x_311); -if (lean_is_scalar(x_234)) { - x_314 = lean_alloc_ctor(0, 2, 0); -} else { - x_314 = x_234; -} -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_253); -return x_314; +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_132 = lean_ctor_get(x_11, 0); +x_133 = lean_ctor_get(x_11, 1); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_11); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_12); +return x_135; } } } @@ -2240,117 +1500,20 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_box(0); -x_13 = l_Lake_compileLeanModule___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_12, x_10, x_11); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_7, 0); -x_15 = l_Lake_createParentDirs(x_14, x_11); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* 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; -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -lean_inc(x_2); -lean_inc(x_14); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_2); -x_18 = l_Lake_compileLeanModule___lambda__5___closed__1; -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = lean_array_mk(x_19); -x_21 = l_Array_append___rarg(x_8, x_20); -lean_dec(x_20); -x_22 = lean_box(0); -x_23 = l_Lake_compileLeanModule___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_21, x_22, x_10, x_16); -return x_23; -} -else -{ -uint8_t x_24; -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_24 = !lean_is_exclusive(x_15); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_25 = lean_ctor_get(x_15, 0); -x_26 = lean_io_error_to_string(x_25); -x_27 = 3; -x_28 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27); -x_29 = lean_array_get_size(x_10); -x_30 = lean_array_push(x_10, x_28); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set_tag(x_15, 0); -lean_ctor_set(x_15, 0, x_31); -return x_15; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_32 = lean_ctor_get(x_15, 0); -x_33 = lean_ctor_get(x_15, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_15); -x_34 = lean_io_error_to_string(x_32); -x_35 = 3; -x_36 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set_uint8(x_36, sizeof(void*)*1, x_35); -x_37 = lean_array_get_size(x_10); -x_38 = lean_array_push(x_10, x_36); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_33); -return x_40; -} -} -} -} -} -static lean_object* _init_l_Lake_compileLeanModule___lambda__6___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("-c", 2, 2); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -if (lean_obj_tag(x_8) == 0) +lean_object* x_12; +x_12 = lean_ctor_get(x_7, 6); +if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; x_13 = lean_box(0); -x_14 = l_Lake_compileLeanModule___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_9, x_13, x_11, x_12); +x_14 = l_Lake_compileLeanModule___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_13, x_10, x_11); return x_14; } else { lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_8, 0); -x_16 = l_Lake_createParentDirs(x_15, x_12); +x_15 = lean_ctor_get(x_12, 0); +x_16 = l_Lake_createParentDirs(x_15, x_11); if (lean_obj_tag(x_16) == 0) { lean_object* 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; @@ -2362,25 +1525,27 @@ lean_inc(x_15); x_18 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_18, 0, x_15); lean_ctor_set(x_18, 1, x_2); -x_19 = l_Lake_compileLeanModule___lambda__6___closed__1; +x_19 = l_Lake_compileLeanModule___lambda__5___closed__1; x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); x_21 = lean_array_mk(x_20); -x_22 = l_Array_append___rarg(x_9, x_21); +x_22 = l_Array_append___rarg(x_8, x_21); lean_dec(x_21); x_23 = lean_box(0); -x_24 = l_Lake_compileLeanModule___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_22, x_23, x_11, x_17); +x_24 = l_Lake_compileLeanModule___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_23, x_10, x_17); return x_24; } else { uint8_t x_25; -lean_dec(x_9); +lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); x_25 = !lean_is_exclusive(x_16); if (x_25 == 0) { @@ -2391,8 +1556,8 @@ x_28 = 3; x_29 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_29, 0, x_27); lean_ctor_set_uint8(x_29, sizeof(void*)*1, x_28); -x_30 = lean_array_get_size(x_11); -x_31 = lean_array_push(x_11, x_29); +x_30 = lean_array_get_size(x_10); +x_31 = lean_array_push(x_10, x_29); x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -2413,8 +1578,111 @@ x_36 = 3; x_37 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_37, 0, x_35); lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_36); -x_38 = lean_array_get_size(x_11); -x_39 = lean_array_push(x_11, x_37); +x_38 = lean_array_get_size(x_10); +x_39 = lean_array_push(x_10, x_37); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_34); +return x_41; +} +} +} +} +} +static lean_object* _init_l_Lake_compileLeanModule___lambda__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("-c", 2, 2); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_7, 5); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_box(0); +x_14 = l_Lake_compileLeanModule___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13, x_10, x_11); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 0); +x_16 = l_Lake_createParentDirs(x_15, x_11); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* 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; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +lean_inc(x_2); +lean_inc(x_15); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_2); +x_19 = l_Lake_compileLeanModule___lambda__6___closed__1; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = lean_array_mk(x_20); +x_22 = l_Array_append___rarg(x_8, x_21); +lean_dec(x_21); +x_23 = lean_box(0); +x_24 = l_Lake_compileLeanModule___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_22, x_23, x_10, x_17); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_16); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_26 = lean_ctor_get(x_16, 0); +x_27 = lean_io_error_to_string(x_26); +x_28 = 3; +x_29 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*1, x_28); +x_30 = lean_array_get_size(x_10); +x_31 = lean_array_push(x_10, x_29); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set_tag(x_16, 0); +lean_ctor_set(x_16, 0, x_32); +return x_16; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_33 = lean_ctor_get(x_16, 0); +x_34 = lean_ctor_get(x_16, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_16); +x_35 = lean_io_error_to_string(x_33); +x_36 = 3; +x_37 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_36); +x_38 = lean_array_get_size(x_10); +x_39 = lean_array_push(x_10, x_37); x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); @@ -2435,92 +1703,96 @@ x_1 = lean_mk_string_unchecked("-i", 2, 2); return x_1; } } -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__7(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) { _start: { -if (lean_obj_tag(x_9) == 0) +lean_object* x_12; +x_12 = lean_ctor_get(x_7, 4); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; lean_object* x_15; -x_14 = lean_box(0); -x_15 = l_Lake_compileLeanModule___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_14, x_12, x_13); -return x_15; +lean_object* x_13; lean_object* x_14; +x_13 = lean_box(0); +x_14 = l_Lake_compileLeanModule___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13, x_10, x_11); +return x_14; } else { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_9, 0); -x_17 = l_Lake_createParentDirs(x_16, x_13); -if (lean_obj_tag(x_17) == 0) +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 0); +x_16 = l_Lake_createParentDirs(x_15, x_11); +if (lean_obj_tag(x_16) == 0) { -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; -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); +lean_object* 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; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); lean_inc(x_2); -lean_inc(x_16); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_16); -lean_ctor_set(x_19, 1, x_2); -x_20 = l_Lake_compileLeanModule___lambda__7___closed__1; -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = lean_array_mk(x_21); -x_23 = l_Array_append___rarg(x_10, x_22); -lean_dec(x_22); -x_24 = lean_box(0); -x_25 = l_Lake_compileLeanModule___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23, x_24, x_12, x_18); -return x_25; +lean_inc(x_15); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_2); +x_19 = l_Lake_compileLeanModule___lambda__7___closed__1; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = lean_array_mk(x_20); +x_22 = l_Array_append___rarg(x_8, x_21); +lean_dec(x_21); +x_23 = lean_box(0); +x_24 = l_Lake_compileLeanModule___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_22, x_23, x_10, x_17); +return x_24; } else { -uint8_t x_26; -lean_dec(x_10); +uint8_t x_25; +lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_26 = !lean_is_exclusive(x_17); -if (x_26 == 0) +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_16); +if (x_25 == 0) { -lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_27 = lean_ctor_get(x_17, 0); -x_28 = lean_io_error_to_string(x_27); -x_29 = 3; -x_30 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set_uint8(x_30, sizeof(void*)*1, x_29); -x_31 = lean_array_get_size(x_12); -x_32 = lean_array_push(x_12, x_30); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set_tag(x_17, 0); -lean_ctor_set(x_17, 0, x_33); -return x_17; +lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_26 = lean_ctor_get(x_16, 0); +x_27 = lean_io_error_to_string(x_26); +x_28 = 3; +x_29 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*1, x_28); +x_30 = lean_array_get_size(x_10); +x_31 = lean_array_push(x_10, x_29); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set_tag(x_16, 0); +lean_ctor_set(x_16, 0, x_32); +return x_16; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_34 = lean_ctor_get(x_17, 0); -x_35 = lean_ctor_get(x_17, 1); -lean_inc(x_35); +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_33 = lean_ctor_get(x_16, 0); +x_34 = lean_ctor_get(x_16, 1); lean_inc(x_34); -lean_dec(x_17); -x_36 = lean_io_error_to_string(x_34); -x_37 = 3; -x_38 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_37); -x_39 = lean_array_get_size(x_12); -x_40 = lean_array_push(x_12, x_38); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_35); -return x_42; +lean_inc(x_33); +lean_dec(x_16); +x_35 = lean_io_error_to_string(x_33); +x_36 = 3; +x_37 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_36); +x_38 = lean_array_get_size(x_10); +x_39 = lean_array_push(x_10, x_37); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_34); +return x_41; } } } @@ -2542,154 +1814,127 @@ x_1 = lean_mk_string_unchecked("-o", 2, 2); return x_1; } } -LEAN_EXPORT lean_object* l_Lake_compileLeanModule(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lake_compileLeanModule(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) { _start: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_15 = lean_box(0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_8); +lean_ctor_set(x_13, 1, x_12); +x_14 = l_Lake_compileLeanModule___closed__1; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_8); +lean_ctor_set(x_16, 0, x_1); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lake_compileLeanModule___closed__1; -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_1); -lean_ctor_set(x_19, 1, x_18); -x_20 = lean_array_mk(x_19); -x_21 = l_Array_append___rarg(x_11, x_20); -lean_dec(x_20); -if (lean_obj_tag(x_3) == 0) +x_17 = lean_array_mk(x_16); +x_18 = l_Array_append___rarg(x_6, x_17); +lean_dec(x_17); +x_19 = lean_ctor_get(x_5, 1); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_box(0); +x_21 = l_Lake_compileLeanModule___lambda__7(x_4, x_12, x_7, x_9, x_2, x_3, x_5, x_18, x_20, x_10, x_11); +return x_21; +} +else { lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = l_Lake_compileLeanModule___lambda__7(x_9, x_15, x_10, x_7, x_12, x_2, x_6, x_5, x_4, x_21, x_22, x_13, x_14); +x_22 = lean_ctor_get(x_19, 0); +x_23 = l_Lake_createParentDirs(x_22, x_11); +if (lean_obj_tag(x_23) == 0) +{ +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_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +lean_inc(x_22); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_22); +lean_ctor_set(x_25, 1, x_12); +x_26 = l_Lake_compileLeanModule___closed__2; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = lean_array_mk(x_27); +x_29 = l_Array_append___rarg(x_18, x_28); +lean_dec(x_28); +x_30 = lean_box(0); +x_31 = l_Lake_compileLeanModule___lambda__7(x_4, x_12, x_7, x_9, x_2, x_3, x_5, x_29, x_30, x_10, x_24); +return x_31; +} +else +{ +uint8_t x_32; +lean_dec(x_18); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_23); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_33 = lean_ctor_get(x_23, 0); +x_34 = lean_io_error_to_string(x_33); +x_35 = 3; +x_36 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set_uint8(x_36, sizeof(void*)*1, x_35); +x_37 = lean_array_get_size(x_10); +x_38 = lean_array_push(x_10, x_36); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set_tag(x_23, 0); +lean_ctor_set(x_23, 0, x_39); return x_23; } else { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_3, 0); -x_25 = l_Lake_createParentDirs(x_24, x_14); -if (lean_obj_tag(x_25) == 0) -{ -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; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -lean_inc(x_24); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_24); -lean_ctor_set(x_27, 1, x_15); -x_28 = l_Lake_compileLeanModule___closed__2; -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -x_30 = lean_array_mk(x_29); -x_31 = l_Array_append___rarg(x_21, x_30); -lean_dec(x_30); -x_32 = lean_box(0); -x_33 = l_Lake_compileLeanModule___lambda__7(x_9, x_15, x_10, x_7, x_12, x_2, x_6, x_5, x_4, x_31, x_32, x_13, x_26); -return x_33; -} -else -{ -uint8_t x_34; -lean_dec(x_21); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_2); -x_34 = !lean_is_exclusive(x_25); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_35 = lean_ctor_get(x_25, 0); -x_36 = lean_io_error_to_string(x_35); -x_37 = 3; -x_38 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_37); -x_39 = lean_array_get_size(x_13); -x_40 = lean_array_push(x_13, x_38); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -lean_ctor_set_tag(x_25, 0); -lean_ctor_set(x_25, 0, x_41); -return x_25; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_42 = lean_ctor_get(x_25, 0); -x_43 = lean_ctor_get(x_25, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_25); -x_44 = lean_io_error_to_string(x_42); -x_45 = 3; -x_46 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set_uint8(x_46, sizeof(void*)*1, x_45); -x_47 = lean_array_get_size(x_13); -x_48 = lean_array_push(x_13, x_46); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_43); -return x_50; +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_40 = lean_ctor_get(x_23, 0); +x_41 = lean_ctor_get(x_23, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_23); +x_42 = lean_io_error_to_string(x_40); +x_43 = 3; +x_44 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set_uint8(x_44, sizeof(void*)*1, x_43); +x_45 = lean_array_get_size(x_10); +x_46 = lean_array_push(x_10, x_44); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_41); +return x_48; } } } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__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) { -_start: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_11 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1(x_1, x_2, x_3, x_4, x_10, x_11, x_7, x_8, x_9); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__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) { -_start: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_11 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2(x_1, x_2, x_3, x_4, x_10, x_11, x_7, x_8, x_9); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__3___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_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__1___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) { _start: { lean_object* x_7; -x_7 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); return x_7; } } -LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__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_EXPORT lean_object* l_List_foldlM___at_Lake_compileLeanModule___spec__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) { _start: { lean_object* x_7; -x_7 = l_List_foldlM___at_Lake_compileLeanModule___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_List_foldlM___at_Lake_compileLeanModule___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); return x_7; } @@ -2730,8 +1975,6 @@ _start: lean_object* x_11; x_11 = l_Lake_compileLeanModule___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_1); return x_11; } } @@ -2742,50 +1985,36 @@ lean_object* x_12; x_12 = l_Lake_compileLeanModule___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_9); lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); return x_12; } } -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__6___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_EXPORT lean_object* l_Lake_compileLeanModule___lambda__6___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) { _start: { -lean_object* x_13; -x_13 = l_Lake_compileLeanModule___lambda__6(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_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__7___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_compileLeanModule___lambda__7(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_11); +lean_object* x_12; +x_12 = l_Lake_compileLeanModule___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -return x_14; +return x_12; } } -LEAN_EXPORT lean_object* l_Lake_compileLeanModule___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, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lake_compileLeanModule___lambda__7___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) { _start: { -lean_object* x_15; -x_15 = l_Lake_compileLeanModule(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, x_14); -lean_dec(x_10); +lean_object* x_12; +x_12 = l_Lake_compileLeanModule___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_9); -lean_dec(x_6); +lean_dec(x_7); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_compileLeanModule___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lake_compileLeanModule(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_15; +return x_12; } } static lean_object* _init_l_Lake_compileO___closed__1() { @@ -2826,7 +2055,7 @@ lean_ctor_set(x_15, 1, x_13); x_16 = lean_array_mk(x_15); x_17 = l_Array_append___rarg(x_16, x_3); x_18 = lean_box(0); -x_19 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_19 = l_Lake_compileLeanModule___lambda__4___closed__3; x_20 = l_Lake_compileO___closed__1; x_21 = 1; x_22 = 0; @@ -2982,7 +2211,7 @@ lean_dec(x_5); x_9 = lean_array_uget(x_2, x_3); x_10 = lean_string_utf8_byte_size(x_9); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_12 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_13 = l_String_foldlAux___at_Lake_mkArgs___spec__1(x_9, x_10, x_11, x_12); lean_dec(x_10); lean_dec(x_9); @@ -3196,7 +2425,7 @@ lean_dec(x_13); x_14 = l_Lake_mkArgs___closed__2; x_15 = lean_string_append(x_14, x_9); lean_dec(x_9); -x_16 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_16 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_17 = lean_string_append(x_15, x_16); x_18 = lean_box(0); x_19 = lean_alloc_ctor(1, 2, 0); @@ -3218,7 +2447,7 @@ lean_dec(x_10); x_23 = l_Lake_mkArgs___closed__2; x_24 = lean_string_append(x_23, x_9); lean_dec(x_9); -x_25 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_25 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_26 = lean_string_append(x_24, x_25); x_27 = lean_box(0); x_28 = lean_alloc_ctor(1, 2, 0); @@ -3637,7 +2866,7 @@ x_19 = lean_array_push(x_18, x_1); x_20 = l_Array_append___rarg(x_19, x_16); lean_dec(x_16); x_21 = lean_box(0); -x_22 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_22 = l_Lake_compileLeanModule___lambda__4___closed__3; x_23 = l_Lake_compileO___closed__1; x_24 = 1; x_25 = 0; @@ -3738,7 +2967,7 @@ x_46 = lean_array_push(x_45, x_1); x_47 = l_Array_append___rarg(x_46, x_43); lean_dec(x_43); x_48 = lean_box(0); -x_49 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_49 = l_Lake_compileLeanModule___lambda__4___closed__3; x_50 = l_Lake_compileO___closed__1; x_51 = 1; x_52 = 0; @@ -4171,7 +3400,7 @@ x_23 = lean_array_mk(x_22); x_24 = l_Array_append___rarg(x_23, x_12); lean_dec(x_12); x_25 = lean_box(0); -x_26 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_26 = l_Lake_compileLeanModule___lambda__4___closed__3; x_27 = 1; x_28 = 0; x_29 = lean_alloc_ctor(0, 5, 2); @@ -4433,7 +3662,7 @@ x_21 = lean_array_mk(x_20); x_22 = l_Array_append___rarg(x_21, x_12); lean_dec(x_12); x_23 = lean_box(0); -x_24 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_24 = l_Lake_compileLeanModule___lambda__4___closed__3; x_25 = 1; x_26 = 0; x_27 = lean_alloc_ctor(0, 5, 2); @@ -4693,7 +3922,7 @@ if (x_23 == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_dec(x_21); -x_25 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_25 = l_Lake_compileLeanModule___lambda__4___closed__3; x_26 = l_Lake_download___lambda__1___closed__5; x_27 = l_Lake_compileO___closed__1; x_28 = 1; @@ -4717,7 +3946,7 @@ if (x_32 == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_21); -x_33 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_33 = l_Lake_compileLeanModule___lambda__4___closed__3; x_34 = l_Lake_download___lambda__1___closed__5; x_35 = l_Lake_compileO___closed__1; x_36 = 1; @@ -4740,7 +3969,7 @@ x_40 = 0; x_41 = lean_usize_of_nat(x_21); lean_dec(x_21); x_42 = l_Array_foldlMUnsafe_fold___at_Lake_download___spec__1(x_7, x_3, x_40, x_41, x_20); -x_43 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_43 = l_Lake_compileLeanModule___lambda__4___closed__3; x_44 = l_Lake_download___lambda__1___closed__5; x_45 = l_Lake_compileO___closed__1; x_46 = 1; @@ -5104,7 +4333,7 @@ lean_ctor_set(x_14, 0, x_3); lean_ctor_set(x_14, 1, x_13); x_15 = lean_array_mk(x_14); x_16 = lean_box(0); -x_17 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_17 = l_Lake_compileLeanModule___lambda__4___closed__3; x_18 = l_Lake_untar___lambda__1___closed__2; x_19 = l_Lake_compileO___closed__1; x_20 = 1; @@ -5329,7 +4558,7 @@ x_12 = lean_array_uget(x_3, x_5); x_13 = l_Array_forIn_x27Unsafe_loop___at_Lake_tar___spec__1___closed__1; x_14 = lean_string_append(x_13, x_12); lean_dec(x_12); -x_15 = l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4; +x_15 = l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4; x_16 = lean_string_append(x_14, x_15); x_17 = lean_array_push(x_6, x_16); x_18 = 1; @@ -5434,7 +4663,7 @@ if (x_28 == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; x_29 = lean_array_mk(x_2); -x_30 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_30 = l_Lake_compileLeanModule___lambda__4___closed__3; x_31 = l_Lake_untar___lambda__1___closed__2; x_32 = 1; x_33 = 0; @@ -5457,7 +4686,7 @@ x_37 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_2); x_38 = lean_array_mk(x_37); -x_39 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_39 = l_Lake_compileLeanModule___lambda__4___closed__3; x_40 = l_Lake_untar___lambda__1___closed__2; x_41 = 1; x_42 = 0; @@ -5510,7 +4739,7 @@ if (x_58 == 0) { lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; x_59 = lean_array_mk(x_2); -x_60 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_60 = l_Lake_compileLeanModule___lambda__4___closed__3; x_61 = l_Lake_untar___lambda__1___closed__2; x_62 = 1; x_63 = 0; @@ -5533,7 +4762,7 @@ x_67 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_67, 0, x_66); lean_ctor_set(x_67, 1, x_2); x_68 = lean_array_mk(x_67); -x_69 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_69 = l_Lake_compileLeanModule___lambda__4___closed__3; x_70 = l_Lake_untar___lambda__1___closed__2; x_71 = 1; x_72 = 0; @@ -5603,7 +4832,7 @@ if (x_91 == 0) { lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; x_92 = lean_array_mk(x_2); -x_93 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_93 = l_Lake_compileLeanModule___lambda__4___closed__3; x_94 = l_Lake_untar___lambda__1___closed__2; x_95 = 1; x_96 = 0; @@ -5626,7 +4855,7 @@ x_100 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_100, 0, x_99); lean_ctor_set(x_100, 1, x_2); x_101 = lean_array_mk(x_100); -x_102 = l_Lake_compileLeanModule___lambda__4___closed__2; +x_102 = l_Lake_compileLeanModule___lambda__4___closed__3; x_103 = l_Lake_untar___lambda__1___closed__2; x_104 = 1; x_105 = 0; @@ -5866,6 +5095,8 @@ lean_dec(x_4); return x_8; } } +lean_object* initialize_Lean_Setup(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Data_Json(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Config_Dynlib(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Util_Proc(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Util_NativeLib(uint8_t builtin, lean_object*); @@ -5876,6 +5107,12 @@ LEAN_EXPORT lean_object* initialize_Lake_Build_Actions(uint8_t builtin, lean_obj lean_object * res; if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_initialized = true; +res = initialize_Lean_Setup(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Data_Json(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lake_Config_Dynlib(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -5891,18 +5128,14 @@ lean_dec_ref(res); res = initialize_Lake_Util_IO(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__1___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lake_compileLeanModule___spec__2___closed__1); -l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__1 = _init_l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__1(); -lean_mark_persistent(l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__1); -l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__2 = _init_l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__2(); -lean_mark_persistent(l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__2); -l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3 = _init_l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3(); -lean_mark_persistent(l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__3); -l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4 = _init_l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4(); -lean_mark_persistent(l_List_foldlM___at_Lake_compileLeanModule___spec__3___closed__4); +l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__1 = _init_l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__1(); +lean_mark_persistent(l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__1); +l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__2 = _init_l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__2(); +lean_mark_persistent(l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__2); +l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__3 = _init_l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__3(); +lean_mark_persistent(l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__3); +l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4 = _init_l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4(); +lean_mark_persistent(l_List_foldlM___at_Lake_compileLeanModule___spec__1___closed__4); l_Lake_compileLeanModule___lambda__1___closed__1 = _init_l_Lake_compileLeanModule___lambda__1___closed__1(); lean_mark_persistent(l_Lake_compileLeanModule___lambda__1___closed__1); l_Lake_compileLeanModule___lambda__2___closed__1 = _init_l_Lake_compileLeanModule___lambda__2___closed__1(); @@ -5917,6 +5150,8 @@ l_Lake_compileLeanModule___lambda__4___closed__2 = _init_l_Lake_compileLeanModul lean_mark_persistent(l_Lake_compileLeanModule___lambda__4___closed__2); l_Lake_compileLeanModule___lambda__4___closed__3 = _init_l_Lake_compileLeanModule___lambda__4___closed__3(); lean_mark_persistent(l_Lake_compileLeanModule___lambda__4___closed__3); +l_Lake_compileLeanModule___lambda__4___closed__4 = _init_l_Lake_compileLeanModule___lambda__4___closed__4(); +lean_mark_persistent(l_Lake_compileLeanModule___lambda__4___closed__4); l_Lake_compileLeanModule___lambda__5___closed__1 = _init_l_Lake_compileLeanModule___lambda__5___closed__1(); lean_mark_persistent(l_Lake_compileLeanModule___lambda__5___closed__1); l_Lake_compileLeanModule___lambda__6___closed__1 = _init_l_Lake_compileLeanModule___lambda__6___closed__1(); diff --git a/stage0/stdlib/Lake/Build/Facets.c b/stage0/stdlib/Lake/Build/Facets.c index f91265921c..fddc6e2655 100644 --- a/stage0/stdlib/Lake/Build/Facets.c +++ b/stage0/stdlib/Lake/Build/Facets.c @@ -14,6 +14,7 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lake_instInhabitedModuleDeps; +static lean_object* l_Lake_Module_leanFacet___closed__1; static lean_object* l_Lake_Module_cFacet___closed__2; static lean_object* l_Lake_Module_coNoExportFacet___closed__2; static lean_object* l_Lake_LeanLib_defaultFacet___closed__2; @@ -23,15 +24,18 @@ static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____c LEAN_EXPORT lean_object* l_Lake_Module_coExportFacet; static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____closed__6; static lean_object* l_Lake_Module_ileanFacet___closed__2; +static lean_object* l_Lake_Module_inputFacet___closed__3; static lean_object* l_Lake_Package_reservoirBarrelFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_instReprModuleFacet___boxed(lean_object*, lean_object*); static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____closed__4; +static lean_object* l_Lake_Module_leanFacet___closed__2; static lean_object* l_Lake_ExternLib_dynlibFacet___closed__2; static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____closed__5; static lean_object* l_Lake_Package_gitHubReleaseFacet___closed__1; static lean_object* l_Lake_Package_optBuildCacheFacet___closed__3; static lean_object* l_Lake_Module_oFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_leanFacet; LEAN_EXPORT lean_object* l_Lake_ExternLib_sharedFacet; static lean_object* l_Lake_InputFile_defaultFacet___closed__1; static lean_object* l_Lake_reprModuleFacet____x40_Lake_Build_Facets___hyg_147____rarg___closed__2; @@ -49,23 +53,28 @@ static lean_object* l_Lake_Package_gitHubReleaseFacet___closed__2; static lean_object* l_Lake_reprModuleFacet____x40_Lake_Build_Facets___hyg_147____rarg___closed__4; LEAN_EXPORT lean_object* l_Lake_Module_depsFacet; LEAN_EXPORT lean_object* l_Lake_LeanLib_extraDepFacet; +LEAN_EXPORT lean_object* l_Lake_Module_inputFacet; static lean_object* l_Lake_Module_bcFacet___closed__2; static lean_object* l_Array_Array_repr___at_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____spec__1___closed__10; LEAN_EXPORT lean_object* l_Lake_reprModuleFacet____x40_Lake_Build_Facets___hyg_147_(lean_object*, lean_object*); static lean_object* l_Lake_instReprModuleDeps___closed__1; static lean_object* l_Lake_Module_ileanFacet___closed__1; +LEAN_EXPORT lean_object* l_Lake_Module_headerFacet; LEAN_EXPORT lean_object* l_Lake_Package_gitHubReleaseFacet; LEAN_EXPORT lean_object* l_Lake_Module_coNoExportFacet; static lean_object* l_Lake_ExternLib_defaultFacet___closed__1; +static lean_object* l_Lake_Module_inputFacet___closed__2; static lean_object* l_Lake_instReprModuleFacet___closed__1; static lean_object* l_Lake_LeanLib_defaultFacet___closed__1; LEAN_EXPORT lean_object* l_repr___at_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____spec__2(lean_object*); static lean_object* l_Lake_Package_reservoirBarrelFacet___closed__2; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_setupFacet; static lean_object* l_Lake_LeanLib_leanArtsFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_LeanExe_exeFacet; static lean_object* l_Lake_Module_bcoFacet___closed__1; +static lean_object* l_Lake_Module_setupFacet___closed__2; static lean_object* l_Lake_Module_oleanFacet___closed__2; static lean_object* l_Lake_LeanLib_staticFacet___closed__1; static lean_object* l_Lake_LeanLib_sharedFacet___closed__2; @@ -73,6 +82,7 @@ static lean_object* l_Lake_reprModuleFacet____x40_Lake_Build_Facets___hyg_147___ lean_object* lean_nat_to_int(lean_object*); static lean_object* l_Lake_LeanLib_sharedFacet___closed__1; static lean_object* l_Lake_Package_buildCacheFacet___closed__2; +static lean_object* l_Lake_Module_oleanPrivateFacet___closed__2; LEAN_EXPORT lean_object* l_Lake_LeanLib_leanArtsFacet; LEAN_EXPORT lean_object* l_Lake_Module_leanArtsFacet; LEAN_EXPORT lean_object* l_Lake_instCoeDepNameModuleFacetOfFamilyOutFacetOut___boxed(lean_object*, lean_object*, lean_object*); @@ -88,6 +98,7 @@ static lean_object* l_Array_Array_repr___at_Lake_reprModuleDeps____x40_Lake_Buil static lean_object* l_Lake_Package_optReservoirBarrelFacet___closed__1; static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____closed__11; static lean_object* l_Array_Array_repr___at_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____spec__1___closed__2; +static lean_object* l_Lake_Module_headerFacet___closed__2; static lean_object* l_Lake_InputDir_defaultFacet___closed__2; static lean_object* l_Lake_Module_oExportFacet___closed__1; static lean_object* l_Lake_LeanLib_staticExportFacet___closed__1; @@ -102,7 +113,9 @@ static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____c static lean_object* l_Lake_LeanExe_exeFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_LeanLib_staticFacet; static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____closed__9; +static lean_object* l_Lake_Module_setupFacet___closed__1; LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____spec__3(lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanServerFacet___closed__2; LEAN_EXPORT lean_object* l_List_foldl___at_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____spec__4(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_coFacet___closed__2; LEAN_EXPORT lean_object* l_Lake_Package_buildCacheFacet; @@ -142,9 +155,11 @@ LEAN_EXPORT lean_object* l_Lake_Module_oExportFacet; LEAN_EXPORT lean_object* l_Lake_LeanExe_defaultFacet; static lean_object* l_Lake_Package_optBuildCacheFacet___closed__2; LEAN_EXPORT lean_object* l_Lake_instReprModuleFacet(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacet; static lean_object* l_Lake_Module_coFacet___closed__1; static lean_object* l_Array_Array_repr___at_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____spec__1___closed__5; static lean_object* l_Lake_Package_extraDepFacet___closed__2; +static lean_object* l_Lake_Module_oleanPrivateFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_ExternLib_staticFacet; static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____closed__14; static lean_object* l_Array_Array_repr___at_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____spec__1___closed__7; @@ -164,15 +179,18 @@ static lean_object* l_Lake_LeanExe_defaultFacet___closed__1; static lean_object* l_Lake_reprModuleFacet____x40_Lake_Build_Facets___hyg_147____rarg___closed__3; static lean_object* l_Lake_Module_depsFacet___closed__1; static lean_object* l_Lake_Module_coExportFacet___closed__1; -static lean_object* l_Lake_Module_depsFacet___closed__3; +static lean_object* l_Lake_Module_oleanServerFacet___closed__1; static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____closed__13; LEAN_EXPORT lean_object* l_Lake_LeanLib_sharedFacet; LEAN_EXPORT lean_object* l_Lake_Module_oleanFacet; static lean_object* l_Lake_Module_oNoExportFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_Module_oFacet; +LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacet; static lean_object* l_Lake_LeanExe_exeFacet___closed__2; static lean_object* l_Lake_reprModuleDeps____x40_Lake_Build_Facets___hyg_56____closed__2; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lake_Module_inputFacet___closed__1; +static lean_object* l_Lake_Module_headerFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_Package_optReservoirBarrelFacet; static lean_object* l_Lake_Module_bcFacet___closed__1; static lean_object* _init_l_Lake_instInhabitedModuleDeps___closed__1() { @@ -891,7 +909,7 @@ lean_dec(x_1); return x_4; } } -static lean_object* _init_l_Lake_Module_depsFacet___closed__1() { +static lean_object* _init_l_Lake_Module_inputFacet___closed__1() { _start: { lean_object* x_1; @@ -899,7 +917,111 @@ x_1 = lean_mk_string_unchecked("module", 6, 6); return x_1; } } -static lean_object* _init_l_Lake_Module_depsFacet___closed__2() { +static lean_object* _init_l_Lake_Module_inputFacet___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("input", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_inputFacet___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lake_Module_inputFacet___closed__1; +x_2 = l_Lake_Module_inputFacet___closed__2; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lake_Module_inputFacet() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_inputFacet___closed__3; +return x_1; +} +} +static lean_object* _init_l_Lake_Module_leanFacet___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_leanFacet___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lake_Module_inputFacet___closed__1; +x_2 = l_Lake_Module_leanFacet___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lake_Module_leanFacet() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_leanFacet___closed__2; +return x_1; +} +} +static lean_object* _init_l_Lake_Module_headerFacet___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("header", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_headerFacet___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lake_Module_inputFacet___closed__1; +x_2 = l_Lake_Module_headerFacet___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lake_Module_headerFacet() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_headerFacet___closed__2; +return x_1; +} +} +static lean_object* _init_l_Lake_Module_setupFacet___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("setup", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_setupFacet___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lake_Module_inputFacet___closed__1; +x_2 = l_Lake_Module_setupFacet___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lake_Module_setupFacet() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_setupFacet___closed__2; +return x_1; +} +} +static lean_object* _init_l_Lake_Module_depsFacet___closed__1() { _start: { lean_object* x_1; @@ -907,12 +1029,12 @@ x_1 = lean_mk_string_unchecked("deps", 4, 4); return x_1; } } -static lean_object* _init_l_Lake_Module_depsFacet___closed__3() { +static lean_object* _init_l_Lake_Module_depsFacet___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_depsFacet___closed__1; -x_2 = l_Lake_Module_depsFacet___closed__2; +x_1 = l_Lake_Module_inputFacet___closed__1; +x_2 = l_Lake_Module_depsFacet___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } @@ -921,7 +1043,7 @@ static lean_object* _init_l_Lake_Module_depsFacet() { _start: { lean_object* x_1; -x_1 = l_Lake_Module_depsFacet___closed__3; +x_1 = l_Lake_Module_depsFacet___closed__2; return x_1; } } @@ -937,7 +1059,7 @@ static lean_object* _init_l_Lake_Module_leanArtsFacet___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_leanArtsFacet___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -963,7 +1085,7 @@ static lean_object* _init_l_Lake_Module_oleanFacet___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_oleanFacet___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -977,6 +1099,60 @@ x_1 = l_Lake_Module_oleanFacet___closed__2; return x_1; } } +static lean_object* _init_l_Lake_Module_oleanServerFacet___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("server", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_oleanServerFacet___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lake_Module_inputFacet___closed__1; +x_2 = l_Lake_Module_oleanFacet___closed__1; +x_3 = l_Lake_Module_oleanServerFacet___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lake_Module_oleanServerFacet() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_oleanServerFacet___closed__2; +return x_1; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFacet___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("private", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFacet___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lake_Module_inputFacet___closed__1; +x_2 = l_Lake_Module_oleanFacet___closed__1; +x_3 = l_Lake_Module_oleanPrivateFacet___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFacet() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_oleanPrivateFacet___closed__2; +return x_1; +} +} static lean_object* _init_l_Lake_Module_ileanFacet___closed__1() { _start: { @@ -989,7 +1165,7 @@ static lean_object* _init_l_Lake_Module_ileanFacet___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_ileanFacet___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -1015,7 +1191,7 @@ static lean_object* _init_l_Lake_Module_cFacet___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_cFacet___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -1041,7 +1217,7 @@ static lean_object* _init_l_Lake_Module_bcFacet___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_bcFacet___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -1067,7 +1243,7 @@ static lean_object* _init_l_Lake_Module_coFacet___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_cFacet___closed__1; x_3 = l_Lake_Module_coFacet___closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); @@ -1094,7 +1270,7 @@ static lean_object* _init_l_Lake_Module_coExportFacet___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_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_cFacet___closed__1; x_3 = l_Lake_Module_coFacet___closed__1; x_4 = l_Lake_Module_coExportFacet___closed__1; @@ -1122,7 +1298,7 @@ static lean_object* _init_l_Lake_Module_coNoExportFacet___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_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_cFacet___closed__1; x_3 = l_Lake_Module_coFacet___closed__1; x_4 = l_Lake_Module_coNoExportFacet___closed__1; @@ -1142,7 +1318,7 @@ static lean_object* _init_l_Lake_Module_bcoFacet___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_bcFacet___closed__1; x_3 = l_Lake_Module_coFacet___closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); @@ -1161,7 +1337,7 @@ static lean_object* _init_l_Lake_Module_oFacet___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_coFacet___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -1179,7 +1355,7 @@ static lean_object* _init_l_Lake_Module_oExportFacet___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_coFacet___closed__1; x_3 = l_Lake_Module_coExportFacet___closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); @@ -1198,7 +1374,7 @@ static lean_object* _init_l_Lake_Module_oNoExportFacet___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lake_Module_depsFacet___closed__1; +x_1 = l_Lake_Module_inputFacet___closed__1; x_2 = l_Lake_Module_coFacet___closed__1; x_3 = l_Lake_Module_coNoExportFacet___closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); @@ -1835,12 +2011,36 @@ l_Lake_reprModuleFacet____x40_Lake_Build_Facets___hyg_147____rarg___closed__9 = lean_mark_persistent(l_Lake_reprModuleFacet____x40_Lake_Build_Facets___hyg_147____rarg___closed__9); l_Lake_instReprModuleFacet___closed__1 = _init_l_Lake_instReprModuleFacet___closed__1(); lean_mark_persistent(l_Lake_instReprModuleFacet___closed__1); +l_Lake_Module_inputFacet___closed__1 = _init_l_Lake_Module_inputFacet___closed__1(); +lean_mark_persistent(l_Lake_Module_inputFacet___closed__1); +l_Lake_Module_inputFacet___closed__2 = _init_l_Lake_Module_inputFacet___closed__2(); +lean_mark_persistent(l_Lake_Module_inputFacet___closed__2); +l_Lake_Module_inputFacet___closed__3 = _init_l_Lake_Module_inputFacet___closed__3(); +lean_mark_persistent(l_Lake_Module_inputFacet___closed__3); +l_Lake_Module_inputFacet = _init_l_Lake_Module_inputFacet(); +lean_mark_persistent(l_Lake_Module_inputFacet); +l_Lake_Module_leanFacet___closed__1 = _init_l_Lake_Module_leanFacet___closed__1(); +lean_mark_persistent(l_Lake_Module_leanFacet___closed__1); +l_Lake_Module_leanFacet___closed__2 = _init_l_Lake_Module_leanFacet___closed__2(); +lean_mark_persistent(l_Lake_Module_leanFacet___closed__2); +l_Lake_Module_leanFacet = _init_l_Lake_Module_leanFacet(); +lean_mark_persistent(l_Lake_Module_leanFacet); +l_Lake_Module_headerFacet___closed__1 = _init_l_Lake_Module_headerFacet___closed__1(); +lean_mark_persistent(l_Lake_Module_headerFacet___closed__1); +l_Lake_Module_headerFacet___closed__2 = _init_l_Lake_Module_headerFacet___closed__2(); +lean_mark_persistent(l_Lake_Module_headerFacet___closed__2); +l_Lake_Module_headerFacet = _init_l_Lake_Module_headerFacet(); +lean_mark_persistent(l_Lake_Module_headerFacet); +l_Lake_Module_setupFacet___closed__1 = _init_l_Lake_Module_setupFacet___closed__1(); +lean_mark_persistent(l_Lake_Module_setupFacet___closed__1); +l_Lake_Module_setupFacet___closed__2 = _init_l_Lake_Module_setupFacet___closed__2(); +lean_mark_persistent(l_Lake_Module_setupFacet___closed__2); +l_Lake_Module_setupFacet = _init_l_Lake_Module_setupFacet(); +lean_mark_persistent(l_Lake_Module_setupFacet); l_Lake_Module_depsFacet___closed__1 = _init_l_Lake_Module_depsFacet___closed__1(); lean_mark_persistent(l_Lake_Module_depsFacet___closed__1); l_Lake_Module_depsFacet___closed__2 = _init_l_Lake_Module_depsFacet___closed__2(); lean_mark_persistent(l_Lake_Module_depsFacet___closed__2); -l_Lake_Module_depsFacet___closed__3 = _init_l_Lake_Module_depsFacet___closed__3(); -lean_mark_persistent(l_Lake_Module_depsFacet___closed__3); l_Lake_Module_depsFacet = _init_l_Lake_Module_depsFacet(); lean_mark_persistent(l_Lake_Module_depsFacet); l_Lake_Module_leanArtsFacet___closed__1 = _init_l_Lake_Module_leanArtsFacet___closed__1(); @@ -1855,6 +2055,18 @@ l_Lake_Module_oleanFacet___closed__2 = _init_l_Lake_Module_oleanFacet___closed__ lean_mark_persistent(l_Lake_Module_oleanFacet___closed__2); l_Lake_Module_oleanFacet = _init_l_Lake_Module_oleanFacet(); lean_mark_persistent(l_Lake_Module_oleanFacet); +l_Lake_Module_oleanServerFacet___closed__1 = _init_l_Lake_Module_oleanServerFacet___closed__1(); +lean_mark_persistent(l_Lake_Module_oleanServerFacet___closed__1); +l_Lake_Module_oleanServerFacet___closed__2 = _init_l_Lake_Module_oleanServerFacet___closed__2(); +lean_mark_persistent(l_Lake_Module_oleanServerFacet___closed__2); +l_Lake_Module_oleanServerFacet = _init_l_Lake_Module_oleanServerFacet(); +lean_mark_persistent(l_Lake_Module_oleanServerFacet); +l_Lake_Module_oleanPrivateFacet___closed__1 = _init_l_Lake_Module_oleanPrivateFacet___closed__1(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFacet___closed__1); +l_Lake_Module_oleanPrivateFacet___closed__2 = _init_l_Lake_Module_oleanPrivateFacet___closed__2(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFacet___closed__2); +l_Lake_Module_oleanPrivateFacet = _init_l_Lake_Module_oleanPrivateFacet(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFacet); l_Lake_Module_ileanFacet___closed__1 = _init_l_Lake_Module_ileanFacet___closed__1(); lean_mark_persistent(l_Lake_Module_ileanFacet___closed__1); l_Lake_Module_ileanFacet___closed__2 = _init_l_Lake_Module_ileanFacet___closed__2(); diff --git a/stage0/stdlib/Lake/Build/Info.c b/stage0/stdlib/Lake/Build/Info.c index c931dc0e9d..9dc5deff07 100644 --- a/stage0/stdlib/Lake/Build/Info.c +++ b/stage0/stdlib/Lake/Build/Info.c @@ -15,6 +15,7 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lake_ConfigTarget_key___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_precompileImports(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_header(lean_object*); extern lean_object* l_Lake_Module_coExportFacet; LEAN_EXPORT lean_object* l_Lake_LeanLib_shared(lean_object*); LEAN_EXPORT lean_object* l_Lake_LeanLib_modules(lean_object*); @@ -23,6 +24,7 @@ LEAN_EXPORT lean_object* l_Lake_Package_key___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_LeanLib_static(lean_object*); extern lean_object* l_Lake_InputFile_keyword; LEAN_EXPORT lean_object* l_Lake_Package_optBuildCache(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_oleanServer(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_targetBuildKey___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_LeanLib_leanArts(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_depsFacet; @@ -31,6 +33,7 @@ LEAN_EXPORT lean_object* l_Lake_Package_targetKey(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_buildKey(lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildInfo_key(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_targetKey___boxed(lean_object*, lean_object*); +extern lean_object* l_Lake_Module_leanFacet; LEAN_EXPORT lean_object* l_Lake_Module_facetCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instDataKindModule; LEAN_EXPORT lean_object* l_Lake_Package_transDeps(lean_object*); @@ -49,6 +52,7 @@ extern lean_object* l_Lake_Package_keyword; LEAN_EXPORT lean_object* l_Lake_Module_oNoExport(lean_object*); extern lean_object* l_Lake_Module_ileanFacet; LEAN_EXPORT lean_object* l_Lake_BuildInfo_dynlibExternLib(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_input(lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildInfo_staticExternLib(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_transImportsFacet; static lean_object* l_Lake_instDataKindInputDir___closed__1; @@ -56,15 +60,19 @@ extern lean_object* l_Lake_Module_depsFacet; LEAN_EXPORT lean_object* l_Lake_Module_bc(lean_object*); extern lean_object* l_Lake_LeanLib_extraDepFacet; LEAN_EXPORT lean_object* l_Lake_Module_bco(lean_object*); +extern lean_object* l_Lake_Module_inputFacet; LEAN_EXPORT lean_object* l_Lake_Module_deps(lean_object*); static lean_object* l_Lake_LeanLib_modulesFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_ExternLib_dynlibBuildKey(lean_object*); LEAN_EXPORT lean_object* l_Lake_ConfigTarget_facetBuildKey___rarg(lean_object*, lean_object*); +extern lean_object* l_Lake_Module_headerFacet; extern lean_object* l_Lake_Package_gitHubReleaseFacet; +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivate(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_facet(lean_object*, lean_object*); extern lean_object* l_Lake_Module_coNoExportFacet; LEAN_EXPORT lean_object* l_Lake_Module_facetBuildKey(lean_object*, lean_object*); static lean_object* l_Lake_Module_transImportsFacet___closed__2; +extern lean_object* l_Lake_Module_setupFacet; LEAN_EXPORT lean_object* l_Lake_LeanExe_exeBuildKey(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_facet(lean_object*, lean_object*); static lean_object* l_Lake_instDataKindInputDir___closed__2; @@ -89,6 +97,7 @@ LEAN_EXPORT lean_object* l_Lake_Module_coExport(lean_object*); static lean_object* l_Lake_Module_importsFacet___closed__1; LEAN_EXPORT lean_object* l_Lake_Package_transDepsFacet; LEAN_EXPORT lean_object* l_Lake_ExternLib_sharedBuildKey(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_setup(lean_object*); LEAN_EXPORT lean_object* l_Lake_InputDir_default(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_key___boxed(lean_object*); static lean_object* l_Lake_instDataKindLeanLib___closed__2; @@ -154,11 +163,13 @@ LEAN_EXPORT lean_object* l_Lake_Module_importsFacet; LEAN_EXPORT lean_object* l_Lake_ExternLib_staticBuildKey(lean_object*); LEAN_EXPORT lean_object* l_Lake_InputFile_facetCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_dynlib(lean_object*); +extern lean_object* l_Lake_Module_oleanPrivateFacet; LEAN_EXPORT lean_object* l_Lake_LeanLib_extraDep(lean_object*); LEAN_EXPORT lean_object* l_Lake_ConfigTarget_key___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_precompileImportsFacet; LEAN_EXPORT lean_object* l_Lake_InputFile_default(lean_object*); extern lean_object* l_Lake_ExternLib_staticFacet; +LEAN_EXPORT lean_object* l_Lake_Module_lean(lean_object*); extern lean_object* l_Lake_Module_oNoExportFacet; LEAN_EXPORT lean_object* l_Lake_Package_key(lean_object*); LEAN_EXPORT lean_object* l_Lake_ExternLib_static(lean_object*); @@ -185,6 +196,7 @@ LEAN_EXPORT lean_object* l_Lake_LeanExe_exe(lean_object*); static lean_object* l_Lake_instDataKindLeanExe___closed__1; extern lean_object* l_Lake_Module_oleanFacet; extern lean_object* l_Lake_Module_oFacet; +extern lean_object* l_Lake_Module_oleanServerFacet; extern lean_object* l_Lake_ExternLib_keyword; LEAN_EXPORT lean_object* l_Lake_Package_facetCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ExternLib_facetCore(lean_object*, lean_object*); @@ -1071,6 +1083,60 @@ lean_ctor_set(x_6, 3, x_2); return x_6; } } +LEAN_EXPORT lean_object* l_Lake_Module_input(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 2); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_3, 0, x_2); +x_4 = l_Lake_Module_keyword; +x_5 = l_Lake_Module_inputFacet; +x_6 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 1, x_4); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_lean(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 2); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_3, 0, x_2); +x_4 = l_Lake_Module_keyword; +x_5 = l_Lake_Module_leanFacet; +x_6 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 1, x_4); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_header(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 2); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_3, 0, x_2); +x_4 = l_Lake_Module_keyword; +x_5 = l_Lake_Module_headerFacet; +x_6 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 1, x_4); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_5); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lake_Module_imports(lean_object* x_1) { _start: { @@ -1125,6 +1191,24 @@ lean_ctor_set(x_6, 3, x_5); return x_6; } } +LEAN_EXPORT lean_object* l_Lake_Module_setup(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 2); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_3, 0, x_2); +x_4 = l_Lake_Module_keyword; +x_5 = l_Lake_Module_setupFacet; +x_6 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 1, x_4); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_5); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lake_Module_deps(lean_object* x_1) { _start: { @@ -1179,6 +1263,42 @@ lean_ctor_set(x_6, 3, x_5); return x_6; } } +LEAN_EXPORT lean_object* l_Lake_Module_oleanServer(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 2); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_3, 0, x_2); +x_4 = l_Lake_Module_keyword; +x_5 = l_Lake_Module_oleanServerFacet; +x_6 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 1, x_4); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivate(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 2); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_3, 0, x_2); +x_4 = l_Lake_Module_keyword; +x_5 = l_Lake_Module_oleanPrivateFacet; +x_6 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 1, x_4); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_5); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lake_Module_ilean(lean_object* x_1) { _start: { diff --git a/stage0/stdlib/Lake/Build/Job/Monad.c b/stage0/stdlib/Lake/Build/Job/Monad.c index 2f8f32beed..b56d8dd489 100644 --- a/stage0/stdlib/Lake/Build/Job/Monad.c +++ b/stage0/stdlib/Lake/Build/Job/Monad.c @@ -16,7 +16,6 @@ extern "C" { LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Job_mapM___spec__3(lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_BuildJob_bindSync___spec__7(lean_object*); static lean_object* l_Lake_instMonadStateOfLogJobM___closed__4; -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_zipResultWith___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Job_bindM___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,9 +86,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lake_Job_collectList___s LEAN_EXPORT lean_object* l_Lake_BuildJob_bindAsync(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mix___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Job_bindAsync___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_collectNameMap(lean_object*); static lean_object* l_Lake_BuildJob_mk___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lake_Job_collectNameMap___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Job_async___spec__2(lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Job_mapM___spec__4(lean_object*); LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Job_bindAsync___spec__3(lean_object*); @@ -137,7 +134,6 @@ LEAN_EXPORT lean_object* l_Lake_instMonadStateOfLogJobM___lambda__3(lean_object* LEAN_EXPORT lean_object* l_Lake_Job_add___rarg___lambda__2(lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); LEAN_EXPORT lean_object* l_Lake_pushLogEntry___at_Lake_instMonadLogJobM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildJob_toJob(lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lake_Job_collectList___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_bindTask(lean_object*, lean_object*, lean_object*); @@ -203,7 +199,6 @@ LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_BuildJob_bindSync___spec__1__ LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Job_mapM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Job_async___spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lake_EquipT_map___at_Lake_instMonadStateOfLogJobM___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lake_Job_collectList___spec__3(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_BuildJob_bindAsync___spec__2(lean_object*); LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Job_async___spec__5(lean_object*); @@ -264,7 +259,6 @@ LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Job_bindAsync___spec__7(lean_o LEAN_EXPORT lean_object* l_Lake_instAlternativeJobM; LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Job_bindAsync___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_takeTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_BuildJob_bindSync___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instMonadLiftFetchMJobM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_add(lean_object*, lean_object*); @@ -378,7 +372,6 @@ LEAN_EXPORT lean_object* l_Lake_Job_add___rarg___lambda__1(lean_object*, lean_ob LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Job_mixArray___spec__1___rarg(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_getTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Job_async___spec__6(lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lake_Job_mixList___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_setTraceCaption___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_bindAsync___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -31672,258 +31665,6 @@ lean_dec(x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -lean_dec(x_1); -x_6 = !lean_is_exclusive(x_3); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_3, 0); -x_8 = lean_ctor_get(x_3, 1); -x_9 = l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_4, x_2, x_7); -x_10 = l_Lake_JobState_merge(x_5, x_8); -lean_ctor_set(x_3, 1, x_10); -lean_ctor_set(x_3, 0, x_9); -return x_3; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_3, 0); -x_12 = lean_ctor_get(x_3, 1); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_3); -x_13 = l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_4, x_2, x_11); -x_14 = l_Lake_JobState_merge(x_5, x_12); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -lean_object* x_16; uint8_t x_17; -lean_dec(x_2); -x_16 = lean_ctor_get(x_1, 1); -lean_inc(x_16); -lean_dec(x_1); -x_17 = !lean_is_exclusive(x_3); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_3, 1); -x_19 = lean_ctor_get(x_3, 0); -lean_dec(x_19); -x_20 = l_Lake_JobState_merge(x_16, x_18); -x_21 = lean_unsigned_to_nat(0u); -lean_ctor_set(x_3, 1, x_20); -lean_ctor_set(x_3, 0, x_21); -return x_3; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_3, 1); -lean_inc(x_22); -lean_dec(x_3); -x_23 = l_Lake_JobState_merge(x_16, x_22); -x_24 = lean_unsigned_to_nat(0u); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -return x_25; -} -} -} -else -{ -lean_dec(x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_26; uint8_t x_27; -x_26 = lean_ctor_get(x_1, 1); -lean_inc(x_26); -lean_dec(x_1); -x_27 = !lean_is_exclusive(x_3); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_3, 1); -x_29 = lean_ctor_get(x_3, 0); -lean_dec(x_29); -x_30 = l_Lake_JobState_merge(x_26, x_28); -x_31 = lean_unsigned_to_nat(0u); -lean_ctor_set_tag(x_3, 1); -lean_ctor_set(x_3, 1, x_30); -lean_ctor_set(x_3, 0, x_31); -return x_3; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -lean_dec(x_3); -x_33 = l_Lake_JobState_merge(x_26, x_32); -x_34 = lean_unsigned_to_nat(0u); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; -} -} -else -{ -lean_object* x_36; uint8_t x_37; -x_36 = lean_ctor_get(x_1, 1); -lean_inc(x_36); -lean_dec(x_1); -x_37 = !lean_is_exclusive(x_3); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_3, 1); -x_39 = lean_ctor_get(x_3, 0); -lean_dec(x_39); -x_40 = l_Lake_JobState_merge(x_36, x_38); -x_41 = lean_unsigned_to_nat(0u); -lean_ctor_set(x_3, 1, x_40); -lean_ctor_set(x_3, 0, x_41); -return x_3; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_3, 1); -lean_inc(x_42); -lean_dec(x_3); -x_43 = l_Lake_JobState_merge(x_36, x_42); -x_44 = lean_unsigned_to_nat(0u); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -return x_45; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; -x_4 = lean_alloc_closure((void*)(l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg___lambda__1), 3, 2); -lean_closure_set(x_4, 0, x_3); -lean_closure_set(x_4, 1, x_1); -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -lean_dec(x_2); -x_6 = l_Task_Priority_default; -x_7 = 1; -x_8 = lean_task_map(x_4, x_5, x_6, x_7); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -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; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 3); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg(x_1, x_3); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_alloc_closure((void*)(l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg___lambda__2), 3, 2); -lean_closure_set(x_9, 0, x_4); -lean_closure_set(x_9, 1, x_5); -x_10 = l_Task_Priority_default; -x_11 = 1; -x_12 = lean_task_bind(x_8, x_9, x_10, x_11); -x_13 = lean_box(0); -x_14 = l_Lake_Job_async___rarg___lambda__2___closed__2; -x_15 = 0; -x_16 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_13); -lean_ctor_set(x_16, 2, x_14); -lean_ctor_set_uint8(x_16, sizeof(void*)*3, x_15); -x_1 = x_16; -x_2 = x_6; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg), 2, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lake_Job_collectNameMap___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; -x_3 = lean_box(0); -x_4 = l_Lake_BuildTrace_nil(x_2); -x_5 = l_Lake_Job_async___rarg___closed__1; -x_6 = 0; -x_7 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_7, 1, x_4); -lean_ctor_set_uint8(x_7, sizeof(void*)*2, x_6); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_3); -lean_ctor_set(x_8, 1, x_7); -x_9 = lean_task_pure(x_8); -x_10 = lean_box(0); -x_11 = l_Lake_Job_async___rarg___lambda__2___closed__2; -x_12 = 0; -x_13 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_10); -lean_ctor_set(x_13, 2, x_11); -lean_ctor_set_uint8(x_13, sizeof(void*)*3, x_12); -x_14 = l_Lean_RBNode_fold___at_Lake_Job_collectNameMap___spec__1___rarg(x_13, x_1); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lake_Job_collectNameMap(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lake_Job_collectNameMap___rarg), 2, 0); -return x_2; -} -} LEAN_EXPORT lean_object* l_Lake_BuildJob_mk___rarg___lambda__1(lean_object* x_1) { _start: { diff --git a/stage0/stdlib/Lake/Build/Module.c b/stage0/stdlib/Lake/Build/Module.c index 8f75065ed9..c3721b8bf5 100644 --- a/stage0/stdlib/Lake/Build/Module.c +++ b/stage0/stdlib/Lake/Build/Module.c @@ -13,213 +13,250 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_oNoExportFacetConfig___lambda__1___closed__2; static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__4___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__2(lean_object*, lean_object*, size_t, 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*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__8(lean_object*); +static lean_object* l_Lake_Module_leanFacetConfig___closed__1; static lean_object* l_Lake_Module_transImportsFacetConfig___closed__1; -lean_object* l_Lake_Module_bcFile_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lake_computeModuleDeps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lake_Module_recParseImports___spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLeanCToOExport___closed__4; extern lean_object* l_Lake_Module_coExportFacet; -static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__11; +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_dynlibFacetConfig___closed__2; lean_object* l_Lean_Json_compress(lean_object*); -static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__1; LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchInput___closed__4; +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__16(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig; -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__9(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_EXPORT lean_object* l_Lake_Module_recFetchInput___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2; +static lean_object* l_Lake_Module_recFetchSetup___lambda__9___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_recBuildDynlib___lambda__1(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_fetchExternLibs___closed__1; static lean_object* l_Lake_Module_coNoExportFacetConfig___closed__2; -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_buildImportsAndDeps___closed__3; +LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_Build_Module_0__Lake_computeModuleDeps___spec__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_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_clearOutputHashes___closed__5; lean_object* l_System_FilePath_normalize(lean_object*); LEAN_EXPORT lean_object* l_Lake_EquipT_bind___at_Lake_Module_recComputeTransImports___spec__3(lean_object*, lean_object*); +static lean_object* l_Lake_Module_leanFacetConfig___closed__2; +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__11(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Array_foldlMUnsafe_fold___at_Lake_buildO___spec__1(lean_object*, size_t, size_t, uint64_t); static lean_object* l_Lake_Module_clearOutputHashes___closed__3; +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_instBEqModule___boxed(lean_object*, lean_object*); static lean_object* l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recParseImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__9(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLeanCToOExport___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Module_recBuildDeps___lambda__8___closed__4; static lean_object* l_Lake_fetchImportLibs___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_computeModuleDeps___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recBuildDynlib(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LeanOptions_ofArray(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanCToONoExport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recComputeTransImports___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__18(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recFetchInput___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_fetchImportLibs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__4(lean_object*, lean_object*, size_t, 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*); +LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_leanFacetConfig___spec__1(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanBcToO(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__8___boxed(lean_object*); lean_object* lean_get_set_stdout(lean_object*, lean_object*); static lean_object* l_Lake_Module_depsFacetConfig___closed__1; -LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Module_recParseImports___lambda__4___closed__2; +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___at_Lake_Module_recBuildLean___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_toJson___at_Lake_Module_importsFacetConfig___spec__3(lean_object*); lean_object* l_panic___at_Lean_Name_getString_x21___spec__1(lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__6___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*, lean_object*); +static lean_object* l_Lake_Module_recFetchSetup___lambda__2___closed__3; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__4___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__7___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lambda__1(lean_object*); lean_object* l_Lean_LeanOptionValue_asCliFlagValue(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recComputePrecompileImports___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_buildImportsAndDeps___spec__5(lean_object*); +extern lean_object* l_Lake_Module_leanFacet; +static size_t l_Lake_Module_recFetchSetup___lambda__9___closed__5; extern uint8_t l_System_Platform_isOSX; +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_RBNode_isRed___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDynlib___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__10___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_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__8(lean_object*, size_t, 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*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__16(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_bcFacetConfig___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___boxed(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_Module_clearOutputHashes___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDynlib___spec__2___boxed(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_Module_oleanPrivateFacetConfig___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_coFacetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_transImportsFacetConfig; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; static lean_object* l_Lake_Module_ileanFacetConfig___closed__2; uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isAnonymous(lean_object*); static lean_object* l_Lake_Module_recBuildLeanCToONoExport___lambda__1___closed__1; lean_object* l_Lean_RBNode_find___at___private_Lake_Build_Common_0__Lake_mkLinkOrder_go___spec__4(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___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*); +lean_object* lean_io_metadata(lean_object*, lean_object*); static lean_object* l_Lake_buildImportsAndDeps___lambda__8___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__3(lean_object*, lean_object*, size_t, 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*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig; lean_object* l_Lake_buildUnlessUpToDate_x3f_go(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__2___boxed__const__1; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lake_Module_recParseImports___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__4; extern lean_object* l_Lake_Module_cFacet; +LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_buildImportsAndDeps___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__17___boxed(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_ExternLib_dynlibFacet; static lean_object* l_Lake_Module_oExportFacetConfig___closed__1; extern lean_object* l_Lake_Package_keyword; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__8___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_bcFacetConfig___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_computePrecompileImportsAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_inputFacetConfig___closed__3; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recComputeTransImports___spec__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1(lean_object*, lean_object*); static lean_object* l_Lake_fetchImportLibs___closed__2; +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__4; lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_ileanFacet; lean_object* l_Lake_Job_renew___rarg(lean_object*); lean_object* l___private_Lake_Build_Target_Fetch_0__Lake_PartialBuildKey_fetchInCoreAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_oNoExportFacetConfig___closed__1; +LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig; lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recParseImports___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recParseImports___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_initFacetConfigs; +uint64_t lean_string_hash(lean_object*); LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___at_Lake_Module_recBuildLean___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__6(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_computeModuleDeps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_fetchFileTrace(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLeanCToOExport___lambda__1___closed__2; -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_transImportsFacet; LEAN_EXPORT lean_object* l_Lake_Module_recComputeTransImports___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_depsFacet; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_recBuildExternDynlibs___closed__2; -lean_object* l_Lake_compileLeanModule(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*); -LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildLean___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_computeModuleDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lake_compileLeanModule(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_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_LeanLib_extraDepFacet; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_collectImportsAux___closed__3; -static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +extern lean_object* l_Lake_Module_inputFacet; +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchSetup___lambda__9___closed__3; lean_object* lean_task_bind(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_LeanOptions_append___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_leanFacetConfig___lambda__2___closed__2; LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lake_OrdHashSet_empty___at_Lake_OrdPackageSet_empty___spec__1; LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___at_Lake_Module_recBuildLean___spec__3___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanPrivateFacetConfig___closed__3; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recComputePrecompileImports___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); -static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__6(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*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__10(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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_bcFacetConfig___lambda__1___closed__3; lean_object* l_Lake_readTraceFile_x3f(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__9___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*); static lean_object* l_Lake_Module_recBuildLeanCToOExport___closed__5; lean_object* lean_string_utf8_byte_size(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_recBuildExternDynlibs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3(lean_object*, lean_object*); lean_object* l_Lake_BuildTrace_mix(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at_Lake_Module_recBuildDeps___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_validate_utf8(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_setupFacetConfig; +extern lean_object* l_Lake_Module_headerFacet; +static lean_object* l_Lake_Module_leanFacetConfig___closed__3; LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanCToOExport___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*, lean_object*); -static lean_object* l_Lake_fetchExternLibs___closed__2; static lean_object* l_Lake_Module_ileanFacetConfig___closed__1; -static lean_object* l_Lake_Module_recBuildDeps___lambda__2___closed__2; static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__7; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_coNoExportFacet; static lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___closed__2; lean_object* l_Lake_relPathFrom(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildLeanCToOExport___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Module_recBuildDeps___lambda__9___closed__1; +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchInput___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanCToOExport___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*); -static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__9; +static lean_object* l_Lake_buildImportsAndDeps___lambda__10___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_importsFacetConfig___spec__4___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_collectImportsAux___closed__4; lean_object* l_Lake_buildLeanSharedLib(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_sharedLibExt; LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recComputeTransImports___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanCToOExport(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_clearOutputHashes(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_importsFacetConfig___spec__4(size_t, size_t, lean_object*); lean_object* l_Lake_EquipT_bind___at_Lake_buildFileUnlessUpToDate_x27___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lake_Module_setupFacet; extern lean_object* l_Lake_platformTrace; size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___closed__1; +static lean_object* l_Lake_Module_recFetchInput___closed__1; LEAN_EXPORT lean_object* l_Lake_collectImportsAux___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_Lake_fetchExternLibs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__5; lean_object* l_Lake_instHashableModule___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); lean_object* l_Lake_Module_getMTime(lean_object*, lean_object*); static lean_object* l_Lake_buildImportsAndDeps___closed__1; -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10___boxed(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_collectImportsAux___closed__1; -static lean_object* l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__2; +static lean_object* l_Lake_Module_inputFacetConfig___closed__1; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__6(lean_object*, lean_object*, lean_object*, size_t, 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_Module_recFetchInput___closed__2; +LEAN_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at_Lake_Module_recFetchSetup___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___boxed(lean_object**); static lean_object* l_Lake_collectImportsAux___closed__2; +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___lambda__1(lean_object*, lean_object*); static lean_object* l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___closed__4; lean_object* l_Lake_Module_checkExists(lean_object*, lean_object*); static lean_object* l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___closed__6; @@ -228,20 +265,22 @@ LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes(lean_object*, lean_obje LEAN_EXPORT lean_object* l_Lake_Module_dynlibFacetConfig; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__1(lean_object*); static lean_object* l_Lake_Module_cFacetConfig___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__8___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*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_mkLoadOrder_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLeanBcToO___lambda__1___closed__1; static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__8; -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +static lean_object* l_Lake_Module_recFetchInput___lambda__4___closed__1; lean_object* l_Lake_Workspace_findModule_x3f___boxed(lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanPrivateFacetConfig___closed__1; lean_object* l_Lean_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lake_Job_mixArray___rarg(lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__5(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static uint8_t l_Lake_Module_cacheOutputHashes___lambda__1___closed__1; static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__3; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_ByteArray_empty; -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__17(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_coExportFacetConfig; lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -251,72 +290,81 @@ lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); static lean_object* l_Lake_Module_coNoExportFacetConfig___closed__1; LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_initModuleFacetConfigs; +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__20(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_coExportFacetConfig___closed__2; static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__3; lean_object* l_Lake_nullFormat___rarg___boxed(lean_object*, lean_object*); -extern lean_object* l_Lake_instDataKindUnit; LEAN_EXPORT lean_object* l_Lake_OrdHashSet_appendArray___at_Lake_collectImportsAux___spec__2(lean_object*, lean_object*); extern lean_object* l_Lake_Module_leanArtsFacet; lean_object* l_Lake_BuildInfo_fetch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lake_buildImportsAndDeps___spec__6(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_leanArtsFacetConfig; LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__15(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_setupFacetConfig___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_recBuildDynlib___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_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_oleanFacetConfig___spec__2(uint8_t, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchSetup___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lambda__1(lean_object*); static lean_object* l_Lake_Module_oExportFacetConfig___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig; -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lambda__1(lean_object*); +lean_object* l_String_crlfToLf_go(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanServerFacetConfig___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recComputeTransImports___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__6___at_Lake_Module_recBuildLean___spec__7(lean_object*, lean_object*); lean_object* l_Lake_EquipT_map___at_Lake_instMonadStateOfLogJobM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__11(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_Module_recParseImports___spec__3(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -static lean_object* l_Lake_Module_recParseImports___lambda__2___closed__1; static lean_object* l_Lake_buildImportsAndDeps___lambda__9___closed__2; +lean_object* l_Lake_Workspace_findModule_x3f(lean_object*, lean_object*); +static lean_object* l_Lake_Module_headerFacetConfig___closed__2; +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_instDataKindFilePath; LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLeanCToOExport___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__15(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lake_buildImportsAndDeps___lambda__10___closed__1; lean_object* l_Lake_PartialBuildKey_toString(lean_object*); extern lean_object* l_Lake_Module_bcFacet; +LEAN_EXPORT lean_object* l_Lake_Module_inputFacetConfig; lean_object* lean_array_to_list(lean_object*); LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6(lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__1; -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lake_buildImportsAndDeps___spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__10(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__1___boxed(lean_object*); lean_object* l_Lake_JobState_merge(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLeanCToOExport___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___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_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_importsFacetConfig; static lean_object* l_Lake_Module_bcFacetConfig___closed__1; lean_object* lean_io_map_task(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l_Lake_buildImportsAndDeps___closed__4; -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__12(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__3___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_precompileImportsFacetConfig; LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLeanCToOExport___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__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*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computePrecompileImportsAux___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lake_recBuildExternDynlibs___closed__4; +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLeanBcToO___closed__1; lean_object* l_Lake_cacheFileHash(lean_object*, lean_object*); -static lean_object* l_Lake_Module_recParseImports___closed__4; static lean_object* l_Lake_Module_importsFacetConfig___closed__1; -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__3(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lake_Module_oFacetConfig___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1(lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_BuildType_leanOptions(uint8_t); static lean_object* l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -326,92 +374,106 @@ uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLeanCToOExport___closed__1; static lean_object* l_Lake_Module_oleanFacetConfig___closed__2; uint8_t l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_traceOptions(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_coNoExportFacetConfig; +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__4___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_ofBuffer(lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__2; -static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__2; LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recComputeTransImports___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__4___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_EquipT_instMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildDynlib___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_recBuildExternDynlibs___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__2; extern lean_object* l_instMonadBaseIO; LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__3; LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanCToONoExport(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__2; -static lean_object* l_Lake_Module_recBuildDeps___lambda__8___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_mkLoadOrder___spec__1(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_cFacetConfig___closed__1; -static lean_object* l_Lake_Module_recBuildDeps___lambda__8___closed__1; uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_160____at_Lake_buildFileUnlessUpToDate_x27___spec__5(lean_object*, lean_object*); lean_object* l_Lake_BuildTrace_nil(lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__7(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*, lean_object*); static lean_object* l_Lake_Module_recBuildDynlib___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recComputeTransImports___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_get_set_stderr(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___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_Lake_EResult_map___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_leanFacetConfig___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_coFacetConfig; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___boxed(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_Module_recBuildLeanCToOExport___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_oNoExportFacetConfig___closed__2; -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Module_recBuildDeps___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recFetchSetup___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__19(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_ModuleFacet_fetch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___at_Lake_envToBool_x3f___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_oFacetConfig___closed__2; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDynlib___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchSetup___lambda__2___closed__1; lean_object* lean_task_get_own(lean_object*); -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recFetchInput___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_from_utf8_unchecked(lean_object*); lean_object* l_Lake_Job_toOpaque___rarg(lean_object*); +static lean_object* l_Lake_Module_setupFacetConfig___closed__1; LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lake_Module_initFacetConfigs___spec__2(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_ileanFacetConfig___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchSetup___lambda__9___closed__1; static lean_object* l_Lake_Module_importsFacetConfig___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_bcoFacetConfig; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDynlib___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLeanCToOExport___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__3(lean_object*, lean_object*); lean_object* l_Lake_Job_collectArray___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__3; +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildLean___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___closed__1; +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recComputeTransImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_OrdHashSet_appendArray___at_Lake_collectImportsAux___spec__2___boxed(lean_object*, lean_object*); -static lean_object* l_Lake_Module_recParseImports___closed__2; +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recParseImports___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_collectImportsAux___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_coExportFacetConfig___closed__1; LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_leanArtsFacetConfig___closed__1; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__8(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__11(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___closed__5; LEAN_EXPORT lean_object* l_Lake_Module_recComputePrecompileImports___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanCToONoExport___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__3; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recFetchSetup___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recParseImports___closed__1; +static lean_object* l_Lake_Module_recFetchSetup___lambda__1___closed__2; +static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__4; lean_object* l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig; +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchInput___closed__3; lean_object* l_IO_FS_readFile(lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_JobResult_prependLog___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_recBuildExternDynlibs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_oNoExportFacetConfig___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig; LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanBcToO___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recBuildDynlib___boxed__const__1; uint8_t l_Lake_instDecidableEqVerbosity(uint8_t, uint8_t); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -419,112 +481,121 @@ lean_object* l_Lake_BuildType_leanArgs(uint8_t); static lean_object* l_Lake_buildImportsAndDeps___lambda__10___closed__2; LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recComputeTransImports___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__17(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___at_Lake_Module_recBuildLean___spec__3(lean_object*); static lean_object* l_Lake_Module_clearOutputHashes___closed__1; -static lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1; -LEAN_EXPORT lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___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*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildDeps___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +static lean_object* l_Lake_buildImportsAndDeps___lambda__10___closed__4; +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Package_extraDepFacet; -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanServerFacetConfig___closed__4; extern lean_object* l_Lean_NameSet_empty; +LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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_EXPORT lean_object* l_Array_filterMapM___at_Lake_buildImportsAndDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recComputeTransImports___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_computePrecompileImportsAux___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_Build_Module_0__Lake_computeModuleDeps___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDynlib___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchSetup___lambda__2___closed__2; lean_object* l_Lake_formatCycle___at___private_Lake_Build_Common_0__Lake_mkLinkOrder___spec__2(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildDynlib___closed__1; LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__9___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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lambda__1___boxed(lean_object*); static lean_object* l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___closed__3; static lean_object* l_Lake_Module_oleanFacetConfig___closed__1; +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lambda__1(lean_object*); static lean_object* l_Lake_Module_recBuildLeanCToONoExport___closed__1; -static lean_object* l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__1; uint8_t l_Lake_Backend_orPreferLeft(uint8_t, uint8_t); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recComputeTransImports___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_dynlibFacetConfig___spec__1(uint8_t, lean_object*); uint8_t l_IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3217_(lean_object*, lean_object*); extern uint64_t l_Lake_Hash_nil; -static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__10; lean_object* l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_headerFacetConfig___lambda__2___closed__1; static lean_object* l_Lake_recBuildExternDynlibs___closed__1; static lean_object* l_Lake_Module_bcoFacetConfig___closed__2; -static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_leanFacetConfig___lambda__2___closed__1; +static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__2; +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_insert___at___private_Lake_Build_Common_0__Lake_mkLinkOrder_go___spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_oFacetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__4; LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildDynlib___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recComputeTransImports___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_Lake_Module_depsFacetConfig___closed__3; static lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDynlib___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_clearOutputHashes___closed__6; LEAN_EXPORT lean_object* l_Lake_EquipT_map___at_Lake_buildImportsAndDeps___spec__1(lean_object*, lean_object*); lean_object* l_Array_shrink___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__6___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LeanOptions_appendArray(lean_object*, lean_object*); lean_object* l_Lean_parseImports_x27(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__5; -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDynlib___spec__1___boxed(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_instDataKindDynlib; extern lean_object* l_Lake_Module_coFacet; +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__9(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_bcoFacet; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchImportLibs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); extern lean_object* l_Lake_Module_oExportFacet; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__9(lean_object*, lean_object*, lean_object*, size_t, 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_Module_oleanFacetConfig___closed__4; uint64_t l_Lean_Name_hash___override(lean_object*); static lean_object* l_Lake_recBuildExternDynlibs___closed__3; -LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Substring_prevn(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_computePrecompileImportsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_importsFacetConfig___closed__3; uint64_t lean_uint64_xor(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanBcToO___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__4(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_coFacetConfig___closed__2; LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_mkLoadOrder_go___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lake_instHashablePackage___boxed(lean_object*); LEAN_EXPORT uint8_t l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__7(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__2; +static lean_object* l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__1; lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_oNoExportFacetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_mkRelPathString(lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__8(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lambda__1___boxed(lean_object*); lean_object* l_List_toString___at_Lean_rewriteManualLinksCore_rw___spec__5(lean_object*); -lean_object* l_Lake_BuildTrace_compute___at_Lake_inputTextFile___spec__1(lean_object*, lean_object*); extern lean_object* l_Lake_Module_importsFacet; LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__1; -static lean_object* l_Lake_Module_recParseImports___lambda__4___closed__1; lean_object* lean_get_set_stdin(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recParseImports___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at_Lake_buildImportsAndDeps___spec__4___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recFetchSetup___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lake_Module_ileanFacetConfig___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lake_buildImportsAndDeps___spec__7(lean_object*, lean_object*); lean_object* l_Lake_Workspace_leanPath___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchImportLibs___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lake_JobAction_merge(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lake_Module_oExportFacetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -532,126 +603,156 @@ static lean_object* l_Lake_collectImportsAux___closed__5; static lean_object* l_Lake_Module_transImportsFacetConfig___closed__2; static lean_object* l_Lake_Module_precompileImportsFacetConfig___closed__1; static lean_object* l_Lake_Module_coFacetConfig___closed__1; -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recParseImports___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lake_Module_oleanPrivateFacet; lean_object* l_Lake_buildLeanO(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___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*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static uint8_t l_Lake_Module_clearOutputHashes___closed__4; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__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_EXPORT lean_object* l_Lake_Module_recFetchInput(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_clearOutputHashes___closed__4; static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__2; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDeps___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_mk(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig; +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_precompileImportsFacet; uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); -static lean_object* l_Lake_Module_recBuildDeps___lambda__8___closed__3; uint8_t lean_internal_has_llvm_backend(lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); +static lean_object* l_Lake_Module_oleanPrivateFacetConfig___closed__4; lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_collectImportsAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__2; -static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__4; +static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__2; +static lean_object* l_Lake_Module_headerFacetConfig___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lambda__1(lean_object*); extern lean_object* l_Lake_Module_oNoExportFacet; +static lean_object* l_Lake_Module_headerFacetConfig___closed__1; +static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__3; +static lean_object* l_Lake_Module_cFacetConfig___lambda__1___closed__3; static lean_object* l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__2___boxed(lean_object**); lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__5___boxed(lean_object**); lean_object* lean_io_error_to_string(lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_keyword; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLeanCToOExport___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lake_Module_oExportFacetConfig; LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_recFetchSetup___lambda__10___closed__1; +static lean_object* l_Lake_Module_ileanFacetConfig___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDynlib___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_modToFilePath(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_recBuildExternDynlibs___closed__6; -lean_object* l_Lake_instBEqPackage___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildDynlib___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_oleanFacetConfig___spec__2___boxed(lean_object*, lean_object*); +static lean_object* l_Lake_Module_cFacetConfig___lambda__1___closed__2; extern lean_object* l_Lake_Module_dynlibFacet; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_precompileImportsFacetConfig___closed__2; -static lean_object* l_Lake_Module_recParseImports___closed__3; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_fetchImportLibs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__9(lean_object*, lean_object*); +static lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; lean_object* lean_io_wait(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_computeModuleDeps___spec__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*); -static lean_object* l_Lake_Module_oleanFacetConfig___lambda__1___closed__1; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_oNoExportFacetConfig; LEAN_EXPORT lean_object* l_Lake_EquipT_bind___at_Lake_Module_recComputeTransImports___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__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_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8___boxed(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_Module_recParseImports___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lake_Module_recComputePrecompileImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_buildImportsAndDeps___lambda__9___closed__1; static lean_object* l_Lake_Module_dynlibFacetConfig___closed__1; lean_object* lean_name_mangle(lean_object*, lean_object*); +static lean_object* l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___at_Lake_Module_recBuildLean___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__16(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lake_EStateT_instMonad___rarg(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lake_Module_depsFacetConfig___closed__2; static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__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*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1___closed__2; static lean_object* l_Lake_recBuildExternDynlibs___closed__5; -static lean_object* l_Lake_Module_recBuildDeps___lambda__2___closed__3; +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lake_buildImportsAndDeps___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__8___at_Lake_Module_recBuildLean___spec__9(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_computeModuleDeps___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_joinRelative(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_EquipT_map___at_Lake_buildImportsAndDeps___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_BuildType_leancArgs(uint8_t); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_buildImportsAndDeps___closed__2; +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_inputFacetConfig___closed__2; +static lean_object* l_Lake_Module_recFetchSetup___lambda__9___closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDynlib___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanServerFacetConfig___closed__2; +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_LeanLib_sharedFacet; -LEAN_EXPORT lean_object* l_Lake_fetchExternLibs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___closed__1; +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__7(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_oleanFacet; extern uint8_t l_System_Platform_isWindows; +LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computePrecompileImportsAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Module_oFacet; -LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recFetchInput___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_dynlibFacetConfig___closed__3; +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_recBuildLeanCToOExport___closed__3; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDeps___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__7___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*, lean_object*, lean_object*); +extern lean_object* l_Lake_Module_oleanServerFacet; +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); extern lean_object* l_Lake_ExternLib_keyword; +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_leanArtsFacetConfig___closed__2; static lean_object* l_Lake_Module_recBuildLean___lambda__1___closed__6; lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildFileAfterDep___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___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*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_mkLoadOrder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_clearFileHash(lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanServerFacetConfig___closed__3; LEAN_EXPORT lean_object* l_Lake_collectImportsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDynlib___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instMonad___rarg(lean_object*); size_t lean_usize_land(size_t, size_t); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recParseImports___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___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*); -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__2___boxed__const__1; -static size_t l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___closed__1; +static lean_object* l_Lake_Module_bcFacetConfig___lambda__1___closed__2; +static lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__1; +LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__17___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildDynlib___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig; +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_oFacetConfig; static lean_object* l_Lake_Module_bcoFacetConfig___closed__1; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(size_t x_1, size_t 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) { _start: { @@ -1530,781 +1631,7 @@ x_16 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3(x_ return x_16; } } -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_ctor_get(x_4, 2); -x_7 = lean_ctor_get(x_1, 2); -x_8 = lean_name_eq(x_6, x_7); -if (x_8 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_10; -x_10 = 1; -return x_10; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lake_Module_recParseImports___spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_array_get_size(x_1); -x_7 = lean_ctor_get(x_4, 2); -lean_inc(x_7); -x_8 = l_Lean_Name_hash___override(x_7); -lean_dec(x_7); -x_9 = 32; -x_10 = lean_uint64_shift_right(x_8, x_9); -x_11 = lean_uint64_xor(x_8, x_10); -x_12 = 16; -x_13 = lean_uint64_shift_right(x_11, x_12); -x_14 = lean_uint64_xor(x_11, x_13); -x_15 = lean_uint64_to_usize(x_14); -x_16 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_17 = 1; -x_18 = lean_usize_sub(x_16, x_17); -x_19 = lean_usize_land(x_15, x_18); -x_20 = lean_array_uget(x_1, x_19); -lean_ctor_set(x_2, 2, x_20); -x_21 = lean_array_uset(x_1, x_19, x_2); -x_1 = x_21; -x_2 = x_5; -goto _start; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; size_t x_35; size_t x_36; size_t x_37; size_t x_38; size_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_23 = lean_ctor_get(x_2, 0); -x_24 = lean_ctor_get(x_2, 1); -x_25 = lean_ctor_get(x_2, 2); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_2); -x_26 = lean_array_get_size(x_1); -x_27 = lean_ctor_get(x_23, 2); -lean_inc(x_27); -x_28 = l_Lean_Name_hash___override(x_27); -lean_dec(x_27); -x_29 = 32; -x_30 = lean_uint64_shift_right(x_28, x_29); -x_31 = lean_uint64_xor(x_28, x_30); -x_32 = 16; -x_33 = lean_uint64_shift_right(x_31, x_32); -x_34 = lean_uint64_xor(x_31, x_33); -x_35 = lean_uint64_to_usize(x_34); -x_36 = lean_usize_of_nat(x_26); -lean_dec(x_26); -x_37 = 1; -x_38 = lean_usize_sub(x_36, x_37); -x_39 = lean_usize_land(x_35, x_38); -x_40 = lean_array_uget(x_1, x_39); -x_41 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_41, 0, x_23); -lean_ctor_set(x_41, 1, x_24); -lean_ctor_set(x_41, 2, x_40); -x_42 = lean_array_uset(x_1, x_39, x_41); -x_1 = x_42; -x_2 = x_25; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lake_Module_recParseImports___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_1, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_box(0); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_Std_DHashMap_Internal_AssocList_foldlM___at_Lake_Module_recParseImports___spec__5(x_3, x_6); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_1, x_10); -lean_dec(x_1); -x_1 = x_11; -x_2 = x_8; -x_3 = x_9; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_Module_recParseImports___spec__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_2 = lean_array_get_size(x_1); -x_3 = lean_unsigned_to_nat(2u); -x_4 = lean_nat_mul(x_2, x_3); -lean_dec(x_2); -x_5 = lean_box(0); -x_6 = lean_mk_array(x_4, x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lake_Module_recParseImports___spec__4(x_7, x_1, x_6); -return x_8; -} -} -static lean_object* _init_l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_instHashableModule___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_instBEqModule___boxed), 2, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; lean_object* x_21; uint8_t x_22; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_ctor_get(x_3, 1); -x_7 = lean_array_get_size(x_6); -x_8 = lean_ctor_get(x_2, 2); -lean_inc(x_8); -x_9 = l_Lean_Name_hash___override(x_8); -lean_dec(x_8); -x_10 = 32; -x_11 = lean_uint64_shift_right(x_9, x_10); -x_12 = lean_uint64_xor(x_9, x_11); -x_13 = 16; -x_14 = lean_uint64_shift_right(x_12, x_13); -x_15 = lean_uint64_xor(x_12, x_14); -x_16 = lean_uint64_to_usize(x_15); -x_17 = lean_usize_of_nat(x_7); -lean_dec(x_7); -x_18 = 1; -x_19 = lean_usize_sub(x_17, x_18); -x_20 = lean_usize_land(x_16, x_19); -x_21 = lean_array_uget(x_6, x_20); -x_22 = l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2(x_2, x_21); -if (x_22 == 0) -{ -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; uint8_t x_35; -x_23 = lean_ctor_get(x_1, 1); -lean_inc(x_23); -lean_dec(x_1); -lean_inc(x_2); -x_24 = lean_array_push(x_23, x_2); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_5, x_25); -lean_dec(x_5); -x_27 = lean_box(0); -x_28 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_28, 0, x_2); -lean_ctor_set(x_28, 1, x_27); -lean_ctor_set(x_28, 2, x_21); -x_29 = lean_array_uset(x_6, x_20, x_28); -x_30 = lean_unsigned_to_nat(4u); -x_31 = lean_nat_mul(x_26, x_30); -x_32 = lean_unsigned_to_nat(3u); -x_33 = lean_nat_div(x_31, x_32); -lean_dec(x_31); -x_34 = lean_array_get_size(x_29); -x_35 = lean_nat_dec_le(x_33, x_34); -lean_dec(x_34); -lean_dec(x_33); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_Module_recParseImports___spec__3(x_29); -lean_ctor_set(x_3, 1, x_36); -lean_ctor_set(x_3, 0, x_26); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_3); -lean_ctor_set(x_37, 1, x_24); -return x_37; -} -else -{ -lean_object* x_38; -lean_ctor_set(x_3, 1, x_29); -lean_ctor_set(x_3, 0, x_26); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_3); -lean_ctor_set(x_38, 1, x_24); -return x_38; -} -} -else -{ -lean_dec(x_21); -lean_free_object(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -return x_1; -} -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint64_t x_43; uint64_t x_44; uint64_t x_45; uint64_t x_46; uint64_t x_47; uint64_t x_48; uint64_t x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; size_t x_54; lean_object* x_55; uint8_t x_56; -x_39 = lean_ctor_get(x_3, 0); -x_40 = lean_ctor_get(x_3, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_3); -x_41 = lean_array_get_size(x_40); -x_42 = lean_ctor_get(x_2, 2); -lean_inc(x_42); -x_43 = l_Lean_Name_hash___override(x_42); -lean_dec(x_42); -x_44 = 32; -x_45 = lean_uint64_shift_right(x_43, x_44); -x_46 = lean_uint64_xor(x_43, x_45); -x_47 = 16; -x_48 = lean_uint64_shift_right(x_46, x_47); -x_49 = lean_uint64_xor(x_46, x_48); -x_50 = lean_uint64_to_usize(x_49); -x_51 = lean_usize_of_nat(x_41); -lean_dec(x_41); -x_52 = 1; -x_53 = lean_usize_sub(x_51, x_52); -x_54 = lean_usize_land(x_50, x_53); -x_55 = lean_array_uget(x_40, x_54); -x_56 = l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2(x_2, x_55); -if (x_56 == 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; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_57 = lean_ctor_get(x_1, 1); -lean_inc(x_57); -lean_dec(x_1); -lean_inc(x_2); -x_58 = lean_array_push(x_57, x_2); -x_59 = lean_unsigned_to_nat(1u); -x_60 = lean_nat_add(x_39, x_59); -lean_dec(x_39); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_62, 0, x_2); -lean_ctor_set(x_62, 1, x_61); -lean_ctor_set(x_62, 2, x_55); -x_63 = lean_array_uset(x_40, x_54, x_62); -x_64 = lean_unsigned_to_nat(4u); -x_65 = lean_nat_mul(x_60, x_64); -x_66 = lean_unsigned_to_nat(3u); -x_67 = lean_nat_div(x_65, x_66); -lean_dec(x_65); -x_68 = lean_array_get_size(x_63); -x_69 = lean_nat_dec_le(x_67, x_68); -lean_dec(x_68); -lean_dec(x_67); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_Module_recParseImports___spec__3(x_63); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_60); -lean_ctor_set(x_71, 1, 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_58); -return x_72; -} -else -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_60); -lean_ctor_set(x_73, 1, x_63); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_58); -return x_74; -} -} -else -{ -lean_dec(x_55); -lean_dec(x_40); -lean_dec(x_39); -lean_dec(x_2); -return x_1; -} -} -} -} -LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6___rarg(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) { -_start: -{ -lean_object* x_9; -x_9 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_9, 0); -lean_dec(x_12); -x_13 = !lean_is_exclusive(x_10); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_apply_1(x_2, x_14); -lean_ctor_set(x_10, 0, x_15); -return x_9; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_10, 0); -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_10); -x_18 = lean_apply_1(x_2, x_16); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -lean_ctor_set(x_9, 0, x_19); -return x_9; -} -} -else -{ -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; -x_20 = lean_ctor_get(x_9, 1); -lean_inc(x_20); -lean_dec(x_9); -x_21 = lean_ctor_get(x_10, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_10, 1); -lean_inc(x_22); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - lean_ctor_release(x_10, 1); - x_23 = x_10; -} else { - lean_dec_ref(x_10); - x_23 = lean_box(0); -} -x_24 = lean_apply_1(x_2, x_21); -if (lean_is_scalar(x_23)) { - x_25 = lean_alloc_ctor(0, 2, 0); -} else { - x_25 = x_23; -} -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_22); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_20); -return x_26; -} -} -else -{ -uint8_t x_27; -lean_dec(x_2); -x_27 = !lean_is_exclusive(x_9); -if (x_27 == 0) -{ -lean_object* x_28; uint8_t x_29; -x_28 = lean_ctor_get(x_9, 0); -lean_dec(x_28); -x_29 = !lean_is_exclusive(x_10); -if (x_29 == 0) -{ -return x_9; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_10, 0); -x_31 = lean_ctor_get(x_10, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_10); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -lean_ctor_set(x_9, 0, x_32); -return x_9; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_33 = lean_ctor_get(x_9, 1); -lean_inc(x_33); -lean_dec(x_9); -x_34 = lean_ctor_get(x_10, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_10, 1); -lean_inc(x_35); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - lean_ctor_release(x_10, 1); - x_36 = x_10; -} else { - lean_dec_ref(x_10); - x_36 = lean_box(0); -} -if (lean_is_scalar(x_36)) { - x_37 = lean_alloc_ctor(1, 2, 0); -} else { - x_37 = x_36; -} -lean_ctor_set(x_37, 0, x_34); -lean_ctor_set(x_37, 1, x_35); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_33); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_9); -if (x_39 == 0) -{ -return x_9; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_9, 0); -x_41 = lean_ctor_get(x_9, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_9); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -} -LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6___rarg), 8, 0); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__1(lean_object* x_1) { -_start: -{ -lean_inc(x_1); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___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) { -_start: -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_4, 1); -lean_inc(x_8); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_5); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_6); -return x_10; -} -else -{ -lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_11 = lean_ctor_get(x_5, 0); -x_12 = lean_ctor_get_uint8(x_5, sizeof(void*)*2); -x_13 = lean_ctor_get(x_5, 1); -lean_inc(x_13); -lean_inc(x_11); -lean_dec(x_5); -x_14 = lean_ctor_get(x_4, 1); -x_15 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_15, 0, x_11); -lean_ctor_set(x_15, 1, x_13); -lean_ctor_set_uint8(x_15, sizeof(void*)*2, x_12); -lean_inc(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_6); -return x_17; -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1(x_1, x_3); -return x_4; -} -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__1___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__2___boxed), 6, 0); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__1; -x_2 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__2; -x_3 = lean_alloc_closure((void*)(l_Lake_EquipT_map___at_Lake_instMonadStateOfLogJobM___spec__1___rarg), 8, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7(lean_object* x_1, size_t x_2, size_t 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) { -_start: -{ -uint8_t x_11; -x_11 = lean_usize_dec_eq(x_2, x_3); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = lean_array_uget(x_1, x_2); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_alloc_closure((void*)(l_Lake_Workspace_findModule_x3f___boxed), 2, 1); -lean_closure_set(x_14, 0, x_13); -x_15 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__3; -x_16 = lean_alloc_closure((void*)(l_Lake_EquipT_map___at_Lake_instMonadStateOfLogJobM___spec__1___rarg), 8, 2); -lean_closure_set(x_16, 0, x_14); -lean_closure_set(x_16, 1, x_15); -x_17 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__3), 2, 1); -lean_closure_set(x_17, 0, x_4); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_18 = l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6___rarg(x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -x_23 = 1; -x_24 = lean_usize_add(x_2, x_23); -x_2 = x_24; -x_4 = x_21; -x_9 = x_22; -x_10 = x_20; -goto _start; -} -else -{ -uint8_t x_26; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_26 = !lean_is_exclusive(x_18); -if (x_26 == 0) -{ -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_18, 0); -lean_dec(x_27); -x_28 = !lean_is_exclusive(x_19); -if (x_28 == 0) -{ -return x_18; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_19, 0); -x_30 = lean_ctor_get(x_19, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_19); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set(x_18, 0, x_31); -return x_18; -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_32 = lean_ctor_get(x_18, 1); -lean_inc(x_32); -lean_dec(x_18); -x_33 = lean_ctor_get(x_19, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_19, 1); -lean_inc(x_34); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_35 = x_19; -} else { - lean_dec_ref(x_19); - x_35 = lean_box(0); -} -if (lean_is_scalar(x_35)) { - x_36 = lean_alloc_ctor(1, 2, 0); -} else { - x_36 = x_35; -} -lean_ctor_set(x_36, 0, x_33); -lean_ctor_set(x_36, 1, x_34); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_32); -return x_37; -} -} -} -else -{ -uint8_t x_38; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_38 = !lean_is_exclusive(x_18); -if (x_38 == 0) -{ -return x_18; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_18, 0); -x_40 = lean_ctor_get(x_18, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_18); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_4); -lean_ctor_set(x_42, 1, x_9); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_10); -return x_43; -} -} -} -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recParseImports___spec__9(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_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recFetchInput___spec__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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -3134,7 +2461,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recParseImports___spec__10(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_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recFetchInput___spec__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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -3964,7 +3291,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recParseImports___spec__11(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_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recFetchInput___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -4794,7 +4121,7 @@ return x_29; } } } -static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1() { +static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4806,7 +4133,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__2() { +static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__2() { _start: { lean_object* x_1; @@ -4814,7 +4141,7 @@ x_1 = lean_mk_string_unchecked("Init.Data.String.Extra", 22, 22); return x_1; } } -static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__3() { +static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__3() { _start: { lean_object* x_1; @@ -4822,7 +4149,7 @@ x_1 = lean_mk_string_unchecked("String.fromUTF8!", 16, 16); return x_1; } } -static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__4() { +static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__4() { _start: { lean_object* x_1; @@ -4830,20 +4157,20 @@ x_1 = lean_mk_string_unchecked("invalid UTF-8 string", 20, 20); return x_1; } } -static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5() { +static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__2; -x_2 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__3; +x_1 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__2; +x_2 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__3; x_3 = lean_unsigned_to_nat(129u); x_4 = lean_unsigned_to_nat(47u); -x_5 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__4; +x_5 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__4; x_6 = l_mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8(lean_object* x_1, uint8_t 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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1(lean_object* x_1, uint8_t 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) { _start: { uint8_t x_9; @@ -4853,7 +4180,7 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); -x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_13 = lean_st_mk_ref(x_12, x_8); if (lean_obj_tag(x_13) == 0) { @@ -4878,10 +4205,10 @@ x_20 = l_IO_FS_Stream_ofBuffer(x_17); if (x_2 == 0) { lean_object* x_21; lean_object* x_22; -x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recParseImports___spec__9), 8, 2); +x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchInput___spec__2), 8, 2); lean_closure_set(x_21, 0, x_20); lean_closure_set(x_21, 1, x_1); -x_22 = l_IO_withStdin___at_Lake_Module_recParseImports___spec__10(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); +x_22 = l_IO_withStdin___at_Lake_Module_recFetchInput___spec__3(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; @@ -4926,7 +4253,7 @@ if (x_36 == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_35); -x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_38 = l_panic___at_Lean_Name_getString_x21___spec__1(x_37); x_39 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_39, 0, x_38); @@ -4964,7 +4291,7 @@ if (x_45 == 0) { lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_dec(x_44); -x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_47 = l_panic___at_Lean_Name_getString_x21___spec__1(x_46); x_48 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_48, 0, x_47); @@ -5057,7 +4384,7 @@ if (x_66 == 0) { lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_65); -x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_68 = l_panic___at_Lean_Name_getString_x21___spec__1(x_67); x_69 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_69, 0, x_68); @@ -5175,7 +4502,7 @@ if (x_89 == 0) { lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec(x_88); -x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_91 = l_panic___at_Lean_Name_getString_x21___spec__1(x_90); x_92 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_92, 0, x_91); @@ -5333,13 +4660,13 @@ else { lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_inc(x_20); -x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recParseImports___spec__11), 8, 2); +x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recFetchInput___spec__4), 8, 2); lean_closure_set(x_119, 0, x_20); lean_closure_set(x_119, 1, x_1); -x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recParseImports___spec__9), 8, 2); +x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchInput___spec__2), 8, 2); lean_closure_set(x_120, 0, x_20); lean_closure_set(x_120, 1, x_119); -x_121 = l_IO_withStdin___at_Lake_Module_recParseImports___spec__10(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); +x_121 = l_IO_withStdin___at_Lake_Module_recFetchInput___spec__3(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_121) == 0) { lean_object* x_122; @@ -5384,7 +4711,7 @@ if (x_135 == 0) { lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_dec(x_134); -x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_137 = l_panic___at_Lean_Name_getString_x21___spec__1(x_136); x_138 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_138, 0, x_137); @@ -5422,7 +4749,7 @@ if (x_144 == 0) { lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_dec(x_143); -x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_146 = l_panic___at_Lean_Name_getString_x21___spec__1(x_145); x_147 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_147, 0, x_146); @@ -5515,7 +4842,7 @@ if (x_165 == 0) { lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_dec(x_164); -x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_167 = l_panic___at_Lean_Name_getString_x21___spec__1(x_166); x_168 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_168, 0, x_167); @@ -5633,7 +4960,7 @@ if (x_188 == 0) { lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_dec(x_187); -x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_190 = l_panic___at_Lean_Name_getString_x21___spec__1(x_189); x_191 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_191, 0, x_190); @@ -5860,7 +5187,7 @@ x_228 = lean_ctor_get(x_7, 1); lean_inc(x_228); lean_inc(x_226); lean_dec(x_7); -x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_230 = lean_st_mk_ref(x_229, x_8); if (lean_obj_tag(x_230) == 0) { @@ -5889,10 +5216,10 @@ x_238 = l_IO_FS_Stream_ofBuffer(x_234); if (x_2 == 0) { lean_object* x_239; lean_object* x_240; -x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recParseImports___spec__9), 8, 2); +x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchInput___spec__2), 8, 2); lean_closure_set(x_239, 0, x_238); lean_closure_set(x_239, 1, x_1); -x_240 = l_IO_withStdin___at_Lake_Module_recParseImports___spec__10(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); +x_240 = l_IO_withStdin___at_Lake_Module_recFetchInput___spec__3(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); if (lean_obj_tag(x_240) == 0) { lean_object* x_241; @@ -5962,7 +5289,7 @@ if (x_256 == 0) { lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_dec(x_255); -x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_258 = l_panic___at_Lean_Name_getString_x21___spec__1(x_257); x_259 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_259, 0, x_258); @@ -6111,13 +5438,13 @@ else { lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_inc(x_238); -x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recParseImports___spec__11), 8, 2); +x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recFetchInput___spec__4), 8, 2); lean_closure_set(x_281, 0, x_238); lean_closure_set(x_281, 1, x_1); -x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recParseImports___spec__9), 8, 2); +x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchInput___spec__2), 8, 2); lean_closure_set(x_282, 0, x_238); lean_closure_set(x_282, 1, x_281); -x_283 = l_IO_withStdin___at_Lake_Module_recParseImports___spec__10(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); +x_283 = l_IO_withStdin___at_Lake_Module_recFetchInput___spec__3(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); if (lean_obj_tag(x_283) == 0) { lean_object* x_284; @@ -6187,7 +5514,7 @@ if (x_299 == 0) { lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_dec(x_298); -x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_301 = l_panic___at_Lean_Name_getString_x21___spec__1(x_300); x_302 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_302, 0, x_301); @@ -6400,7 +5727,7 @@ return x_331; } } } -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___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_EXPORT lean_object* l_Lake_Module_recFetchInput___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) { _start: { uint8_t x_8; @@ -6573,181 +5900,191 @@ return x_55; } } } -static lean_object* _init_l_Lake_Module_recParseImports___lambda__2___closed__1() { +static lean_object* _init_l_Lake_Module_recFetchInput___lambda__2___closed__1() { _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; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; } } -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___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_EXPORT lean_object* l_Lake_Module_recFetchInput___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) { _start: { -lean_object* x_9; lean_object* x_10; uint8_t x_104; -x_104 = !lean_is_exclusive(x_7); -if (x_104 == 0) +lean_object* x_9; lean_object* x_10; uint8_t x_108; +x_108 = !lean_is_exclusive(x_7); +if (x_108 == 0) { -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_7, 0); -x_106 = l_Lean_parseImports_x27(x_2, x_1, x_8); -if (lean_obj_tag(x_106) == 0) +lean_object* x_109; lean_object* x_110; +x_109 = lean_ctor_get(x_7, 0); +x_110 = lean_io_metadata(x_1, x_8); +if (lean_obj_tag(x_110) == 0) { -uint8_t x_107; -x_107 = !lean_is_exclusive(x_106); -if (x_107 == 0) +uint8_t x_111; +x_111 = !lean_is_exclusive(x_110); +if (x_111 == 0) { -lean_object* x_108; -x_108 = lean_ctor_get(x_106, 1); -lean_ctor_set(x_106, 1, x_7); -x_9 = x_106; -x_10 = x_108; -goto block_103; +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_110, 0); +x_113 = lean_ctor_get(x_110, 1); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec(x_112); +lean_ctor_set(x_110, 1, x_7); +lean_ctor_set(x_110, 0, x_114); +x_9 = x_110; +x_10 = x_113; +goto block_107; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_106, 0); -x_110 = lean_ctor_get(x_106, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_106); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_7); -x_9 = x_111; -x_10 = x_110; -goto block_103; +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_115 = lean_ctor_get(x_110, 0); +x_116 = lean_ctor_get(x_110, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_110); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +lean_dec(x_115); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_7); +x_9 = x_118; +x_10 = x_116; +goto block_107; } } else { -uint8_t x_112; -x_112 = !lean_is_exclusive(x_106); -if (x_112 == 0) +uint8_t x_119; +x_119 = !lean_is_exclusive(x_110); +if (x_119 == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_113 = lean_ctor_get(x_106, 0); -x_114 = lean_ctor_get(x_106, 1); -x_115 = lean_io_error_to_string(x_113); -x_116 = 3; -x_117 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set_uint8(x_117, sizeof(void*)*1, x_116); -x_118 = lean_array_get_size(x_105); -x_119 = lean_array_push(x_105, x_117); -lean_ctor_set(x_7, 0, x_119); -lean_ctor_set(x_106, 1, x_7); -lean_ctor_set(x_106, 0, x_118); -x_9 = x_106; -x_10 = x_114; -goto block_103; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_120 = lean_ctor_get(x_106, 0); -x_121 = lean_ctor_get(x_106, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_106); +lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_120 = lean_ctor_get(x_110, 0); +x_121 = lean_ctor_get(x_110, 1); x_122 = lean_io_error_to_string(x_120); x_123 = 3; x_124 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_124, 0, x_122); lean_ctor_set_uint8(x_124, sizeof(void*)*1, x_123); -x_125 = lean_array_get_size(x_105); -x_126 = lean_array_push(x_105, x_124); +x_125 = lean_array_get_size(x_109); +x_126 = lean_array_push(x_109, x_124); lean_ctor_set(x_7, 0, x_126); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_7); -x_9 = x_127; +lean_ctor_set(x_110, 1, x_7); +lean_ctor_set(x_110, 0, x_125); +x_9 = x_110; x_10 = x_121; -goto block_103; -} -} +goto block_107; } else { -lean_object* x_128; uint8_t x_129; lean_object* x_130; lean_object* x_131; -x_128 = lean_ctor_get(x_7, 0); -x_129 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); -x_130 = lean_ctor_get(x_7, 1); -lean_inc(x_130); +lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_127 = lean_ctor_get(x_110, 0); +x_128 = lean_ctor_get(x_110, 1); lean_inc(x_128); -lean_dec(x_7); -x_131 = l_Lean_parseImports_x27(x_2, x_1, x_8); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_134 = x_131; -} else { - lean_dec_ref(x_131); - x_134 = lean_box(0); +lean_inc(x_127); +lean_dec(x_110); +x_129 = lean_io_error_to_string(x_127); +x_130 = 3; +x_131 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set_uint8(x_131, sizeof(void*)*1, x_130); +x_132 = lean_array_get_size(x_109); +x_133 = lean_array_push(x_109, x_131); +lean_ctor_set(x_7, 0, x_133); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_7); +x_9 = x_134; +x_10 = x_128; +goto block_107; } -x_135 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_135, 0, x_128); -lean_ctor_set(x_135, 1, x_130); -lean_ctor_set_uint8(x_135, sizeof(void*)*2, x_129); -if (lean_is_scalar(x_134)) { - x_136 = lean_alloc_ctor(0, 2, 0); -} else { - x_136 = x_134; } -lean_ctor_set(x_136, 0, x_132); -lean_ctor_set(x_136, 1, x_135); -x_9 = x_136; -x_10 = x_133; -goto block_103; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_137 = lean_ctor_get(x_131, 0); +lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_7, 0); +x_136 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_137 = lean_ctor_get(x_7, 1); lean_inc(x_137); -x_138 = lean_ctor_get(x_131, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_139 = x_131; +lean_inc(x_135); +lean_dec(x_7); +x_138 = lean_io_metadata(x_1, x_8); +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_141 = x_138; } else { - lean_dec_ref(x_131); - x_139 = lean_box(0); + lean_dec_ref(x_138); + x_141 = lean_box(0); } -x_140 = lean_io_error_to_string(x_137); -x_141 = 3; -x_142 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set_uint8(x_142, sizeof(void*)*1, x_141); -x_143 = lean_array_get_size(x_128); -x_144 = lean_array_push(x_128, x_142); -x_145 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_130); -lean_ctor_set_uint8(x_145, sizeof(void*)*2, x_129); -if (lean_is_scalar(x_139)) { - x_146 = lean_alloc_ctor(1, 2, 0); +x_142 = lean_ctor_get(x_139, 1); +lean_inc(x_142); +lean_dec(x_139); +x_143 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_143, 0, x_135); +lean_ctor_set(x_143, 1, x_137); +lean_ctor_set_uint8(x_143, sizeof(void*)*2, x_136); +if (lean_is_scalar(x_141)) { + x_144 = lean_alloc_ctor(0, 2, 0); } else { - x_146 = x_139; + x_144 = x_141; } -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_145); -x_9 = x_146; -x_10 = x_138; -goto block_103; +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +x_9 = x_144; +x_10 = x_140; +goto block_107; +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_145 = lean_ctor_get(x_138, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_138, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_147 = x_138; +} else { + lean_dec_ref(x_138); + x_147 = lean_box(0); +} +x_148 = lean_io_error_to_string(x_145); +x_149 = 3; +x_150 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set_uint8(x_150, sizeof(void*)*1, x_149); +x_151 = lean_array_get_size(x_135); +x_152 = lean_array_push(x_135, x_150); +x_153 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_137); +lean_ctor_set_uint8(x_153, sizeof(void*)*2, x_136); +if (lean_is_scalar(x_147)) { + x_154 = lean_alloc_ctor(1, 2, 0); +} else { + x_154 = x_147; +} +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_153); +x_9 = x_154; +x_10 = x_146; +goto block_107; } } -block_103: +block_107: { if (lean_obj_tag(x_9) == 0) { @@ -6755,443 +6092,354 @@ uint8_t x_11; x_11 = !lean_is_exclusive(x_9); if (x_11 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; x_12 = lean_ctor_get(x_9, 0); x_13 = lean_ctor_get(x_9, 1); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_array_get_size(x_14); -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_nat_dec_lt(x_16, x_15); -if (x_17 == 0) +x_14 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_String_crlfToLf_go(x_2, x_14, x_15, x_15); +x_17 = lean_string_hash(x_16); +lean_dec(x_16); +x_18 = 1723; +x_19 = lean_uint64_mix_hash(x_18, x_17); +x_20 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_21 = lean_box_uint64(x_19); +lean_inc(x_1); +x_22 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_22, 0, x_1); +lean_ctor_set(x_22, 1, x_20); +lean_ctor_set(x_22, 2, x_21); +lean_ctor_set(x_22, 3, x_12); +x_23 = !lean_is_exclusive(x_13); +if (x_23 == 0) { -lean_object* x_18; lean_object* x_19; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_18 = l_Lake_Module_recParseImports___lambda__2___closed__1; -lean_ctor_set(x_9, 0, x_18); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_9); -lean_ctor_set(x_19, 1, x_10); -return x_19; -} -else -{ -uint8_t x_20; -x_20 = lean_nat_dec_le(x_15, x_15); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_21 = l_Lake_Module_recParseImports___lambda__2___closed__1; -lean_ctor_set(x_9, 0, x_21); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_9); -lean_ctor_set(x_22, 1, x_10); -return x_22; -} -else -{ -size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; -lean_free_object(x_9); -x_23 = 0; -x_24 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_25 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; -x_26 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7(x_14, x_23, x_24, x_25, x_3, x_4, x_5, x_6, x_13, x_10); -lean_dec(x_14); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_13, 0); +x_25 = lean_ctor_get(x_13, 1); +lean_dec(x_25); +x_26 = l_Lean_parseImports_x27(x_2, x_1, x_10); if (lean_obj_tag(x_26) == 0) { -lean_object* x_27; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) -{ -lean_object* x_29; uint8_t x_30; -x_29 = lean_ctor_get(x_26, 0); -lean_dec(x_29); -x_30 = !lean_is_exclusive(x_27); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_27, 0); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -lean_ctor_set(x_27, 0, x_32); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_ctor_set(x_13, 1, x_22); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_9, 0, x_29); +lean_ctor_set(x_26, 0, x_9); return x_26; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_ctor_get(x_27, 0); -x_34 = lean_ctor_get(x_27, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_27); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -lean_ctor_set(x_26, 0, x_36); -return x_26; -} -} -else -{ -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; -x_37 = lean_ctor_get(x_26, 1); -lean_inc(x_37); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_26, 0); +x_31 = lean_ctor_get(x_26, 1); +lean_inc(x_31); +lean_inc(x_30); lean_dec(x_26); -x_38 = lean_ctor_get(x_27, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_27, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_40 = x_27; -} else { - lean_dec_ref(x_27); - x_40 = lean_box(0); +lean_ctor_set(x_13, 1, x_22); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_1); +lean_ctor_set(x_32, 1, x_30); +lean_ctor_set(x_9, 0, x_32); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_9); +lean_ctor_set(x_33, 1, x_31); +return x_33; } -x_41 = lean_ctor_get(x_38, 1); +} +else +{ +uint8_t x_34; +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_26); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_io_error_to_string(x_35); +x_37 = 3; +x_38 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_37); +x_39 = lean_array_get_size(x_24); +x_40 = lean_array_push(x_24, x_38); +lean_ctor_set(x_13, 1, x_22); +lean_ctor_set(x_13, 0, x_40); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 0, x_39); +lean_ctor_set_tag(x_26, 0); +lean_ctor_set(x_26, 0, x_9); +return x_26; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_41 = lean_ctor_get(x_26, 0); +x_42 = lean_ctor_get(x_26, 1); +lean_inc(x_42); lean_inc(x_41); -lean_dec(x_38); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_39); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_37); -return x_43; -} -} -else -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_26); -if (x_44 == 0) -{ -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_26, 0); -lean_dec(x_45); -x_46 = !lean_is_exclusive(x_27); -if (x_46 == 0) -{ -return x_26; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_27, 0); -x_48 = lean_ctor_get(x_27, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_27); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -lean_ctor_set(x_26, 0, x_49); -return x_26; -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_50 = lean_ctor_get(x_26, 1); -lean_inc(x_50); lean_dec(x_26); -x_51 = lean_ctor_get(x_27, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_27, 1); +x_43 = lean_io_error_to_string(x_41); +x_44 = 3; +x_45 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*1, x_44); +x_46 = lean_array_get_size(x_24); +x_47 = lean_array_push(x_24, x_45); +lean_ctor_set(x_13, 1, x_22); +lean_ctor_set(x_13, 0, x_47); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 0, x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_9); +lean_ctor_set(x_48, 1, x_42); +return x_48; +} +} +} +else +{ +lean_object* x_49; uint8_t x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_13, 0); +x_50 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); +lean_inc(x_49); +lean_dec(x_13); +x_51 = l_Lean_parseImports_x27(x_2, x_1, x_10); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_53 = x_27; +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_54 = x_51; } else { - lean_dec_ref(x_27); - x_53 = lean_box(0); + lean_dec_ref(x_51); + x_54 = lean_box(0); } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); +x_55 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_55, 0, x_49); +lean_ctor_set(x_55, 1, x_22); +lean_ctor_set_uint8(x_55, sizeof(void*)*2, x_50); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_1); +lean_ctor_set(x_56, 1, x_52); +lean_ctor_set(x_9, 1, x_55); +lean_ctor_set(x_9, 0, x_56); +if (lean_is_scalar(x_54)) { + x_57 = lean_alloc_ctor(0, 2, 0); } else { - x_54 = x_53; -} -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_50); -return x_55; -} + x_57 = x_54; } +lean_ctor_set(x_57, 0, x_9); +lean_ctor_set(x_57, 1, x_53); +return x_57; } else { -uint8_t x_56; -x_56 = !lean_is_exclusive(x_26); -if (x_56 == 0) -{ -return x_26; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_26, 0); -x_58 = lean_ctor_get(x_26, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_1); +x_58 = lean_ctor_get(x_51, 0); lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_26); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; +x_59 = lean_ctor_get(x_51, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_60 = x_51; +} else { + lean_dec_ref(x_51); + x_60 = lean_box(0); } +x_61 = lean_io_error_to_string(x_58); +x_62 = 3; +x_63 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set_uint8(x_63, sizeof(void*)*1, x_62); +x_64 = lean_array_get_size(x_49); +x_65 = lean_array_push(x_49, x_63); +x_66 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_22); +lean_ctor_set_uint8(x_66, sizeof(void*)*2, x_50); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 1, x_66); +lean_ctor_set(x_9, 0, x_64); +if (lean_is_scalar(x_60)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_60; + lean_ctor_set_tag(x_67, 0); } +lean_ctor_set(x_67, 0, x_9); +lean_ctor_set(x_67, 1, x_59); +return x_67; } } } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_9, 0); -x_61 = lean_ctor_get(x_9, 1); -lean_inc(x_61); -lean_inc(x_60); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint64_t x_73; uint64_t x_74; uint64_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; +x_68 = lean_ctor_get(x_9, 0); +x_69 = lean_ctor_get(x_9, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_9); -x_62 = lean_ctor_get(x_60, 0); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_array_get_size(x_62); -x_64 = lean_unsigned_to_nat(0u); -x_65 = lean_nat_dec_lt(x_64, x_63); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_63); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_66 = l_Lake_Module_recParseImports___lambda__2___closed__1; -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_61); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_10); -return x_68; -} -else -{ -uint8_t x_69; -x_69 = lean_nat_dec_le(x_63, x_63); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_63); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_70 = l_Lake_Module_recParseImports___lambda__2___closed__1; -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_61); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_10); -return x_72; -} -else -{ -size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; -x_73 = 0; -x_74 = lean_usize_of_nat(x_63); -lean_dec(x_63); -x_75 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; -x_76 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7(x_62, x_73, x_74, x_75, x_3, x_4, x_5, x_6, x_61, x_10); -lean_dec(x_62); -if (lean_obj_tag(x_76) == 0) -{ -lean_object* x_77; -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -if (lean_obj_tag(x_77) == 0) -{ -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_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_79 = x_76; +x_70 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_71 = lean_unsigned_to_nat(0u); +x_72 = l_String_crlfToLf_go(x_2, x_70, x_71, x_71); +x_73 = lean_string_hash(x_72); +lean_dec(x_72); +x_74 = 1723; +x_75 = lean_uint64_mix_hash(x_74, x_73); +x_76 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_77 = lean_box_uint64(x_75); +lean_inc(x_1); +x_78 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_78, 0, x_1); +lean_ctor_set(x_78, 1, x_76); +lean_ctor_set(x_78, 2, x_77); +lean_ctor_set(x_78, 3, x_68); +x_79 = lean_ctor_get(x_69, 0); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_69, sizeof(void*)*2); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_81 = x_69; } else { - lean_dec_ref(x_76); - x_79 = lean_box(0); + lean_dec_ref(x_69); + x_81 = lean_box(0); } -x_80 = lean_ctor_get(x_77, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_77, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_82 = x_77; -} else { - lean_dec_ref(x_77); - x_82 = lean_box(0); -} -x_83 = lean_ctor_get(x_80, 1); +x_82 = l_Lean_parseImports_x27(x_2, x_1, x_10); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); -lean_dec(x_80); -if (lean_is_scalar(x_82)) { - x_84 = lean_alloc_ctor(0, 2, 0); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_85 = x_82; } else { - x_84 = x_82; + lean_dec_ref(x_82); + x_85 = lean_box(0); } -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_81); -if (lean_is_scalar(x_79)) { - x_85 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_81)) { + x_86 = lean_alloc_ctor(0, 2, 1); } else { - x_85 = x_79; + x_86 = x_81; } -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_78); -return x_85; +lean_ctor_set(x_86, 0, x_79); +lean_ctor_set(x_86, 1, x_78); +lean_ctor_set_uint8(x_86, sizeof(void*)*2, x_80); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_1); +lean_ctor_set(x_87, 1, x_83); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +if (lean_is_scalar(x_85)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_85; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_84); +return x_89; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_86 = lean_ctor_get(x_76, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_87 = x_76; +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; 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_dec(x_1); +x_90 = lean_ctor_get(x_82, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_82, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_92 = x_82; } else { - lean_dec_ref(x_76); - x_87 = lean_box(0); + lean_dec_ref(x_82); + x_92 = lean_box(0); } -x_88 = lean_ctor_get(x_77, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_77, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_90 = x_77; +x_93 = lean_io_error_to_string(x_90); +x_94 = 3; +x_95 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set_uint8(x_95, sizeof(void*)*1, x_94); +x_96 = lean_array_get_size(x_79); +x_97 = lean_array_push(x_79, x_95); +if (lean_is_scalar(x_81)) { + x_98 = lean_alloc_ctor(0, 2, 1); } else { - lean_dec_ref(x_77); - x_90 = lean_box(0); + x_98 = x_81; } -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_78); +lean_ctor_set_uint8(x_98, sizeof(void*)*2, x_80); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_98); +if (lean_is_scalar(x_92)) { + x_100 = lean_alloc_ctor(0, 2, 0); } else { - x_91 = x_90; -} -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -if (lean_is_scalar(x_87)) { - x_92 = lean_alloc_ctor(0, 2, 0); -} else { - x_92 = x_87; -} -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_86); -return x_92; -} -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_93 = lean_ctor_get(x_76, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_76, 1); -lean_inc(x_94); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_95 = x_76; -} else { - lean_dec_ref(x_76); - x_95 = lean_box(0); -} -if (lean_is_scalar(x_95)) { - x_96 = lean_alloc_ctor(1, 2, 0); -} else { - x_96 = x_95; -} -lean_ctor_set(x_96, 0, x_93); -lean_ctor_set(x_96, 1, x_94); -return x_96; -} + x_100 = x_92; + lean_ctor_set_tag(x_100, 0); } +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_91); +return x_100; } } } else { -uint8_t x_97; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_97 = !lean_is_exclusive(x_9); -if (x_97 == 0) +uint8_t x_101; +lean_dec(x_2); +lean_dec(x_1); +x_101 = !lean_is_exclusive(x_9); +if (x_101 == 0) { -lean_object* x_98; -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_9); -lean_ctor_set(x_98, 1, x_10); -return x_98; -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_99 = lean_ctor_get(x_9, 0); -x_100 = lean_ctor_get(x_9, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_9); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); +lean_object* x_102; x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 0, x_9); lean_ctor_set(x_102, 1, x_10); return x_102; } +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_103 = lean_ctor_get(x_9, 0); +x_104 = lean_ctor_get(x_9, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_9); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_10); +return x_106; } } } } -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___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_EXPORT lean_object* l_Lake_Module_recFetchInput___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) { _start: { lean_object* x_9; lean_object* x_10; @@ -7204,7 +6452,7 @@ lean_ctor_set(x_10, 1, x_8); return x_10; } } -static lean_object* _init_l_Lake_Module_recParseImports___lambda__4___closed__1() { +static lean_object* _init_l_Lake_Module_recFetchInput___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -7212,15 +6460,7 @@ x_1 = lean_mk_string_unchecked("stdout/stderr:\n", 15, 15); return x_1; } } -static lean_object* _init_l_Lake_Module_recParseImports___lambda__4___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___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: { uint8_t x_8; lean_object* x_9; @@ -7229,7 +6469,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8(x_1, x_8, x_2, x_3, x_4, x_5, x_6, x_7); +x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1(x_1, x_8, x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; @@ -7263,10 +6503,10 @@ x_21 = lean_string_utf8_extract(x_14, x_19, x_20); lean_dec(x_20); lean_dec(x_19); lean_dec(x_14); -x_22 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_22 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_23 = lean_string_append(x_22, x_21); lean_dec(x_21); -x_24 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_24 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_25 = lean_string_append(x_23, x_24); x_26 = 1; x_27 = lean_alloc_ctor(0, 1, 1); @@ -7280,7 +6520,7 @@ x_29 = lean_ctor_get(x_13, 0); x_30 = lean_array_push(x_29, x_27); lean_ctor_set(x_13, 0, x_30); x_31 = lean_box(0); -x_32 = l_Lake_Module_recParseImports___lambda__3(x_15, x_31, x_2, x_3, x_4, x_5, x_13, x_12); +x_32 = l_Lake_Module_recFetchInput___lambda__3(x_15, x_31, x_2, x_3, x_4, x_5, x_13, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -7302,7 +6542,7 @@ lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); lean_ctor_set_uint8(x_37, sizeof(void*)*2, x_34); x_38 = lean_box(0); -x_39 = l_Lake_Module_recParseImports___lambda__3(x_15, x_38, x_2, x_3, x_4, x_5, x_37, x_12); +x_39 = l_Lake_Module_recFetchInput___lambda__3(x_15, x_38, x_2, x_3, x_4, x_5, x_37, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -7316,7 +6556,7 @@ lean_object* x_40; lean_object* x_41; lean_dec(x_16); lean_dec(x_14); x_40 = lean_box(0); -x_41 = l_Lake_Module_recParseImports___lambda__3(x_15, x_40, x_2, x_3, x_4, x_5, x_13, x_12); +x_41 = l_Lake_Module_recFetchInput___lambda__3(x_15, x_40, x_2, x_3, x_4, x_5, x_13, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -7417,7 +6657,7 @@ return x_57; } } } -static lean_object* _init_l_Lake_Module_recParseImports___closed__1() { +static lean_object* _init_l_Lake_Module_recFetchInput___closed__1() { _start: { lean_object* x_1; @@ -7425,7 +6665,7 @@ x_1 = lean_mk_string_unchecked("lean", 4, 4); return x_1; } } -static lean_object* _init_l_Lake_Module_recParseImports___closed__2() { +static lean_object* _init_l_Lake_Module_recFetchInput___closed__2() { _start: { lean_object* x_1; @@ -7433,22 +6673,22 @@ x_1 = lean_mk_string_unchecked("", 5, 5); return x_1; } } -static lean_object* _init_l_Lake_Module_recParseImports___closed__3() { +static lean_object* _init_l_Lake_Module_recFetchInput___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_Module_recParseImports___closed__2; +x_1 = l_Lake_Module_recFetchInput___closed__2; x_2 = l_Lake_BuildTrace_nil(x_1); return x_2; } } -static lean_object* _init_l_Lake_Module_recParseImports___closed__4() { +static lean_object* _init_l_Lake_Module_recFetchInput___closed__4() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; x_2 = 0; -x_3 = l_Lake_Module_recParseImports___closed__3; +x_3 = l_Lake_Module_recFetchInput___closed__3; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_3); @@ -7456,7 +6696,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports(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_EXPORT lean_object* l_Lake_Module_recFetchInput(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* 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; @@ -7487,20 +6727,20 @@ lean_dec(x_17); x_19 = lean_ctor_get(x_1, 1); lean_inc(x_19); lean_dec(x_1); -x_20 = l_Lake_Module_recParseImports___closed__1; +x_20 = l_Lake_Module_recFetchInput___closed__1; x_21 = l_Lean_modToFilePath(x_18, x_19, x_20); lean_dec(x_19); lean_dec(x_18); lean_inc(x_21); -x_22 = lean_alloc_closure((void*)(l_Lake_Module_recParseImports___lambda__1___boxed), 7, 1); +x_22 = lean_alloc_closure((void*)(l_Lake_Module_recFetchInput___lambda__1___boxed), 7, 1); lean_closure_set(x_22, 0, x_21); -x_23 = lean_alloc_closure((void*)(l_Lake_Module_recParseImports___lambda__2___boxed), 8, 1); +x_23 = lean_alloc_closure((void*)(l_Lake_Module_recFetchInput___lambda__2___boxed), 8, 1); lean_closure_set(x_23, 0, x_21); x_24 = lean_alloc_closure((void*)(l_Lake_EquipT_bind___at_Lake_buildFileUnlessUpToDate_x27___spec__1___rarg), 8, 2); lean_closure_set(x_24, 0, x_22); lean_closure_set(x_24, 1, x_23); -x_25 = l_Lake_Module_recParseImports___closed__4; -x_26 = lean_alloc_closure((void*)(l_Lake_Module_recParseImports___lambda__4), 7, 6); +x_25 = l_Lake_Module_recFetchInput___closed__4; +x_26 = lean_alloc_closure((void*)(l_Lake_Module_recFetchInput___lambda__4), 7, 6); lean_closure_set(x_26, 0, x_24); lean_closure_set(x_26, 1, x_2); lean_closure_set(x_26, 2, x_3); @@ -7518,7 +6758,7 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_box(0); -x_32 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_32 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_33 = 0; x_34 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_34, 0, x_30); @@ -7540,7 +6780,7 @@ lean_inc(x_37); lean_inc(x_36); lean_dec(x_28); x_38 = lean_box(0); -x_39 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_39 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_40 = 0; x_41 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_41, 0, x_36); @@ -7581,6 +6821,6687 @@ return x_47; } } } +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lake_Module_recFetchInput___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lake_Module_recFetchInput___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchInput___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lake_Module_recFetchInput___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +static lean_object* _init_l_Lake_Module_inputFacetConfig___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_recFetchInput), 7, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_inputFacetConfig___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_nullFormat___rarg___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_inputFacetConfig___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lake_Module_keyword; +x_2 = l_Lake_Module_inputFacetConfig___closed__1; +x_3 = lean_box(0); +x_4 = 1; +x_5 = l_Lake_Module_inputFacetConfig___closed__2; +x_6 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4 + 1, x_4); +return x_6; +} +} +static lean_object* _init_l_Lake_Module_inputFacetConfig() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_inputFacetConfig___closed__3; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_leanFacetConfig___spec__1(uint8_t x_1, lean_object* x_2) { +_start: +{ +if (x_1 == 0) +{ +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = l_Lake_mkRelPathString(x_2); +x_4 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = l_Lean_Json_compress(x_4); +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +return x_2; +} +} +static lean_object* _init_l_Lake_Module_leanFacetConfig___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_leanFacetConfig___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_leanFacetConfig___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lake_Module_leanFacetConfig___lambda__2___closed__1; +x_2 = lean_alloc_closure((void*)(l_Lake_EResult_map___rarg), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = l_Lake_Module_keyword; +x_11 = l_Lake_Module_inputFacet; +x_12 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 2, x_1); +lean_ctor_set(x_12, 3, x_11); +x_13 = lean_apply_6(x_2, x_12, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_13, 0); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_14, 0); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_dec(x_22); +x_23 = l_Lake_Module_leanFacetConfig___lambda__2___closed__2; +x_24 = l_Task_Priority_default; +x_25 = 1; +x_26 = lean_task_map(x_23, x_21, x_24, x_25); +x_27 = l_Lake_instDataKindFilePath; +lean_ctor_set(x_15, 1, x_27); +lean_ctor_set(x_15, 0, x_26); +return x_13; +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_28 = lean_ctor_get(x_15, 0); +x_29 = lean_ctor_get(x_15, 2); +x_30 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_15); +x_31 = l_Lake_Module_leanFacetConfig___lambda__2___closed__2; +x_32 = l_Task_Priority_default; +x_33 = 1; +x_34 = lean_task_map(x_31, x_28, x_32, x_33); +x_35 = l_Lake_instDataKindFilePath; +x_36 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_29); +lean_ctor_set_uint8(x_36, sizeof(void*)*3, x_30); +lean_ctor_set(x_14, 0, x_36); +return x_13; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_37 = lean_ctor_get(x_14, 1); +lean_inc(x_37); +lean_dec(x_14); +x_38 = lean_ctor_get(x_15, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_15, 2); +lean_inc(x_39); +x_40 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + lean_ctor_release(x_15, 2); + x_41 = x_15; +} else { + lean_dec_ref(x_15); + x_41 = lean_box(0); +} +x_42 = l_Lake_Module_leanFacetConfig___lambda__2___closed__2; +x_43 = l_Task_Priority_default; +x_44 = 1; +x_45 = lean_task_map(x_42, x_38, x_43, x_44); +x_46 = l_Lake_instDataKindFilePath; +if (lean_is_scalar(x_41)) { + x_47 = lean_alloc_ctor(0, 3, 1); +} else { + x_47 = x_41; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 2, x_39); +lean_ctor_set_uint8(x_47, sizeof(void*)*3, x_40); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_37); +lean_ctor_set(x_13, 0, x_48); +return x_13; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_49 = lean_ctor_get(x_13, 1); +lean_inc(x_49); +lean_dec(x_13); +x_50 = lean_ctor_get(x_14, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_51 = x_14; +} else { + lean_dec_ref(x_14); + x_51 = lean_box(0); +} +x_52 = lean_ctor_get(x_15, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_15, 2); +lean_inc(x_53); +x_54 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + lean_ctor_release(x_15, 2); + x_55 = x_15; +} else { + lean_dec_ref(x_15); + x_55 = lean_box(0); +} +x_56 = l_Lake_Module_leanFacetConfig___lambda__2___closed__2; +x_57 = l_Task_Priority_default; +x_58 = 1; +x_59 = lean_task_map(x_56, x_52, x_57, x_58); +x_60 = l_Lake_instDataKindFilePath; +if (lean_is_scalar(x_55)) { + x_61 = lean_alloc_ctor(0, 3, 1); +} else { + x_61 = x_55; +} +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set(x_61, 2, x_53); +lean_ctor_set_uint8(x_61, sizeof(void*)*3, x_54); +if (lean_is_scalar(x_51)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_51; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_50); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_49); +return x_63; +} +} +else +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_13); +if (x_64 == 0) +{ +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_13, 0); +lean_dec(x_65); +x_66 = !lean_is_exclusive(x_14); +if (x_66 == 0) +{ +return x_13; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_14, 0); +x_68 = lean_ctor_get(x_14, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_14); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set(x_13, 0, x_69); +return x_13; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_70 = lean_ctor_get(x_13, 1); +lean_inc(x_70); +lean_dec(x_13); +x_71 = lean_ctor_get(x_14, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_14, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_73 = x_14; +} else { + lean_dec_ref(x_14); + x_73 = lean_box(0); +} +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_73; +} +lean_ctor_set(x_74, 0, x_71); +lean_ctor_set(x_74, 1, x_72); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_70); +return x_75; +} +} +} +else +{ +uint8_t x_76; +x_76 = !lean_is_exclusive(x_13); +if (x_76 == 0) +{ +return x_13; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_13, 0); +x_78 = lean_ctor_get(x_13, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_13); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} +} +static lean_object* _init_l_Lake_Module_leanFacetConfig___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_leanFacetConfig___lambda__2), 7, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_leanFacetConfig___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_stdFormat___at_Lake_Module_leanFacetConfig___spec__1___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_leanFacetConfig___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lake_Module_keyword; +x_2 = l_Lake_Module_leanFacetConfig___closed__1; +x_3 = l_Lake_instDataKindFilePath; +x_4 = 1; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; +x_6 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4 + 1, x_4); +return x_6; +} +} +static lean_object* _init_l_Lake_Module_leanFacetConfig() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_leanFacetConfig___closed__3; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_leanFacetConfig___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_Lake_stdFormat___at_Lake_Module_leanFacetConfig___spec__1(x_3, x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_leanFacetConfig___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_Module_leanFacetConfig___lambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +return x_2; +} +} +static lean_object* _init_l_Lake_Module_headerFacetConfig___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_headerFacetConfig___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_headerFacetConfig___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lake_Module_headerFacetConfig___lambda__2___closed__1; +x_2 = lean_alloc_closure((void*)(l_Lake_EResult_map___rarg), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = l_Lake_Module_keyword; +x_11 = l_Lake_Module_inputFacet; +x_12 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 2, x_1); +lean_ctor_set(x_12, 3, x_11); +x_13 = lean_apply_6(x_2, x_12, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_13, 0); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_14, 0); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_dec(x_22); +x_23 = l_Lake_Module_headerFacetConfig___lambda__2___closed__2; +x_24 = l_Task_Priority_default; +x_25 = 1; +x_26 = lean_task_map(x_23, x_21, x_24, x_25); +x_27 = lean_box(0); +lean_ctor_set(x_15, 1, x_27); +lean_ctor_set(x_15, 0, x_26); +return x_13; +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_28 = lean_ctor_get(x_15, 0); +x_29 = lean_ctor_get(x_15, 2); +x_30 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_15); +x_31 = l_Lake_Module_headerFacetConfig___lambda__2___closed__2; +x_32 = l_Task_Priority_default; +x_33 = 1; +x_34 = lean_task_map(x_31, x_28, x_32, x_33); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_29); +lean_ctor_set_uint8(x_36, sizeof(void*)*3, x_30); +lean_ctor_set(x_14, 0, x_36); +return x_13; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_37 = lean_ctor_get(x_14, 1); +lean_inc(x_37); +lean_dec(x_14); +x_38 = lean_ctor_get(x_15, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_15, 2); +lean_inc(x_39); +x_40 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + lean_ctor_release(x_15, 2); + x_41 = x_15; +} else { + lean_dec_ref(x_15); + x_41 = lean_box(0); +} +x_42 = l_Lake_Module_headerFacetConfig___lambda__2___closed__2; +x_43 = l_Task_Priority_default; +x_44 = 1; +x_45 = lean_task_map(x_42, x_38, x_43, x_44); +x_46 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_47 = lean_alloc_ctor(0, 3, 1); +} else { + x_47 = x_41; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 2, x_39); +lean_ctor_set_uint8(x_47, sizeof(void*)*3, x_40); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_37); +lean_ctor_set(x_13, 0, x_48); +return x_13; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_49 = lean_ctor_get(x_13, 1); +lean_inc(x_49); +lean_dec(x_13); +x_50 = lean_ctor_get(x_14, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_51 = x_14; +} else { + lean_dec_ref(x_14); + x_51 = lean_box(0); +} +x_52 = lean_ctor_get(x_15, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_15, 2); +lean_inc(x_53); +x_54 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + lean_ctor_release(x_15, 2); + x_55 = x_15; +} else { + lean_dec_ref(x_15); + x_55 = lean_box(0); +} +x_56 = l_Lake_Module_headerFacetConfig___lambda__2___closed__2; +x_57 = l_Task_Priority_default; +x_58 = 1; +x_59 = lean_task_map(x_56, x_52, x_57, x_58); +x_60 = lean_box(0); +if (lean_is_scalar(x_55)) { + x_61 = lean_alloc_ctor(0, 3, 1); +} else { + x_61 = x_55; +} +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set(x_61, 2, x_53); +lean_ctor_set_uint8(x_61, sizeof(void*)*3, x_54); +if (lean_is_scalar(x_51)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_51; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_50); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_49); +return x_63; +} +} +else +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_13); +if (x_64 == 0) +{ +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_13, 0); +lean_dec(x_65); +x_66 = !lean_is_exclusive(x_14); +if (x_66 == 0) +{ +return x_13; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_14, 0); +x_68 = lean_ctor_get(x_14, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_14); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set(x_13, 0, x_69); +return x_13; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_70 = lean_ctor_get(x_13, 1); +lean_inc(x_70); +lean_dec(x_13); +x_71 = lean_ctor_get(x_14, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_14, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_73 = x_14; +} else { + lean_dec_ref(x_14); + x_73 = lean_box(0); +} +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_73; +} +lean_ctor_set(x_74, 0, x_71); +lean_ctor_set(x_74, 1, x_72); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_70); +return x_75; +} +} +} +else +{ +uint8_t x_76; +x_76 = !lean_is_exclusive(x_13); +if (x_76 == 0) +{ +return x_13; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_13, 0); +x_78 = lean_ctor_get(x_13, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_13); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} +} +static lean_object* _init_l_Lake_Module_headerFacetConfig___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_headerFacetConfig___lambda__2), 7, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_headerFacetConfig___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lake_Module_keyword; +x_2 = l_Lake_Module_headerFacetConfig___closed__1; +x_3 = lean_box(0); +x_4 = 1; +x_5 = l_Lake_Module_inputFacetConfig___closed__2; +x_6 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4 + 1, x_4); +return x_6; +} +} +static lean_object* _init_l_Lake_Module_headerFacetConfig() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_headerFacetConfig___closed__2; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_Module_headerFacetConfig___lambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_ctor_get(x_4, 2); +x_7 = lean_ctor_get(x_1, 2); +x_8 = lean_name_eq(x_6, x_7); +if (x_8 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_10; +x_10 = 1; +return x_10; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lake_Module_recParseImports___spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_array_get_size(x_1); +x_7 = lean_ctor_get(x_4, 2); +lean_inc(x_7); +x_8 = l_Lean_Name_hash___override(x_7); +lean_dec(x_7); +x_9 = 32; +x_10 = lean_uint64_shift_right(x_8, x_9); +x_11 = lean_uint64_xor(x_8, x_10); +x_12 = 16; +x_13 = lean_uint64_shift_right(x_11, x_12); +x_14 = lean_uint64_xor(x_11, x_13); +x_15 = lean_uint64_to_usize(x_14); +x_16 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_17 = 1; +x_18 = lean_usize_sub(x_16, x_17); +x_19 = lean_usize_land(x_15, x_18); +x_20 = lean_array_uget(x_1, x_19); +lean_ctor_set(x_2, 2, x_20); +x_21 = lean_array_uset(x_1, x_19, x_2); +x_1 = x_21; +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; size_t x_35; size_t x_36; size_t x_37; size_t x_38; size_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_23 = lean_ctor_get(x_2, 0); +x_24 = lean_ctor_get(x_2, 1); +x_25 = lean_ctor_get(x_2, 2); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_2); +x_26 = lean_array_get_size(x_1); +x_27 = lean_ctor_get(x_23, 2); +lean_inc(x_27); +x_28 = l_Lean_Name_hash___override(x_27); +lean_dec(x_27); +x_29 = 32; +x_30 = lean_uint64_shift_right(x_28, x_29); +x_31 = lean_uint64_xor(x_28, x_30); +x_32 = 16; +x_33 = lean_uint64_shift_right(x_31, x_32); +x_34 = lean_uint64_xor(x_31, x_33); +x_35 = lean_uint64_to_usize(x_34); +x_36 = lean_usize_of_nat(x_26); +lean_dec(x_26); +x_37 = 1; +x_38 = lean_usize_sub(x_36, x_37); +x_39 = lean_usize_land(x_35, x_38); +x_40 = lean_array_uget(x_1, x_39); +x_41 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_41, 0, x_23); +lean_ctor_set(x_41, 1, x_24); +lean_ctor_set(x_41, 2, x_40); +x_42 = lean_array_uset(x_1, x_39, x_41); +x_1 = x_42; +x_2 = x_25; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lake_Module_recParseImports___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_box(0); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = l_Std_DHashMap_Internal_AssocList_foldlM___at_Lake_Module_recParseImports___spec__5(x_3, x_6); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_1, x_10); +lean_dec(x_1); +x_1 = x_11; +x_2 = x_8; +x_3 = x_9; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_Module_recParseImports___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_2 = lean_array_get_size(x_1); +x_3 = lean_unsigned_to_nat(2u); +x_4 = lean_nat_mul(x_2, x_3); +lean_dec(x_2); +x_5 = lean_box(0); +x_6 = lean_mk_array(x_4, x_5); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lake_Module_recParseImports___spec__4(x_7, x_1, x_6); +return x_8; +} +} +static lean_object* _init_l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_instHashableModule___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_instBEqModule___boxed), 2, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; lean_object* x_21; uint8_t x_22; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +x_7 = lean_array_get_size(x_6); +x_8 = lean_ctor_get(x_2, 2); +lean_inc(x_8); +x_9 = l_Lean_Name_hash___override(x_8); +lean_dec(x_8); +x_10 = 32; +x_11 = lean_uint64_shift_right(x_9, x_10); +x_12 = lean_uint64_xor(x_9, x_11); +x_13 = 16; +x_14 = lean_uint64_shift_right(x_12, x_13); +x_15 = lean_uint64_xor(x_12, x_14); +x_16 = lean_uint64_to_usize(x_15); +x_17 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_18 = 1; +x_19 = lean_usize_sub(x_17, x_18); +x_20 = lean_usize_land(x_16, x_19); +x_21 = lean_array_uget(x_6, x_20); +x_22 = l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2(x_2, x_21); +if (x_22 == 0) +{ +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; uint8_t x_35; +x_23 = lean_ctor_get(x_1, 1); +lean_inc(x_23); +lean_dec(x_1); +lean_inc(x_2); +x_24 = lean_array_push(x_23, x_2); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_add(x_5, x_25); +lean_dec(x_5); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_28, 0, x_2); +lean_ctor_set(x_28, 1, x_27); +lean_ctor_set(x_28, 2, x_21); +x_29 = lean_array_uset(x_6, x_20, x_28); +x_30 = lean_unsigned_to_nat(4u); +x_31 = lean_nat_mul(x_26, x_30); +x_32 = lean_unsigned_to_nat(3u); +x_33 = lean_nat_div(x_31, x_32); +lean_dec(x_31); +x_34 = lean_array_get_size(x_29); +x_35 = lean_nat_dec_le(x_33, x_34); +lean_dec(x_34); +lean_dec(x_33); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_Module_recParseImports___spec__3(x_29); +lean_ctor_set(x_3, 1, x_36); +lean_ctor_set(x_3, 0, x_26); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_3); +lean_ctor_set(x_37, 1, x_24); +return x_37; +} +else +{ +lean_object* x_38; +lean_ctor_set(x_3, 1, x_29); +lean_ctor_set(x_3, 0, x_26); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_3); +lean_ctor_set(x_38, 1, x_24); +return x_38; +} +} +else +{ +lean_dec(x_21); +lean_free_object(x_3); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_1; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint64_t x_43; uint64_t x_44; uint64_t x_45; uint64_t x_46; uint64_t x_47; uint64_t x_48; uint64_t x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; size_t x_54; lean_object* x_55; uint8_t x_56; +x_39 = lean_ctor_get(x_3, 0); +x_40 = lean_ctor_get(x_3, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_3); +x_41 = lean_array_get_size(x_40); +x_42 = lean_ctor_get(x_2, 2); +lean_inc(x_42); +x_43 = l_Lean_Name_hash___override(x_42); +lean_dec(x_42); +x_44 = 32; +x_45 = lean_uint64_shift_right(x_43, x_44); +x_46 = lean_uint64_xor(x_43, x_45); +x_47 = 16; +x_48 = lean_uint64_shift_right(x_46, x_47); +x_49 = lean_uint64_xor(x_46, x_48); +x_50 = lean_uint64_to_usize(x_49); +x_51 = lean_usize_of_nat(x_41); +lean_dec(x_41); +x_52 = 1; +x_53 = lean_usize_sub(x_51, x_52); +x_54 = lean_usize_land(x_50, x_53); +x_55 = lean_array_uget(x_40, x_54); +x_56 = l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2(x_2, x_55); +if (x_56 == 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; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_57 = lean_ctor_get(x_1, 1); +lean_inc(x_57); +lean_dec(x_1); +lean_inc(x_2); +x_58 = lean_array_push(x_57, x_2); +x_59 = lean_unsigned_to_nat(1u); +x_60 = lean_nat_add(x_39, x_59); +lean_dec(x_39); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_62, 0, x_2); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_62, 2, x_55); +x_63 = lean_array_uset(x_40, x_54, x_62); +x_64 = lean_unsigned_to_nat(4u); +x_65 = lean_nat_mul(x_60, x_64); +x_66 = lean_unsigned_to_nat(3u); +x_67 = lean_nat_div(x_65, x_66); +lean_dec(x_65); +x_68 = lean_array_get_size(x_63); +x_69 = lean_nat_dec_le(x_67, x_68); +lean_dec(x_68); +lean_dec(x_67); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_Module_recParseImports___spec__3(x_63); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_60); +lean_ctor_set(x_71, 1, 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_58); +return x_72; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_60); +lean_ctor_set(x_73, 1, x_63); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_58); +return x_74; +} +} +else +{ +lean_dec(x_55); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_2); +return x_1; +} +} +} +} +LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6___rarg(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) { +_start: +{ +lean_object* x_9; +x_9 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = !lean_is_exclusive(x_10); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_apply_1(x_2, x_14); +lean_ctor_set(x_10, 0, x_15); +return x_9; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_apply_1(x_2, x_16); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +lean_ctor_set(x_9, 0, x_19); +return x_9; +} +} +else +{ +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; +x_20 = lean_ctor_get(x_9, 1); +lean_inc(x_20); +lean_dec(x_9); +x_21 = lean_ctor_get(x_10, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_10, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_23 = x_10; +} else { + lean_dec_ref(x_10); + x_23 = lean_box(0); +} +x_24 = lean_apply_1(x_2, x_21); +if (lean_is_scalar(x_23)) { + x_25 = lean_alloc_ctor(0, 2, 0); +} else { + x_25 = x_23; +} +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_20); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_9, 0); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_10); +if (x_29 == 0) +{ +return x_9; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_10, 0); +x_31 = lean_ctor_get(x_10, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_10); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_9, 0, x_32); +return x_9; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_9, 1); +lean_inc(x_33); +lean_dec(x_9); +x_34 = lean_ctor_get(x_10, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_10, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_36 = x_10; +} else { + lean_dec_ref(x_10); + x_36 = lean_box(0); +} +if (lean_is_scalar(x_36)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_36; +} +lean_ctor_set(x_37, 0, x_34); +lean_ctor_set(x_37, 1, x_35); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_33); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_2); +x_39 = !lean_is_exclusive(x_9); +if (x_39 == 0) +{ +return x_9; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_9, 0); +x_41 = lean_ctor_get(x_9, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_9); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6___rarg), 8, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__1(lean_object* x_1) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___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) { +_start: +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_5); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_6); +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_11 = lean_ctor_get(x_5, 0); +x_12 = lean_ctor_get_uint8(x_5, sizeof(void*)*2); +x_13 = lean_ctor_get(x_5, 1); +lean_inc(x_13); +lean_inc(x_11); +lean_dec(x_5); +x_14 = lean_ctor_get(x_4, 1); +x_15 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_13); +lean_ctor_set_uint8(x_15, sizeof(void*)*2, x_12); +lean_inc(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_6); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +lean_dec(x_2); +x_4 = l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1(x_1, x_3); +return x_4; +} +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__2___boxed), 6, 0); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__2; +x_3 = lean_alloc_closure((void*)(l_Lake_EquipT_map___at_Lake_instMonadStateOfLogJobM___spec__1___rarg), 8, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7(lean_object* x_1, size_t x_2, size_t 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) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_eq(x_2, x_3); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_12 = lean_array_uget(x_1, x_2); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_alloc_closure((void*)(l_Lake_Workspace_findModule_x3f___boxed), 2, 1); +lean_closure_set(x_14, 0, x_13); +x_15 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__3; +x_16 = lean_alloc_closure((void*)(l_Lake_EquipT_map___at_Lake_instMonadStateOfLogJobM___spec__1___rarg), 8, 2); +lean_closure_set(x_16, 0, x_14); +lean_closure_set(x_16, 1, x_15); +x_17 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___lambda__3), 2, 1); +lean_closure_set(x_17, 0, x_4); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_18 = l_Functor_mapRev___at_Lake_Module_recParseImports___spec__6___rarg(x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = 1; +x_24 = lean_usize_add(x_2, x_23); +x_2 = x_24; +x_4 = x_21; +x_9 = x_22; +x_10 = x_20; +goto _start; +} +else +{ +uint8_t x_26; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_26 = !lean_is_exclusive(x_18); +if (x_26 == 0) +{ +lean_object* x_27; uint8_t x_28; +x_27 = lean_ctor_get(x_18, 0); +lean_dec(x_27); +x_28 = !lean_is_exclusive(x_19); +if (x_28 == 0) +{ +return x_18; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_19, 0); +x_30 = lean_ctor_get(x_19, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_19); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_18, 0, x_31); +return x_18; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_32 = lean_ctor_get(x_18, 1); +lean_inc(x_32); +lean_dec(x_18); +x_33 = lean_ctor_get(x_19, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_35 = x_19; +} else { + lean_dec_ref(x_19); + x_35 = lean_box(0); +} +if (lean_is_scalar(x_35)) { + x_36 = lean_alloc_ctor(1, 2, 0); +} else { + x_36 = x_35; +} +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_34); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_32); +return x_37; +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_38 = !lean_is_exclusive(x_18); +if (x_38 == 0) +{ +return x_18; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_18, 0); +x_40 = lean_ctor_get(x_18, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_18); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_4); +lean_ctor_set(x_42, 1, x_9); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_10); +return x_43; +} +} +} +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recParseImports___spec__10(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stdout(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stdout(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recParseImports___spec__11(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stdin(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stdin(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recParseImports___spec__12(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stderr(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stderr(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__9(lean_object* x_1, uint8_t 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) { +_start: +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_13 = lean_st_mk_ref(x_12, x_8); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_mk_ref(x_12, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_IO_FS_Stream_ofBuffer(x_14); +lean_inc(x_17); +x_20 = l_IO_FS_Stream_ofBuffer(x_17); +if (x_2 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recParseImports___spec__10), 8, 2); +lean_closure_set(x_21, 0, x_20); +lean_closure_set(x_21, 1, x_1); +x_22 = l_IO_withStdin___at_Lake_Module_recParseImports___spec__11(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +x_32 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_string_validate_utf8(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_35); +x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_38 = l_panic___at_Lean_Name_getString_x21___spec__1(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_27); +lean_ctor_set(x_23, 0, x_39); +lean_ctor_set(x_32, 0, x_23); +return x_32; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_string_from_utf8_unchecked(x_35); +lean_dec(x_35); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_27); +lean_ctor_set(x_23, 0, x_41); +lean_ctor_set(x_32, 0, x_23); +return x_32; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_32, 0); +x_43 = lean_ctor_get(x_32, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_32); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_string_validate_utf8(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_44); +x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_47 = l_panic___at_Lean_Name_getString_x21___spec__1(x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_27); +lean_ctor_set(x_23, 0, x_48); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_23); +lean_ctor_set(x_49, 1, x_43); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_string_from_utf8_unchecked(x_44); +lean_dec(x_44); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_27); +lean_ctor_set(x_23, 0, x_51); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_23); +lean_ctor_set(x_52, 1, x_43); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_free_object(x_24); +lean_dec(x_31); +lean_dec(x_30); +lean_free_object(x_23); +lean_dec(x_27); +x_53 = !lean_is_exclusive(x_32); +if (x_53 == 0) +{ +return x_32; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_32, 0); +x_55 = lean_ctor_get(x_32, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_32); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +else +{ +lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_24, 0); +x_58 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +x_59 = lean_ctor_get(x_24, 1); +lean_inc(x_59); +lean_inc(x_57); +lean_dec(x_24); +x_60 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_63 = x_60; +} else { + lean_dec_ref(x_60); + x_63 = lean_box(0); +} +x_64 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_64, 0, x_57); +lean_ctor_set(x_64, 1, x_59); +lean_ctor_set_uint8(x_64, sizeof(void*)*2, x_58); +x_65 = lean_ctor_get(x_61, 0); +lean_inc(x_65); +lean_dec(x_61); +x_66 = lean_string_validate_utf8(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_65); +x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_68 = l_panic___at_Lean_Name_getString_x21___spec__1(x_67); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_27); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_69); +if (lean_is_scalar(x_63)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_63; +} +lean_ctor_set(x_70, 0, x_23); +lean_ctor_set(x_70, 1, x_62); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_string_from_utf8_unchecked(x_65); +lean_dec(x_65); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_27); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_72); +if (lean_is_scalar(x_63)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_63; +} +lean_ctor_set(x_73, 0, x_23); +lean_ctor_set(x_73, 1, x_62); +return x_73; +} +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_59); +lean_dec(x_57); +lean_free_object(x_23); +lean_dec(x_27); +x_74 = lean_ctor_get(x_60, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_60, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_76 = x_60; +} else { + lean_dec_ref(x_60); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_78 = lean_ctor_get(x_23, 0); +lean_inc(x_78); +lean_dec(x_23); +x_79 = lean_ctor_get(x_24, 0); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +x_81 = lean_ctor_get(x_24, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_82 = x_24; +} else { + lean_dec_ref(x_24); + x_82 = lean_box(0); +} +x_83 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_86 = x_83; +} else { + lean_dec_ref(x_83); + x_86 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_87 = lean_alloc_ctor(0, 2, 1); +} else { + x_87 = x_82; +} +lean_ctor_set(x_87, 0, x_79); +lean_ctor_set(x_87, 1, x_81); +lean_ctor_set_uint8(x_87, sizeof(void*)*2, x_80); +x_88 = lean_ctor_get(x_84, 0); +lean_inc(x_88); +lean_dec(x_84); +x_89 = lean_string_validate_utf8(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_88); +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_91 = l_panic___at_Lean_Name_getString_x21___spec__1(x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_78); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_87); +if (lean_is_scalar(x_86)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_86; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_85); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_95 = lean_string_from_utf8_unchecked(x_88); +lean_dec(x_88); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_78); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_87); +if (lean_is_scalar(x_86)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_86; +} +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_85); +return x_98; +} +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_78); +x_99 = lean_ctor_get(x_83, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_83, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_101 = x_83; +} else { + lean_dec_ref(x_83); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; +} +} +} +else +{ +uint8_t x_103; +lean_dec(x_17); +x_103 = !lean_is_exclusive(x_22); +if (x_103 == 0) +{ +lean_object* x_104; uint8_t x_105; +x_104 = lean_ctor_get(x_22, 0); +lean_dec(x_104); +x_105 = !lean_is_exclusive(x_23); +if (x_105 == 0) +{ +return x_22; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_23, 0); +x_107 = lean_ctor_get(x_23, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_23); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_22, 0, x_108); +return x_22; +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_109 = lean_ctor_get(x_22, 1); +lean_inc(x_109); +lean_dec(x_22); +x_110 = lean_ctor_get(x_23, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_23, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_112 = x_23; +} else { + lean_dec_ref(x_23); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_109); +return x_114; +} +} +} +else +{ +uint8_t x_115; +lean_dec(x_17); +x_115 = !lean_is_exclusive(x_22); +if (x_115 == 0) +{ +return x_22; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_22, 0); +x_117 = lean_ctor_get(x_22, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_22); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_inc(x_20); +x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recParseImports___spec__12), 8, 2); +lean_closure_set(x_119, 0, x_20); +lean_closure_set(x_119, 1, x_1); +x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recParseImports___spec__10), 8, 2); +lean_closure_set(x_120, 0, x_20); +lean_closure_set(x_120, 1, x_119); +x_121 = l_IO_withStdin___at_Lake_Module_recParseImports___spec__11(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_121, 1); +lean_inc(x_124); +lean_dec(x_121); +x_125 = !lean_is_exclusive(x_122); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_126 = lean_ctor_get(x_122, 0); +x_127 = lean_ctor_get(x_122, 1); +lean_dec(x_127); +x_128 = !lean_is_exclusive(x_123); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_123, 0); +x_130 = lean_ctor_get(x_123, 1); +x_131 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_131) == 0) +{ +uint8_t x_132; +x_132 = !lean_is_exclusive(x_131); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_133 = lean_ctor_get(x_131, 0); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_string_validate_utf8(x_134); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_134); +x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_137 = l_panic___at_Lean_Name_getString_x21___spec__1(x_136); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_126); +lean_ctor_set(x_122, 0, x_138); +lean_ctor_set(x_131, 0, x_122); +return x_131; +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_string_from_utf8_unchecked(x_134); +lean_dec(x_134); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_126); +lean_ctor_set(x_122, 0, x_140); +lean_ctor_set(x_131, 0, x_122); +return x_131; +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; +x_141 = lean_ctor_get(x_131, 0); +x_142 = lean_ctor_get(x_131, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_131); +x_143 = lean_ctor_get(x_141, 0); +lean_inc(x_143); +lean_dec(x_141); +x_144 = lean_string_validate_utf8(x_143); +if (x_144 == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_143); +x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_146 = l_panic___at_Lean_Name_getString_x21___spec__1(x_145); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_126); +lean_ctor_set(x_122, 0, x_147); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_122); +lean_ctor_set(x_148, 1, x_142); +return x_148; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_string_from_utf8_unchecked(x_143); +lean_dec(x_143); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_126); +lean_ctor_set(x_122, 0, x_150); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_122); +lean_ctor_set(x_151, 1, x_142); +return x_151; +} +} +} +else +{ +uint8_t x_152; +lean_free_object(x_123); +lean_dec(x_130); +lean_dec(x_129); +lean_free_object(x_122); +lean_dec(x_126); +x_152 = !lean_is_exclusive(x_131); +if (x_152 == 0) +{ +return x_131; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_131, 0); +x_154 = lean_ctor_get(x_131, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_131); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +} +else +{ +lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; +x_156 = lean_ctor_get(x_123, 0); +x_157 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_158 = lean_ctor_get(x_123, 1); +lean_inc(x_158); +lean_inc(x_156); +lean_dec(x_123); +x_159 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_159) == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_162 = x_159; +} else { + lean_dec_ref(x_159); + x_162 = lean_box(0); +} +x_163 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_163, 0, x_156); +lean_ctor_set(x_163, 1, x_158); +lean_ctor_set_uint8(x_163, sizeof(void*)*2, x_157); +x_164 = lean_ctor_get(x_160, 0); +lean_inc(x_164); +lean_dec(x_160); +x_165 = lean_string_validate_utf8(x_164); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_164); +x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_167 = l_panic___at_Lean_Name_getString_x21___spec__1(x_166); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_126); +lean_ctor_set(x_122, 1, x_163); +lean_ctor_set(x_122, 0, x_168); +if (lean_is_scalar(x_162)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_162; +} +lean_ctor_set(x_169, 0, x_122); +lean_ctor_set(x_169, 1, x_161); +return x_169; +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_string_from_utf8_unchecked(x_164); +lean_dec(x_164); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_126); +lean_ctor_set(x_122, 1, x_163); +lean_ctor_set(x_122, 0, x_171); +if (lean_is_scalar(x_162)) { + x_172 = lean_alloc_ctor(0, 2, 0); +} else { + x_172 = x_162; +} +lean_ctor_set(x_172, 0, x_122); +lean_ctor_set(x_172, 1, x_161); +return x_172; +} +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_158); +lean_dec(x_156); +lean_free_object(x_122); +lean_dec(x_126); +x_173 = lean_ctor_get(x_159, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_159, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_175 = x_159; +} else { + lean_dec_ref(x_159); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(1, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +} +} +else +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_177 = lean_ctor_get(x_122, 0); +lean_inc(x_177); +lean_dec(x_122); +x_178 = lean_ctor_get(x_123, 0); +lean_inc(x_178); +x_179 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_180 = lean_ctor_get(x_123, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_181 = x_123; +} else { + lean_dec_ref(x_123); + x_181 = lean_box(0); +} +x_182 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_185 = x_182; +} else { + lean_dec_ref(x_182); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_186 = lean_alloc_ctor(0, 2, 1); +} else { + x_186 = x_181; +} +lean_ctor_set(x_186, 0, x_178); +lean_ctor_set(x_186, 1, x_180); +lean_ctor_set_uint8(x_186, sizeof(void*)*2, x_179); +x_187 = lean_ctor_get(x_183, 0); +lean_inc(x_187); +lean_dec(x_183); +x_188 = lean_string_validate_utf8(x_187); +if (x_188 == 0) +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_dec(x_187); +x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_190 = l_panic___at_Lean_Name_getString_x21___spec__1(x_189); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_177); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_186); +if (lean_is_scalar(x_185)) { + x_193 = lean_alloc_ctor(0, 2, 0); +} else { + x_193 = x_185; +} +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_184); +return x_193; +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_194 = lean_string_from_utf8_unchecked(x_187); +lean_dec(x_187); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_177); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_186); +if (lean_is_scalar(x_185)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_185; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_184); +return x_197; +} +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +lean_dec(x_181); +lean_dec(x_180); +lean_dec(x_178); +lean_dec(x_177); +x_198 = lean_ctor_get(x_182, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_182, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_200 = x_182; +} else { + lean_dec_ref(x_182); + x_200 = lean_box(0); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(1, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_198); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +} +} +else +{ +uint8_t x_202; +lean_dec(x_17); +x_202 = !lean_is_exclusive(x_121); +if (x_202 == 0) +{ +lean_object* x_203; uint8_t x_204; +x_203 = lean_ctor_get(x_121, 0); +lean_dec(x_203); +x_204 = !lean_is_exclusive(x_122); +if (x_204 == 0) +{ +return x_121; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_122, 0); +x_206 = lean_ctor_get(x_122, 1); +lean_inc(x_206); +lean_inc(x_205); +lean_dec(x_122); +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_205); +lean_ctor_set(x_207, 1, x_206); +lean_ctor_set(x_121, 0, x_207); +return x_121; +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_208 = lean_ctor_get(x_121, 1); +lean_inc(x_208); +lean_dec(x_121); +x_209 = lean_ctor_get(x_122, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_122, 1); +lean_inc(x_210); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_211 = x_122; +} else { + lean_dec_ref(x_122); + x_211 = lean_box(0); +} +if (lean_is_scalar(x_211)) { + x_212 = lean_alloc_ctor(1, 2, 0); +} else { + x_212 = x_211; +} +lean_ctor_set(x_212, 0, x_209); +lean_ctor_set(x_212, 1, x_210); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_208); +return x_213; +} +} +} +else +{ +uint8_t x_214; +lean_dec(x_17); +x_214 = !lean_is_exclusive(x_121); +if (x_214 == 0) +{ +return x_121; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_121, 0); +x_216 = lean_ctor_get(x_121, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_121); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; +} +} +} +} +else +{ +uint8_t x_218; +lean_dec(x_14); +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_218 = !lean_is_exclusive(x_16); +if (x_218 == 0) +{ +return x_16; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_16, 0); +x_220 = lean_ctor_get(x_16, 1); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_16); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +return x_221; +} +} +} +else +{ +uint8_t x_222; +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_222 = !lean_is_exclusive(x_13); +if (x_222 == 0) +{ +return x_13; +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_13, 0); +x_224 = lean_ctor_get(x_13, 1); +lean_inc(x_224); +lean_inc(x_223); +lean_dec(x_13); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; +} +} +} +else +{ +lean_object* x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_226 = lean_ctor_get(x_7, 0); +x_227 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_228 = lean_ctor_get(x_7, 1); +lean_inc(x_228); +lean_inc(x_226); +lean_dec(x_7); +x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_230 = lean_st_mk_ref(x_229, x_8); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); +lean_inc(x_232); +lean_dec(x_230); +x_233 = lean_st_mk_ref(x_229, x_232); +if (lean_obj_tag(x_233) == 0) +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); +x_236 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_236, 0, x_226); +lean_ctor_set(x_236, 1, x_228); +lean_ctor_set_uint8(x_236, sizeof(void*)*2, x_227); +x_237 = l_IO_FS_Stream_ofBuffer(x_231); +lean_inc(x_234); +x_238 = l_IO_FS_Stream_ofBuffer(x_234); +if (x_2 == 0) +{ +lean_object* x_239; lean_object* x_240; +x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recParseImports___spec__10), 8, 2); +lean_closure_set(x_239, 0, x_238); +lean_closure_set(x_239, 1, x_1); +x_240 = l_IO_withStdin___at_Lake_Module_recParseImports___spec__11(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +x_243 = lean_ctor_get(x_240, 1); +lean_inc(x_243); +lean_dec(x_240); +x_244 = lean_ctor_get(x_241, 0); +lean_inc(x_244); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_245 = x_241; +} else { + lean_dec_ref(x_241); + x_245 = lean_box(0); +} +x_246 = lean_ctor_get(x_242, 0); +lean_inc(x_246); +x_247 = lean_ctor_get_uint8(x_242, sizeof(void*)*2); +x_248 = lean_ctor_get(x_242, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_249 = x_242; +} else { + lean_dec_ref(x_242); + x_249 = lean_box(0); +} +x_250 = lean_st_ref_get(x_234, x_243); +lean_dec(x_234); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_250, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_253 = x_250; +} else { + lean_dec_ref(x_250); + x_253 = lean_box(0); +} +if (lean_is_scalar(x_249)) { + x_254 = lean_alloc_ctor(0, 2, 1); +} else { + x_254 = x_249; +} +lean_ctor_set(x_254, 0, x_246); +lean_ctor_set(x_254, 1, x_248); +lean_ctor_set_uint8(x_254, sizeof(void*)*2, x_247); +x_255 = lean_ctor_get(x_251, 0); +lean_inc(x_255); +lean_dec(x_251); +x_256 = lean_string_validate_utf8(x_255); +if (x_256 == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_dec(x_255); +x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_258 = l_panic___at_Lean_Name_getString_x21___spec__1(x_257); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_244); +if (lean_is_scalar(x_245)) { + x_260 = lean_alloc_ctor(0, 2, 0); +} else { + x_260 = x_245; +} +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_254); +if (lean_is_scalar(x_253)) { + x_261 = lean_alloc_ctor(0, 2, 0); +} else { + x_261 = x_253; +} +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_252); +return x_261; +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_262 = lean_string_from_utf8_unchecked(x_255); +lean_dec(x_255); +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_244); +if (lean_is_scalar(x_245)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_245; +} +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_254); +if (lean_is_scalar(x_253)) { + x_265 = lean_alloc_ctor(0, 2, 0); +} else { + x_265 = x_253; +} +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_252); +return x_265; +} +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_dec(x_249); +lean_dec(x_248); +lean_dec(x_246); +lean_dec(x_245); +lean_dec(x_244); +x_266 = lean_ctor_get(x_250, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_250, 1); +lean_inc(x_267); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_268 = x_250; +} else { + lean_dec_ref(x_250); + x_268 = lean_box(0); +} +if (lean_is_scalar(x_268)) { + x_269 = lean_alloc_ctor(1, 2, 0); +} else { + x_269 = x_268; +} +lean_ctor_set(x_269, 0, x_266); +lean_ctor_set(x_269, 1, x_267); +return x_269; +} +} +else +{ +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_dec(x_234); +x_270 = lean_ctor_get(x_240, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_271 = x_240; +} else { + lean_dec_ref(x_240); + x_271 = lean_box(0); +} +x_272 = lean_ctor_get(x_241, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_241, 1); +lean_inc(x_273); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_274 = x_241; +} else { + lean_dec_ref(x_241); + x_274 = lean_box(0); +} +if (lean_is_scalar(x_274)) { + x_275 = lean_alloc_ctor(1, 2, 0); +} else { + x_275 = x_274; +} +lean_ctor_set(x_275, 0, x_272); +lean_ctor_set(x_275, 1, x_273); +if (lean_is_scalar(x_271)) { + x_276 = lean_alloc_ctor(0, 2, 0); +} else { + x_276 = x_271; +} +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_270); +return x_276; +} +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +lean_dec(x_234); +x_277 = lean_ctor_get(x_240, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_240, 1); +lean_inc(x_278); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_279 = x_240; +} else { + lean_dec_ref(x_240); + x_279 = lean_box(0); +} +if (lean_is_scalar(x_279)) { + x_280 = lean_alloc_ctor(1, 2, 0); +} else { + x_280 = x_279; +} +lean_ctor_set(x_280, 0, x_277); +lean_ctor_set(x_280, 1, x_278); +return x_280; +} +} +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; +lean_inc(x_238); +x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recParseImports___spec__12), 8, 2); +lean_closure_set(x_281, 0, x_238); +lean_closure_set(x_281, 1, x_1); +x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recParseImports___spec__10), 8, 2); +lean_closure_set(x_282, 0, x_238); +lean_closure_set(x_282, 1, x_281); +x_283 = l_IO_withStdin___at_Lake_Module_recParseImports___spec__11(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); +if (lean_obj_tag(x_283) == 0) +{ +lean_object* x_284; +x_284 = lean_ctor_get(x_283, 0); +lean_inc(x_284); +if (lean_obj_tag(x_284) == 0) +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +x_286 = lean_ctor_get(x_283, 1); +lean_inc(x_286); +lean_dec(x_283); +x_287 = lean_ctor_get(x_284, 0); +lean_inc(x_287); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_288 = x_284; +} else { + lean_dec_ref(x_284); + x_288 = lean_box(0); +} +x_289 = lean_ctor_get(x_285, 0); +lean_inc(x_289); +x_290 = lean_ctor_get_uint8(x_285, sizeof(void*)*2); +x_291 = lean_ctor_get(x_285, 1); +lean_inc(x_291); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_292 = x_285; +} else { + lean_dec_ref(x_285); + x_292 = lean_box(0); +} +x_293 = lean_st_ref_get(x_234, x_286); +lean_dec(x_234); +if (lean_obj_tag(x_293) == 0) +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_296 = x_293; +} else { + lean_dec_ref(x_293); + x_296 = lean_box(0); +} +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(0, 2, 1); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_289); +lean_ctor_set(x_297, 1, x_291); +lean_ctor_set_uint8(x_297, sizeof(void*)*2, x_290); +x_298 = lean_ctor_get(x_294, 0); +lean_inc(x_298); +lean_dec(x_294); +x_299 = lean_string_validate_utf8(x_298); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_dec(x_298); +x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_301 = l_panic___at_Lean_Name_getString_x21___spec__1(x_300); +x_302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_302, 0, x_301); +lean_ctor_set(x_302, 1, x_287); +if (lean_is_scalar(x_288)) { + x_303 = lean_alloc_ctor(0, 2, 0); +} else { + x_303 = x_288; +} +lean_ctor_set(x_303, 0, x_302); +lean_ctor_set(x_303, 1, x_297); +if (lean_is_scalar(x_296)) { + x_304 = lean_alloc_ctor(0, 2, 0); +} else { + x_304 = x_296; +} +lean_ctor_set(x_304, 0, x_303); +lean_ctor_set(x_304, 1, x_295); +return x_304; +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_305 = lean_string_from_utf8_unchecked(x_298); +lean_dec(x_298); +x_306 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_306, 0, x_305); +lean_ctor_set(x_306, 1, x_287); +if (lean_is_scalar(x_288)) { + x_307 = lean_alloc_ctor(0, 2, 0); +} else { + x_307 = x_288; +} +lean_ctor_set(x_307, 0, x_306); +lean_ctor_set(x_307, 1, x_297); +if (lean_is_scalar(x_296)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_296; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_295); +return x_308; +} +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_292); +lean_dec(x_291); +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_287); +x_309 = lean_ctor_get(x_293, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_293, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_311 = x_293; +} else { + lean_dec_ref(x_293); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 2, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +return x_312; +} +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_234); +x_313 = lean_ctor_get(x_283, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_314 = x_283; +} else { + lean_dec_ref(x_283); + x_314 = lean_box(0); +} +x_315 = lean_ctor_get(x_284, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_284, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_317 = x_284; +} else { + lean_dec_ref(x_284); + x_317 = lean_box(0); +} +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(1, 2, 0); +} else { + x_318 = x_317; +} +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +if (lean_is_scalar(x_314)) { + x_319 = lean_alloc_ctor(0, 2, 0); +} else { + x_319 = x_314; +} +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_313); +return x_319; +} +} +else +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_234); +x_320 = lean_ctor_get(x_283, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_283, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_322 = x_283; +} else { + lean_dec_ref(x_283); + x_322 = lean_box(0); +} +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 2, 0); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_320); +lean_ctor_set(x_323, 1, x_321); +return x_323; +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_dec(x_231); +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_324 = lean_ctor_get(x_233, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_233, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_326 = x_233; +} else { + lean_dec_ref(x_233); + x_326 = lean_box(0); +} +if (lean_is_scalar(x_326)) { + x_327 = lean_alloc_ctor(1, 2, 0); +} else { + x_327 = x_326; +} +lean_ctor_set(x_327, 0, x_324); +lean_ctor_set(x_327, 1, x_325); +return x_327; +} +} +else +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_328 = lean_ctor_get(x_230, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_230, 1); +lean_inc(x_329); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_330 = x_230; +} else { + lean_dec_ref(x_230); + x_330 = lean_box(0); +} +if (lean_is_scalar(x_330)) { + x_331 = lean_alloc_ctor(1, 2, 0); +} else { + x_331 = x_330; +} +lean_ctor_set(x_331, 0, x_328); +lean_ctor_set(x_331, 1, x_329); +return x_331; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8___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) { +_start: +{ +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec(x_7); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_9, 1); +x_13 = l_Lake_BuildTrace_mix(x_1, x_12); +x_14 = lean_apply_1(x_2, x_10); +lean_ctor_set(x_9, 1, x_13); +x_15 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_16 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__9(x_14, x_15, x_3, x_4, x_5, x_6, x_9, x_8); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +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; uint8_t x_25; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_string_utf8_byte_size(x_21); +x_24 = lean_unsigned_to_nat(0u); +x_25 = lean_nat_dec_eq(x_23, x_24); +if (x_25 == 0) +{ +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; uint8_t x_33; lean_object* x_34; uint8_t x_35; +x_26 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_21, x_23, x_24); +x_27 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_21, x_26, x_23); +x_28 = lean_string_utf8_extract(x_21, x_26, x_27); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_21); +x_29 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_30 = lean_string_append(x_29, x_28); +lean_dec(x_28); +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_32 = lean_string_append(x_30, x_31); +x_33 = 1; +x_34 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_33); +x_35 = !lean_is_exclusive(x_20); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_20, 0); +x_37 = lean_array_push(x_36, x_34); +lean_ctor_set(x_20, 0, x_37); +x_38 = lean_box(0); +x_39 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_38, x_3, x_4, x_5, x_6, x_20, x_19); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_39; +} +else +{ +lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_40 = lean_ctor_get(x_20, 0); +x_41 = lean_ctor_get_uint8(x_20, sizeof(void*)*2); +x_42 = lean_ctor_get(x_20, 1); +lean_inc(x_42); +lean_inc(x_40); +lean_dec(x_20); +x_43 = lean_array_push(x_40, x_34); +x_44 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_41); +x_45 = lean_box(0); +x_46 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_45, x_3, x_4, x_5, x_6, x_44, x_19); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_23); +lean_dec(x_21); +x_47 = lean_box(0); +x_48 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_47, x_3, x_4, x_5, x_6, x_20, x_19); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_48; +} +} +else +{ +uint8_t x_49; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_49 = !lean_is_exclusive(x_16); +if (x_49 == 0) +{ +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_16, 0); +lean_dec(x_50); +x_51 = !lean_is_exclusive(x_17); +if (x_51 == 0) +{ +return x_16; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_17, 0); +x_53 = lean_ctor_get(x_17, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_17); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_16, 0, x_54); +return x_16; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_55 = lean_ctor_get(x_16, 1); +lean_inc(x_55); +lean_dec(x_16); +x_56 = lean_ctor_get(x_17, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_17, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_58 = x_17; +} else { + lean_dec_ref(x_17); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); +} else { + x_59 = x_58; +} +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_55); +return x_60; +} +} +} +else +{ +uint8_t x_61; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_61 = !lean_is_exclusive(x_16); +if (x_61 == 0) +{ +return x_16; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_16, 0); +x_63 = lean_ctor_get(x_16, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_16); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +else +{ +lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; +x_65 = lean_ctor_get(x_9, 0); +x_66 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); +x_67 = lean_ctor_get(x_9, 1); +lean_inc(x_67); +lean_inc(x_65); +lean_dec(x_9); +x_68 = l_Lake_BuildTrace_mix(x_1, x_67); +x_69 = lean_apply_1(x_2, x_10); +x_70 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_70, 0, x_65); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set_uint8(x_70, sizeof(void*)*2, x_66); +x_71 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_72 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__9(x_69, x_71, x_3, x_4, x_5, x_6, x_70, x_8); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +if (lean_obj_tag(x_73) == 0) +{ +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; uint8_t x_81; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_72, 1); +lean_inc(x_75); +lean_dec(x_72); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +x_77 = lean_ctor_get(x_74, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_74, 1); +lean_inc(x_78); +lean_dec(x_74); +x_79 = lean_string_utf8_byte_size(x_77); +x_80 = lean_unsigned_to_nat(0u); +x_81 = lean_nat_dec_eq(x_79, x_80); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_82 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_77, x_79, x_80); +x_83 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_77, x_82, x_79); +x_84 = lean_string_utf8_extract(x_77, x_82, x_83); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_77); +x_85 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_86 = lean_string_append(x_85, x_84); +lean_dec(x_84); +x_87 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_88 = lean_string_append(x_86, x_87); +x_89 = 1; +x_90 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set_uint8(x_90, sizeof(void*)*1, x_89); +x_91 = lean_ctor_get(x_76, 0); +lean_inc(x_91); +x_92 = lean_ctor_get_uint8(x_76, sizeof(void*)*2); +x_93 = lean_ctor_get(x_76, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_94 = x_76; +} else { + lean_dec_ref(x_76); + x_94 = lean_box(0); +} +x_95 = lean_array_push(x_91, x_90); +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(0, 2, 1); +} else { + x_96 = x_94; +} +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_93); +lean_ctor_set_uint8(x_96, sizeof(void*)*2, x_92); +x_97 = lean_box(0); +x_98 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_97, x_3, x_4, x_5, x_6, x_96, x_75); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_98; +} +else +{ +lean_object* x_99; lean_object* x_100; +lean_dec(x_79); +lean_dec(x_77); +x_99 = lean_box(0); +x_100 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_99, x_3, x_4, x_5, x_6, x_76, x_75); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_100; +} +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_101 = lean_ctor_get(x_72, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_102 = x_72; +} else { + lean_dec_ref(x_72); + x_102 = lean_box(0); +} +x_103 = lean_ctor_get(x_73, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_73, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_105 = x_73; +} else { + lean_dec_ref(x_73); + x_105 = lean_box(0); +} +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_105; +} +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +if (lean_is_scalar(x_102)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_102; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_101); +return x_107; +} +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_108 = lean_ctor_get(x_72, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_72, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_110 = x_72; +} else { + lean_dec_ref(x_72); + x_110 = lean_box(0); +} +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); +} else { + x_111 = x_110; +} +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +return x_111; +} +} +} +else +{ +uint8_t x_112; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_112 = !lean_is_exclusive(x_7); +if (x_112 == 0) +{ +lean_object* x_113; +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_7); +lean_ctor_set(x_113, 1, x_8); +return x_113; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_7, 0); +x_115 = lean_ctor_get(x_7, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_7); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_8); +return x_117; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { +_start: +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 1); +lean_dec(x_14); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8___lambda__1), 8, 6); +lean_closure_set(x_15, 0, x_9); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_5); +lean_closure_set(x_15, 3, x_6); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_8); +x_16 = lean_io_map_task(x_15, x_12, x_3, x_4, x_10); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_box(0); +lean_ctor_set(x_1, 1, x_19); +lean_ctor_set(x_1, 0, x_18); +lean_ctor_set(x_16, 0, x_1); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_box(0); +lean_ctor_set(x_1, 1, x_22); +lean_ctor_set(x_1, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_free_object(x_1); +lean_dec(x_13); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_16); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_1, 0); +x_29 = lean_ctor_get(x_1, 2); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_1); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8___lambda__1), 8, 6); +lean_closure_set(x_31, 0, x_9); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_5); +lean_closure_set(x_31, 3, x_6); +lean_closure_set(x_31, 4, x_7); +lean_closure_set(x_31, 5, x_8); +x_32 = lean_io_map_task(x_31, x_28, x_3, x_4, x_10); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_30); +if (lean_is_scalar(x_35)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_35; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_29); +x_39 = lean_ctor_get(x_32, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_41 = x_32; +} else { + lean_dec_ref(x_32); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +static lean_object* _init_l_Lake_Module_recParseImports___lambda__1___closed__1() { +_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; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get(x_1, 0); +x_9 = lean_array_get_size(x_8); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_nat_dec_lt(x_10, x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_6); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_7); +return x_14; +} +else +{ +uint8_t x_15; +x_15 = lean_nat_dec_le(x_9, x_9); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_16 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_6); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_7); +return x_18; +} +else +{ +size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; +x_19 = 0; +x_20 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_21 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; +x_22 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7(x_8, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_22, 0); +lean_dec(x_25); +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +lean_ctor_set(x_23, 0, x_28); +return x_22; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_23); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +lean_ctor_set(x_22, 0, x_32); +return x_22; +} +} +else +{ +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; +x_33 = lean_ctor_get(x_22, 1); +lean_inc(x_33); +lean_dec(x_22); +x_34 = lean_ctor_get(x_23, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_23, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_36 = x_23; +} else { + lean_dec_ref(x_23); + x_36 = lean_box(0); +} +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +if (lean_is_scalar(x_36)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_36; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_33); +return x_39; +} +} +else +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_22); +if (x_40 == 0) +{ +lean_object* x_41; uint8_t x_42; +x_41 = lean_ctor_get(x_22, 0); +lean_dec(x_41); +x_42 = !lean_is_exclusive(x_23); +if (x_42 == 0) +{ +return x_22; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_23, 0); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_23); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_22, 0, x_45); +return x_22; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_46 = lean_ctor_get(x_22, 1); +lean_inc(x_46); +lean_dec(x_22); +x_47 = lean_ctor_get(x_23, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_23, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_49 = x_23; +} else { + lean_dec_ref(x_23); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_46); +return x_51; +} +} +} +else +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_22); +if (x_52 == 0) +{ +return x_22; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_22, 0); +x_54 = lean_ctor_get(x_22, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_22); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +} +} +} +static lean_object* _init_l_Lake_Module_recParseImports___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_recParseImports___lambda__1___boxed), 7, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recParseImports(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = l_Lake_Module_keyword; +x_11 = l_Lake_Module_headerFacet; +x_12 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 2, x_1); +lean_ctor_set(x_12, 3, x_11); +lean_inc(x_2); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_13 = lean_apply_6(x_2, x_12, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; +x_17 = lean_ctor_get(x_14, 0); +x_18 = lean_ctor_get(x_14, 1); +x_19 = l_Lake_Module_recParseImports___closed__1; +x_20 = l_Task_Priority_default; +x_21 = 1; +x_22 = l_Lake_Module_recFetchInput___closed__3; +x_23 = l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8(x_17, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_22, x_15); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_23, 0); +lean_ctor_set(x_14, 0, x_25); +lean_ctor_set(x_23, 0, x_14); +return x_23; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_23, 0); +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_23); +lean_ctor_set(x_14, 0, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_14); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_free_object(x_14); +lean_dec(x_18); +x_29 = !lean_is_exclusive(x_23); +if (x_29 == 0) +{ +return x_23; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_23, 0); +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_23); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; +x_33 = lean_ctor_get(x_14, 0); +x_34 = lean_ctor_get(x_14, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_14); +x_35 = l_Lake_Module_recParseImports___closed__1; +x_36 = l_Task_Priority_default; +x_37 = 1; +x_38 = l_Lake_Module_recFetchInput___closed__3; +x_39 = l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8(x_33, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_38, x_15); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_42 = x_39; +} else { + lean_dec_ref(x_39); + x_42 = lean_box(0); +} +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_34); +if (lean_is_scalar(x_42)) { + x_44 = lean_alloc_ctor(0, 2, 0); +} else { + x_44 = x_42; +} +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_41); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_34); +x_45 = lean_ctor_get(x_39, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_47 = x_39; +} else { + lean_dec_ref(x_39); + x_47 = lean_box(0); +} +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_47; +} +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_13); +if (x_49 == 0) +{ +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_13, 0); +lean_dec(x_50); +x_51 = !lean_is_exclusive(x_14); +if (x_51 == 0) +{ +return x_13; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_14, 0); +x_53 = lean_ctor_get(x_14, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_14); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_13, 0, x_54); +return x_13; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_55 = lean_ctor_get(x_13, 1); +lean_inc(x_55); +lean_dec(x_13); +x_56 = lean_ctor_get(x_14, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_14, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_58 = x_14; +} else { + lean_dec_ref(x_14); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); +} else { + x_59 = x_58; +} +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_55); +return x_60; +} +} +} +else +{ +uint8_t x_61; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_61 = !lean_is_exclusive(x_13); +if (x_61 == 0) +{ +return x_13; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_13, 0); +x_63 = lean_ctor_get(x_13, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_13); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +} LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at_Lake_Module_recParseImports___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -7626,51 +13547,35 @@ lean_dec(x_1); return x_13; } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__9___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) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_2); lean_dec(x_2); -x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__9(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8___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) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lake_Job_mapM___at_Lake_Module_recParseImports___spec__8(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___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) { _start: { lean_object* x_8; x_8 = l_Lake_Module_recParseImports___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Lake_Module_recParseImports___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Lake_Module_recParseImports___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} LEAN_EXPORT uint8_t l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___lambda__1(lean_object* x_1) { _start: { @@ -7704,7 +13609,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; x_6 = lean_array_uget(x_1, x_2); -x_7 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_7 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_8 = lean_string_append(x_7, x_4); lean_dec(x_4); x_9 = lean_string_append(x_8, x_7); @@ -7778,7 +13683,7 @@ static lean_object* _init_l_Lake_stdFormat___at_Lake_Module_importsFacetConfig__ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_1 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -7787,7 +13692,7 @@ static lean_object* _init_l_Lake_stdFormat___at_Lake_Module_importsFacetConfig__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_1 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_2 = lean_unsigned_to_nat(0u); x_3 = l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___closed__1; x_4 = lean_alloc_ctor(0, 3, 0); @@ -7832,7 +13737,7 @@ static lean_object* _init_l_Lake_stdFormat___at_Lake_Module_importsFacetConfig__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_1 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_2 = lean_unsigned_to_nat(0u); x_3 = l_Lake_stdFormat___at_Lake_Module_importsFacetConfig___spec__1___closed__5; x_4 = lean_string_utf8_extract(x_1, x_2, x_3); @@ -7874,7 +13779,7 @@ size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13 x_9 = 0; x_10 = lean_usize_of_nat(x_3); lean_dec(x_3); -x_11 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_11 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_12 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2(x_2, x_9, x_10, x_11); lean_dec(x_2); x_13 = lean_string_utf8_byte_size(x_12); @@ -8331,7 +14236,7 @@ return x_24; else { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; -x_25 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_25 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_26 = lean_string_append(x_25, x_3); x_27 = l_Array_foldlMUnsafe_fold___at_Lake_collectImportsAux___spec__4___lambda__1___closed__1; x_28 = lean_string_append(x_26, x_27); @@ -8617,7 +14522,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; -x_2 = l_Lake_Module_recParseImports___closed__4; +x_2 = l_Lake_Module_recFetchInput___closed__4; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -8659,7 +14564,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; x_1 = l_Lake_collectImportsAux___closed__4; x_2 = lean_box(0); -x_3 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_3 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_4 = 0; x_5 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -8735,7 +14640,7 @@ x_28 = l_Task_Priority_default; x_29 = 1; x_30 = lean_task_map(x_27, x_26, x_28, x_29); x_31 = lean_box(0); -x_32 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_32 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_33 = 0; x_34 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_34, 0, x_30); @@ -8801,7 +14706,7 @@ x_49 = l_Task_Priority_default; x_50 = 1; x_51 = lean_task_map(x_48, x_47, x_49, x_50); x_52 = lean_box(0); -x_53 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_53 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_54 = 0; x_55 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_55, 0, x_51); @@ -8893,7 +14798,7 @@ x_75 = l_Task_Priority_default; x_76 = 1; x_77 = lean_task_map(x_74, x_73, x_75, x_76); x_78 = lean_box(0); -x_79 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_79 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_80 = 0; x_81 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_81, 0, x_77); @@ -10525,7 +16430,7 @@ LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recCompute _start: { lean_object* x_9; lean_object* x_10; -x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_10 = lean_st_mk_ref(x_9, x_8); if (lean_obj_tag(x_10) == 0) { @@ -10589,7 +16494,7 @@ if (x_29 == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_28); -x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_31 = l_panic___at_Lean_Name_getString_x21___spec__1(x_30); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); @@ -10627,7 +16532,7 @@ if (x_38 == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_dec(x_37); -x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_40 = l_panic___at_Lean_Name_getString_x21___spec__1(x_39); x_41 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_41, 0, x_40); @@ -10713,7 +16618,7 @@ if (x_57 == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_dec(x_56); -x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_59 = l_panic___at_Lean_Name_getString_x21___spec__1(x_58); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_59); @@ -10911,7 +16816,7 @@ if (x_99 == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_dec(x_98); -x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_101 = l_panic___at_Lean_Name_getString_x21___spec__1(x_100); x_102 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_102, 0, x_101); @@ -10949,7 +16854,7 @@ if (x_108 == 0) { lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_107); -x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_110 = l_panic___at_Lean_Name_getString_x21___spec__1(x_109); x_111 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_111, 0, x_110); @@ -11035,7 +16940,7 @@ if (x_127 == 0) { lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_dec(x_126); -x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_129 = l_panic___at_Lean_Name_getString_x21___spec__1(x_128); x_130 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_130, 0, x_129); @@ -11292,10 +17197,10 @@ x_104 = lean_string_utf8_extract(x_97, x_102, x_103); lean_dec(x_103); lean_dec(x_102); lean_dec(x_97); -x_105 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_105 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_106 = lean_string_append(x_105, x_104); lean_dec(x_104); -x_107 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_107 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_108 = lean_string_append(x_106, x_107); x_109 = 1; x_110 = lean_alloc_ctor(0, 1, 1); @@ -11303,7 +17208,7 @@ lean_ctor_set(x_110, 0, x_108); lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_109); x_111 = lean_array_push(x_96, x_110); x_112 = lean_box(0); -x_113 = l_Lake_Module_recParseImports___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); +x_113 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -11323,7 +17228,7 @@ lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_99); lean_dec(x_97); x_116 = lean_box(0); -x_117 = l_Lake_Module_recParseImports___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); +x_117 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -11565,7 +17470,7 @@ x_62 = l_Array_extract___rarg(x_58, x_8, x_61); lean_dec(x_61); lean_dec(x_58); x_63 = 0; -x_64 = l_Lake_Module_recParseImports___closed__3; +x_64 = l_Lake_Module_recFetchInput___closed__3; x_65 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_65, 0, x_62); lean_ctor_set(x_65, 1, x_64); @@ -11575,7 +17480,7 @@ lean_ctor_set(x_9, 1, x_65); lean_ctor_set(x_9, 0, x_66); x_67 = lean_task_pure(x_9); x_68 = lean_box(0); -x_69 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_69 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_70 = 0; x_71 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_71, 0, x_67); @@ -11603,7 +17508,7 @@ x_77 = l_Array_extract___rarg(x_74, x_8, x_76); lean_dec(x_76); lean_dec(x_74); x_78 = 0; -x_79 = l_Lake_Module_recParseImports___closed__3; +x_79 = l_Lake_Module_recFetchInput___closed__3; x_80 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_80, 0, x_77); lean_ctor_set(x_80, 1, x_79); @@ -11614,7 +17519,7 @@ lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); x_83 = lean_task_pure(x_82); x_84 = lean_box(0); -x_85 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_85 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_86 = 0; x_87 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_87, 0, x_83); @@ -12040,7 +17945,7 @@ lean_dec(x_22); x_24 = lean_ctor_get(x_1, 1); lean_inc(x_24); lean_dec(x_1); -x_25 = l_Lake_Module_recParseImports___closed__1; +x_25 = l_Lake_Module_recFetchInput___closed__1; x_26 = l_Lean_modToFilePath(x_23, x_24, x_25); lean_dec(x_24); lean_dec(x_23); @@ -12106,7 +18011,7 @@ x_45 = l_Task_Priority_default; x_46 = 1; x_47 = lean_task_map(x_44, x_43, x_45, x_46); x_48 = lean_box(0); -x_49 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_49 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_50 = 0; x_51 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_51, 0, x_47); @@ -12172,7 +18077,7 @@ x_66 = l_Task_Priority_default; x_67 = 1; x_68 = lean_task_map(x_65, x_64, x_66, x_67); x_69 = lean_box(0); -x_70 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_70 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_71 = 0; x_72 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_72, 0, x_68); @@ -12264,7 +18169,7 @@ x_92 = l_Task_Priority_default; x_93 = 1; x_94 = lean_task_map(x_91, x_90, x_92, x_93); x_95 = lean_box(0); -x_96 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_96 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_97 = 0; x_98 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_98, 0, x_94); @@ -12491,7 +18396,7 @@ if (x_143 == 0) lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; x_144 = lean_ctor_get(x_141, 1); x_145 = 0; -x_146 = l_Lake_Module_recParseImports___closed__3; +x_146 = l_Lake_Module_recFetchInput___closed__3; x_147 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_147, 0, x_144); lean_ctor_set(x_147, 1, x_146); @@ -12510,7 +18415,7 @@ lean_inc(x_149); lean_inc(x_148); lean_dec(x_141); x_150 = 0; -x_151 = l_Lake_Module_recParseImports___closed__3; +x_151 = l_Lake_Module_recFetchInput___closed__3; x_152 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_152, 0, x_149); lean_ctor_set(x_152, 1, x_151); @@ -12532,7 +18437,7 @@ if (x_154 == 0) lean_object* x_155; uint8_t x_156; lean_object* x_157; lean_object* x_158; x_155 = lean_ctor_get(x_141, 1); x_156 = 0; -x_157 = l_Lake_Module_recParseImports___closed__3; +x_157 = l_Lake_Module_recFetchInput___closed__3; x_158 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_158, 0, x_155); lean_ctor_set(x_158, 1, x_157); @@ -12551,7 +18456,7 @@ lean_inc(x_160); lean_inc(x_159); lean_dec(x_141); x_161 = 0; -x_162 = l_Lake_Module_recParseImports___closed__3; +x_162 = l_Lake_Module_recFetchInput___closed__3; x_163 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_163, 0, x_160); lean_ctor_set(x_163, 1, x_162); @@ -13322,7 +19227,7 @@ x_27 = l_Task_Priority_default; x_28 = 1; x_29 = lean_task_map(x_26, x_25, x_27, x_28); x_30 = lean_box(0); -x_31 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_32 = 0; x_33 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_33, 0, x_29); @@ -13388,7 +19293,7 @@ x_48 = l_Task_Priority_default; x_49 = 1; x_50 = lean_task_map(x_47, x_46, x_48, x_49); x_51 = lean_box(0); -x_52 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_52 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_53 = 0; x_54 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_54, 0, x_50); @@ -13480,7 +19385,7 @@ x_74 = l_Task_Priority_default; x_75 = 1; x_76 = lean_task_map(x_73, x_72, x_74, x_75); x_77 = lean_box(0); -x_78 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_78 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_79 = 0; x_80 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_80, 0, x_76); @@ -14050,7 +19955,7 @@ lean_dec(x_22); x_24 = lean_ctor_get(x_1, 1); lean_inc(x_24); lean_dec(x_1); -x_25 = l_Lake_Module_recParseImports___closed__1; +x_25 = l_Lake_Module_recFetchInput___closed__1; x_26 = l_Lean_modToFilePath(x_23, x_24, x_25); lean_dec(x_24); lean_dec(x_23); @@ -14116,7 +20021,7 @@ x_45 = l_Task_Priority_default; x_46 = 1; x_47 = lean_task_map(x_44, x_43, x_45, x_46); x_48 = lean_box(0); -x_49 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_49 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_50 = 0; x_51 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_51, 0, x_47); @@ -14182,7 +20087,7 @@ x_66 = l_Task_Priority_default; x_67 = 1; x_68 = lean_task_map(x_65, x_64, x_66, x_67); x_69 = lean_box(0); -x_70 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_70 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_71 = 0; x_72 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_72, 0, x_68); @@ -14274,7 +20179,7 @@ x_92 = l_Task_Priority_default; x_93 = 1; x_94 = lean_task_map(x_91, x_90, x_92, x_93); x_95 = lean_box(0); -x_96 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_96 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_97 = 0; x_98 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_98, 0, x_94); @@ -14501,7 +20406,7 @@ if (x_143 == 0) lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; x_144 = lean_ctor_get(x_141, 1); x_145 = 0; -x_146 = l_Lake_Module_recParseImports___closed__3; +x_146 = l_Lake_Module_recFetchInput___closed__3; x_147 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_147, 0, x_144); lean_ctor_set(x_147, 1, x_146); @@ -14520,7 +20425,7 @@ lean_inc(x_149); lean_inc(x_148); lean_dec(x_141); x_150 = 0; -x_151 = l_Lake_Module_recParseImports___closed__3; +x_151 = l_Lake_Module_recFetchInput___closed__3; x_152 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_152, 0, x_149); lean_ctor_set(x_152, 1, x_151); @@ -14542,7 +20447,7 @@ if (x_154 == 0) lean_object* x_155; uint8_t x_156; lean_object* x_157; lean_object* x_158; x_155 = lean_ctor_get(x_141, 1); x_156 = 0; -x_157 = l_Lake_Module_recParseImports___closed__3; +x_157 = l_Lake_Module_recFetchInput___closed__3; x_158 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_158, 0, x_155); lean_ctor_set(x_158, 1, x_157); @@ -14561,7 +20466,7 @@ lean_inc(x_160); lean_inc(x_159); lean_dec(x_141); x_161 = 0; -x_162 = l_Lake_Module_recParseImports___closed__3; +x_162 = l_Lake_Module_recFetchInput___closed__3; x_163 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_163, 0, x_160); lean_ctor_set(x_163, 1, x_162); @@ -14654,764 +20559,6 @@ x_1 = l_Lake_Module_precompileImportsFacetConfig___closed__2; return x_1; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; -x_6 = lean_usize_dec_eq(x_3, x_4); -if (x_6 == 0) -{ -lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_array_uget(x_2, x_3); -x_8 = 1; -x_9 = lean_usize_add(x_3, x_8); -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_10); -x_11 = lean_ctor_get(x_7, 2); -lean_inc(x_11); -x_12 = lean_ctor_get(x_7, 3); -lean_inc(x_12); -lean_dec(x_7); -x_13 = l_Lake_ExternLib_keyword; -x_14 = lean_name_eq(x_11, x_13); -lean_dec(x_11); -if (x_14 == 0) -{ -lean_dec(x_12); -lean_dec(x_10); -x_3 = x_9; -goto _start; -} -else -{ -lean_object* x_16; lean_object* x_17; -lean_inc(x_1); -x_16 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_10); -lean_ctor_set(x_16, 2, x_12); -x_17 = lean_array_push(x_5, x_16); -x_3 = x_9; -x_5 = x_17; -goto _start; -} -} -else -{ -lean_dec(x_1); -return x_5; -} -} -} -static size_t _init_l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___closed__1() { -_start: -{ -lean_object* x_1; size_t x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -x_2 = lean_array_size(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2(lean_object* x_1, size_t x_2, size_t 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) { -_start: -{ -lean_object* x_11; lean_object* x_12; uint8_t x_25; -x_25 = lean_usize_dec_eq(x_2, x_3); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; size_t x_31; -x_26 = lean_array_uget(x_1, x_2); -x_27 = lean_ctor_get(x_26, 10); -lean_inc(x_27); -x_28 = lean_array_get_size(x_27); -x_29 = lean_unsigned_to_nat(0u); -x_30 = lean_nat_dec_lt(x_29, x_28); -x_31 = 0; -if (x_30 == 0) -{ -size_t x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_26); -x_32 = l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___closed__1; -x_33 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_34 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_32, x_31, x_33, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; uint8_t x_37; -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = !lean_is_exclusive(x_35); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_35, 0); -x_39 = l_Array_append___rarg(x_4, x_38); -lean_dec(x_38); -lean_ctor_set(x_35, 0, x_39); -x_11 = x_35; -x_12 = x_36; -goto block_24; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_35, 0); -x_41 = lean_ctor_get(x_35, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_35); -x_42 = l_Array_append___rarg(x_4, x_40); -lean_dec(x_40); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_11 = x_43; -x_12 = x_36; -goto block_24; -} -} -else -{ -lean_object* x_44; uint8_t x_45; -lean_dec(x_4); -x_44 = lean_ctor_get(x_34, 1); -lean_inc(x_44); -lean_dec(x_34); -x_45 = !lean_is_exclusive(x_35); -if (x_45 == 0) -{ -x_11 = x_35; -x_12 = x_44; -goto block_24; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_35, 0); -x_47 = lean_ctor_get(x_35, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_35); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -x_11 = x_48; -x_12 = x_44; -goto block_24; -} -} -} -else -{ -uint8_t x_49; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_49 = !lean_is_exclusive(x_34); -if (x_49 == 0) -{ -return x_34; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_34, 0); -x_51 = lean_ctor_get(x_34, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_34); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -} -else -{ -uint8_t x_53; -x_53 = lean_nat_dec_le(x_28, x_28); -if (x_53 == 0) -{ -size_t x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_26); -x_54 = l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___closed__1; -x_55 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_56 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_54, x_31, x_55, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; uint8_t x_59; -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = !lean_is_exclusive(x_57); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_57, 0); -x_61 = l_Array_append___rarg(x_4, x_60); -lean_dec(x_60); -lean_ctor_set(x_57, 0, x_61); -x_11 = x_57; -x_12 = x_58; -goto block_24; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = lean_ctor_get(x_57, 0); -x_63 = lean_ctor_get(x_57, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_57); -x_64 = l_Array_append___rarg(x_4, x_62); -lean_dec(x_62); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_63); -x_11 = x_65; -x_12 = x_58; -goto block_24; -} -} -else -{ -lean_object* x_66; uint8_t x_67; -lean_dec(x_4); -x_66 = lean_ctor_get(x_56, 1); -lean_inc(x_66); -lean_dec(x_56); -x_67 = !lean_is_exclusive(x_57); -if (x_67 == 0) -{ -x_11 = x_57; -x_12 = x_66; -goto block_24; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_57, 0); -x_69 = lean_ctor_get(x_57, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_57); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -x_11 = x_70; -x_12 = x_66; -goto block_24; -} -} -} -else -{ -uint8_t x_71; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_71 = !lean_is_exclusive(x_56); -if (x_71 == 0) -{ -return x_56; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_56, 0); -x_73 = lean_ctor_get(x_56, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_56); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -} -else -{ -size_t x_75; lean_object* x_76; lean_object* x_77; size_t x_78; lean_object* x_79; -x_75 = lean_usize_of_nat(x_28); -lean_dec(x_28); -x_76 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -x_77 = l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__1(x_26, x_27, x_31, x_75, x_76); -lean_dec(x_27); -x_78 = lean_array_size(x_77); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_79 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_78, x_31, x_77, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; uint8_t x_82; -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = !lean_is_exclusive(x_80); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_80, 0); -x_84 = l_Array_append___rarg(x_4, x_83); -lean_dec(x_83); -lean_ctor_set(x_80, 0, x_84); -x_11 = x_80; -x_12 = x_81; -goto block_24; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_80, 0); -x_86 = lean_ctor_get(x_80, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_80); -x_87 = l_Array_append___rarg(x_4, x_85); -lean_dec(x_85); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -x_11 = x_88; -x_12 = x_81; -goto block_24; -} -} -else -{ -lean_object* x_89; uint8_t x_90; -lean_dec(x_4); -x_89 = lean_ctor_get(x_79, 1); -lean_inc(x_89); -lean_dec(x_79); -x_90 = !lean_is_exclusive(x_80); -if (x_90 == 0) -{ -x_11 = x_80; -x_12 = x_89; -goto block_24; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_80, 0); -x_92 = lean_ctor_get(x_80, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_80); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -x_11 = x_93; -x_12 = x_89; -goto block_24; -} -} -} -else -{ -uint8_t x_94; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_94 = !lean_is_exclusive(x_79); -if (x_94 == 0) -{ -return x_79; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_79, 0); -x_96 = lean_ctor_get(x_79, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_79); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; -} -} -} -} -} -else -{ -lean_object* x_98; lean_object* x_99; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_4); -lean_ctor_set(x_98, 1, x_9); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_10); -return x_99; -} -block_24: -{ -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec(x_11); -x_15 = 1; -x_16 = lean_usize_add(x_2, x_15); -x_2 = x_16; -x_4 = x_13; -x_9 = x_14; -x_10 = x_12; -goto _start; -} -else -{ -uint8_t x_18; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_18 = !lean_is_exclusive(x_11); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_12); -return x_19; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_11); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_12); -return x_23; -} -} -} -} -} -static lean_object* _init_l_Lake_fetchExternLibs___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 12, 12); -return x_1; -} -} -static lean_object* _init_l_Lake_fetchExternLibs___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_recParseImports___lambda__2___closed__1; -x_2 = l_Lake_fetchExternLibs___closed__1; -x_3 = l_Lake_Job_collectArray___rarg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lake_fetchExternLibs(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; uint8_t x_10; -x_8 = lean_array_get_size(x_1); -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_lt(x_9, x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_11 = l_Lake_fetchExternLibs___closed__2; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_6); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_7); -return x_13; -} -else -{ -uint8_t x_14; -x_14 = lean_nat_dec_le(x_8, x_8); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_15 = l_Lake_fetchExternLibs___closed__2; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_6); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_7); -return x_17; -} -else -{ -size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; -x_18 = 0; -x_19 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_20 = l_Lake_Module_recParseImports___lambda__2___closed__1; -x_21 = l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2(x_1, x_18, x_19, x_20, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) -{ -uint8_t x_23; -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_21, 0); -lean_dec(x_24); -x_25 = !lean_is_exclusive(x_22); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 0); -x_27 = l_Lake_fetchExternLibs___closed__1; -x_28 = l_Lake_Job_collectArray___rarg(x_26, x_27); -lean_dec(x_26); -lean_ctor_set(x_22, 0, x_28); -return x_21; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_29 = lean_ctor_get(x_22, 0); -x_30 = lean_ctor_get(x_22, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_22); -x_31 = l_Lake_fetchExternLibs___closed__1; -x_32 = l_Lake_Job_collectArray___rarg(x_29, x_31); -lean_dec(x_29); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_30); -lean_ctor_set(x_21, 0, x_33); -return x_21; -} -} -else -{ -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; -x_34 = lean_ctor_get(x_21, 1); -lean_inc(x_34); -lean_dec(x_21); -x_35 = lean_ctor_get(x_22, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_22, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - lean_ctor_release(x_22, 1); - x_37 = x_22; -} else { - lean_dec_ref(x_22); - x_37 = lean_box(0); -} -x_38 = l_Lake_fetchExternLibs___closed__1; -x_39 = l_Lake_Job_collectArray___rarg(x_35, x_38); -lean_dec(x_35); -if (lean_is_scalar(x_37)) { - x_40 = lean_alloc_ctor(0, 2, 0); -} else { - x_40 = x_37; -} -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_34); -return x_41; -} -} -else -{ -uint8_t x_42; -x_42 = !lean_is_exclusive(x_21); -if (x_42 == 0) -{ -lean_object* x_43; uint8_t x_44; -x_43 = lean_ctor_get(x_21, 0); -lean_dec(x_43); -x_44 = !lean_is_exclusive(x_22); -if (x_44 == 0) -{ -return x_21; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_22, 0); -x_46 = lean_ctor_get(x_22, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_22); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -lean_ctor_set(x_21, 0, x_47); -return x_21; -} -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_48 = lean_ctor_get(x_21, 1); -lean_inc(x_48); -lean_dec(x_21); -x_49 = lean_ctor_get(x_22, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_22, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - lean_ctor_release(x_22, 1); - x_51 = x_22; -} else { - lean_dec_ref(x_22); - x_51 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(1, 2, 0); -} else { - x_52 = x_51; -} -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_48); -return x_53; -} -} -} -else -{ -uint8_t x_54; -x_54 = !lean_is_exclusive(x_21); -if (x_54 == 0) -{ -return x_21; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_21, 0); -x_56 = lean_ctor_get(x_21, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_21); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -size_t x_6; size_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__1(x_1, x_2, x_6, x_7, x_5); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__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) { -_start: -{ -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_12 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_13 = l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lake_fetchExternLibs___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_fetchExternLibs(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; -} -} static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1___closed__1() { _start: { @@ -17587,7 +22734,7 @@ x_23 = l_Lake_formatCycle___at___private_Lake_Build_Common_0__Lake_mkLinkOrder__ x_24 = l___private_Lake_Build_Module_0__Lake_mkLoadOrder___closed__2; x_25 = lean_string_append(x_24, x_23); lean_dec(x_23); -x_26 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_26 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_27 = lean_string_append(x_25, x_26); x_28 = 3; x_29 = lean_alloc_ctor(0, 1, 1); @@ -17668,7 +22815,7 @@ lean_dec(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_computeModuleDeps___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_Build_Module_0__Lake_computeModuleDeps___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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: { uint8_t x_13; @@ -17760,7 +22907,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lake_computeModuleDeps___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_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps___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) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -17776,7 +22923,7 @@ lean_ctor_set(x_12, 1, x_9); return x_12; } } -LEAN_EXPORT lean_object* l_Lake_computeModuleDeps(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_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps(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) { _start: { lean_object* x_11; lean_object* x_12; @@ -17801,7 +22948,7 @@ lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_4); x_19 = lean_array_size(x_14); x_20 = 0; -x_21 = l_Array_forIn_x27Unsafe_loop___at_Lake_computeModuleDeps___spec__1(x_14, x_17, x_14, x_19, x_20, x_18, x_5, x_6, x_7, x_8, x_15, x_13); +x_21 = l_Array_forIn_x27Unsafe_loop___at___private_Lake_Build_Module_0__Lake_computeModuleDeps___spec__1(x_14, x_17, x_14, x_19, x_20, x_18, x_5, x_6, x_7, x_8, x_15, x_13); lean_dec(x_14); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); @@ -17823,7 +22970,7 @@ if (x_37 == 0) { lean_object* x_38; lean_object* x_39; x_38 = lean_box(0); -x_39 = l_Lake_computeModuleDeps___lambda__1(x_26, x_27, x_38, x_5, x_6, x_7, x_8, x_25, x_24); +x_39 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps___lambda__1(x_26, x_27, x_38, x_5, x_6, x_7, x_8, x_25, x_24); lean_dec(x_8); return x_39; } @@ -17853,7 +23000,7 @@ else { lean_object* x_44; lean_object* x_45; x_44 = lean_box(0); -x_45 = l_Lake_computeModuleDeps___lambda__1(x_26, x_27, x_44, x_5, x_6, x_7, x_8, x_25, x_24); +x_45 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps___lambda__1(x_26, x_27, x_44, x_5, x_6, x_7, x_8, x_25, x_24); lean_dec(x_8); return x_45; } @@ -17876,7 +23023,7 @@ lean_inc(x_32); lean_dec(x_31); x_33 = lean_array_push(x_27, x_32); x_34 = lean_box(0); -x_35 = l_Lake_computeModuleDeps___lambda__1(x_26, x_33, x_34, x_5, x_6, x_7, x_8, x_25, x_24); +x_35 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps___lambda__1(x_26, x_33, x_34, x_5, x_6, x_7, x_8, x_25, x_24); lean_dec(x_8); return x_35; } @@ -17946,7 +23093,7 @@ return x_57; } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lake_computeModuleDeps___spec__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) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_Build_Module_0__Lake_computeModuleDeps___spec__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: { size_t x_13; size_t x_14; lean_object* x_15; @@ -17954,7 +23101,7 @@ x_13 = lean_unbox_usize(x_4); lean_dec(x_4); x_14 = lean_unbox_usize(x_5); lean_dec(x_5); -x_15 = l_Array_forIn_x27Unsafe_loop___at_Lake_computeModuleDeps___spec__1(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l_Array_forIn_x27Unsafe_loop___at___private_Lake_Build_Module_0__Lake_computeModuleDeps___spec__1(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17965,11 +23112,11 @@ lean_dec(x_1); return x_15; } } -LEAN_EXPORT lean_object* l_Lake_computeModuleDeps___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_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps___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) { _start: { lean_object* x_10; -x_10 = l_Lake_computeModuleDeps___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -17978,11 +23125,11 @@ lean_dec(x_3); return x_10; } } -LEAN_EXPORT lean_object* l_Lake_computeModuleDeps___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_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_computeModuleDeps___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) { _start: { lean_object* x_11; -x_11 = l_Lake_computeModuleDeps(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -17991,7 +23138,7 @@ lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -18010,7 +23157,7 @@ x_14 = lean_apply_6(x_3, x_13, x_4, x_5, x_6, x_7, x_8); return x_14; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___closed__1() { +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___closed__1() { _start: { lean_object* x_1; @@ -18018,7 +23165,7 @@ x_1 = lean_mk_string_unchecked(": module imports itself", 23, 23); return x_1; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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: { uint8_t x_13; @@ -18059,7 +23206,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_23 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___lambda__1(x_16, x_22, x_7, x_8, x_9, x_10, x_11, x_12); +x_23 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___lambda__1(x_16, x_22, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; @@ -18204,13 +23351,13 @@ lean_dec(x_53); x_55 = l_System_FilePath_normalize(x_54); x_56 = l_Lake_joinRelative(x_52, x_55); lean_dec(x_55); -x_57 = l_Lake_Module_recParseImports___closed__1; +x_57 = l_Lake_Module_recFetchInput___closed__1; x_58 = l_Lean_modToFilePath(x_56, x_20, x_57); lean_dec(x_56); -x_59 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_59 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_60 = lean_string_append(x_59, x_58); lean_dec(x_58); -x_61 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___closed__1; +x_61 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___closed__1; x_62 = lean_string_append(x_60, x_61); x_63 = 3; x_64 = lean_alloc_ctor(0, 1, 1); @@ -18222,7 +23369,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_67 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___lambda__1(x_16, x_66, x_7, x_8, x_9, x_10, x_65, x_12); +x_67 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___lambda__1(x_16, x_66, x_7, x_8, x_9, x_10, x_65, x_12); if (lean_obj_tag(x_67) == 0) { lean_object* x_68; @@ -18349,7 +23496,7 @@ return x_91; } } } -static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__1() { +static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__1() { _start: { lean_object* x_1; @@ -18357,7 +23504,7 @@ x_1 = lean_mk_string_unchecked("type mismtach in target '", 25, 25); return x_1; } } -static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__2() { +static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__2() { _start: { lean_object* x_1; @@ -18365,7 +23512,7 @@ x_1 = lean_mk_string_unchecked("': expected '", 13, 13); return x_1; } } -static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__3() { +static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; @@ -18376,7 +23523,7 @@ x_4 = l_Lean_Name_toString(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__4() { +static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__4() { _start: { lean_object* x_1; @@ -18384,7 +23531,7 @@ x_1 = lean_mk_string_unchecked("', got ", 7, 7); return x_1; } } -static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__5() { +static lean_object* _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__5() { _start: { lean_object* x_1; @@ -18392,7 +23539,7 @@ x_1 = lean_mk_string_unchecked("unknown", 7, 7); return x_1; } } -LEAN_EXPORT lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__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_EXPORT lean_object* l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__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) { _start: { uint8_t x_9; lean_object* x_10; @@ -18435,14 +23582,14 @@ uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_obje lean_dec(x_18); x_22 = l_Lean_Name_isAnonymous(x_19); x_23 = l_Lake_PartialBuildKey_toString(x_2); -x_24 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__1; +x_24 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__1; x_25 = lean_string_append(x_24, x_23); lean_dec(x_23); -x_26 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__2; +x_26 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__2; x_27 = lean_string_append(x_25, x_26); -x_28 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__3; +x_28 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__3; x_29 = lean_string_append(x_27, x_28); -x_30 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__4; +x_30 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__4; x_31 = lean_string_append(x_29, x_30); if (x_22 == 0) { @@ -18455,7 +23602,7 @@ lean_dec(x_33); x_36 = lean_string_append(x_35, x_34); x_37 = lean_string_append(x_31, x_36); lean_dec(x_36); -x_38 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_38 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_39 = lean_string_append(x_37, x_38); x_40 = 3; x_41 = lean_alloc_ctor(0, 1, 1); @@ -18472,9 +23619,9 @@ else { lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_dec(x_19); -x_44 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__5; +x_44 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__5; x_45 = lean_string_append(x_31, x_44); -x_46 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_46 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_47 = lean_string_append(x_45, x_46); x_48 = 3; x_49 = lean_alloc_ctor(0, 1, 1); @@ -18515,14 +23662,14 @@ uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_obje lean_dec(x_53); x_57 = l_Lean_Name_isAnonymous(x_54); x_58 = l_Lake_PartialBuildKey_toString(x_2); -x_59 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__1; +x_59 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__1; x_60 = lean_string_append(x_59, x_58); lean_dec(x_58); -x_61 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__2; +x_61 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__2; x_62 = lean_string_append(x_60, x_61); -x_63 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__3; +x_63 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__3; x_64 = lean_string_append(x_62, x_63); -x_65 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__4; +x_65 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__4; x_66 = lean_string_append(x_64, x_65); if (x_57 == 0) { @@ -18535,7 +23682,7 @@ lean_dec(x_68); x_71 = lean_string_append(x_70, x_69); x_72 = lean_string_append(x_66, x_71); lean_dec(x_71); -x_73 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_73 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_74 = lean_string_append(x_72, x_73); x_75 = 3; x_76 = lean_alloc_ctor(0, 1, 1); @@ -18553,9 +23700,9 @@ else { lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_dec(x_54); -x_80 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__5; +x_80 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__5; x_81 = lean_string_append(x_66, x_80); -x_82 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_82 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_83 = lean_string_append(x_81, x_82); x_84 = 3; x_85 = lean_alloc_ctor(0, 1, 1); @@ -18612,14 +23759,14 @@ uint8_t x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_obj lean_dec(x_93); x_97 = l_Lean_Name_isAnonymous(x_94); x_98 = l_Lake_PartialBuildKey_toString(x_2); -x_99 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__1; +x_99 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__1; x_100 = lean_string_append(x_99, x_98); lean_dec(x_98); -x_101 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__2; +x_101 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__2; x_102 = lean_string_append(x_100, x_101); -x_103 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__3; +x_103 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__3; x_104 = lean_string_append(x_102, x_103); -x_105 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__4; +x_105 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__4; x_106 = lean_string_append(x_104, x_105); if (x_97 == 0) { @@ -18632,7 +23779,7 @@ lean_dec(x_108); x_111 = lean_string_append(x_110, x_109); x_112 = lean_string_append(x_106, x_111); lean_dec(x_111); -x_113 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_113 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_114 = lean_string_append(x_112, x_113); x_115 = 3; x_116 = lean_alloc_ctor(0, 1, 1); @@ -18657,9 +23804,9 @@ else { lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_dec(x_94); -x_121 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__5; +x_121 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__5; x_122 = lean_string_append(x_106, x_121); -x_123 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_123 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_124 = lean_string_append(x_122, x_123); x_125 = 3; x_126 = lean_alloc_ctor(0, 1, 1); @@ -18787,7 +23934,7 @@ return x_148; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__4(lean_object* x_1, size_t x_2, size_t 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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__4(lean_object* x_1, size_t x_2, size_t 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) { _start: { uint8_t x_11; @@ -18819,7 +23966,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_17 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3(x_1, x_14, x_5, x_6, x_7, x_8, x_9, x_10); +x_17 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3(x_1, x_14, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; @@ -18943,13 +24090,13 @@ return x_41; } } } -LEAN_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at_Lake_Module_recBuildDeps___spec__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_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at_Lake_Module_recFetchSetup___spec__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) { _start: { size_t x_10; size_t x_11; lean_object* x_12; x_10 = lean_array_size(x_2); x_11 = 0; -x_12 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__4(x_1, x_10, x_11, x_2, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__4(x_1, x_10, x_11, x_2, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; @@ -19111,7 +24258,34 @@ return x_45; } } } -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__7(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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = lean_ctor_get(x_5, 0); +lean_inc(x_8); +lean_dec(x_5); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_7, x_2, x_8); +x_2 = x_10; +x_3 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__8(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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -19941,7 +25115,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__8(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_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__9(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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -20771,7 +25945,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__9(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_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__10(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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -21601,7 +26775,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__6(lean_object* x_1, uint8_t 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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__7(lean_object* x_1, uint8_t 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) { _start: { uint8_t x_9; @@ -21611,7 +26785,7 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); -x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_13 = lean_st_mk_ref(x_12, x_8); if (lean_obj_tag(x_13) == 0) { @@ -21636,10 +26810,10 @@ x_20 = l_IO_FS_Stream_ofBuffer(x_17); if (x_2 == 0) { lean_object* x_21; lean_object* x_22; -x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__7), 8, 2); +x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__8), 8, 2); lean_closure_set(x_21, 0, x_20); lean_closure_set(x_21, 1, x_1); -x_22 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__8(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); +x_22 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__9(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; @@ -21684,7 +26858,7 @@ if (x_36 == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_35); -x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_38 = l_panic___at_Lean_Name_getString_x21___spec__1(x_37); x_39 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_39, 0, x_38); @@ -21722,7 +26896,7 @@ if (x_45 == 0) { lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_dec(x_44); -x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_47 = l_panic___at_Lean_Name_getString_x21___spec__1(x_46); x_48 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_48, 0, x_47); @@ -21815,7 +26989,7 @@ if (x_66 == 0) { lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_65); -x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_68 = l_panic___at_Lean_Name_getString_x21___spec__1(x_67); x_69 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_69, 0, x_68); @@ -21933,7 +27107,7 @@ if (x_89 == 0) { lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec(x_88); -x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_91 = l_panic___at_Lean_Name_getString_x21___spec__1(x_90); x_92 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_92, 0, x_91); @@ -22091,13 +27265,13 @@ else { lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_inc(x_20); -x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__9), 8, 2); +x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__10), 8, 2); lean_closure_set(x_119, 0, x_20); lean_closure_set(x_119, 1, x_1); -x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__7), 8, 2); +x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__8), 8, 2); lean_closure_set(x_120, 0, x_20); lean_closure_set(x_120, 1, x_119); -x_121 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__8(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); +x_121 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__9(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_121) == 0) { lean_object* x_122; @@ -22142,7 +27316,7 @@ if (x_135 == 0) { lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_dec(x_134); -x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_137 = l_panic___at_Lean_Name_getString_x21___spec__1(x_136); x_138 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_138, 0, x_137); @@ -22180,7 +27354,7 @@ if (x_144 == 0) { lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_dec(x_143); -x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_146 = l_panic___at_Lean_Name_getString_x21___spec__1(x_145); x_147 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_147, 0, x_146); @@ -22273,7 +27447,7 @@ if (x_165 == 0) { lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_dec(x_164); -x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_167 = l_panic___at_Lean_Name_getString_x21___spec__1(x_166); x_168 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_168, 0, x_167); @@ -22391,7 +27565,7 @@ if (x_188 == 0) { lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_dec(x_187); -x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_190 = l_panic___at_Lean_Name_getString_x21___spec__1(x_189); x_191 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_191, 0, x_190); @@ -22618,7 +27792,7 @@ x_228 = lean_ctor_get(x_7, 1); lean_inc(x_228); lean_inc(x_226); lean_dec(x_7); -x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_230 = lean_st_mk_ref(x_229, x_8); if (lean_obj_tag(x_230) == 0) { @@ -22647,10 +27821,10 @@ x_238 = l_IO_FS_Stream_ofBuffer(x_234); if (x_2 == 0) { lean_object* x_239; lean_object* x_240; -x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__7), 8, 2); +x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__8), 8, 2); lean_closure_set(x_239, 0, x_238); lean_closure_set(x_239, 1, x_1); -x_240 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__8(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); +x_240 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__9(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); if (lean_obj_tag(x_240) == 0) { lean_object* x_241; @@ -22720,7 +27894,7 @@ if (x_256 == 0) { lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_dec(x_255); -x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_258 = l_panic___at_Lean_Name_getString_x21___spec__1(x_257); x_259 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_259, 0, x_258); @@ -22869,13 +28043,13 @@ else { lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_inc(x_238); -x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__9), 8, 2); +x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__10), 8, 2); lean_closure_set(x_281, 0, x_238); lean_closure_set(x_281, 1, x_1); -x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__7), 8, 2); +x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__8), 8, 2); lean_closure_set(x_282, 0, x_238); lean_closure_set(x_282, 1, x_281); -x_283 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__8(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); +x_283 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__9(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); if (lean_obj_tag(x_283) == 0) { lean_object* x_284; @@ -22945,7 +28119,7 @@ if (x_299 == 0) { lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_dec(x_298); -x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_301 = l_panic___at_Lean_Name_getString_x21___spec__1(x_300); x_302 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_302, 0, x_301); @@ -23158,7 +28332,7 @@ return x_331; } } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5___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_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6___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) { _start: { if (lean_obj_tag(x_7) == 0) @@ -23182,7 +28356,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_16 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__6(x_14, x_15, x_3, x_4, x_5, x_6, x_9, x_8); +x_16 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__7(x_14, x_15, x_3, x_4, x_5, x_6, x_9, x_8); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; @@ -23216,10 +28390,10 @@ x_28 = lean_string_utf8_extract(x_21, x_26, x_27); lean_dec(x_27); lean_dec(x_26); lean_dec(x_21); -x_29 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_29 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_30 = lean_string_append(x_29, x_28); lean_dec(x_28); -x_31 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_32 = lean_string_append(x_30, x_31); x_33 = 1; x_34 = lean_alloc_ctor(0, 1, 1); @@ -23233,7 +28407,7 @@ x_36 = lean_ctor_get(x_20, 0); x_37 = lean_array_push(x_36, x_34); lean_ctor_set(x_20, 0, x_37); x_38 = lean_box(0); -x_39 = l_Lake_Module_recParseImports___lambda__3(x_22, x_38, x_3, x_4, x_5, x_6, x_20, x_19); +x_39 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_38, x_3, x_4, x_5, x_6, x_20, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -23255,7 +28429,7 @@ lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_41); x_45 = lean_box(0); -x_46 = l_Lake_Module_recParseImports___lambda__3(x_22, x_45, x_3, x_4, x_5, x_6, x_44, x_19); +x_46 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_45, x_3, x_4, x_5, x_6, x_44, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -23269,7 +28443,7 @@ lean_object* x_47; lean_object* x_48; lean_dec(x_23); lean_dec(x_21); x_47 = lean_box(0); -x_48 = l_Lake_Module_recParseImports___lambda__3(x_22, x_47, x_3, x_4, x_5, x_6, x_20, x_19); +x_48 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_47, x_3, x_4, x_5, x_6, x_20, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -23389,7 +28563,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_72 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__6(x_69, x_71, x_3, x_4, x_5, x_6, x_70, x_8); +x_72 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__7(x_69, x_71, x_3, x_4, x_5, x_6, x_70, x_8); if (lean_obj_tag(x_72) == 0) { lean_object* x_73; @@ -23423,10 +28597,10 @@ x_84 = lean_string_utf8_extract(x_77, x_82, x_83); lean_dec(x_83); lean_dec(x_82); lean_dec(x_77); -x_85 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_85 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_86 = lean_string_append(x_85, x_84); lean_dec(x_84); -x_87 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_87 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_88 = lean_string_append(x_86, x_87); x_89 = 1; x_90 = lean_alloc_ctor(0, 1, 1); @@ -23455,7 +28629,7 @@ lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_93); lean_ctor_set_uint8(x_96, sizeof(void*)*2, x_92); x_97 = lean_box(0); -x_98 = l_Lake_Module_recParseImports___lambda__3(x_78, x_97, x_3, x_4, x_5, x_6, x_96, x_75); +x_98 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_97, x_3, x_4, x_5, x_6, x_96, x_75); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -23468,7 +28642,7 @@ lean_object* x_99; lean_object* x_100; lean_dec(x_79); lean_dec(x_77); x_99 = lean_box(0); -x_100 = l_Lake_Module_recParseImports___lambda__3(x_78, x_99, x_3, x_4, x_5, x_6, x_76, x_75); +x_100 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_99, x_3, x_4, x_5, x_6, x_76, x_75); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -23589,7 +28763,7 @@ return x_117; } } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { _start: { uint8_t x_11; @@ -23601,7 +28775,7 @@ x_12 = lean_ctor_get(x_1, 0); x_13 = lean_ctor_get(x_1, 2); x_14 = lean_ctor_get(x_1, 1); lean_dec(x_14); -x_15 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5___lambda__1), 8, 6); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6___lambda__1), 8, 6); lean_closure_set(x_15, 0, x_9); lean_closure_set(x_15, 1, x_2); lean_closure_set(x_15, 2, x_5); @@ -23674,7 +28848,7 @@ x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); lean_inc(x_29); lean_inc(x_28); lean_dec(x_1); -x_31 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5___lambda__1), 8, 6); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6___lambda__1), 8, 6); lean_closure_set(x_31, 0, x_9); lean_closure_set(x_31, 1, x_2); lean_closure_set(x_31, 2, x_5); @@ -23740,7 +28914,7 @@ return x_42; } } } -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__12(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_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__13(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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -24570,7 +29744,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__13(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_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__14(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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -25400,7 +30574,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__14(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_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__15(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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -26230,7 +31404,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__11(lean_object* x_1, uint8_t 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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__12(lean_object* x_1, uint8_t 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) { _start: { uint8_t x_9; @@ -26240,7 +31414,7 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); -x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_13 = lean_st_mk_ref(x_12, x_8); if (lean_obj_tag(x_13) == 0) { @@ -26265,10 +31439,10 @@ x_20 = l_IO_FS_Stream_ofBuffer(x_17); if (x_2 == 0) { lean_object* x_21; lean_object* x_22; -x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__12), 8, 2); +x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__13), 8, 2); lean_closure_set(x_21, 0, x_20); lean_closure_set(x_21, 1, x_1); -x_22 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__13(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); +x_22 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__14(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; @@ -26313,7 +31487,7 @@ if (x_36 == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_35); -x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_38 = l_panic___at_Lean_Name_getString_x21___spec__1(x_37); x_39 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_39, 0, x_38); @@ -26351,7 +31525,7 @@ if (x_45 == 0) { lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_dec(x_44); -x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_47 = l_panic___at_Lean_Name_getString_x21___spec__1(x_46); x_48 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_48, 0, x_47); @@ -26444,7 +31618,7 @@ if (x_66 == 0) { lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_65); -x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_68 = l_panic___at_Lean_Name_getString_x21___spec__1(x_67); x_69 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_69, 0, x_68); @@ -26562,7 +31736,7 @@ if (x_89 == 0) { lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec(x_88); -x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_91 = l_panic___at_Lean_Name_getString_x21___spec__1(x_90); x_92 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_92, 0, x_91); @@ -26720,13 +31894,13 @@ else { lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_inc(x_20); -x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__14), 8, 2); +x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__15), 8, 2); lean_closure_set(x_119, 0, x_20); lean_closure_set(x_119, 1, x_1); -x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__12), 8, 2); +x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__13), 8, 2); lean_closure_set(x_120, 0, x_20); lean_closure_set(x_120, 1, x_119); -x_121 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__13(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); +x_121 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__14(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_121) == 0) { lean_object* x_122; @@ -26771,7 +31945,7 @@ if (x_135 == 0) { lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_dec(x_134); -x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_137 = l_panic___at_Lean_Name_getString_x21___spec__1(x_136); x_138 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_138, 0, x_137); @@ -26809,7 +31983,7 @@ if (x_144 == 0) { lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_dec(x_143); -x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_146 = l_panic___at_Lean_Name_getString_x21___spec__1(x_145); x_147 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_147, 0, x_146); @@ -26902,7 +32076,7 @@ if (x_165 == 0) { lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_dec(x_164); -x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_167 = l_panic___at_Lean_Name_getString_x21___spec__1(x_166); x_168 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_168, 0, x_167); @@ -27020,7 +32194,7 @@ if (x_188 == 0) { lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_dec(x_187); -x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_190 = l_panic___at_Lean_Name_getString_x21___spec__1(x_189); x_191 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_191, 0, x_190); @@ -27247,7 +32421,7 @@ x_228 = lean_ctor_get(x_7, 1); lean_inc(x_228); lean_inc(x_226); lean_dec(x_7); -x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_230 = lean_st_mk_ref(x_229, x_8); if (lean_obj_tag(x_230) == 0) { @@ -27276,10 +32450,10 @@ x_238 = l_IO_FS_Stream_ofBuffer(x_234); if (x_2 == 0) { lean_object* x_239; lean_object* x_240; -x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__12), 8, 2); +x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__13), 8, 2); lean_closure_set(x_239, 0, x_238); lean_closure_set(x_239, 1, x_1); -x_240 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__13(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); +x_240 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__14(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); if (lean_obj_tag(x_240) == 0) { lean_object* x_241; @@ -27349,7 +32523,7 @@ if (x_256 == 0) { lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_dec(x_255); -x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_258 = l_panic___at_Lean_Name_getString_x21___spec__1(x_257); x_259 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_259, 0, x_258); @@ -27498,13 +32672,13 @@ else { lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_inc(x_238); -x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__14), 8, 2); +x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__15), 8, 2); lean_closure_set(x_281, 0, x_238); lean_closure_set(x_281, 1, x_1); -x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__12), 8, 2); +x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__13), 8, 2); lean_closure_set(x_282, 0, x_238); lean_closure_set(x_282, 1, x_281); -x_283 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__13(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); +x_283 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__14(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); if (lean_obj_tag(x_283) == 0) { lean_object* x_284; @@ -27574,7 +32748,7 @@ if (x_299 == 0) { lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_dec(x_298); -x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_301 = l_panic___at_Lean_Name_getString_x21___spec__1(x_300); x_302 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_302, 0, x_301); @@ -27787,7 +32961,7 @@ return x_331; } } } -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___lambda__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -27961,7 +33135,7 @@ return x_45; } } } -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___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_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___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) { _start: { lean_object* x_10; lean_object* x_11; @@ -27986,7 +33160,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_35 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__11(x_33, x_34, x_3, x_4, x_5, x_6, x_28, x_9); +x_35 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__12(x_33, x_34, x_3, x_4, x_5, x_6, x_28, x_9); if (lean_obj_tag(x_35) == 0) { lean_object* x_36; @@ -28020,10 +33194,10 @@ x_47 = lean_string_utf8_extract(x_40, x_45, x_46); lean_dec(x_46); lean_dec(x_45); lean_dec(x_40); -x_48 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_48 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_49 = lean_string_append(x_48, x_47); lean_dec(x_47); -x_50 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_50 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_51 = lean_string_append(x_49, x_50); x_52 = 1; x_53 = lean_alloc_ctor(0, 1, 1); @@ -28037,7 +33211,7 @@ x_55 = lean_ctor_get(x_39, 0); x_56 = lean_array_push(x_55, x_53); lean_ctor_set(x_39, 0, x_56); x_57 = lean_box(0); -x_58 = l_Lake_Module_recParseImports___lambda__3(x_41, x_57, x_3, x_4, x_5, x_6, x_39, x_38); +x_58 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_57, x_3, x_4, x_5, x_6, x_39, x_38); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -28066,7 +33240,7 @@ lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_62); x_66 = lean_box(0); -x_67 = l_Lake_Module_recParseImports___lambda__3(x_41, x_66, x_3, x_4, x_5, x_6, x_65, x_38); +x_67 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_66, x_3, x_4, x_5, x_6, x_65, x_38); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -28087,7 +33261,7 @@ lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_dec(x_42); lean_dec(x_40); x_70 = lean_box(0); -x_71 = l_Lake_Module_recParseImports___lambda__3(x_41, x_70, x_3, x_4, x_5, x_6, x_39, x_38); +x_71 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_70, x_3, x_4, x_5, x_6, x_39, x_38); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -28184,7 +33358,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__11(x_87, x_89, x_3, x_4, x_5, x_6, x_88, x_9); +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__12(x_87, x_89, x_3, x_4, x_5, x_6, x_88, x_9); if (lean_obj_tag(x_90) == 0) { lean_object* x_91; @@ -28218,10 +33392,10 @@ x_102 = lean_string_utf8_extract(x_95, x_100, x_101); lean_dec(x_101); lean_dec(x_100); lean_dec(x_95); -x_103 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_103 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_104 = lean_string_append(x_103, x_102); lean_dec(x_102); -x_105 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_105 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_106 = lean_string_append(x_104, x_105); x_107 = 1; x_108 = lean_alloc_ctor(0, 1, 1); @@ -28250,7 +33424,7 @@ lean_ctor_set(x_114, 0, x_113); lean_ctor_set(x_114, 1, x_111); lean_ctor_set_uint8(x_114, sizeof(void*)*2, x_110); x_115 = lean_box(0); -x_116 = l_Lake_Module_recParseImports___lambda__3(x_96, x_115, x_3, x_4, x_5, x_6, x_114, x_93); +x_116 = l_Lake_Module_recFetchInput___lambda__3(x_96, x_115, x_3, x_4, x_5, x_6, x_114, x_93); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -28270,7 +33444,7 @@ lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_dec(x_97); lean_dec(x_95); x_119 = lean_box(0); -x_120 = l_Lake_Module_recParseImports___lambda__3(x_96, x_119, x_3, x_4, x_5, x_6, x_94, x_93); +x_120 = l_Lake_Module_recFetchInput___lambda__3(x_96, x_119, x_3, x_4, x_5, x_6, x_94, x_93); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -28398,7 +33572,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_10, 1); lean_inc(x_13); lean_dec(x_10); -x_14 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___lambda__1), 2, 1); +x_14 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__1), 2, 1); lean_closure_set(x_14, 0, x_13); x_15 = lean_ctor_get(x_12, 0); lean_inc(x_15); @@ -28445,7 +33619,7 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { _start: { uint8_t x_11; @@ -28458,7 +33632,7 @@ x_13 = lean_ctor_get(x_1, 2); x_14 = lean_ctor_get(x_1, 1); lean_dec(x_14); lean_inc(x_3); -x_15 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___lambda__2), 9, 7); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__2), 9, 7); lean_closure_set(x_15, 0, x_9); lean_closure_set(x_15, 1, x_2); lean_closure_set(x_15, 2, x_5); @@ -28533,7 +33707,7 @@ lean_inc(x_29); lean_inc(x_28); lean_dec(x_1); lean_inc(x_3); -x_31 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___lambda__2), 9, 7); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__2), 9, 7); lean_closure_set(x_31, 0, x_9); lean_closure_set(x_31, 1, x_2); lean_closure_set(x_31, 2, x_5); @@ -28600,7 +33774,7 @@ return x_42; } } } -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { _start: { uint8_t x_11; @@ -28613,7 +33787,7 @@ x_13 = lean_ctor_get(x_1, 2); x_14 = lean_ctor_get(x_1, 1); lean_dec(x_14); lean_inc(x_3); -x_15 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___lambda__2), 9, 7); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__2), 9, 7); lean_closure_set(x_15, 0, x_9); lean_closure_set(x_15, 1, x_2); lean_closure_set(x_15, 2, x_5); @@ -28688,7 +33862,7 @@ lean_inc(x_29); lean_inc(x_28); lean_dec(x_1); lean_inc(x_3); -x_31 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___lambda__2), 9, 7); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__2), 9, 7); lean_closure_set(x_31, 0, x_9); lean_closure_set(x_31, 1, x_2); lean_closure_set(x_31, 2, x_5); @@ -28755,7 +33929,162 @@ return x_42; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDeps___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { +_start: +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 1); +lean_dec(x_14); +lean_inc(x_3); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__2), 9, 7); +lean_closure_set(x_15, 0, x_9); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_5); +lean_closure_set(x_15, 3, x_6); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_8); +lean_closure_set(x_15, 6, x_3); +x_16 = lean_io_bind_task(x_12, x_15, x_3, x_4, x_10); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_box(0); +lean_ctor_set(x_1, 1, x_19); +lean_ctor_set(x_1, 0, x_18); +lean_ctor_set(x_16, 0, x_1); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_box(0); +lean_ctor_set(x_1, 1, x_22); +lean_ctor_set(x_1, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_free_object(x_1); +lean_dec(x_13); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_16); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_1, 0); +x_29 = lean_ctor_get(x_1, 2); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_1); +lean_inc(x_3); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__2), 9, 7); +lean_closure_set(x_31, 0, x_9); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_5); +lean_closure_set(x_31, 3, x_6); +lean_closure_set(x_31, 4, x_7); +lean_closure_set(x_31, 5, x_8); +lean_closure_set(x_31, 6, x_3); +x_32 = lean_io_bind_task(x_28, x_31, x_3, x_4, x_10); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_30); +if (lean_is_scalar(x_35)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_35; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_29); +x_39 = lean_ctor_get(x_32, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_41 = x_32; +} else { + lean_dec_ref(x_32); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recFetchSetup___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) { _start: { uint8_t x_8; @@ -28804,7 +34133,7 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__19(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_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__21(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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_31; @@ -29181,7 +34510,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__20(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_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__22(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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_31; @@ -29558,7 +34887,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__21(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_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__23(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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_31; @@ -29935,11 +35264,11 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__18(lean_object* x_1, uint8_t 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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__20(lean_object* x_1, uint8_t 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) { _start: { lean_object* x_9; lean_object* x_10; -x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_10 = lean_st_mk_ref(x_9, x_8); if (lean_obj_tag(x_10) == 0) { @@ -29964,10 +35293,10 @@ x_17 = l_IO_FS_Stream_ofBuffer(x_14); if (x_2 == 0) { lean_object* x_18; lean_object* x_19; -x_18 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__19), 8, 2); +x_18 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__21), 8, 2); lean_closure_set(x_18, 0, x_17); lean_closure_set(x_18, 1, x_1); -x_19 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__20(x_16, x_18, x_3, x_4, x_5, x_6, x_7, x_15); +x_19 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__22(x_16, x_18, x_3, x_4, x_5, x_6, x_7, x_15); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; @@ -30003,7 +35332,7 @@ if (x_29 == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_28); -x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_31 = l_panic___at_Lean_Name_getString_x21___spec__1(x_30); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); @@ -30041,7 +35370,7 @@ if (x_38 == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_dec(x_37); -x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_40 = l_panic___at_Lean_Name_getString_x21___spec__1(x_39); x_41 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_41, 0, x_40); @@ -30127,7 +35456,7 @@ if (x_57 == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_dec(x_56); -x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_59 = l_panic___at_Lean_Name_getString_x21___spec__1(x_58); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_59); @@ -30283,13 +35612,13 @@ else { lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_inc(x_17); -x_87 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildDeps___spec__21), 8, 2); +x_87 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recFetchSetup___spec__23), 8, 2); lean_closure_set(x_87, 0, x_17); lean_closure_set(x_87, 1, x_1); -x_88 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildDeps___spec__19), 8, 2); +x_88 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recFetchSetup___spec__21), 8, 2); lean_closure_set(x_88, 0, x_17); lean_closure_set(x_88, 1, x_87); -x_89 = l_IO_withStdin___at_Lake_Module_recBuildDeps___spec__20(x_16, x_88, x_3, x_4, x_5, x_6, x_7, x_15); +x_89 = l_IO_withStdin___at_Lake_Module_recFetchSetup___spec__22(x_16, x_88, x_3, x_4, x_5, x_6, x_7, x_15); if (lean_obj_tag(x_89) == 0) { lean_object* x_90; @@ -30325,7 +35654,7 @@ if (x_99 == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_dec(x_98); -x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_101 = l_panic___at_Lean_Name_getString_x21___spec__1(x_100); x_102 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_102, 0, x_101); @@ -30363,7 +35692,7 @@ if (x_108 == 0) { lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_107); -x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_110 = l_panic___at_Lean_Name_getString_x21___spec__1(x_109); x_111 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_111, 0, x_110); @@ -30449,7 +35778,7 @@ if (x_127 == 0) { lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_dec(x_126); -x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_129 = l_panic___at_Lean_Name_getString_x21___spec__1(x_128); x_130 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_130, 0, x_129); @@ -30662,7 +35991,7 @@ return x_164; } } } -LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildDeps___spec__17(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_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recFetchSetup___spec__19(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; uint8_t x_91; lean_object* x_92; @@ -30672,7 +36001,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_92 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__18(x_1, x_91, x_2, x_3, x_4, x_5, x_6, x_7); +x_92 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__20(x_1, x_91, x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_92) == 0) { lean_object* x_93; @@ -30706,10 +36035,10 @@ x_104 = lean_string_utf8_extract(x_97, x_102, x_103); lean_dec(x_103); lean_dec(x_102); lean_dec(x_97); -x_105 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_105 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_106 = lean_string_append(x_105, x_104); lean_dec(x_104); -x_107 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_107 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_108 = lean_string_append(x_106, x_107); x_109 = 1; x_110 = lean_alloc_ctor(0, 1, 1); @@ -30717,7 +36046,7 @@ lean_ctor_set(x_110, 0, x_108); lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_109); x_111 = lean_array_push(x_96, x_110); x_112 = lean_box(0); -x_113 = l_Lake_Module_recParseImports___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); +x_113 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -30737,7 +36066,7 @@ lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_99); lean_dec(x_97); x_116 = lean_box(0); -x_117 = l_Lake_Module_recParseImports___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); +x_117 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -30979,7 +36308,7 @@ x_62 = l_Array_extract___rarg(x_58, x_8, x_61); lean_dec(x_61); lean_dec(x_58); x_63 = 0; -x_64 = l_Lake_Module_recParseImports___closed__3; +x_64 = l_Lake_Module_recFetchInput___closed__3; x_65 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_65, 0, x_62); lean_ctor_set(x_65, 1, x_64); @@ -30989,7 +36318,7 @@ lean_ctor_set(x_9, 1, x_65); lean_ctor_set(x_9, 0, x_66); x_67 = lean_task_pure(x_9); x_68 = lean_box(0); -x_69 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_69 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_70 = 0; x_71 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_71, 0, x_67); @@ -31017,7 +36346,7 @@ x_77 = l_Array_extract___rarg(x_74, x_8, x_76); lean_dec(x_76); lean_dec(x_74); x_78 = 0; -x_79 = l_Lake_Module_recParseImports___closed__3; +x_79 = l_Lake_Module_recFetchInput___closed__3; x_80 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_80, 0, x_77); lean_ctor_set(x_80, 1, x_79); @@ -31028,7 +36357,7 @@ lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); x_83 = lean_task_pure(x_82); x_84 = lean_box(0); -x_85 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_85 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_86 = 0; x_87 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_87, 0, x_83); @@ -31047,166 +36376,1738 @@ return x_89; } } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___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) { +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__1___closed__1() { _start: { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__1___closed__2() { +_start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_10, 0); -x_14 = l_Lake_computeModuleDeps(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_13, x_11); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -if (lean_obj_tag(x_15) == 0) +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_LeanOptions_append___lambda__1___boxed), 3, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) +lean_object* x_17; lean_object* x_18; uint8_t x_125; +x_125 = !lean_is_exclusive(x_15); +if (x_125 == 0) { -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_14, 0); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_15, 0); +x_127 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(x_1, x_2, x_3, x_4, x_11, x_12, x_13, x_14, x_126, x_16); +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +if (lean_obj_tag(x_128) == 0) +{ +lean_object* x_129; uint8_t x_130; +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_130 = !lean_is_exclusive(x_128); +if (x_130 == 0) +{ +lean_object* x_131; +x_131 = lean_ctor_get(x_128, 1); +lean_ctor_set(x_15, 0, x_131); +lean_ctor_set(x_128, 1, x_15); +x_17 = x_128; +x_18 = x_129; +goto block_124; +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_128, 0); +x_133 = lean_ctor_get(x_128, 1); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_128); +lean_ctor_set(x_15, 0, x_133); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_15); +x_17 = x_134; +x_18 = x_129; +goto block_124; +} +} +else +{ +lean_object* x_135; uint8_t x_136; +x_135 = lean_ctor_get(x_127, 1); +lean_inc(x_135); +lean_dec(x_127); +x_136 = !lean_is_exclusive(x_128); +if (x_136 == 0) +{ +lean_object* x_137; +x_137 = lean_ctor_get(x_128, 1); +lean_ctor_set(x_15, 0, x_137); +lean_ctor_set(x_128, 1, x_15); +x_17 = x_128; +x_18 = x_135; +goto block_124; +} +else +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_128, 0); +x_139 = lean_ctor_get(x_128, 1); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_128); +lean_ctor_set(x_15, 0, x_139); +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_15); +x_17 = x_140; +x_18 = x_135; +goto block_124; +} +} +} +else +{ +lean_object* x_141; uint8_t x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_141 = lean_ctor_get(x_15, 0); +x_142 = lean_ctor_get_uint8(x_15, sizeof(void*)*2); +x_143 = lean_ctor_get(x_15, 1); +lean_inc(x_143); +lean_inc(x_141); +lean_dec(x_15); +x_144 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(x_1, x_2, x_3, x_4, x_11, x_12, x_13, x_14, x_141, x_16); +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +lean_dec(x_144); +x_147 = lean_ctor_get(x_145, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_145, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_149 = x_145; +} else { + lean_dec_ref(x_145); + x_149 = lean_box(0); +} +x_150 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_143); +lean_ctor_set_uint8(x_150, sizeof(void*)*2, x_142); +if (lean_is_scalar(x_149)) { + x_151 = lean_alloc_ctor(0, 2, 0); +} else { + x_151 = x_149; +} +lean_ctor_set(x_151, 0, x_147); +lean_ctor_set(x_151, 1, x_150); +x_17 = x_151; +x_18 = x_146; +goto block_124; +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_152 = lean_ctor_get(x_144, 1); +lean_inc(x_152); +lean_dec(x_144); +x_153 = lean_ctor_get(x_145, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_145, 1); +lean_inc(x_154); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_155 = x_145; +} else { + lean_dec_ref(x_145); + x_155 = lean_box(0); +} +x_156 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_143); +lean_ctor_set_uint8(x_156, sizeof(void*)*2, x_142); +if (lean_is_scalar(x_155)) { + x_157 = lean_alloc_ctor(1, 2, 0); +} else { + x_157 = x_155; +} +lean_ctor_set(x_157, 0, x_153); +lean_ctor_set(x_157, 1, x_156); +x_17 = x_157; +x_18 = x_152; +goto block_124; +} +} +block_124: +{ +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_17, 0); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; size_t x_27; lean_object* x_28; size_t x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = lean_ctor_get(x_5, 0); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_26 = lean_box(0); +x_27 = lean_array_size(x_22); +x_28 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_27, x_6, x_22); +x_29 = lean_array_size(x_23); +x_30 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_29, x_6, x_23); +x_31 = lean_ctor_get_uint8(x_7, sizeof(void*)*13); +x_32 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); +x_33 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_31, x_32); +x_34 = lean_ctor_get(x_7, 0); +x_35 = l_Lean_LeanOptions_ofArray(x_34); +x_36 = lean_box(x_33); +if (lean_obj_tag(x_36) == 2) +{ +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; +x_37 = lean_ctor_get(x_8, 0); +x_38 = l_Lake_BuildType_leanOptions(x_32); +x_39 = l_Lake_Module_recFetchSetup___lambda__1___closed__1; +x_40 = l_Lake_Module_recFetchSetup___lambda__1___closed__2; +x_41 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_39, x_40, x_38, x_35); +x_42 = l_Lean_LeanOptions_appendArray(x_41, x_37); +lean_inc(x_24); +x_43 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_43, 0, x_9); +lean_ctor_set(x_43, 1, x_24); +lean_ctor_set(x_43, 2, x_26); +lean_ctor_set(x_43, 3, x_28); +lean_ctor_set(x_43, 4, x_30); +lean_ctor_set(x_43, 5, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*6, x_25); +lean_ctor_set(x_17, 0, x_43); +lean_ctor_set(x_20, 1, x_18); +lean_ctor_set(x_20, 0, x_17); +return x_20; +} +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_dec(x_36); +x_44 = lean_ctor_get(x_8, 0); +x_45 = l_Lake_BuildType_leanOptions(x_31); +x_46 = l_Lake_Module_recFetchSetup___lambda__1___closed__1; +x_47 = l_Lake_Module_recFetchSetup___lambda__1___closed__2; +x_48 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_46, x_47, x_45, x_35); +x_49 = l_Lean_LeanOptions_appendArray(x_48, x_44); +lean_inc(x_24); +x_50 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_50, 0, x_9); +lean_ctor_set(x_50, 1, x_24); +lean_ctor_set(x_50, 2, x_26); +lean_ctor_set(x_50, 3, x_28); +lean_ctor_set(x_50, 4, x_30); +lean_ctor_set(x_50, 5, x_49); +lean_ctor_set_uint8(x_50, sizeof(void*)*6, x_25); +lean_ctor_set(x_17, 0, x_50); +lean_ctor_set(x_20, 1, x_18); +lean_ctor_set(x_20, 0, x_17); +return x_20; +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; size_t x_56; lean_object* x_57; size_t x_58; lean_object* x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_51 = lean_ctor_get(x_20, 0); +x_52 = lean_ctor_get(x_20, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_20); +x_53 = lean_ctor_get(x_5, 0); +x_54 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_55 = lean_box(0); +x_56 = lean_array_size(x_51); +x_57 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_56, x_6, x_51); +x_58 = lean_array_size(x_52); +x_59 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_58, x_6, x_52); +x_60 = lean_ctor_get_uint8(x_7, sizeof(void*)*13); +x_61 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); +x_62 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_60, x_61); +x_63 = lean_ctor_get(x_7, 0); +x_64 = l_Lean_LeanOptions_ofArray(x_63); +x_65 = lean_box(x_62); +if (lean_obj_tag(x_65) == 2) +{ +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; +x_66 = lean_ctor_get(x_8, 0); +x_67 = l_Lake_BuildType_leanOptions(x_61); +x_68 = l_Lake_Module_recFetchSetup___lambda__1___closed__1; +x_69 = l_Lake_Module_recFetchSetup___lambda__1___closed__2; +x_70 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_68, x_69, x_67, x_64); +x_71 = l_Lean_LeanOptions_appendArray(x_70, x_66); +lean_inc(x_53); +x_72 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_72, 0, x_9); +lean_ctor_set(x_72, 1, x_53); +lean_ctor_set(x_72, 2, x_55); +lean_ctor_set(x_72, 3, x_57); +lean_ctor_set(x_72, 4, x_59); +lean_ctor_set(x_72, 5, x_71); +lean_ctor_set_uint8(x_72, sizeof(void*)*6, x_54); +lean_ctor_set(x_17, 0, x_72); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_17); +lean_ctor_set(x_73, 1, x_18); +return x_73; +} +else +{ +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_dec(x_65); +x_74 = lean_ctor_get(x_8, 0); +x_75 = l_Lake_BuildType_leanOptions(x_60); +x_76 = l_Lake_Module_recFetchSetup___lambda__1___closed__1; +x_77 = l_Lake_Module_recFetchSetup___lambda__1___closed__2; +x_78 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_76, x_77, x_75, x_64); +x_79 = l_Lean_LeanOptions_appendArray(x_78, x_74); +lean_inc(x_53); +x_80 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_80, 0, x_9); +lean_ctor_set(x_80, 1, x_53); +lean_ctor_set(x_80, 2, x_55); +lean_ctor_set(x_80, 3, x_57); +lean_ctor_set(x_80, 4, x_59); +lean_ctor_set(x_80, 5, x_79); +lean_ctor_set_uint8(x_80, sizeof(void*)*6, x_54); +lean_ctor_set(x_17, 0, x_80); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_17); +lean_ctor_set(x_81, 1, x_18); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; size_t x_90; lean_object* x_91; size_t x_92; lean_object* x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_82 = lean_ctor_get(x_17, 0); +x_83 = lean_ctor_get(x_17, 1); +lean_inc(x_83); +lean_inc(x_82); lean_dec(x_17); -x_18 = !lean_is_exclusive(x_15); +x_84 = lean_ctor_get(x_82, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_86 = x_82; +} else { + lean_dec_ref(x_82); + x_86 = lean_box(0); +} +x_87 = lean_ctor_get(x_5, 0); +x_88 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_89 = lean_box(0); +x_90 = lean_array_size(x_84); +x_91 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_90, x_6, x_84); +x_92 = lean_array_size(x_85); +x_93 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_92, x_6, x_85); +x_94 = lean_ctor_get_uint8(x_7, sizeof(void*)*13); +x_95 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); +x_96 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_94, x_95); +x_97 = lean_ctor_get(x_7, 0); +x_98 = l_Lean_LeanOptions_ofArray(x_97); +x_99 = lean_box(x_96); +if (lean_obj_tag(x_99) == 2) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_100 = lean_ctor_get(x_8, 0); +x_101 = l_Lake_BuildType_leanOptions(x_95); +x_102 = l_Lake_Module_recFetchSetup___lambda__1___closed__1; +x_103 = l_Lake_Module_recFetchSetup___lambda__1___closed__2; +x_104 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_102, x_103, x_101, x_98); +x_105 = l_Lean_LeanOptions_appendArray(x_104, x_100); +lean_inc(x_87); +x_106 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_106, 0, x_9); +lean_ctor_set(x_106, 1, x_87); +lean_ctor_set(x_106, 2, x_89); +lean_ctor_set(x_106, 3, x_91); +lean_ctor_set(x_106, 4, x_93); +lean_ctor_set(x_106, 5, x_105); +lean_ctor_set_uint8(x_106, sizeof(void*)*6, x_88); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_83); +if (lean_is_scalar(x_86)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_86; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_18); +return x_108; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_99); +x_109 = lean_ctor_get(x_8, 0); +x_110 = l_Lake_BuildType_leanOptions(x_94); +x_111 = l_Lake_Module_recFetchSetup___lambda__1___closed__1; +x_112 = l_Lake_Module_recFetchSetup___lambda__1___closed__2; +x_113 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_111, x_112, x_110, x_98); +x_114 = l_Lean_LeanOptions_appendArray(x_113, x_109); +lean_inc(x_87); +x_115 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_115, 0, x_9); +lean_ctor_set(x_115, 1, x_87); +lean_ctor_set(x_115, 2, x_89); +lean_ctor_set(x_115, 3, x_91); +lean_ctor_set(x_115, 4, x_93); +lean_ctor_set(x_115, 5, x_114); +lean_ctor_set_uint8(x_115, sizeof(void*)*6, x_88); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_83); +if (lean_is_scalar(x_86)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_86; +} +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_18); +return x_117; +} +} +} +else +{ +uint8_t x_118; +lean_dec(x_9); +x_118 = !lean_is_exclusive(x_17); +if (x_118 == 0) +{ +lean_object* x_119; +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_17); +lean_ctor_set(x_119, 1, x_18); +return x_119; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_120 = lean_ctor_get(x_17, 0); +x_121 = lean_ctor_get(x_17, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_17); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_18); +return x_123; +} +} +} +} +} +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(":deps", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("deps", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("libs", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__2___boxed__const__1() { +_start: +{ +uint64_t x_1; lean_object* x_2; +x_1 = l_Lake_Hash_nil; +x_2 = lean_box_uint64(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__2(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_16); if (x_18 == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_15, 1); -lean_ctor_set(x_10, 0, x_19); -lean_ctor_set(x_15, 1, x_10); -return x_14; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_15, 0); -x_21 = lean_ctor_get(x_15, 1); -lean_inc(x_21); +lean_object* x_19; lean_object* x_20; uint8_t 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; uint8_t x_28; +x_19 = lean_ctor_get(x_16, 1); +x_20 = lean_ctor_get(x_1, 1); lean_inc(x_20); -lean_dec(x_15); -lean_ctor_set(x_10, 0, x_21); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_10); -lean_ctor_set(x_14, 0, x_22); -return x_14; -} -} -else +lean_dec(x_1); +x_21 = 1; +x_22 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; +lean_inc(x_20); +x_23 = l_Lean_Name_toString(x_20, x_21, x_22); +x_24 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_25 = lean_string_append(x_24, x_23); +lean_dec(x_23); +x_26 = l_Lake_Module_recFetchSetup___lambda__2___closed__1; +x_27 = lean_string_append(x_25, x_26); +x_28 = !lean_is_exclusive(x_6); +if (x_28 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); -lean_dec(x_14); -x_24 = lean_ctor_get(x_15, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - x_26 = x_15; -} else { - lean_dec_ref(x_15); - x_26 = lean_box(0); -} -lean_ctor_set(x_10, 0, x_25); -if (lean_is_scalar(x_26)) { - x_27 = lean_alloc_ctor(0, 2, 0); -} else { - x_27 = x_26; -} -lean_ctor_set(x_27, 0, x_24); -lean_ctor_set(x_27, 1, x_10); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_23); -return x_28; -} -} -else -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_14); -if (x_29 == 0) -{ -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_14, 0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_6, 2); +lean_dec(x_29); +x_30 = lean_ctor_get(x_6, 0); lean_dec(x_30); -x_31 = !lean_is_exclusive(x_15); +x_31 = l_Lake_Module_recFetchSetup___lambda__2___boxed__const__1; +lean_ctor_set(x_6, 2, x_31); +lean_ctor_set(x_6, 0, x_27); +x_32 = !lean_is_exclusive(x_7); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_7, 0); +lean_dec(x_33); +x_34 = l_Lake_Module_recFetchSetup___lambda__2___closed__2; +lean_ctor_set(x_7, 0, x_34); +x_35 = !lean_is_exclusive(x_19); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_19, 0); +lean_dec(x_36); +x_37 = l_Lake_Module_recFetchSetup___lambda__2___closed__3; +lean_ctor_set(x_19, 0, x_37); +x_38 = lean_ctor_get(x_5, 10); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_4, 10); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = l_Lake_BuildTrace_mix(x_6, x_7); +x_41 = l_Lake_BuildTrace_mix(x_40, x_19); +lean_ctor_set(x_16, 1, x_41); +x_42 = lean_box(0); +x_43 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_42, x_12, x_13, x_14, x_15, x_16, x_17); +return x_43; +} +else +{ +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_39, 0); +x_45 = lean_unbox(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_46 = l_Lake_BuildTrace_mix(x_6, x_7); +x_47 = l_Lake_BuildTrace_mix(x_46, x_19); +x_48 = l_Lake_platformTrace; +x_49 = l_Lake_BuildTrace_mix(x_47, x_48); +lean_ctor_set(x_16, 1, x_49); +x_50 = lean_box(0); +x_51 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_50, x_12, x_13, x_14, x_15, x_16, x_17); +return x_51; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_19); +x_52 = l_Lake_BuildTrace_mix(x_6, x_7); +lean_ctor_set(x_16, 1, x_52); +x_53 = lean_box(0); +x_54 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_53, x_12, x_13, x_14, x_15, x_16, x_17); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_38, 0); +x_56 = lean_unbox(x_55); +if (x_56 == 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; +x_57 = l_Lake_BuildTrace_mix(x_6, x_7); +x_58 = l_Lake_BuildTrace_mix(x_57, x_19); +x_59 = l_Lake_platformTrace; +x_60 = l_Lake_BuildTrace_mix(x_58, x_59); +lean_ctor_set(x_16, 1, x_60); +x_61 = lean_box(0); +x_62 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_61, x_12, x_13, x_14, x_15, x_16, x_17); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_19); +x_63 = l_Lake_BuildTrace_mix(x_6, x_7); +lean_ctor_set(x_16, 1, x_63); +x_64 = lean_box(0); +x_65 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_64, x_12, x_13, x_14, x_15, x_16, x_17); +return x_65; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_66 = lean_ctor_get(x_19, 1); +x_67 = lean_ctor_get(x_19, 2); +x_68 = lean_ctor_get(x_19, 3); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_19); +x_69 = l_Lake_Module_recFetchSetup___lambda__2___closed__3; +x_70 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_66); +lean_ctor_set(x_70, 2, x_67); +lean_ctor_set(x_70, 3, x_68); +x_71 = lean_ctor_get(x_5, 10); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_4, 10); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_73 = l_Lake_BuildTrace_mix(x_6, x_7); +x_74 = l_Lake_BuildTrace_mix(x_73, x_70); +lean_ctor_set(x_16, 1, x_74); +x_75 = lean_box(0); +x_76 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_75, x_12, x_13, x_14, x_15, x_16, x_17); +return x_76; +} +else +{ +lean_object* x_77; uint8_t x_78; +x_77 = lean_ctor_get(x_72, 0); +x_78 = lean_unbox(x_77); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_79 = l_Lake_BuildTrace_mix(x_6, x_7); +x_80 = l_Lake_BuildTrace_mix(x_79, x_70); +x_81 = l_Lake_platformTrace; +x_82 = l_Lake_BuildTrace_mix(x_80, x_81); +lean_ctor_set(x_16, 1, x_82); +x_83 = lean_box(0); +x_84 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_83, x_12, x_13, x_14, x_15, x_16, x_17); +return x_84; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_dec(x_70); +x_85 = l_Lake_BuildTrace_mix(x_6, x_7); +lean_ctor_set(x_16, 1, x_85); +x_86 = lean_box(0); +x_87 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_86, x_12, x_13, x_14, x_15, x_16, x_17); +return x_87; +} +} +} +else +{ +lean_object* x_88; uint8_t x_89; +x_88 = lean_ctor_get(x_71, 0); +x_89 = lean_unbox(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_90 = l_Lake_BuildTrace_mix(x_6, x_7); +x_91 = l_Lake_BuildTrace_mix(x_90, x_70); +x_92 = l_Lake_platformTrace; +x_93 = l_Lake_BuildTrace_mix(x_91, x_92); +lean_ctor_set(x_16, 1, x_93); +x_94 = lean_box(0); +x_95 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_94, x_12, x_13, x_14, x_15, x_16, x_17); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_70); +x_96 = l_Lake_BuildTrace_mix(x_6, x_7); +lean_ctor_set(x_16, 1, x_96); +x_97 = lean_box(0); +x_98 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_97, x_12, x_13, x_14, x_15, x_16, x_17); +return x_98; +} +} +} +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_99 = lean_ctor_get(x_7, 1); +x_100 = lean_ctor_get(x_7, 2); +x_101 = lean_ctor_get(x_7, 3); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_7); +x_102 = l_Lake_Module_recFetchSetup___lambda__2___closed__2; +x_103 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_99); +lean_ctor_set(x_103, 2, x_100); +lean_ctor_set(x_103, 3, x_101); +x_104 = lean_ctor_get(x_19, 1); +lean_inc(x_104); +x_105 = lean_ctor_get(x_19, 2); +lean_inc(x_105); +x_106 = lean_ctor_get(x_19, 3); +lean_inc(x_106); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + lean_ctor_release(x_19, 2); + lean_ctor_release(x_19, 3); + x_107 = x_19; +} else { + lean_dec_ref(x_19); + x_107 = lean_box(0); +} +x_108 = l_Lake_Module_recFetchSetup___lambda__2___closed__3; +if (lean_is_scalar(x_107)) { + x_109 = lean_alloc_ctor(0, 4, 0); +} else { + x_109 = x_107; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_104); +lean_ctor_set(x_109, 2, x_105); +lean_ctor_set(x_109, 3, x_106); +x_110 = lean_ctor_get(x_5, 10); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; +x_111 = lean_ctor_get(x_4, 10); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_112 = l_Lake_BuildTrace_mix(x_6, x_103); +x_113 = l_Lake_BuildTrace_mix(x_112, x_109); +lean_ctor_set(x_16, 1, x_113); +x_114 = lean_box(0); +x_115 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_114, x_12, x_13, x_14, x_15, x_16, x_17); +return x_115; +} +else +{ +lean_object* x_116; uint8_t x_117; +x_116 = lean_ctor_get(x_111, 0); +x_117 = lean_unbox(x_116); +if (x_117 == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_118 = l_Lake_BuildTrace_mix(x_6, x_103); +x_119 = l_Lake_BuildTrace_mix(x_118, x_109); +x_120 = l_Lake_platformTrace; +x_121 = l_Lake_BuildTrace_mix(x_119, x_120); +lean_ctor_set(x_16, 1, x_121); +x_122 = lean_box(0); +x_123 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_122, x_12, x_13, x_14, x_15, x_16, x_17); +return x_123; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_109); +x_124 = l_Lake_BuildTrace_mix(x_6, x_103); +lean_ctor_set(x_16, 1, x_124); +x_125 = lean_box(0); +x_126 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_125, x_12, x_13, x_14, x_15, x_16, x_17); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; +x_127 = lean_ctor_get(x_110, 0); +x_128 = lean_unbox(x_127); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_129 = l_Lake_BuildTrace_mix(x_6, x_103); +x_130 = l_Lake_BuildTrace_mix(x_129, x_109); +x_131 = l_Lake_platformTrace; +x_132 = l_Lake_BuildTrace_mix(x_130, x_131); +lean_ctor_set(x_16, 1, x_132); +x_133 = lean_box(0); +x_134 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_133, x_12, x_13, x_14, x_15, x_16, x_17); +return x_134; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_109); +x_135 = l_Lake_BuildTrace_mix(x_6, x_103); +lean_ctor_set(x_16, 1, x_135); +x_136 = lean_box(0); +x_137 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_136, x_12, x_13, x_14, x_15, x_16, x_17); +return x_137; +} +} +} +} +else +{ +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; +x_138 = lean_ctor_get(x_6, 1); +x_139 = lean_ctor_get(x_6, 3); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_6); +x_140 = l_Lake_Module_recFetchSetup___lambda__2___boxed__const__1; +x_141 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_141, 0, x_27); +lean_ctor_set(x_141, 1, x_138); +lean_ctor_set(x_141, 2, x_140); +lean_ctor_set(x_141, 3, x_139); +x_142 = lean_ctor_get(x_7, 1); +lean_inc(x_142); +x_143 = lean_ctor_get(x_7, 2); +lean_inc(x_143); +x_144 = lean_ctor_get(x_7, 3); +lean_inc(x_144); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + x_145 = x_7; +} else { + lean_dec_ref(x_7); + x_145 = lean_box(0); +} +x_146 = l_Lake_Module_recFetchSetup___lambda__2___closed__2; +if (lean_is_scalar(x_145)) { + x_147 = lean_alloc_ctor(0, 4, 0); +} else { + x_147 = x_145; +} +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_142); +lean_ctor_set(x_147, 2, x_143); +lean_ctor_set(x_147, 3, x_144); +x_148 = lean_ctor_get(x_19, 1); +lean_inc(x_148); +x_149 = lean_ctor_get(x_19, 2); +lean_inc(x_149); +x_150 = lean_ctor_get(x_19, 3); +lean_inc(x_150); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + lean_ctor_release(x_19, 2); + lean_ctor_release(x_19, 3); + x_151 = x_19; +} else { + lean_dec_ref(x_19); + x_151 = lean_box(0); +} +x_152 = l_Lake_Module_recFetchSetup___lambda__2___closed__3; +if (lean_is_scalar(x_151)) { + x_153 = lean_alloc_ctor(0, 4, 0); +} else { + x_153 = x_151; +} +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_148); +lean_ctor_set(x_153, 2, x_149); +lean_ctor_set(x_153, 3, x_150); +x_154 = lean_ctor_get(x_5, 10); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; +x_155 = lean_ctor_get(x_4, 10); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_156 = l_Lake_BuildTrace_mix(x_141, x_147); +x_157 = l_Lake_BuildTrace_mix(x_156, x_153); +lean_ctor_set(x_16, 1, x_157); +x_158 = lean_box(0); +x_159 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_158, x_12, x_13, x_14, x_15, x_16, x_17); +return x_159; +} +else +{ +lean_object* x_160; uint8_t x_161; +x_160 = lean_ctor_get(x_155, 0); +x_161 = lean_unbox(x_160); +if (x_161 == 0) +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_162 = l_Lake_BuildTrace_mix(x_141, x_147); +x_163 = l_Lake_BuildTrace_mix(x_162, x_153); +x_164 = l_Lake_platformTrace; +x_165 = l_Lake_BuildTrace_mix(x_163, x_164); +lean_ctor_set(x_16, 1, x_165); +x_166 = lean_box(0); +x_167 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_166, x_12, x_13, x_14, x_15, x_16, x_17); +return x_167; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_153); +x_168 = l_Lake_BuildTrace_mix(x_141, x_147); +lean_ctor_set(x_16, 1, x_168); +x_169 = lean_box(0); +x_170 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_169, x_12, x_13, x_14, x_15, x_16, x_17); +return x_170; +} +} +} +else +{ +lean_object* x_171; uint8_t x_172; +x_171 = lean_ctor_get(x_154, 0); +x_172 = lean_unbox(x_171); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_173 = l_Lake_BuildTrace_mix(x_141, x_147); +x_174 = l_Lake_BuildTrace_mix(x_173, x_153); +x_175 = l_Lake_platformTrace; +x_176 = l_Lake_BuildTrace_mix(x_174, x_175); +lean_ctor_set(x_16, 1, x_176); +x_177 = lean_box(0); +x_178 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_177, x_12, x_13, x_14, x_15, x_16, x_17); +return x_178; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; +lean_dec(x_153); +x_179 = l_Lake_BuildTrace_mix(x_141, x_147); +lean_ctor_set(x_16, 1, x_179); +x_180 = lean_box(0); +x_181 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_20, x_180, x_12, x_13, x_14, x_15, x_16, x_17); +return x_181; +} +} +} +} +else +{ +lean_object* x_182; uint8_t x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_182 = lean_ctor_get(x_16, 0); +x_183 = lean_ctor_get_uint8(x_16, sizeof(void*)*2); +x_184 = lean_ctor_get(x_16, 1); +lean_inc(x_184); +lean_inc(x_182); +lean_dec(x_16); +x_185 = lean_ctor_get(x_1, 1); +lean_inc(x_185); +lean_dec(x_1); +x_186 = 1; +x_187 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; +lean_inc(x_185); +x_188 = l_Lean_Name_toString(x_185, x_186, x_187); +x_189 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_190 = lean_string_append(x_189, x_188); +lean_dec(x_188); +x_191 = l_Lake_Module_recFetchSetup___lambda__2___closed__1; +x_192 = lean_string_append(x_190, x_191); +x_193 = lean_ctor_get(x_6, 1); +lean_inc(x_193); +x_194 = lean_ctor_get(x_6, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_6)) { + lean_ctor_release(x_6, 0); + lean_ctor_release(x_6, 1); + lean_ctor_release(x_6, 2); + lean_ctor_release(x_6, 3); + x_195 = x_6; +} else { + lean_dec_ref(x_6); + x_195 = lean_box(0); +} +x_196 = l_Lake_Module_recFetchSetup___lambda__2___boxed__const__1; +if (lean_is_scalar(x_195)) { + x_197 = lean_alloc_ctor(0, 4, 0); +} else { + x_197 = x_195; +} +lean_ctor_set(x_197, 0, x_192); +lean_ctor_set(x_197, 1, x_193); +lean_ctor_set(x_197, 2, x_196); +lean_ctor_set(x_197, 3, x_194); +x_198 = lean_ctor_get(x_7, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_7, 2); +lean_inc(x_199); +x_200 = lean_ctor_get(x_7, 3); +lean_inc(x_200); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + x_201 = x_7; +} else { + lean_dec_ref(x_7); + x_201 = lean_box(0); +} +x_202 = l_Lake_Module_recFetchSetup___lambda__2___closed__2; +if (lean_is_scalar(x_201)) { + x_203 = lean_alloc_ctor(0, 4, 0); +} else { + x_203 = x_201; +} +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_198); +lean_ctor_set(x_203, 2, x_199); +lean_ctor_set(x_203, 3, x_200); +x_204 = lean_ctor_get(x_184, 1); +lean_inc(x_204); +x_205 = lean_ctor_get(x_184, 2); +lean_inc(x_205); +x_206 = lean_ctor_get(x_184, 3); +lean_inc(x_206); +if (lean_is_exclusive(x_184)) { + lean_ctor_release(x_184, 0); + lean_ctor_release(x_184, 1); + lean_ctor_release(x_184, 2); + lean_ctor_release(x_184, 3); + x_207 = x_184; +} else { + lean_dec_ref(x_184); + x_207 = lean_box(0); +} +x_208 = l_Lake_Module_recFetchSetup___lambda__2___closed__3; +if (lean_is_scalar(x_207)) { + x_209 = lean_alloc_ctor(0, 4, 0); +} else { + x_209 = x_207; +} +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_204); +lean_ctor_set(x_209, 2, x_205); +lean_ctor_set(x_209, 3, x_206); +x_210 = lean_ctor_get(x_5, 10); +if (lean_obj_tag(x_210) == 0) +{ +lean_object* x_211; +x_211 = lean_ctor_get(x_4, 10); +if (lean_obj_tag(x_211) == 0) +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_212 = l_Lake_BuildTrace_mix(x_197, x_203); +x_213 = l_Lake_BuildTrace_mix(x_212, x_209); +x_214 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_214, 0, x_182); +lean_ctor_set(x_214, 1, x_213); +lean_ctor_set_uint8(x_214, sizeof(void*)*2, x_183); +x_215 = lean_box(0); +x_216 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_185, x_215, x_12, x_13, x_14, x_15, x_214, x_17); +return x_216; +} +else +{ +lean_object* x_217; uint8_t x_218; +x_217 = lean_ctor_get(x_211, 0); +x_218 = lean_unbox(x_217); +if (x_218 == 0) +{ +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_219 = l_Lake_BuildTrace_mix(x_197, x_203); +x_220 = l_Lake_BuildTrace_mix(x_219, x_209); +x_221 = l_Lake_platformTrace; +x_222 = l_Lake_BuildTrace_mix(x_220, x_221); +x_223 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_223, 0, x_182); +lean_ctor_set(x_223, 1, x_222); +lean_ctor_set_uint8(x_223, sizeof(void*)*2, x_183); +x_224 = lean_box(0); +x_225 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_185, x_224, x_12, x_13, x_14, x_15, x_223, x_17); +return x_225; +} +else +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_209); +x_226 = l_Lake_BuildTrace_mix(x_197, x_203); +x_227 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_227, 0, x_182); +lean_ctor_set(x_227, 1, x_226); +lean_ctor_set_uint8(x_227, sizeof(void*)*2, x_183); +x_228 = lean_box(0); +x_229 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_185, x_228, x_12, x_13, x_14, x_15, x_227, x_17); +return x_229; +} +} +} +else +{ +lean_object* x_230; uint8_t x_231; +x_230 = lean_ctor_get(x_210, 0); +x_231 = lean_unbox(x_230); +if (x_231 == 0) +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_232 = l_Lake_BuildTrace_mix(x_197, x_203); +x_233 = l_Lake_BuildTrace_mix(x_232, x_209); +x_234 = l_Lake_platformTrace; +x_235 = l_Lake_BuildTrace_mix(x_233, x_234); +x_236 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_236, 0, x_182); +lean_ctor_set(x_236, 1, x_235); +lean_ctor_set_uint8(x_236, sizeof(void*)*2, x_183); +x_237 = lean_box(0); +x_238 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_185, x_237, x_12, x_13, x_14, x_15, x_236, x_17); +return x_238; +} +else +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +lean_dec(x_209); +x_239 = l_Lake_BuildTrace_mix(x_197, x_203); +x_240 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_240, 0, x_182); +lean_ctor_set(x_240, 1, x_239); +lean_ctor_set_uint8(x_240, sizeof(void*)*2, x_183); +x_241 = lean_box(0); +x_242 = l_Lake_Module_recFetchSetup___lambda__1(x_8, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_185, x_241, x_12, x_13, x_14, x_15, x_240, x_17); +return x_242; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__3(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_18 = lean_box_usize(x_3); +x_19 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__2___boxed), 17, 10); +lean_closure_set(x_19, 0, x_1); +lean_closure_set(x_19, 1, x_2); +lean_closure_set(x_19, 2, x_18); +lean_closure_set(x_19, 3, x_4); +lean_closure_set(x_19, 4, x_5); +lean_closure_set(x_19, 5, x_6); +lean_closure_set(x_19, 6, x_7); +lean_closure_set(x_19, 7, x_8); +lean_closure_set(x_19, 8, x_9); +lean_closure_set(x_19, 9, x_11); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +x_21 = l_Task_Priority_default; +x_22 = 0; +x_23 = l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6(x_10, x_19, x_21, x_22, x_12, x_13, x_14, x_15, x_20, x_17); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_16); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_23); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_16); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +uint8_t x_31; +lean_dec(x_16); +x_31 = !lean_is_exclusive(x_23); if (x_31 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_15, 1); -lean_ctor_set(x_10, 0, x_32); -lean_ctor_set(x_15, 1, x_10); -return x_14; +return x_23; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_23, 0); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_23); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__4(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_18 = lean_box_usize(x_3); +x_19 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__3___boxed), 17, 10); +lean_closure_set(x_19, 0, x_1); +lean_closure_set(x_19, 1, x_2); +lean_closure_set(x_19, 2, x_18); +lean_closure_set(x_19, 3, x_4); +lean_closure_set(x_19, 4, x_5); +lean_closure_set(x_19, 5, x_6); +lean_closure_set(x_19, 6, x_7); +lean_closure_set(x_19, 7, x_8); +lean_closure_set(x_19, 8, x_11); +lean_closure_set(x_19, 9, x_9); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +x_21 = l_Task_Priority_default; +x_22 = 1; +x_23 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11(x_10, x_19, x_21, x_22, x_12, x_13, x_14, x_15, x_20, x_17); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_16); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_23); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_16); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +uint8_t x_31; +lean_dec(x_16); +x_31 = !lean_is_exclusive(x_23); +if (x_31 == 0) +{ +return x_23; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_23, 0); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_23); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__5(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_18 = lean_box_usize(x_3); +x_19 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__4___boxed), 17, 10); +lean_closure_set(x_19, 0, x_1); +lean_closure_set(x_19, 1, x_2); +lean_closure_set(x_19, 2, x_18); +lean_closure_set(x_19, 3, x_4); +lean_closure_set(x_19, 4, x_5); +lean_closure_set(x_19, 5, x_6); +lean_closure_set(x_19, 6, x_7); +lean_closure_set(x_19, 7, x_11); +lean_closure_set(x_19, 8, x_8); +lean_closure_set(x_19, 9, x_9); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +x_21 = l_Task_Priority_default; +x_22 = 1; +x_23 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11(x_10, x_19, x_21, x_22, x_12, x_13, x_14, x_15, x_20, x_17); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_16); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_23); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_16); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +uint8_t x_31; +lean_dec(x_16); +x_31 = !lean_is_exclusive(x_23); +if (x_31 == 0) +{ +return x_23; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_23, 0); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_23); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_1); +lean_ctor_set(x_16, 1, x_1); +x_20 = lean_box_usize(x_4); +lean_inc(x_1); +x_21 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__5___boxed), 17, 10); +lean_closure_set(x_21, 0, x_2); +lean_closure_set(x_21, 1, x_3); +lean_closure_set(x_21, 2, x_20); +lean_closure_set(x_21, 3, x_5); +lean_closure_set(x_21, 4, x_6); +lean_closure_set(x_21, 5, x_1); +lean_closure_set(x_21, 6, x_19); +lean_closure_set(x_21, 7, x_7); +lean_closure_set(x_21, 8, x_8); +lean_closure_set(x_21, 9, x_9); +x_22 = l_Task_Priority_default; +x_23 = 1; +x_24 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11(x_10, x_21, x_22, x_23, x_12, x_13, x_14, x_15, x_1, x_17); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_16); +lean_ctor_set(x_24, 0, x_27); +return x_24; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_24, 0); +x_29 = lean_ctor_get(x_24, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_24); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_16); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_dec(x_16); +x_32 = !lean_is_exclusive(x_24); +if (x_32 == 0) +{ +return x_24; } else { lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_15, 0); -x_34 = lean_ctor_get(x_15, 1); +x_33 = lean_ctor_get(x_24, 0); +x_34 = lean_ctor_get(x_24, 1); lean_inc(x_34); lean_inc(x_33); -lean_dec(x_15); -lean_ctor_set(x_10, 0, x_34); +lean_dec(x_24); x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_10); -lean_ctor_set(x_14, 0, x_35); -return x_14; +lean_ctor_set(x_35, 1, x_34); +return x_35; +} } } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_36 = lean_ctor_get(x_14, 1); -lean_inc(x_36); -lean_dec(x_14); -x_37 = lean_ctor_get(x_15, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_15, 1); +lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_ctor_get_uint8(x_16, sizeof(void*)*2); +x_38 = lean_ctor_get(x_16, 1); lean_inc(x_38); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - x_39 = x_15; +lean_inc(x_36); +lean_dec(x_16); +lean_inc(x_1); +x_39 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_1); +lean_ctor_set_uint8(x_39, sizeof(void*)*2, x_37); +x_40 = lean_box_usize(x_4); +lean_inc(x_1); +x_41 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__5___boxed), 17, 10); +lean_closure_set(x_41, 0, x_2); +lean_closure_set(x_41, 1, x_3); +lean_closure_set(x_41, 2, x_40); +lean_closure_set(x_41, 3, x_5); +lean_closure_set(x_41, 4, x_6); +lean_closure_set(x_41, 5, x_1); +lean_closure_set(x_41, 6, x_38); +lean_closure_set(x_41, 7, x_7); +lean_closure_set(x_41, 8, x_8); +lean_closure_set(x_41, 9, x_9); +x_42 = l_Task_Priority_default; +x_43 = 1; +x_44 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11(x_10, x_41, x_42, x_43, x_12, x_13, x_14, x_15, x_1, x_17); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_47 = x_44; } else { - lean_dec_ref(x_15); - x_39 = lean_box(0); + lean_dec_ref(x_44); + x_47 = lean_box(0); } -lean_ctor_set(x_10, 0, x_38); -if (lean_is_scalar(x_39)) { - x_40 = lean_alloc_ctor(1, 2, 0); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_39); +if (lean_is_scalar(x_47)) { + x_49 = lean_alloc_ctor(0, 2, 0); } else { - x_40 = x_39; + x_49 = x_47; } -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_10); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_36); -return x_41; +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_39); +x_50 = lean_ctor_get(x_44, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_52 = x_44; +} else { + lean_dec_ref(x_44); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(1, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_19 = lean_box_usize(x_4); +x_20 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__6___boxed), 17, 10); +lean_closure_set(x_20, 0, x_1); +lean_closure_set(x_20, 1, x_2); +lean_closure_set(x_20, 2, x_3); +lean_closure_set(x_20, 3, x_19); +lean_closure_set(x_20, 4, x_5); +lean_closure_set(x_20, 5, x_6); +lean_closure_set(x_20, 6, x_7); +lean_closure_set(x_20, 7, x_8); +lean_closure_set(x_20, 8, x_9); +lean_closure_set(x_20, 9, x_10); +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_21); +x_22 = l_Task_Priority_default; +x_23 = 1; +x_24 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__16(x_11, x_20, x_22, x_23, x_13, x_14, x_15, x_16, x_21, x_18); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_17); +lean_ctor_set(x_24, 0, x_27); +return x_24; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_24, 0); +x_29 = lean_ctor_get(x_24, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_24); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_17); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_dec(x_17); +x_32 = !lean_is_exclusive(x_24); +if (x_32 == 0) +{ +return x_24; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_24, 0); +x_34 = lean_ctor_get(x_24, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_24); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__8(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_19 = lean_ctor_get(x_16, 1); +lean_dec(x_19); +x_20 = l_Lake_Module_recFetchInput___closed__3; +lean_ctor_set(x_16, 1, x_20); +x_21 = lean_box_usize(x_2); +x_22 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__7___boxed), 18, 11); +lean_closure_set(x_22, 0, x_20); +lean_closure_set(x_22, 1, x_1); +lean_closure_set(x_22, 2, x_11); +lean_closure_set(x_22, 3, x_21); +lean_closure_set(x_22, 4, x_3); +lean_closure_set(x_22, 5, x_4); +lean_closure_set(x_22, 6, x_5); +lean_closure_set(x_22, 7, x_6); +lean_closure_set(x_22, 8, x_7); +lean_closure_set(x_22, 9, x_8); +lean_closure_set(x_22, 10, x_9); +x_23 = l_Task_Priority_default; +x_24 = 1; +x_25 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__16(x_10, x_22, x_23, x_24, x_12, x_13, x_14, x_15, x_20, x_17); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_16); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_25, 0); +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_25); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_16); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +else +{ +uint8_t x_33; +lean_dec(x_16); +x_33 = !lean_is_exclusive(x_25); +if (x_33 == 0) +{ +return x_25; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_25, 0); +x_35 = lean_ctor_get(x_25, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_25); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } else { -lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_10, 0); -x_43 = lean_ctor_get_uint8(x_10, sizeof(void*)*2); -x_44 = lean_ctor_get(x_10, 1); -lean_inc(x_44); -lean_inc(x_42); -lean_dec(x_10); -x_45 = l_Lake_computeModuleDeps(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_42, x_11); +lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +x_37 = lean_ctor_get(x_16, 0); +x_38 = lean_ctor_get_uint8(x_16, sizeof(void*)*2); +lean_inc(x_37); +lean_dec(x_16); +x_39 = l_Lake_Module_recFetchInput___closed__3; +x_40 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_39); +lean_ctor_set_uint8(x_40, sizeof(void*)*2, x_38); +x_41 = lean_box_usize(x_2); +x_42 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__7___boxed), 18, 11); +lean_closure_set(x_42, 0, x_39); +lean_closure_set(x_42, 1, x_1); +lean_closure_set(x_42, 2, x_11); +lean_closure_set(x_42, 3, x_41); +lean_closure_set(x_42, 4, x_3); +lean_closure_set(x_42, 5, x_4); +lean_closure_set(x_42, 6, x_5); +lean_closure_set(x_42, 7, x_6); +lean_closure_set(x_42, 8, x_7); +lean_closure_set(x_42, 9, x_8); +lean_closure_set(x_42, 10, x_9); +x_43 = l_Task_Priority_default; +x_44 = 1; +x_45 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__16(x_10, x_42, x_43, x_44, x_12, x_13, x_14, x_15, x_39, x_17); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -if (lean_obj_tag(x_46) == 0) -{ -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; x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); if (lean_is_exclusive(x_45)) { @@ -31217,1226 +38118,47 @@ if (lean_is_exclusive(x_45)) { lean_dec_ref(x_45); x_48 = lean_box(0); } -x_49 = lean_ctor_get(x_46, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_46, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_51 = x_46; -} else { - lean_dec_ref(x_46); - x_51 = lean_box(0); -} -x_52 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_44); -lean_ctor_set_uint8(x_52, sizeof(void*)*2, x_43); -if (lean_is_scalar(x_51)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_51; -} -lean_ctor_set(x_53, 0, x_49); -lean_ctor_set(x_53, 1, x_52); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_40); if (lean_is_scalar(x_48)) { - x_54 = lean_alloc_ctor(0, 2, 0); + x_50 = lean_alloc_ctor(0, 2, 0); } else { - x_54 = x_48; + x_50 = x_48; } -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_47); -return x_54; +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; } else { -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; -x_55 = lean_ctor_get(x_45, 1); -lean_inc(x_55); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_40); +x_51 = lean_ctor_get(x_45, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); if (lean_is_exclusive(x_45)) { lean_ctor_release(x_45, 0); lean_ctor_release(x_45, 1); - x_56 = x_45; + x_53 = x_45; } else { lean_dec_ref(x_45); - x_56 = lean_box(0); + x_53 = lean_box(0); } -x_57 = lean_ctor_get(x_46, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_46, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_59 = x_46; +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_46); - x_59 = lean_box(0); + x_54 = x_53; } -x_60 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_44); -lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_43); -if (lean_is_scalar(x_59)) { - x_61 = lean_alloc_ctor(1, 2, 0); -} else { - x_61 = x_59; +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; } -lean_ctor_set(x_61, 0, x_57); -lean_ctor_set(x_61, 1, x_60); -if (lean_is_scalar(x_56)) { - x_62 = lean_alloc_ctor(0, 2, 0); -} else { - x_62 = x_56; } -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_55); -return x_62; } } -} -} -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(":deps", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__2___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("deps", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__2___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("libs", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__2___boxed__const__1() { -_start: -{ -uint64_t x_1; lean_object* x_2; -x_1 = l_Lake_Hash_nil; -x_2 = lean_box_uint64(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___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, lean_object* x_14, lean_object* x_15) { -_start: -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; uint8_t 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; uint8_t x_26; -x_17 = lean_ctor_get(x_14, 1); -x_18 = lean_ctor_get(x_1, 1); -lean_inc(x_18); -lean_dec(x_1); -x_19 = 1; -x_20 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -x_21 = l_Lean_Name_toString(x_18, x_19, x_20); -x_22 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_23 = lean_string_append(x_22, x_21); -lean_dec(x_21); -x_24 = l_Lake_Module_recBuildDeps___lambda__2___closed__1; -x_25 = lean_string_append(x_23, x_24); -x_26 = !lean_is_exclusive(x_2); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_ctor_get(x_2, 2); -lean_dec(x_27); -x_28 = lean_ctor_get(x_2, 0); -lean_dec(x_28); -x_29 = l_Lake_Module_recBuildDeps___lambda__2___boxed__const__1; -lean_ctor_set(x_2, 2, x_29); -lean_ctor_set(x_2, 0, x_25); -x_30 = !lean_is_exclusive(x_3); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_3, 0); -lean_dec(x_31); -x_32 = l_Lake_Module_recBuildDeps___lambda__2___closed__2; -lean_ctor_set(x_3, 0, x_32); -x_33 = !lean_is_exclusive(x_17); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_17, 0); -lean_dec(x_34); -x_35 = l_Lake_Module_recBuildDeps___lambda__2___closed__3; -lean_ctor_set(x_17, 0, x_35); -x_36 = lean_ctor_get(x_7, 10); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_8, 10); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = l_Lake_BuildTrace_mix(x_2, x_3); -x_39 = l_Lake_BuildTrace_mix(x_38, x_17); -lean_ctor_set(x_14, 1, x_39); -x_40 = lean_box(0); -x_41 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_40, x_10, x_11, x_12, x_13, x_14, x_15); -return x_41; -} -else -{ -lean_object* x_42; uint8_t x_43; -x_42 = lean_ctor_get(x_37, 0); -x_43 = lean_unbox(x_42); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = l_Lake_BuildTrace_mix(x_2, x_3); -x_45 = l_Lake_BuildTrace_mix(x_44, x_17); -x_46 = l_Lake_platformTrace; -x_47 = l_Lake_BuildTrace_mix(x_45, x_46); -lean_ctor_set(x_14, 1, x_47); -x_48 = lean_box(0); -x_49 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_48, x_10, x_11, x_12, x_13, x_14, x_15); -return x_49; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_17); -x_50 = l_Lake_BuildTrace_mix(x_2, x_3); -lean_ctor_set(x_14, 1, x_50); -x_51 = lean_box(0); -x_52 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_51, x_10, x_11, x_12, x_13, x_14, x_15); -return x_52; -} -} -} -else -{ -lean_object* x_53; uint8_t x_54; -x_53 = lean_ctor_get(x_36, 0); -x_54 = lean_unbox(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_55 = l_Lake_BuildTrace_mix(x_2, x_3); -x_56 = l_Lake_BuildTrace_mix(x_55, x_17); -x_57 = l_Lake_platformTrace; -x_58 = l_Lake_BuildTrace_mix(x_56, x_57); -lean_ctor_set(x_14, 1, x_58); -x_59 = lean_box(0); -x_60 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_59, x_10, x_11, x_12, x_13, x_14, x_15); -return x_60; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_17); -x_61 = l_Lake_BuildTrace_mix(x_2, x_3); -lean_ctor_set(x_14, 1, x_61); -x_62 = lean_box(0); -x_63 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_62, x_10, x_11, x_12, x_13, x_14, x_15); -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; -x_64 = lean_ctor_get(x_17, 1); -x_65 = lean_ctor_get(x_17, 2); -x_66 = lean_ctor_get(x_17, 3); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_17); -x_67 = l_Lake_Module_recBuildDeps___lambda__2___closed__3; -x_68 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_64); -lean_ctor_set(x_68, 2, x_65); -lean_ctor_set(x_68, 3, x_66); -x_69 = lean_ctor_get(x_7, 10); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; -x_70 = lean_ctor_get(x_8, 10); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_71 = l_Lake_BuildTrace_mix(x_2, x_3); -x_72 = l_Lake_BuildTrace_mix(x_71, x_68); -lean_ctor_set(x_14, 1, x_72); -x_73 = lean_box(0); -x_74 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_73, x_10, x_11, x_12, x_13, x_14, x_15); -return x_74; -} -else -{ -lean_object* x_75; uint8_t x_76; -x_75 = lean_ctor_get(x_70, 0); -x_76 = lean_unbox(x_75); -if (x_76 == 0) -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_77 = l_Lake_BuildTrace_mix(x_2, x_3); -x_78 = l_Lake_BuildTrace_mix(x_77, x_68); -x_79 = l_Lake_platformTrace; -x_80 = l_Lake_BuildTrace_mix(x_78, x_79); -lean_ctor_set(x_14, 1, x_80); -x_81 = lean_box(0); -x_82 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_81, x_10, x_11, x_12, x_13, x_14, x_15); -return x_82; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_68); -x_83 = l_Lake_BuildTrace_mix(x_2, x_3); -lean_ctor_set(x_14, 1, x_83); -x_84 = lean_box(0); -x_85 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_84, x_10, x_11, x_12, x_13, x_14, x_15); -return x_85; -} -} -} -else -{ -lean_object* x_86; uint8_t x_87; -x_86 = lean_ctor_get(x_69, 0); -x_87 = lean_unbox(x_86); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_88 = l_Lake_BuildTrace_mix(x_2, x_3); -x_89 = l_Lake_BuildTrace_mix(x_88, x_68); -x_90 = l_Lake_platformTrace; -x_91 = l_Lake_BuildTrace_mix(x_89, x_90); -lean_ctor_set(x_14, 1, x_91); -x_92 = lean_box(0); -x_93 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_92, x_10, x_11, x_12, x_13, x_14, x_15); -return x_93; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -lean_dec(x_68); -x_94 = l_Lake_BuildTrace_mix(x_2, x_3); -lean_ctor_set(x_14, 1, x_94); -x_95 = lean_box(0); -x_96 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_95, x_10, x_11, x_12, x_13, x_14, x_15); -return x_96; -} -} -} -} -else -{ -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_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_97 = lean_ctor_get(x_3, 1); -x_98 = lean_ctor_get(x_3, 2); -x_99 = lean_ctor_get(x_3, 3); -lean_inc(x_99); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_3); -x_100 = l_Lake_Module_recBuildDeps___lambda__2___closed__2; -x_101 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_97); -lean_ctor_set(x_101, 2, x_98); -lean_ctor_set(x_101, 3, x_99); -x_102 = lean_ctor_get(x_17, 1); -lean_inc(x_102); -x_103 = lean_ctor_get(x_17, 2); -lean_inc(x_103); -x_104 = lean_ctor_get(x_17, 3); -lean_inc(x_104); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - lean_ctor_release(x_17, 1); - lean_ctor_release(x_17, 2); - lean_ctor_release(x_17, 3); - x_105 = x_17; -} else { - lean_dec_ref(x_17); - x_105 = lean_box(0); -} -x_106 = l_Lake_Module_recBuildDeps___lambda__2___closed__3; -if (lean_is_scalar(x_105)) { - x_107 = lean_alloc_ctor(0, 4, 0); -} else { - x_107 = x_105; -} -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_102); -lean_ctor_set(x_107, 2, x_103); -lean_ctor_set(x_107, 3, x_104); -x_108 = lean_ctor_get(x_7, 10); -if (lean_obj_tag(x_108) == 0) -{ -lean_object* x_109; -x_109 = lean_ctor_get(x_8, 10); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_110 = l_Lake_BuildTrace_mix(x_2, x_101); -x_111 = l_Lake_BuildTrace_mix(x_110, x_107); -lean_ctor_set(x_14, 1, x_111); -x_112 = lean_box(0); -x_113 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_112, x_10, x_11, x_12, x_13, x_14, x_15); -return x_113; -} -else -{ -lean_object* x_114; uint8_t x_115; -x_114 = lean_ctor_get(x_109, 0); -x_115 = lean_unbox(x_114); -if (x_115 == 0) -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_116 = l_Lake_BuildTrace_mix(x_2, x_101); -x_117 = l_Lake_BuildTrace_mix(x_116, x_107); -x_118 = l_Lake_platformTrace; -x_119 = l_Lake_BuildTrace_mix(x_117, x_118); -lean_ctor_set(x_14, 1, x_119); -x_120 = lean_box(0); -x_121 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_120, x_10, x_11, x_12, x_13, x_14, x_15); -return x_121; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_107); -x_122 = l_Lake_BuildTrace_mix(x_2, x_101); -lean_ctor_set(x_14, 1, x_122); -x_123 = lean_box(0); -x_124 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_123, x_10, x_11, x_12, x_13, x_14, x_15); -return x_124; -} -} -} -else -{ -lean_object* x_125; uint8_t x_126; -x_125 = lean_ctor_get(x_108, 0); -x_126 = lean_unbox(x_125); -if (x_126 == 0) -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_127 = l_Lake_BuildTrace_mix(x_2, x_101); -x_128 = l_Lake_BuildTrace_mix(x_127, x_107); -x_129 = l_Lake_platformTrace; -x_130 = l_Lake_BuildTrace_mix(x_128, x_129); -lean_ctor_set(x_14, 1, x_130); -x_131 = lean_box(0); -x_132 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_131, x_10, x_11, x_12, x_13, x_14, x_15); -return x_132; -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_107); -x_133 = l_Lake_BuildTrace_mix(x_2, x_101); -lean_ctor_set(x_14, 1, x_133); -x_134 = lean_box(0); -x_135 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_134, x_10, x_11, x_12, x_13, x_14, x_15); -return x_135; -} -} -} -} -else -{ -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; -x_136 = lean_ctor_get(x_2, 1); -x_137 = lean_ctor_get(x_2, 3); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_2); -x_138 = l_Lake_Module_recBuildDeps___lambda__2___boxed__const__1; -x_139 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_139, 0, x_25); -lean_ctor_set(x_139, 1, x_136); -lean_ctor_set(x_139, 2, x_138); -lean_ctor_set(x_139, 3, x_137); -x_140 = lean_ctor_get(x_3, 1); -lean_inc(x_140); -x_141 = lean_ctor_get(x_3, 2); -lean_inc(x_141); -x_142 = lean_ctor_get(x_3, 3); -lean_inc(x_142); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - x_143 = x_3; -} else { - lean_dec_ref(x_3); - x_143 = lean_box(0); -} -x_144 = l_Lake_Module_recBuildDeps___lambda__2___closed__2; -if (lean_is_scalar(x_143)) { - x_145 = lean_alloc_ctor(0, 4, 0); -} else { - x_145 = x_143; -} -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_140); -lean_ctor_set(x_145, 2, x_141); -lean_ctor_set(x_145, 3, x_142); -x_146 = lean_ctor_get(x_17, 1); -lean_inc(x_146); -x_147 = lean_ctor_get(x_17, 2); -lean_inc(x_147); -x_148 = lean_ctor_get(x_17, 3); -lean_inc(x_148); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - lean_ctor_release(x_17, 1); - lean_ctor_release(x_17, 2); - lean_ctor_release(x_17, 3); - x_149 = x_17; -} else { - lean_dec_ref(x_17); - x_149 = lean_box(0); -} -x_150 = l_Lake_Module_recBuildDeps___lambda__2___closed__3; -if (lean_is_scalar(x_149)) { - x_151 = lean_alloc_ctor(0, 4, 0); -} else { - x_151 = x_149; -} -lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_146); -lean_ctor_set(x_151, 2, x_147); -lean_ctor_set(x_151, 3, x_148); -x_152 = lean_ctor_get(x_7, 10); -if (lean_obj_tag(x_152) == 0) -{ -lean_object* x_153; -x_153 = lean_ctor_get(x_8, 10); -if (lean_obj_tag(x_153) == 0) -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_154 = l_Lake_BuildTrace_mix(x_139, x_145); -x_155 = l_Lake_BuildTrace_mix(x_154, x_151); -lean_ctor_set(x_14, 1, x_155); -x_156 = lean_box(0); -x_157 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_156, x_10, x_11, x_12, x_13, x_14, x_15); -return x_157; -} -else -{ -lean_object* x_158; uint8_t x_159; -x_158 = lean_ctor_get(x_153, 0); -x_159 = lean_unbox(x_158); -if (x_159 == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_160 = l_Lake_BuildTrace_mix(x_139, x_145); -x_161 = l_Lake_BuildTrace_mix(x_160, x_151); -x_162 = l_Lake_platformTrace; -x_163 = l_Lake_BuildTrace_mix(x_161, x_162); -lean_ctor_set(x_14, 1, x_163); -x_164 = lean_box(0); -x_165 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_164, x_10, x_11, x_12, x_13, x_14, x_15); -return x_165; -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_dec(x_151); -x_166 = l_Lake_BuildTrace_mix(x_139, x_145); -lean_ctor_set(x_14, 1, x_166); -x_167 = lean_box(0); -x_168 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_167, x_10, x_11, x_12, x_13, x_14, x_15); -return x_168; -} -} -} -else -{ -lean_object* x_169; uint8_t x_170; -x_169 = lean_ctor_get(x_152, 0); -x_170 = lean_unbox(x_169); -if (x_170 == 0) -{ -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_171 = l_Lake_BuildTrace_mix(x_139, x_145); -x_172 = l_Lake_BuildTrace_mix(x_171, x_151); -x_173 = l_Lake_platformTrace; -x_174 = l_Lake_BuildTrace_mix(x_172, x_173); -lean_ctor_set(x_14, 1, x_174); -x_175 = lean_box(0); -x_176 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_175, x_10, x_11, x_12, x_13, x_14, x_15); -return x_176; -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -lean_dec(x_151); -x_177 = l_Lake_BuildTrace_mix(x_139, x_145); -lean_ctor_set(x_14, 1, x_177); -x_178 = lean_box(0); -x_179 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_178, x_10, x_11, x_12, x_13, x_14, x_15); -return x_179; -} -} -} -} -else -{ -lean_object* x_180; uint8_t x_181; lean_object* x_182; lean_object* x_183; uint8_t 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; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_180 = lean_ctor_get(x_14, 0); -x_181 = lean_ctor_get_uint8(x_14, sizeof(void*)*2); -x_182 = lean_ctor_get(x_14, 1); -lean_inc(x_182); -lean_inc(x_180); -lean_dec(x_14); -x_183 = lean_ctor_get(x_1, 1); -lean_inc(x_183); -lean_dec(x_1); -x_184 = 1; -x_185 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -x_186 = l_Lean_Name_toString(x_183, x_184, x_185); -x_187 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_188 = lean_string_append(x_187, x_186); -lean_dec(x_186); -x_189 = l_Lake_Module_recBuildDeps___lambda__2___closed__1; -x_190 = lean_string_append(x_188, x_189); -x_191 = lean_ctor_get(x_2, 1); -lean_inc(x_191); -x_192 = lean_ctor_get(x_2, 3); -lean_inc(x_192); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - x_193 = x_2; -} else { - lean_dec_ref(x_2); - x_193 = lean_box(0); -} -x_194 = l_Lake_Module_recBuildDeps___lambda__2___boxed__const__1; -if (lean_is_scalar(x_193)) { - x_195 = lean_alloc_ctor(0, 4, 0); -} else { - x_195 = x_193; -} -lean_ctor_set(x_195, 0, x_190); -lean_ctor_set(x_195, 1, x_191); -lean_ctor_set(x_195, 2, x_194); -lean_ctor_set(x_195, 3, x_192); -x_196 = lean_ctor_get(x_3, 1); -lean_inc(x_196); -x_197 = lean_ctor_get(x_3, 2); -lean_inc(x_197); -x_198 = lean_ctor_get(x_3, 3); -lean_inc(x_198); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - x_199 = x_3; -} else { - lean_dec_ref(x_3); - x_199 = lean_box(0); -} -x_200 = l_Lake_Module_recBuildDeps___lambda__2___closed__2; -if (lean_is_scalar(x_199)) { - x_201 = lean_alloc_ctor(0, 4, 0); -} else { - x_201 = x_199; -} -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_196); -lean_ctor_set(x_201, 2, x_197); -lean_ctor_set(x_201, 3, x_198); -x_202 = lean_ctor_get(x_182, 1); -lean_inc(x_202); -x_203 = lean_ctor_get(x_182, 2); -lean_inc(x_203); -x_204 = lean_ctor_get(x_182, 3); -lean_inc(x_204); -if (lean_is_exclusive(x_182)) { - lean_ctor_release(x_182, 0); - lean_ctor_release(x_182, 1); - lean_ctor_release(x_182, 2); - lean_ctor_release(x_182, 3); - x_205 = x_182; -} else { - lean_dec_ref(x_182); - x_205 = lean_box(0); -} -x_206 = l_Lake_Module_recBuildDeps___lambda__2___closed__3; -if (lean_is_scalar(x_205)) { - x_207 = lean_alloc_ctor(0, 4, 0); -} else { - x_207 = x_205; -} -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_202); -lean_ctor_set(x_207, 2, x_203); -lean_ctor_set(x_207, 3, x_204); -x_208 = lean_ctor_get(x_7, 10); -if (lean_obj_tag(x_208) == 0) -{ -lean_object* x_209; -x_209 = lean_ctor_get(x_8, 10); -if (lean_obj_tag(x_209) == 0) -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_210 = l_Lake_BuildTrace_mix(x_195, x_201); -x_211 = l_Lake_BuildTrace_mix(x_210, x_207); -x_212 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_212, 0, x_180); -lean_ctor_set(x_212, 1, x_211); -lean_ctor_set_uint8(x_212, sizeof(void*)*2, x_181); -x_213 = lean_box(0); -x_214 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_213, x_10, x_11, x_12, x_13, x_212, x_15); -return x_214; -} -else -{ -lean_object* x_215; uint8_t x_216; -x_215 = lean_ctor_get(x_209, 0); -x_216 = lean_unbox(x_215); -if (x_216 == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_217 = l_Lake_BuildTrace_mix(x_195, x_201); -x_218 = l_Lake_BuildTrace_mix(x_217, x_207); -x_219 = l_Lake_platformTrace; -x_220 = l_Lake_BuildTrace_mix(x_218, x_219); -x_221 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_221, 0, x_180); -lean_ctor_set(x_221, 1, x_220); -lean_ctor_set_uint8(x_221, sizeof(void*)*2, x_181); -x_222 = lean_box(0); -x_223 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_222, x_10, x_11, x_12, x_13, x_221, x_15); -return x_223; -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -lean_dec(x_207); -x_224 = l_Lake_BuildTrace_mix(x_195, x_201); -x_225 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_225, 0, x_180); -lean_ctor_set(x_225, 1, x_224); -lean_ctor_set_uint8(x_225, sizeof(void*)*2, x_181); -x_226 = lean_box(0); -x_227 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_226, x_10, x_11, x_12, x_13, x_225, x_15); -return x_227; -} -} -} -else -{ -lean_object* x_228; uint8_t x_229; -x_228 = lean_ctor_get(x_208, 0); -x_229 = lean_unbox(x_228); -if (x_229 == 0) -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; -x_230 = l_Lake_BuildTrace_mix(x_195, x_201); -x_231 = l_Lake_BuildTrace_mix(x_230, x_207); -x_232 = l_Lake_platformTrace; -x_233 = l_Lake_BuildTrace_mix(x_231, x_232); -x_234 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_234, 0, x_180); -lean_ctor_set(x_234, 1, x_233); -lean_ctor_set_uint8(x_234, sizeof(void*)*2, x_181); -x_235 = lean_box(0); -x_236 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_235, x_10, x_11, x_12, x_13, x_234, x_15); -return x_236; -} -else -{ -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -lean_dec(x_207); -x_237 = l_Lake_BuildTrace_mix(x_195, x_201); -x_238 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_238, 0, x_180); -lean_ctor_set(x_238, 1, x_237); -lean_ctor_set_uint8(x_238, sizeof(void*)*2, x_181); -x_239 = lean_box(0); -x_240 = l_Lake_Module_recBuildDeps___lambda__1(x_4, x_5, x_6, x_9, x_239, x_10, x_11, x_12, x_13, x_238, x_15); -return x_240; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; -x_16 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__2___boxed), 15, 8); -lean_closure_set(x_16, 0, x_1); -lean_closure_set(x_16, 1, x_2); -lean_closure_set(x_16, 2, x_3); -lean_closure_set(x_16, 3, x_4); -lean_closure_set(x_16, 4, x_5); -lean_closure_set(x_16, 5, x_9); -lean_closure_set(x_16, 6, x_6); -lean_closure_set(x_16, 7, x_7); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -x_18 = l_Task_Priority_default; -x_19 = 0; -x_20 = l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5(x_8, x_16, x_18, x_19, x_10, x_11, x_12, x_13, x_17, x_15); -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_14); -lean_ctor_set(x_20, 0, x_23); -return x_20; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_14); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_14); -x_28 = !lean_is_exclusive(x_20); -if (x_28 == 0) -{ -return x_20; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_20, 0); -x_30 = lean_ctor_get(x_20, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_20); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; -x_16 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__3), 15, 8); -lean_closure_set(x_16, 0, x_1); -lean_closure_set(x_16, 1, x_2); -lean_closure_set(x_16, 2, x_3); -lean_closure_set(x_16, 3, x_4); -lean_closure_set(x_16, 4, x_9); -lean_closure_set(x_16, 5, x_5); -lean_closure_set(x_16, 6, x_6); -lean_closure_set(x_16, 7, x_7); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -x_18 = l_Task_Priority_default; -x_19 = 1; -x_20 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(x_8, x_16, x_18, x_19, x_10, x_11, x_12, x_13, x_17, x_15); -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_14); -lean_ctor_set(x_20, 0, x_23); -return x_20; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_14); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_14); -x_28 = !lean_is_exclusive(x_20); -if (x_28 == 0) -{ -return x_20; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_20, 0); -x_30 = lean_ctor_get(x_20, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_20); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; -x_16 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__4), 15, 8); -lean_closure_set(x_16, 0, x_1); -lean_closure_set(x_16, 1, x_2); -lean_closure_set(x_16, 2, x_3); -lean_closure_set(x_16, 3, x_9); -lean_closure_set(x_16, 4, x_4); -lean_closure_set(x_16, 5, x_5); -lean_closure_set(x_16, 6, x_6); -lean_closure_set(x_16, 7, x_7); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -x_18 = l_Task_Priority_default; -x_19 = 1; -x_20 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(x_8, x_16, x_18, x_19, x_10, x_11, x_12, x_13, x_17, x_15); -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_14); -lean_ctor_set(x_20, 0, x_23); -return x_20; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_14); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_14); -x_28 = !lean_is_exclusive(x_20); -if (x_28 == 0) -{ -return x_20; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_20, 0); -x_30 = lean_ctor_get(x_20, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_20); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -uint8_t x_15; -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_13, 1); -x_17 = l_Lake_Module_recParseImports___closed__3; -lean_ctor_set(x_13, 1, x_17); -x_18 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__5), 15, 8); -lean_closure_set(x_18, 0, x_1); -lean_closure_set(x_18, 1, x_17); -lean_closure_set(x_18, 2, x_16); -lean_closure_set(x_18, 3, x_2); -lean_closure_set(x_18, 4, x_3); -lean_closure_set(x_18, 5, x_4); -lean_closure_set(x_18, 6, x_5); -lean_closure_set(x_18, 7, x_6); -x_19 = l_Task_Priority_default; -x_20 = 1; -x_21 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(x_7, x_18, x_19, x_20, x_9, x_10, x_11, x_12, x_17, x_14); -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_13); -lean_ctor_set(x_21, 0, x_24); -return x_21; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_21, 0); -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_21); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_13); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} -} -else -{ -uint8_t x_29; -lean_dec(x_13); -x_29 = !lean_is_exclusive(x_21); -if (x_29 == 0) -{ -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_21, 0); -x_31 = lean_ctor_get(x_21, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_21); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -else -{ -lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; -x_33 = lean_ctor_get(x_13, 0); -x_34 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); -x_35 = lean_ctor_get(x_13, 1); -lean_inc(x_35); -lean_inc(x_33); -lean_dec(x_13); -x_36 = l_Lake_Module_recParseImports___closed__3; -x_37 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_37, 0, x_33); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set_uint8(x_37, sizeof(void*)*2, x_34); -x_38 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__5), 15, 8); -lean_closure_set(x_38, 0, x_1); -lean_closure_set(x_38, 1, x_36); -lean_closure_set(x_38, 2, x_35); -lean_closure_set(x_38, 3, x_2); -lean_closure_set(x_38, 4, x_3); -lean_closure_set(x_38, 5, x_4); -lean_closure_set(x_38, 6, x_5); -lean_closure_set(x_38, 7, x_6); -x_39 = l_Task_Priority_default; -x_40 = 1; -x_41 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(x_7, x_38, x_39, x_40, x_9, x_10, x_11, x_12, x_36, x_14); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_44 = x_41; -} else { - lean_dec_ref(x_41); - x_44 = lean_box(0); -} -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_42); -lean_ctor_set(x_45, 1, x_37); -if (lean_is_scalar(x_44)) { - x_46 = lean_alloc_ctor(0, 2, 0); -} else { - x_46 = x_44; -} -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_43); -return x_46; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_37); -x_47 = lean_ctor_get(x_41, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_41, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_49 = x_41; -} else { - lean_dec_ref(x_41); - x_49 = lean_box(0); -} -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(1, 2, 0); -} else { - x_50 = x_49; -} -lean_ctor_set(x_50, 0, x_47); -lean_ctor_set(x_50, 1, x_48); -return x_50; -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; -x_16 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__6___boxed), 14, 7); -lean_closure_set(x_16, 0, x_1); -lean_closure_set(x_16, 1, x_2); -lean_closure_set(x_16, 2, x_3); -lean_closure_set(x_16, 3, x_4); -lean_closure_set(x_16, 4, x_5); -lean_closure_set(x_16, 5, x_6); -lean_closure_set(x_16, 6, x_7); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -x_18 = l_Task_Priority_default; -x_19 = 1; -x_20 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15(x_8, x_16, x_18, x_19, x_10, x_11, x_12, x_13, x_17, x_15); -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_14); -lean_ctor_set(x_20, 0, x_23); -return x_20; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_14); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_14); -x_28 = !lean_is_exclusive(x_20); -if (x_28 == 0) -{ -return x_20; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_20, 0); -x_30 = lean_ctor_get(x_20, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_20); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -} -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__8___closed__1() { +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__9___closed__1() { _start: { lean_object* x_1; @@ -32444,7 +38166,7 @@ x_1 = lean_mk_string_unchecked("module dynlibs", 14, 14); return x_1; } } -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__8___closed__2() { +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__9___closed__2() { _start: { lean_object* x_1; @@ -32452,7 +38174,7 @@ x_1 = lean_mk_string_unchecked("module plugins", 14, 14); return x_1; } } -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__8___closed__3() { +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__9___closed__3() { _start: { lean_object* x_1; @@ -32460,349 +38182,358 @@ x_1 = lean_mk_string_unchecked("package external libraries", 26, 26); return x_1; } } -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__8___closed__4() { +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__9___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -x_2 = l_Lake_Module_recBuildDeps___lambda__8___closed__3; +x_2 = l_Lake_Module_recFetchSetup___lambda__9___closed__3; x_3 = l_Lake_Job_collectArray___rarg(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +static size_t _init_l_Lake_Module_recFetchSetup___lambda__9___closed__5() { _start: { -lean_object* x_15; lean_object* x_16; lean_object* x_242; lean_object* x_243; lean_object* x_259; lean_object* x_260; lean_object* x_284; lean_object* x_285; -x_284 = lean_ctor_get(x_8, 0); -lean_inc(x_284); -lean_dec(x_8); -x_285 = lean_io_wait(x_284, x_14); -if (lean_obj_tag(x_285) == 0) +lean_object* x_1; size_t x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_2 = lean_array_size(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: { -lean_object* x_286; -x_286 = lean_ctor_get(x_285, 0); -lean_inc(x_286); -if (lean_obj_tag(x_286) == 0) -{ -lean_object* x_287; lean_object* x_288; uint8_t x_289; -x_287 = lean_ctor_get(x_286, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_245; lean_object* x_246; lean_object* x_262; lean_object* x_263; lean_object* x_287; lean_object* x_288; +x_287 = lean_ctor_get(x_9, 0); lean_inc(x_287); -x_288 = lean_ctor_get(x_285, 1); -lean_inc(x_288); -lean_dec(x_285); -x_289 = !lean_is_exclusive(x_286); -if (x_289 == 0) +lean_dec(x_9); +x_288 = lean_io_wait(x_287, x_15); +if (lean_obj_tag(x_288) == 0) { -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; -x_290 = lean_ctor_get(x_286, 0); -x_291 = lean_ctor_get(x_286, 1); -lean_dec(x_291); -x_292 = lean_ctor_get(x_287, 0); -lean_inc(x_292); -lean_dec(x_287); -x_293 = lean_array_get_size(x_292); -x_294 = lean_unsigned_to_nat(0u); -x_295 = lean_nat_dec_lt(x_294, x_293); -if (x_295 == 0) +lean_object* x_289; +x_289 = lean_ctor_get(x_288, 0); +lean_inc(x_289); +if (lean_obj_tag(x_289) == 0) { -lean_dec(x_293); -lean_dec(x_292); -lean_ctor_set(x_286, 1, x_13); -x_259 = x_286; -x_260 = x_288; -goto block_283; +lean_object* x_290; lean_object* x_291; uint8_t x_292; +x_290 = lean_ctor_get(x_289, 1); +lean_inc(x_290); +x_291 = lean_ctor_get(x_288, 1); +lean_inc(x_291); +lean_dec(x_288); +x_292 = !lean_is_exclusive(x_289); +if (x_292 == 0) +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; +x_293 = lean_ctor_get(x_289, 0); +x_294 = lean_ctor_get(x_289, 1); +lean_dec(x_294); +x_295 = lean_ctor_get(x_290, 0); +lean_inc(x_295); +lean_dec(x_290); +x_296 = lean_array_get_size(x_295); +x_297 = lean_unsigned_to_nat(0u); +x_298 = lean_nat_dec_lt(x_297, x_296); +if (x_298 == 0) +{ +lean_dec(x_296); +lean_dec(x_295); +lean_ctor_set(x_289, 1, x_14); +x_262 = x_289; +x_263 = x_291; +goto block_286; } else { -uint8_t x_296; -x_296 = lean_nat_dec_le(x_293, x_293); -if (x_296 == 0) +uint8_t x_299; +x_299 = lean_nat_dec_le(x_296, x_296); +if (x_299 == 0) { -lean_dec(x_293); -lean_dec(x_292); -lean_ctor_set(x_286, 1, x_13); -x_259 = x_286; -x_260 = x_288; -goto block_283; +lean_dec(x_296); +lean_dec(x_295); +lean_ctor_set(x_289, 1, x_14); +x_262 = x_289; +x_263 = x_291; +goto block_286; } else { -size_t x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; uint8_t x_302; -lean_free_object(x_286); -x_297 = lean_usize_of_nat(x_293); -lean_dec(x_293); -x_298 = lean_box(0); -x_299 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_292, x_6, x_297, x_298, x_13, x_288); -lean_dec(x_292); -x_300 = lean_ctor_get(x_299, 0); -lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 1); -lean_inc(x_301); -lean_dec(x_299); -x_302 = !lean_is_exclusive(x_300); -if (x_302 == 0) -{ -lean_object* x_303; -x_303 = lean_ctor_get(x_300, 0); -lean_dec(x_303); -lean_ctor_set(x_300, 0, x_290); -x_259 = x_300; -x_260 = x_301; -goto block_283; -} -else -{ -lean_object* x_304; lean_object* x_305; -x_304 = lean_ctor_get(x_300, 1); +size_t x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; +lean_free_object(x_289); +x_300 = lean_usize_of_nat(x_296); +lean_dec(x_296); +x_301 = lean_box(0); +x_302 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_295, x_4, x_300, x_301, x_14, x_291); +lean_dec(x_295); +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_302, 1); lean_inc(x_304); -lean_dec(x_300); -x_305 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_305, 0, x_290); -lean_ctor_set(x_305, 1, x_304); -x_259 = x_305; -x_260 = x_301; -goto block_283; -} -} -} +lean_dec(x_302); +x_305 = !lean_is_exclusive(x_303); +if (x_305 == 0) +{ +lean_object* x_306; +x_306 = lean_ctor_get(x_303, 0); +lean_dec(x_306); +lean_ctor_set(x_303, 0, x_293); +x_262 = x_303; +x_263 = x_304; +goto block_286; } else { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; uint8_t x_310; -x_306 = lean_ctor_get(x_286, 0); -lean_inc(x_306); -lean_dec(x_286); -x_307 = lean_ctor_get(x_287, 0); +lean_object* x_307; lean_object* x_308; +x_307 = lean_ctor_get(x_303, 1); lean_inc(x_307); -lean_dec(x_287); -x_308 = lean_array_get_size(x_307); -x_309 = lean_unsigned_to_nat(0u); -x_310 = lean_nat_dec_lt(x_309, x_308); -if (x_310 == 0) -{ -lean_object* x_311; -lean_dec(x_308); -lean_dec(x_307); -x_311 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_311, 0, x_306); -lean_ctor_set(x_311, 1, x_13); -x_259 = x_311; -x_260 = x_288; -goto block_283; -} -else -{ -uint8_t x_312; -x_312 = lean_nat_dec_le(x_308, x_308); -if (x_312 == 0) -{ -lean_object* x_313; -lean_dec(x_308); -lean_dec(x_307); -x_313 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_313, 0, x_306); -lean_ctor_set(x_313, 1, x_13); -x_259 = x_313; -x_260 = x_288; -goto block_283; -} -else -{ -size_t x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_314 = lean_usize_of_nat(x_308); -lean_dec(x_308); -x_315 = lean_box(0); -x_316 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_307, x_6, x_314, x_315, x_13, x_288); -lean_dec(x_307); -x_317 = lean_ctor_get(x_316, 0); -lean_inc(x_317); -x_318 = lean_ctor_get(x_316, 1); -lean_inc(x_318); -lean_dec(x_316); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -if (lean_is_exclusive(x_317)) { - lean_ctor_release(x_317, 0); - lean_ctor_release(x_317, 1); - x_320 = x_317; -} else { - lean_dec_ref(x_317); - x_320 = lean_box(0); -} -if (lean_is_scalar(x_320)) { - x_321 = lean_alloc_ctor(0, 2, 0); -} else { - x_321 = x_320; -} -lean_ctor_set(x_321, 0, x_306); -lean_ctor_set(x_321, 1, x_319); -x_259 = x_321; -x_260 = x_318; -goto block_283; +lean_dec(x_303); +x_308 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_308, 0, x_293); +lean_ctor_set(x_308, 1, x_307); +x_262 = x_308; +x_263 = x_304; +goto block_286; } } } } else { -lean_object* x_322; lean_object* x_323; uint8_t x_324; -x_322 = lean_ctor_get(x_286, 1); +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_289, 0); +lean_inc(x_309); +lean_dec(x_289); +x_310 = lean_ctor_get(x_290, 0); +lean_inc(x_310); +lean_dec(x_290); +x_311 = lean_array_get_size(x_310); +x_312 = lean_unsigned_to_nat(0u); +x_313 = lean_nat_dec_lt(x_312, x_311); +if (x_313 == 0) +{ +lean_object* x_314; +lean_dec(x_311); +lean_dec(x_310); +x_314 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_314, 0, x_309); +lean_ctor_set(x_314, 1, x_14); +x_262 = x_314; +x_263 = x_291; +goto block_286; +} +else +{ +uint8_t x_315; +x_315 = lean_nat_dec_le(x_311, x_311); +if (x_315 == 0) +{ +lean_object* x_316; +lean_dec(x_311); +lean_dec(x_310); +x_316 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_316, 0, x_309); +lean_ctor_set(x_316, 1, x_14); +x_262 = x_316; +x_263 = x_291; +goto block_286; +} +else +{ +size_t x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_317 = lean_usize_of_nat(x_311); +lean_dec(x_311); +x_318 = lean_box(0); +x_319 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_310, x_4, x_317, x_318, x_14, x_291); +lean_dec(x_310); +x_320 = lean_ctor_get(x_319, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_319, 1); +lean_inc(x_321); +lean_dec(x_319); +x_322 = lean_ctor_get(x_320, 1); lean_inc(x_322); -x_323 = lean_ctor_get(x_285, 1); -lean_inc(x_323); -lean_dec(x_285); -x_324 = !lean_is_exclusive(x_286); -if (x_324 == 0) -{ -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; uint8_t x_330; -x_325 = lean_ctor_get(x_286, 0); -x_326 = lean_ctor_get(x_286, 1); -lean_dec(x_326); -x_327 = lean_ctor_get(x_322, 0); -lean_inc(x_327); -lean_dec(x_322); -x_328 = lean_array_get_size(x_327); -x_329 = lean_unsigned_to_nat(0u); -x_330 = lean_nat_dec_lt(x_329, x_328); -if (x_330 == 0) -{ -lean_dec(x_328); -lean_dec(x_327); -lean_ctor_set(x_286, 1, x_13); -x_259 = x_286; -x_260 = x_323; -goto block_283; +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + x_323 = x_320; +} else { + lean_dec_ref(x_320); + x_323 = lean_box(0); +} +if (lean_is_scalar(x_323)) { + x_324 = lean_alloc_ctor(0, 2, 0); +} else { + x_324 = x_323; +} +lean_ctor_set(x_324, 0, x_309); +lean_ctor_set(x_324, 1, x_322); +x_262 = x_324; +x_263 = x_321; +goto block_286; +} +} +} } else { -uint8_t x_331; -x_331 = lean_nat_dec_le(x_328, x_328); -if (x_331 == 0) +lean_object* x_325; lean_object* x_326; uint8_t x_327; +x_325 = lean_ctor_get(x_289, 1); +lean_inc(x_325); +x_326 = lean_ctor_get(x_288, 1); +lean_inc(x_326); +lean_dec(x_288); +x_327 = !lean_is_exclusive(x_289); +if (x_327 == 0) { -lean_dec(x_328); -lean_dec(x_327); -lean_ctor_set(x_286, 1, x_13); -x_259 = x_286; -x_260 = x_323; -goto block_283; +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; +x_328 = lean_ctor_get(x_289, 0); +x_329 = lean_ctor_get(x_289, 1); +lean_dec(x_329); +x_330 = lean_ctor_get(x_325, 0); +lean_inc(x_330); +lean_dec(x_325); +x_331 = lean_array_get_size(x_330); +x_332 = lean_unsigned_to_nat(0u); +x_333 = lean_nat_dec_lt(x_332, x_331); +if (x_333 == 0) +{ +lean_dec(x_331); +lean_dec(x_330); +lean_ctor_set(x_289, 1, x_14); +x_262 = x_289; +x_263 = x_326; +goto block_286; } else { -size_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; -lean_free_object(x_286); -x_332 = lean_usize_of_nat(x_328); -lean_dec(x_328); -x_333 = lean_box(0); -x_334 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_327, x_6, x_332, x_333, x_13, x_323); -lean_dec(x_327); -x_335 = lean_ctor_get(x_334, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_334, 1); -lean_inc(x_336); -lean_dec(x_334); -x_337 = !lean_is_exclusive(x_335); -if (x_337 == 0) +uint8_t x_334; +x_334 = lean_nat_dec_le(x_331, x_331); +if (x_334 == 0) { -lean_object* x_338; -x_338 = lean_ctor_get(x_335, 0); -lean_dec(x_338); -lean_ctor_set_tag(x_335, 1); -lean_ctor_set(x_335, 0, x_325); -x_259 = x_335; -x_260 = x_336; -goto block_283; +lean_dec(x_331); +lean_dec(x_330); +lean_ctor_set(x_289, 1, x_14); +x_262 = x_289; +x_263 = x_326; +goto block_286; } else { -lean_object* x_339; lean_object* x_340; -x_339 = lean_ctor_get(x_335, 1); +size_t x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; +lean_free_object(x_289); +x_335 = lean_usize_of_nat(x_331); +lean_dec(x_331); +x_336 = lean_box(0); +x_337 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_330, x_4, x_335, x_336, x_14, x_326); +lean_dec(x_330); +x_338 = lean_ctor_get(x_337, 0); +lean_inc(x_338); +x_339 = lean_ctor_get(x_337, 1); lean_inc(x_339); -lean_dec(x_335); -x_340 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_340, 0, x_325); -lean_ctor_set(x_340, 1, x_339); -x_259 = x_340; -x_260 = x_336; -goto block_283; -} -} -} +lean_dec(x_337); +x_340 = !lean_is_exclusive(x_338); +if (x_340 == 0) +{ +lean_object* x_341; +x_341 = lean_ctor_get(x_338, 0); +lean_dec(x_341); +lean_ctor_set_tag(x_338, 1); +lean_ctor_set(x_338, 0, x_328); +x_262 = x_338; +x_263 = x_339; +goto block_286; } else { -lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; -x_341 = lean_ctor_get(x_286, 0); -lean_inc(x_341); -lean_dec(x_286); -x_342 = lean_ctor_get(x_322, 0); +lean_object* x_342; lean_object* x_343; +x_342 = lean_ctor_get(x_338, 1); lean_inc(x_342); -lean_dec(x_322); -x_343 = lean_array_get_size(x_342); -x_344 = lean_unsigned_to_nat(0u); -x_345 = lean_nat_dec_lt(x_344, x_343); -if (x_345 == 0) -{ -lean_object* x_346; -lean_dec(x_343); -lean_dec(x_342); -x_346 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_346, 0, x_341); -lean_ctor_set(x_346, 1, x_13); -x_259 = x_346; -x_260 = x_323; -goto block_283; +lean_dec(x_338); +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_328); +lean_ctor_set(x_343, 1, x_342); +x_262 = x_343; +x_263 = x_339; +goto block_286; +} +} +} } else { -uint8_t x_347; -x_347 = lean_nat_dec_le(x_343, x_343); -if (x_347 == 0) +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; uint8_t x_348; +x_344 = lean_ctor_get(x_289, 0); +lean_inc(x_344); +lean_dec(x_289); +x_345 = lean_ctor_get(x_325, 0); +lean_inc(x_345); +lean_dec(x_325); +x_346 = lean_array_get_size(x_345); +x_347 = lean_unsigned_to_nat(0u); +x_348 = lean_nat_dec_lt(x_347, x_346); +if (x_348 == 0) { -lean_object* x_348; -lean_dec(x_343); -lean_dec(x_342); -x_348 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_348, 0, x_341); -lean_ctor_set(x_348, 1, x_13); -x_259 = x_348; -x_260 = x_323; -goto block_283; +lean_object* x_349; +lean_dec(x_346); +lean_dec(x_345); +x_349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_349, 0, x_344); +lean_ctor_set(x_349, 1, x_14); +x_262 = x_349; +x_263 = x_326; +goto block_286; } else { -size_t 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; lean_object* x_356; -x_349 = lean_usize_of_nat(x_343); -lean_dec(x_343); -x_350 = lean_box(0); -x_351 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_342, x_6, x_349, x_350, x_13, x_323); -lean_dec(x_342); -x_352 = lean_ctor_get(x_351, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_351, 1); -lean_inc(x_353); -lean_dec(x_351); -x_354 = lean_ctor_get(x_352, 1); -lean_inc(x_354); -if (lean_is_exclusive(x_352)) { - lean_ctor_release(x_352, 0); - lean_ctor_release(x_352, 1); - x_355 = x_352; +uint8_t x_350; +x_350 = lean_nat_dec_le(x_346, x_346); +if (x_350 == 0) +{ +lean_object* x_351; +lean_dec(x_346); +lean_dec(x_345); +x_351 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_351, 0, x_344); +lean_ctor_set(x_351, 1, x_14); +x_262 = x_351; +x_263 = x_326; +goto block_286; +} +else +{ +size_t x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; +x_352 = lean_usize_of_nat(x_346); +lean_dec(x_346); +x_353 = lean_box(0); +x_354 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_345, x_4, x_352, x_353, x_14, x_326); +lean_dec(x_345); +x_355 = lean_ctor_get(x_354, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_354, 1); +lean_inc(x_356); +lean_dec(x_354); +x_357 = lean_ctor_get(x_355, 1); +lean_inc(x_357); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_358 = x_355; } else { - lean_dec_ref(x_352); - x_355 = lean_box(0); + lean_dec_ref(x_355); + x_358 = lean_box(0); } -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_358)) { + x_359 = lean_alloc_ctor(1, 2, 0); } else { - x_356 = x_355; - lean_ctor_set_tag(x_356, 1); + x_359 = x_358; + lean_ctor_set_tag(x_359, 1); } -lean_ctor_set(x_356, 0, x_341); -lean_ctor_set(x_356, 1, x_354); -x_259 = x_356; -x_260 = x_353; -goto block_283; +lean_ctor_set(x_359, 0, x_344); +lean_ctor_set(x_359, 1, x_357); +x_262 = x_359; +x_263 = x_356; +goto block_286; } } } @@ -32810,1312 +38541,1330 @@ goto block_283; } else { -uint8_t x_357; +uint8_t x_360; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_357 = !lean_is_exclusive(x_285); -if (x_357 == 0) +x_360 = !lean_is_exclusive(x_288); +if (x_360 == 0) { -return x_285; +return x_288; } else { -lean_object* x_358; lean_object* x_359; lean_object* x_360; -x_358 = lean_ctor_get(x_285, 0); -x_359 = lean_ctor_get(x_285, 1); -lean_inc(x_359); -lean_inc(x_358); -lean_dec(x_285); -x_360 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_360, 0, x_358); -lean_ctor_set(x_360, 1, x_359); -return x_360; +lean_object* x_361; lean_object* x_362; lean_object* x_363; +x_361 = lean_ctor_get(x_288, 0); +x_362 = lean_ctor_get(x_288, 1); +lean_inc(x_362); +lean_inc(x_361); +lean_dec(x_288); +x_363 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_363, 0, x_361); +lean_ctor_set(x_363, 1, x_362); +return x_363; } } -block_241: +block_244: { -if (lean_obj_tag(x_15) == 0) +if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_231; uint8_t x_232; -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 1); +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_234; uint8_t x_235; +x_18 = lean_ctor_get(x_16, 0); lean_inc(x_18); -lean_dec(x_15); -x_231 = lean_ctor_get(x_1, 3); -lean_inc(x_231); -x_232 = lean_ctor_get_uint8(x_231, sizeof(void*)*25 + 1); -lean_dec(x_231); -if (x_232 == 0) -{ -uint8_t x_233; -x_233 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); -x_19 = x_233; -goto block_230; -} -else -{ -uint8_t x_234; -x_234 = 1; -x_19 = x_234; -goto block_230; -} -block_230: -{ -lean_object* x_20; lean_object* x_21; lean_object* x_209; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_209 = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(x_3, x_17, x_19, x_9, x_10, x_11, x_12, x_18, x_16); -lean_dec(x_17); -if (lean_obj_tag(x_209) == 0) -{ -lean_object* x_210; -x_210 = lean_ctor_get(x_209, 0); -lean_inc(x_210); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; uint8_t x_212; -x_211 = lean_ctor_get(x_209, 1); -lean_inc(x_211); -lean_dec(x_209); -x_212 = !lean_is_exclusive(x_210); -if (x_212 == 0) -{ -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_210, 0); -x_214 = l_Lake_fetchImportLibs___closed__1; -x_215 = l_Lake_Job_collectArray___rarg(x_213, x_214); -lean_dec(x_213); -lean_ctor_set(x_210, 0, x_215); -x_20 = x_210; -x_21 = x_211; -goto block_208; -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_216 = lean_ctor_get(x_210, 0); -x_217 = lean_ctor_get(x_210, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_210); -x_218 = l_Lake_fetchImportLibs___closed__1; -x_219 = l_Lake_Job_collectArray___rarg(x_216, x_218); -lean_dec(x_216); -x_220 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_217); -x_20 = x_220; -x_21 = x_211; -goto block_208; -} -} -else -{ -lean_object* x_221; uint8_t x_222; -x_221 = lean_ctor_get(x_209, 1); -lean_inc(x_221); -lean_dec(x_209); -x_222 = !lean_is_exclusive(x_210); -if (x_222 == 0) -{ -x_20 = x_210; -x_21 = x_221; -goto block_208; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_210, 0); -x_224 = lean_ctor_get(x_210, 1); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_210); -x_225 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_225, 0, x_223); -lean_ctor_set(x_225, 1, x_224); -x_20 = x_225; -x_21 = x_221; -goto block_208; -} -} -} -else -{ -uint8_t x_226; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_226 = !lean_is_exclusive(x_209); -if (x_226 == 0) -{ -return x_209; -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_209, 0); -x_228 = lean_ctor_get(x_209, 1); -lean_inc(x_228); -lean_inc(x_227); -lean_dec(x_209); -x_229 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_229, 0, x_227); -lean_ctor_set(x_229, 1, x_228); -return x_229; -} -} -block_208: -{ -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_120; -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_24 = x_20; -} else { - lean_dec_ref(x_20); - x_24 = lean_box(0); -} -if (x_19 == 0) -{ -uint8_t x_200; -x_200 = 0; -x_120 = x_200; -goto block_199; -} -else -{ -uint8_t x_201; -x_201 = 1; -x_120 = x_201; -goto block_199; -} -block_119: -{ -if (lean_obj_tag(x_25) == 0) -{ -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; -x_27 = lean_ctor_get(x_25, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_ctor_get(x_1, 3); -lean_inc(x_29); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_ctor_get(x_30, 11); -lean_inc(x_31); -x_32 = lean_ctor_get(x_2, 0); -lean_inc(x_32); -lean_dec(x_2); -x_33 = lean_ctor_get(x_32, 11); -lean_inc(x_33); -x_34 = l_Array_append___rarg(x_31, x_33); -lean_dec(x_33); -x_35 = l_Lake_Module_recBuildDeps___lambda__8___closed__1; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_1); -x_36 = l_Lake_TargetArray_fetchIn___at_Lake_Module_recBuildDeps___spec__2(x_1, x_34, x_35, x_9, x_10, x_11, x_12, x_28, x_26); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -if (lean_obj_tag(x_37) == 0) -{ -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; -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_ctor_get(x_37, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_ctor_get(x_30, 12); -lean_inc(x_41); -x_42 = lean_ctor_get(x_32, 12); -lean_inc(x_42); -x_43 = l_Array_append___rarg(x_41, x_42); -lean_dec(x_42); -x_44 = l_Lake_Module_recBuildDeps___lambda__8___closed__2; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_45 = l_Lake_TargetArray_fetchIn___at_Lake_Module_recBuildDeps___spec__2(x_1, x_43, x_44, x_9, x_10, x_11, x_12, x_40, x_38); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; uint8_t x_48; -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = !lean_is_exclusive(x_46); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; -x_49 = lean_ctor_get(x_46, 0); -x_50 = lean_ctor_get(x_46, 1); -x_51 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__7___boxed), 15, 8); -lean_closure_set(x_51, 0, x_3); -lean_closure_set(x_51, 1, x_32); -lean_closure_set(x_51, 2, x_30); -lean_closure_set(x_51, 3, x_49); -lean_closure_set(x_51, 4, x_39); -lean_closure_set(x_51, 5, x_27); -lean_closure_set(x_51, 6, x_22); -lean_closure_set(x_51, 7, x_4); -x_52 = l_Task_Priority_default; -x_53 = 1; -x_54 = l_Lake_Module_recParseImports___closed__3; -x_55 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15(x_5, x_51, x_52, x_53, x_9, x_10, x_11, x_12, x_54, x_47); -if (lean_obj_tag(x_55) == 0) -{ -uint8_t x_56; -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_55, 0); -lean_ctor_set(x_46, 0, x_57); -lean_ctor_set(x_55, 0, x_46); -return x_55; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_55, 0); -x_59 = lean_ctor_get(x_55, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_55); -lean_ctor_set(x_46, 0, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_46); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -else -{ -uint8_t x_61; -lean_free_object(x_46); -lean_dec(x_50); -x_61 = !lean_is_exclusive(x_55); -if (x_61 == 0) -{ -return x_55; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_55, 0); -x_63 = lean_ctor_get(x_55, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_55); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; -x_65 = lean_ctor_get(x_46, 0); -x_66 = lean_ctor_get(x_46, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_46); -x_67 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__7___boxed), 15, 8); -lean_closure_set(x_67, 0, x_3); -lean_closure_set(x_67, 1, x_32); -lean_closure_set(x_67, 2, x_30); -lean_closure_set(x_67, 3, x_65); -lean_closure_set(x_67, 4, x_39); -lean_closure_set(x_67, 5, x_27); -lean_closure_set(x_67, 6, x_22); -lean_closure_set(x_67, 7, x_4); -x_68 = l_Task_Priority_default; -x_69 = 1; -x_70 = l_Lake_Module_recParseImports___closed__3; -x_71 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15(x_5, x_67, x_68, x_69, x_9, x_10, x_11, x_12, x_70, x_47); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_74 = x_71; -} else { - lean_dec_ref(x_71); - x_74 = lean_box(0); -} -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_66); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 2, 0); -} else { - x_76 = x_74; -} -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_73); -return x_76; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_66); -x_77 = lean_ctor_get(x_71, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_71, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_79 = x_71; -} else { - lean_dec_ref(x_71); - x_79 = lean_box(0); -} -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); -} else { - x_80 = x_79; -} -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -return x_80; -} -} -} -else -{ -uint8_t x_81; -lean_dec(x_39); -lean_dec(x_32); -lean_dec(x_30); -lean_dec(x_27); -lean_dec(x_22); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_81 = !lean_is_exclusive(x_45); -if (x_81 == 0) -{ -lean_object* x_82; uint8_t x_83; -x_82 = lean_ctor_get(x_45, 0); -lean_dec(x_82); -x_83 = !lean_is_exclusive(x_46); -if (x_83 == 0) -{ -return x_45; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_46, 0); -x_85 = lean_ctor_get(x_46, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_46); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -lean_ctor_set(x_45, 0, x_86); -return x_45; -} -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_87 = lean_ctor_get(x_45, 1); -lean_inc(x_87); -lean_dec(x_45); -x_88 = lean_ctor_get(x_46, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_46, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_90 = x_46; -} else { - lean_dec_ref(x_46); - x_90 = lean_box(0); -} -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); -} else { - x_91 = x_90; -} -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_87); -return x_92; -} -} -} -else -{ -uint8_t x_93; -lean_dec(x_39); -lean_dec(x_32); -lean_dec(x_30); -lean_dec(x_27); -lean_dec(x_22); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_93 = !lean_is_exclusive(x_45); -if (x_93 == 0) -{ -return x_45; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_45, 0); -x_95 = lean_ctor_get(x_45, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_45); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -return x_96; -} -} -} -else -{ -uint8_t x_97; -lean_dec(x_32); -lean_dec(x_30); -lean_dec(x_27); -lean_dec(x_22); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_97 = !lean_is_exclusive(x_36); -if (x_97 == 0) -{ -lean_object* x_98; uint8_t x_99; -x_98 = lean_ctor_get(x_36, 0); -lean_dec(x_98); -x_99 = !lean_is_exclusive(x_37); -if (x_99 == 0) -{ -return x_36; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_37, 0); -x_101 = lean_ctor_get(x_37, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_37); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -lean_ctor_set(x_36, 0, x_102); -return x_36; -} -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_103 = lean_ctor_get(x_36, 1); -lean_inc(x_103); -lean_dec(x_36); -x_104 = lean_ctor_get(x_37, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_37, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_106 = x_37; -} else { - lean_dec_ref(x_37); - x_106 = lean_box(0); -} -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(1, 2, 0); -} else { - x_107 = x_106; -} -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_105); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_103); -return x_108; -} -} -} -else -{ -uint8_t x_109; -lean_dec(x_32); -lean_dec(x_30); -lean_dec(x_27); -lean_dec(x_22); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_109 = !lean_is_exclusive(x_36); -if (x_109 == 0) -{ -return x_36; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_36, 0); -x_111 = lean_ctor_get(x_36, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_36); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; -} -} -} -else -{ -uint8_t x_113; -lean_dec(x_22); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_113 = !lean_is_exclusive(x_25); -if (x_113 == 0) -{ -lean_object* x_114; -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_25); -lean_ctor_set(x_114, 1, x_26); -return x_114; -} -else -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_115 = lean_ctor_get(x_25, 0); -x_116 = lean_ctor_get(x_25, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_25); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_26); -return x_118; -} -} -} -block_199: -{ -if (x_120 == 0) -{ -lean_object* x_121; lean_object* x_122; -x_121 = l_Lake_Module_recBuildDeps___lambda__8___closed__4; -if (lean_is_scalar(x_24)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_24; -} -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_23); -x_25 = x_122; -x_26 = x_21; -goto block_119; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; -lean_dec(x_24); -x_123 = lean_ctor_get(x_1, 10); -lean_inc(x_123); -x_124 = lean_array_get_size(x_123); -x_125 = lean_unsigned_to_nat(0u); -x_126 = lean_nat_dec_lt(x_125, x_124); -if (x_126 == 0) -{ -size_t x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_124); -lean_dec(x_123); -x_127 = l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___closed__1; -x_128 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_129 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_127, x_6, x_128, x_9, x_10, x_11, x_12, x_23, x_21); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; uint8_t x_132; -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_132 = !lean_is_exclusive(x_130); -if (x_132 == 0) -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_130, 0); -x_134 = l_Lake_Module_recBuildDeps___lambda__8___closed__3; -x_135 = l_Lake_Job_collectArray___rarg(x_133, x_134); -lean_dec(x_133); -lean_ctor_set(x_130, 0, x_135); -x_25 = x_130; -x_26 = x_131; -goto block_119; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_136 = lean_ctor_get(x_130, 0); -x_137 = lean_ctor_get(x_130, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_130); -x_138 = l_Lake_Module_recBuildDeps___lambda__8___closed__3; -x_139 = l_Lake_Job_collectArray___rarg(x_136, x_138); -lean_dec(x_136); -x_140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_137); -x_25 = x_140; -x_26 = x_131; -goto block_119; -} -} -else -{ -lean_object* x_141; uint8_t x_142; -x_141 = lean_ctor_get(x_129, 1); -lean_inc(x_141); -lean_dec(x_129); -x_142 = !lean_is_exclusive(x_130); -if (x_142 == 0) -{ -x_25 = x_130; -x_26 = x_141; -goto block_119; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_130, 0); -x_144 = lean_ctor_get(x_130, 1); -lean_inc(x_144); -lean_inc(x_143); -lean_dec(x_130); -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -x_25 = x_145; -x_26 = x_141; -goto block_119; -} -} -} -else -{ -uint8_t x_146; -lean_dec(x_22); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_146 = !lean_is_exclusive(x_129); -if (x_146 == 0) -{ -return x_129; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_129, 0); -x_148 = lean_ctor_get(x_129, 1); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_129); -x_149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -return x_149; -} -} -} -else -{ -uint8_t x_150; -x_150 = lean_nat_dec_le(x_124, x_124); -if (x_150 == 0) -{ -size_t x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_124); -lean_dec(x_123); -x_151 = l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___closed__1; -x_152 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_153 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_151, x_6, x_152, x_9, x_10, x_11, x_12, x_23, x_21); -if (lean_obj_tag(x_153) == 0) -{ -lean_object* x_154; -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -if (lean_obj_tag(x_154) == 0) -{ -lean_object* x_155; uint8_t x_156; -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -lean_dec(x_153); -x_156 = !lean_is_exclusive(x_154); -if (x_156 == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_154, 0); -x_158 = l_Lake_Module_recBuildDeps___lambda__8___closed__3; -x_159 = l_Lake_Job_collectArray___rarg(x_157, x_158); -lean_dec(x_157); -lean_ctor_set(x_154, 0, x_159); -x_25 = x_154; -x_26 = x_155; -goto block_119; -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_160 = lean_ctor_get(x_154, 0); -x_161 = lean_ctor_get(x_154, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_154); -x_162 = l_Lake_Module_recBuildDeps___lambda__8___closed__3; -x_163 = l_Lake_Job_collectArray___rarg(x_160, x_162); -lean_dec(x_160); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_161); -x_25 = x_164; -x_26 = x_155; -goto block_119; -} -} -else -{ -lean_object* x_165; uint8_t x_166; -x_165 = lean_ctor_get(x_153, 1); -lean_inc(x_165); -lean_dec(x_153); -x_166 = !lean_is_exclusive(x_154); -if (x_166 == 0) -{ -x_25 = x_154; -x_26 = x_165; -goto block_119; -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_154, 0); -x_168 = lean_ctor_get(x_154, 1); -lean_inc(x_168); -lean_inc(x_167); -lean_dec(x_154); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); -x_25 = x_169; -x_26 = x_165; -goto block_119; -} -} -} -else -{ -uint8_t x_170; -lean_dec(x_22); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_170 = !lean_is_exclusive(x_153); -if (x_170 == 0) -{ -return x_153; -} -else -{ -lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_171 = lean_ctor_get(x_153, 0); -x_172 = lean_ctor_get(x_153, 1); -lean_inc(x_172); -lean_inc(x_171); -lean_dec(x_153); -x_173 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_173, 0, x_171); -lean_ctor_set(x_173, 1, x_172); -return x_173; -} -} -} -else -{ -size_t x_174; lean_object* x_175; lean_object* x_176; size_t x_177; lean_object* x_178; -x_174 = lean_usize_of_nat(x_124); -lean_dec(x_124); -x_175 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -lean_inc(x_1); -x_176 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDeps___spec__16(x_3, x_1, x_7, x_123, x_6, x_174, x_175); -lean_dec(x_123); -x_177 = lean_array_size(x_176); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_178 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_177, x_6, x_176, x_9, x_10, x_11, x_12, x_23, x_21); -if (lean_obj_tag(x_178) == 0) -{ -lean_object* x_179; -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -if (lean_obj_tag(x_179) == 0) -{ -lean_object* x_180; uint8_t x_181; -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -lean_dec(x_178); -x_181 = !lean_is_exclusive(x_179); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_179, 0); -x_183 = l_Lake_Module_recBuildDeps___lambda__8___closed__3; -x_184 = l_Lake_Job_collectArray___rarg(x_182, x_183); -lean_dec(x_182); -lean_ctor_set(x_179, 0, x_184); -x_25 = x_179; -x_26 = x_180; -goto block_119; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_185 = lean_ctor_get(x_179, 0); -x_186 = lean_ctor_get(x_179, 1); -lean_inc(x_186); -lean_inc(x_185); -lean_dec(x_179); -x_187 = l_Lake_Module_recBuildDeps___lambda__8___closed__3; -x_188 = l_Lake_Job_collectArray___rarg(x_185, x_187); -lean_dec(x_185); -x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_186); -x_25 = x_189; -x_26 = x_180; -goto block_119; -} -} -else -{ -lean_object* x_190; uint8_t x_191; -x_190 = lean_ctor_get(x_178, 1); -lean_inc(x_190); -lean_dec(x_178); -x_191 = !lean_is_exclusive(x_179); -if (x_191 == 0) -{ -x_25 = x_179; -x_26 = x_190; -goto block_119; -} -else -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_192 = lean_ctor_get(x_179, 0); -x_193 = lean_ctor_get(x_179, 1); -lean_inc(x_193); -lean_inc(x_192); -lean_dec(x_179); -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_192); -lean_ctor_set(x_194, 1, x_193); -x_25 = x_194; -x_26 = x_190; -goto block_119; -} -} -} -else -{ -uint8_t x_195; -lean_dec(x_22); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_195 = !lean_is_exclusive(x_178); -if (x_195 == 0) -{ -return x_178; -} -else -{ -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_178, 0); -x_197 = lean_ctor_get(x_178, 1); -lean_inc(x_197); -lean_inc(x_196); -lean_dec(x_178); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_196); -lean_ctor_set(x_198, 1, x_197); -return x_198; -} -} -} -} -} -} -} -else -{ -uint8_t x_202; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_202 = !lean_is_exclusive(x_20); -if (x_202 == 0) -{ -lean_object* x_203; -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_20); -lean_ctor_set(x_203, 1, x_21); -return x_203; -} -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_204 = lean_ctor_get(x_20, 0); -x_205 = lean_ctor_get(x_20, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_20); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -x_207 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_21); -return x_207; -} -} -} -} -} -else -{ -uint8_t x_235; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_235 = !lean_is_exclusive(x_15); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_234 = lean_ctor_get(x_1, 3); +lean_inc(x_234); +x_235 = lean_ctor_get_uint8(x_234, sizeof(void*)*25 + 1); +lean_dec(x_234); if (x_235 == 0) { -lean_object* x_236; -x_236 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_236, 0, x_15); -lean_ctor_set(x_236, 1, x_16); -return x_236; +uint8_t x_236; +x_236 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); +x_20 = x_236; +goto block_233; } else { -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_237 = lean_ctor_get(x_15, 0); -x_238 = lean_ctor_get(x_15, 1); -lean_inc(x_238); -lean_inc(x_237); -lean_dec(x_15); -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_237); -lean_ctor_set(x_239, 1, x_238); -x_240 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_16); -return x_240; +uint8_t x_237; +x_237 = 1; +x_20 = x_237; +goto block_233; } -} -} -block_258: +block_233: { -if (lean_obj_tag(x_242) == 0) +lean_object* x_21; lean_object* x_22; lean_object* x_212; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_212 = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(x_3, x_18, x_20, x_10, x_11, x_12, x_13, x_19, x_17); +lean_dec(x_18); +if (lean_obj_tag(x_212) == 0) { -uint8_t x_244; -x_244 = !lean_is_exclusive(x_242); -if (x_244 == 0) +lean_object* x_213; +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +if (lean_obj_tag(x_213) == 0) { -lean_object* x_245; lean_object* x_246; -x_245 = lean_ctor_get(x_242, 1); -x_246 = lean_ctor_get(x_245, 0); -lean_inc(x_246); -lean_dec(x_245); -lean_ctor_set(x_242, 1, x_246); -x_15 = x_242; -x_16 = x_243; -goto block_241; +lean_object* x_214; uint8_t x_215; +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +x_215 = !lean_is_exclusive(x_213); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_216 = lean_ctor_get(x_213, 0); +x_217 = l_Lake_fetchImportLibs___closed__1; +x_218 = l_Lake_Job_collectArray___rarg(x_216, x_217); +lean_dec(x_216); +lean_ctor_set(x_213, 0, x_218); +x_21 = x_213; +x_22 = x_214; +goto block_211; } else { -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_247 = lean_ctor_get(x_242, 0); -x_248 = lean_ctor_get(x_242, 1); -lean_inc(x_248); -lean_inc(x_247); -lean_dec(x_242); +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_219 = lean_ctor_get(x_213, 0); +x_220 = lean_ctor_get(x_213, 1); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_213); +x_221 = l_Lake_fetchImportLibs___closed__1; +x_222 = l_Lake_Job_collectArray___rarg(x_219, x_221); +lean_dec(x_219); +x_223 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_223, 0, x_222); +lean_ctor_set(x_223, 1, x_220); +x_21 = x_223; +x_22 = x_214; +goto block_211; +} +} +else +{ +lean_object* x_224; uint8_t x_225; +x_224 = lean_ctor_get(x_212, 1); +lean_inc(x_224); +lean_dec(x_212); +x_225 = !lean_is_exclusive(x_213); +if (x_225 == 0) +{ +x_21 = x_213; +x_22 = x_224; +goto block_211; +} +else +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_226 = lean_ctor_get(x_213, 0); +x_227 = lean_ctor_get(x_213, 1); +lean_inc(x_227); +lean_inc(x_226); +lean_dec(x_213); +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_226); +lean_ctor_set(x_228, 1, x_227); +x_21 = x_228; +x_22 = x_224; +goto block_211; +} +} +} +else +{ +uint8_t x_229; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_229 = !lean_is_exclusive(x_212); +if (x_229 == 0) +{ +return x_212; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_212, 0); +x_231 = lean_ctor_get(x_212, 1); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_212); +x_232 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_232, 0, x_230); +lean_ctor_set(x_232, 1, x_231); +return x_232; +} +} +block_211: +{ +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_123; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + x_25 = x_21; +} else { + lean_dec_ref(x_21); + x_25 = lean_box(0); +} +if (x_20 == 0) +{ +uint8_t x_203; +x_203 = 0; +x_123 = x_203; +goto block_202; +} +else +{ +uint8_t x_204; +x_204 = 1; +x_123 = x_204; +goto block_202; +} +block_122: +{ +if (lean_obj_tag(x_26) == 0) +{ +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; +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_ctor_get(x_1, 3); +lean_inc(x_30); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_32 = lean_ctor_get(x_31, 11); +lean_inc(x_32); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +lean_dec(x_2); +x_34 = lean_ctor_get(x_33, 11); +lean_inc(x_34); +x_35 = l_Array_append___rarg(x_32, x_34); +lean_dec(x_34); +x_36 = l_Lake_Module_recFetchSetup___lambda__9___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_1); +x_37 = l_Lake_TargetArray_fetchIn___at_Lake_Module_recFetchSetup___spec__2(x_1, x_35, x_36, x_10, x_11, x_12, x_13, x_29, x_27); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_dec(x_38); +x_42 = lean_ctor_get(x_31, 12); +lean_inc(x_42); +x_43 = lean_ctor_get(x_33, 12); +lean_inc(x_43); +x_44 = l_Array_append___rarg(x_42, x_43); +lean_dec(x_43); +x_45 = l_Lake_Module_recFetchSetup___lambda__9___closed__2; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_46 = l_Lake_TargetArray_fetchIn___at_Lake_Module_recFetchSetup___spec__2(x_1, x_44, x_45, x_10, x_11, x_12, x_13, x_41, x_39); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = !lean_is_exclusive(x_47); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; +x_50 = lean_ctor_get(x_47, 0); +x_51 = lean_ctor_get(x_47, 1); +x_52 = lean_box_usize(x_4); +x_53 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__8___boxed), 17, 10); +lean_closure_set(x_53, 0, x_3); +lean_closure_set(x_53, 1, x_52); +lean_closure_set(x_53, 2, x_31); +lean_closure_set(x_53, 3, x_33); +lean_closure_set(x_53, 4, x_50); +lean_closure_set(x_53, 5, x_40); +lean_closure_set(x_53, 6, x_28); +lean_closure_set(x_53, 7, x_23); +lean_closure_set(x_53, 8, x_5); +lean_closure_set(x_53, 9, x_6); +x_54 = l_Task_Priority_default; +x_55 = 1; +x_56 = l_Lake_Module_recFetchInput___closed__3; +x_57 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__17(x_7, x_53, x_54, x_55, x_10, x_11, x_12, x_13, x_56, x_48); +if (lean_obj_tag(x_57) == 0) +{ +uint8_t x_58; +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_57, 0); +lean_ctor_set(x_47, 0, x_59); +lean_ctor_set(x_57, 0, x_47); +return x_57; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_57, 0); +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_57); +lean_ctor_set(x_47, 0, x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_47); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +else +{ +uint8_t x_63; +lean_free_object(x_47); +lean_dec(x_51); +x_63 = !lean_is_exclusive(x_57); +if (x_63 == 0) +{ +return x_57; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_57, 0); +x_65 = lean_ctor_get(x_57, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_57); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; +x_67 = lean_ctor_get(x_47, 0); +x_68 = lean_ctor_get(x_47, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_47); +x_69 = lean_box_usize(x_4); +x_70 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__8___boxed), 17, 10); +lean_closure_set(x_70, 0, x_3); +lean_closure_set(x_70, 1, x_69); +lean_closure_set(x_70, 2, x_31); +lean_closure_set(x_70, 3, x_33); +lean_closure_set(x_70, 4, x_67); +lean_closure_set(x_70, 5, x_40); +lean_closure_set(x_70, 6, x_28); +lean_closure_set(x_70, 7, x_23); +lean_closure_set(x_70, 8, x_5); +lean_closure_set(x_70, 9, x_6); +x_71 = l_Task_Priority_default; +x_72 = 1; +x_73 = l_Lake_Module_recFetchInput___closed__3; +x_74 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__17(x_7, x_70, x_71, x_72, x_10, x_11, x_12, x_13, x_73, x_48); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_77 = x_74; +} else { + lean_dec_ref(x_74); + x_77 = lean_box(0); +} +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_68); +if (lean_is_scalar(x_77)) { + x_79 = lean_alloc_ctor(0, 2, 0); +} else { + x_79 = x_77; +} +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_76); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_68); +x_80 = lean_ctor_get(x_74, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_74, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_82 = x_74; +} else { + lean_dec_ref(x_74); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +} +else +{ +uint8_t x_84; +lean_dec(x_40); +lean_dec(x_33); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_84 = !lean_is_exclusive(x_46); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = lean_ctor_get(x_46, 0); +lean_dec(x_85); +x_86 = !lean_is_exclusive(x_47); +if (x_86 == 0) +{ +return x_46; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_47, 0); +x_88 = lean_ctor_get(x_47, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_47); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set(x_46, 0, x_89); +return x_46; +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_90 = lean_ctor_get(x_46, 1); +lean_inc(x_90); +lean_dec(x_46); +x_91 = lean_ctor_get(x_47, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_47, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_93 = x_47; +} else { + lean_dec_ref(x_47); + x_93 = lean_box(0); +} +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(1, 2, 0); +} else { + x_94 = x_93; +} +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_92); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_90); +return x_95; +} +} +} +else +{ +uint8_t x_96; +lean_dec(x_40); +lean_dec(x_33); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_96 = !lean_is_exclusive(x_46); +if (x_96 == 0) +{ +return x_46; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_46, 0); +x_98 = lean_ctor_get(x_46, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_46); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +return x_99; +} +} +} +else +{ +uint8_t x_100; +lean_dec(x_33); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_100 = !lean_is_exclusive(x_37); +if (x_100 == 0) +{ +lean_object* x_101; uint8_t x_102; +x_101 = lean_ctor_get(x_37, 0); +lean_dec(x_101); +x_102 = !lean_is_exclusive(x_38); +if (x_102 == 0) +{ +return x_37; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_38, 0); +x_104 = lean_ctor_get(x_38, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_38); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_37, 0, x_105); +return x_37; +} +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_37, 1); +lean_inc(x_106); +lean_dec(x_37); +x_107 = lean_ctor_get(x_38, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_38, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_109 = x_38; +} else { + lean_dec_ref(x_38); + x_109 = lean_box(0); +} +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); +} else { + x_110 = x_109; +} +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_106); +return x_111; +} +} +} +else +{ +uint8_t x_112; +lean_dec(x_33); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_112 = !lean_is_exclusive(x_37); +if (x_112 == 0) +{ +return x_37; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_37, 0); +x_114 = lean_ctor_get(x_37, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_37); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} +} +} +else +{ +uint8_t x_116; +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_116 = !lean_is_exclusive(x_26); +if (x_116 == 0) +{ +lean_object* x_117; +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_26); +lean_ctor_set(x_117, 1, x_27); +return x_117; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_118 = lean_ctor_get(x_26, 0); +x_119 = lean_ctor_get(x_26, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_26); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_27); +return x_121; +} +} +} +block_202: +{ +if (x_123 == 0) +{ +lean_object* x_124; lean_object* x_125; +x_124 = l_Lake_Module_recFetchSetup___lambda__9___closed__4; +if (lean_is_scalar(x_25)) { + x_125 = lean_alloc_ctor(0, 2, 0); +} else { + x_125 = x_25; +} +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_24); +x_26 = x_125; +x_27 = x_22; +goto block_122; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; +lean_dec(x_25); +x_126 = lean_ctor_get(x_1, 10); +lean_inc(x_126); +x_127 = lean_array_get_size(x_126); +x_128 = lean_unsigned_to_nat(0u); +x_129 = lean_nat_dec_lt(x_128, x_127); +if (x_129 == 0) +{ +size_t x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_127); +lean_dec(x_126); +x_130 = l_Lake_Module_recFetchSetup___lambda__9___closed__5; +x_131 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_132 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_130, x_4, x_131, x_10, x_11, x_12, x_13, x_24, x_22); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +if (lean_obj_tag(x_133) == 0) +{ +lean_object* x_134; uint8_t x_135; +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = !lean_is_exclusive(x_133); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_133, 0); +x_137 = l_Lake_Module_recFetchSetup___lambda__9___closed__3; +x_138 = l_Lake_Job_collectArray___rarg(x_136, x_137); +lean_dec(x_136); +lean_ctor_set(x_133, 0, x_138); +x_26 = x_133; +x_27 = x_134; +goto block_122; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_139 = lean_ctor_get(x_133, 0); +x_140 = lean_ctor_get(x_133, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_133); +x_141 = l_Lake_Module_recFetchSetup___lambda__9___closed__3; +x_142 = l_Lake_Job_collectArray___rarg(x_139, x_141); +lean_dec(x_139); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_140); +x_26 = x_143; +x_27 = x_134; +goto block_122; +} +} +else +{ +lean_object* x_144; uint8_t x_145; +x_144 = lean_ctor_get(x_132, 1); +lean_inc(x_144); +lean_dec(x_132); +x_145 = !lean_is_exclusive(x_133); +if (x_145 == 0) +{ +x_26 = x_133; +x_27 = x_144; +goto block_122; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_133, 0); +x_147 = lean_ctor_get(x_133, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_133); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +x_26 = x_148; +x_27 = x_144; +goto block_122; +} +} +} +else +{ +uint8_t x_149; +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_149 = !lean_is_exclusive(x_132); +if (x_149 == 0) +{ +return x_132; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_132, 0); +x_151 = lean_ctor_get(x_132, 1); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_132); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +return x_152; +} +} +} +else +{ +uint8_t x_153; +x_153 = lean_nat_dec_le(x_127, x_127); +if (x_153 == 0) +{ +size_t x_154; lean_object* x_155; lean_object* x_156; +lean_dec(x_127); +lean_dec(x_126); +x_154 = l_Lake_Module_recFetchSetup___lambda__9___closed__5; +x_155 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_156 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_154, x_4, x_155, x_10, x_11, x_12, x_13, x_24, x_22); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +if (lean_obj_tag(x_157) == 0) +{ +lean_object* x_158; uint8_t x_159; +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +lean_dec(x_156); +x_159 = !lean_is_exclusive(x_157); +if (x_159 == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_157, 0); +x_161 = l_Lake_Module_recFetchSetup___lambda__9___closed__3; +x_162 = l_Lake_Job_collectArray___rarg(x_160, x_161); +lean_dec(x_160); +lean_ctor_set(x_157, 0, x_162); +x_26 = x_157; +x_27 = x_158; +goto block_122; +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_163 = lean_ctor_get(x_157, 0); +x_164 = lean_ctor_get(x_157, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_157); +x_165 = l_Lake_Module_recFetchSetup___lambda__9___closed__3; +x_166 = l_Lake_Job_collectArray___rarg(x_163, x_165); +lean_dec(x_163); +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_164); +x_26 = x_167; +x_27 = x_158; +goto block_122; +} +} +else +{ +lean_object* x_168; uint8_t x_169; +x_168 = lean_ctor_get(x_156, 1); +lean_inc(x_168); +lean_dec(x_156); +x_169 = !lean_is_exclusive(x_157); +if (x_169 == 0) +{ +x_26 = x_157; +x_27 = x_168; +goto block_122; +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_157, 0); +x_171 = lean_ctor_get(x_157, 1); +lean_inc(x_171); +lean_inc(x_170); +lean_dec(x_157); +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_170); +lean_ctor_set(x_172, 1, x_171); +x_26 = x_172; +x_27 = x_168; +goto block_122; +} +} +} +else +{ +uint8_t x_173; +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_173 = !lean_is_exclusive(x_156); +if (x_173 == 0) +{ +return x_156; +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_156, 0); +x_175 = lean_ctor_get(x_156, 1); +lean_inc(x_175); +lean_inc(x_174); +lean_dec(x_156); +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set(x_176, 1, x_175); +return x_176; +} +} +} +else +{ +size_t x_177; lean_object* x_178; lean_object* x_179; size_t x_180; lean_object* x_181; +x_177 = lean_usize_of_nat(x_127); +lean_dec(x_127); +x_178 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +lean_inc(x_1); +x_179 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recFetchSetup___spec__18(x_3, x_1, x_8, x_126, x_4, x_177, x_178); +lean_dec(x_126); +x_180 = lean_array_size(x_179); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_181 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_180, x_4, x_179, x_10, x_11, x_12, x_13, x_24, x_22); +if (lean_obj_tag(x_181) == 0) +{ +lean_object* x_182; +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; uint8_t x_184; +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); +lean_dec(x_181); +x_184 = !lean_is_exclusive(x_182); +if (x_184 == 0) +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_182, 0); +x_186 = l_Lake_Module_recFetchSetup___lambda__9___closed__3; +x_187 = l_Lake_Job_collectArray___rarg(x_185, x_186); +lean_dec(x_185); +lean_ctor_set(x_182, 0, x_187); +x_26 = x_182; +x_27 = x_183; +goto block_122; +} +else +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_188 = lean_ctor_get(x_182, 0); +x_189 = lean_ctor_get(x_182, 1); +lean_inc(x_189); +lean_inc(x_188); +lean_dec(x_182); +x_190 = l_Lake_Module_recFetchSetup___lambda__9___closed__3; +x_191 = l_Lake_Job_collectArray___rarg(x_188, x_190); +lean_dec(x_188); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_189); +x_26 = x_192; +x_27 = x_183; +goto block_122; +} +} +else +{ +lean_object* x_193; uint8_t x_194; +x_193 = lean_ctor_get(x_181, 1); +lean_inc(x_193); +lean_dec(x_181); +x_194 = !lean_is_exclusive(x_182); +if (x_194 == 0) +{ +x_26 = x_182; +x_27 = x_193; +goto block_122; +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_182, 0); +x_196 = lean_ctor_get(x_182, 1); +lean_inc(x_196); +lean_inc(x_195); +lean_dec(x_182); +x_197 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_197, 0, x_195); +lean_ctor_set(x_197, 1, x_196); +x_26 = x_197; +x_27 = x_193; +goto block_122; +} +} +} +else +{ +uint8_t x_198; +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_198 = !lean_is_exclusive(x_181); +if (x_198 == 0) +{ +return x_181; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = lean_ctor_get(x_181, 0); +x_200 = lean_ctor_get(x_181, 1); +lean_inc(x_200); +lean_inc(x_199); +lean_dec(x_181); +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_200); +return x_201; +} +} +} +} +} +} +} +else +{ +uint8_t x_205; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_205 = !lean_is_exclusive(x_21); +if (x_205 == 0) +{ +lean_object* x_206; +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_21); +lean_ctor_set(x_206, 1, x_22); +return x_206; +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_207 = lean_ctor_get(x_21, 0); +x_208 = lean_ctor_get(x_21, 1); +lean_inc(x_208); +lean_inc(x_207); +lean_dec(x_21); +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_208); +x_210 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_22); +return x_210; +} +} +} +} +} +else +{ +uint8_t x_238; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_238 = !lean_is_exclusive(x_16); +if (x_238 == 0) +{ +lean_object* x_239; +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_16); +lean_ctor_set(x_239, 1, x_17); +return x_239; +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_240 = lean_ctor_get(x_16, 0); +x_241 = lean_ctor_get(x_16, 1); +lean_inc(x_241); +lean_inc(x_240); +lean_dec(x_16); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_240); +lean_ctor_set(x_242, 1, x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_17); +return x_243; +} +} +} +block_261: +{ +if (lean_obj_tag(x_245) == 0) +{ +uint8_t x_247; +x_247 = !lean_is_exclusive(x_245); +if (x_247 == 0) +{ +lean_object* x_248; lean_object* x_249; +x_248 = lean_ctor_get(x_245, 1); x_249 = lean_ctor_get(x_248, 0); lean_inc(x_249); lean_dec(x_248); -x_250 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_250, 0, x_247); -lean_ctor_set(x_250, 1, x_249); -x_15 = x_250; -x_16 = x_243; -goto block_241; +lean_ctor_set(x_245, 1, x_249); +x_16 = x_245; +x_17 = x_246; +goto block_244; +} +else +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_250 = lean_ctor_get(x_245, 0); +x_251 = lean_ctor_get(x_245, 1); +lean_inc(x_251); +lean_inc(x_250); +lean_dec(x_245); +x_252 = lean_ctor_get(x_251, 0); +lean_inc(x_252); +lean_dec(x_251); +x_253 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_253, 0, x_250); +lean_ctor_set(x_253, 1, x_252); +x_16 = x_253; +x_17 = x_246; +goto block_244; } } else { -uint8_t x_251; -x_251 = !lean_is_exclusive(x_242); -if (x_251 == 0) +uint8_t x_254; +x_254 = !lean_is_exclusive(x_245); +if (x_254 == 0) { -lean_object* x_252; lean_object* x_253; -x_252 = lean_ctor_get(x_242, 1); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -lean_dec(x_252); -lean_ctor_set(x_242, 1, x_253); -x_15 = x_242; -x_16 = x_243; -goto block_241; -} -else -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; -x_254 = lean_ctor_get(x_242, 0); -x_255 = lean_ctor_get(x_242, 1); -lean_inc(x_255); -lean_inc(x_254); -lean_dec(x_242); +lean_object* x_255; lean_object* x_256; +x_255 = lean_ctor_get(x_245, 1); x_256 = lean_ctor_get(x_255, 0); lean_inc(x_256); lean_dec(x_255); -x_257 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_257, 0, x_254); -lean_ctor_set(x_257, 1, x_256); -x_15 = x_257; -x_16 = x_243; -goto block_241; -} -} -} -block_283: -{ -if (lean_obj_tag(x_259) == 0) -{ -uint8_t x_261; -x_261 = !lean_is_exclusive(x_259); -if (x_261 == 0) -{ -lean_object* x_262; uint8_t x_263; lean_object* x_264; lean_object* x_265; -x_262 = lean_ctor_get(x_259, 1); -x_263 = 0; -x_264 = l_Lake_Module_recParseImports___closed__3; -x_265 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_265, 0, x_262); -lean_ctor_set(x_265, 1, x_264); -lean_ctor_set_uint8(x_265, sizeof(void*)*2, x_263); -lean_ctor_set(x_259, 1, x_265); -x_242 = x_259; -x_243 = x_260; -goto block_258; +lean_ctor_set(x_245, 1, x_256); +x_16 = x_245; +x_17 = x_246; +goto block_244; } else { -lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_266 = lean_ctor_get(x_259, 0); -x_267 = lean_ctor_get(x_259, 1); -lean_inc(x_267); -lean_inc(x_266); -lean_dec(x_259); -x_268 = 0; -x_269 = l_Lake_Module_recParseImports___closed__3; -x_270 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_270, 0, x_267); -lean_ctor_set(x_270, 1, x_269); -lean_ctor_set_uint8(x_270, sizeof(void*)*2, x_268); -x_271 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_271, 0, x_266); -lean_ctor_set(x_271, 1, x_270); -x_242 = x_271; -x_243 = x_260; -goto block_258; +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_257 = lean_ctor_get(x_245, 0); +x_258 = lean_ctor_get(x_245, 1); +lean_inc(x_258); +lean_inc(x_257); +lean_dec(x_245); +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +lean_dec(x_258); +x_260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_260, 0, x_257); +lean_ctor_set(x_260, 1, x_259); +x_16 = x_260; +x_17 = x_246; +goto block_244; +} +} +} +block_286: +{ +if (lean_obj_tag(x_262) == 0) +{ +uint8_t x_264; +x_264 = !lean_is_exclusive(x_262); +if (x_264 == 0) +{ +lean_object* x_265; uint8_t x_266; lean_object* x_267; lean_object* x_268; +x_265 = lean_ctor_get(x_262, 1); +x_266 = 0; +x_267 = l_Lake_Module_recFetchInput___closed__3; +x_268 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_268, 0, x_265); +lean_ctor_set(x_268, 1, x_267); +lean_ctor_set_uint8(x_268, sizeof(void*)*2, x_266); +lean_ctor_set(x_262, 1, x_268); +x_245 = x_262; +x_246 = x_263; +goto block_261; +} +else +{ +lean_object* x_269; lean_object* x_270; uint8_t x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_269 = lean_ctor_get(x_262, 0); +x_270 = lean_ctor_get(x_262, 1); +lean_inc(x_270); +lean_inc(x_269); +lean_dec(x_262); +x_271 = 0; +x_272 = l_Lake_Module_recFetchInput___closed__3; +x_273 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_273, 0, x_270); +lean_ctor_set(x_273, 1, x_272); +lean_ctor_set_uint8(x_273, sizeof(void*)*2, x_271); +x_274 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_274, 0, x_269); +lean_ctor_set(x_274, 1, x_273); +x_245 = x_274; +x_246 = x_263; +goto block_261; } } else { -uint8_t x_272; -x_272 = !lean_is_exclusive(x_259); -if (x_272 == 0) +uint8_t x_275; +x_275 = !lean_is_exclusive(x_262); +if (x_275 == 0) { -lean_object* x_273; uint8_t x_274; lean_object* x_275; lean_object* x_276; -x_273 = lean_ctor_get(x_259, 1); -x_274 = 0; -x_275 = l_Lake_Module_recParseImports___closed__3; -x_276 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_276, 0, x_273); -lean_ctor_set(x_276, 1, x_275); -lean_ctor_set_uint8(x_276, sizeof(void*)*2, x_274); -lean_ctor_set(x_259, 1, x_276); -x_242 = x_259; -x_243 = x_260; -goto block_258; +lean_object* x_276; uint8_t x_277; lean_object* x_278; lean_object* x_279; +x_276 = lean_ctor_get(x_262, 1); +x_277 = 0; +x_278 = l_Lake_Module_recFetchInput___closed__3; +x_279 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_279, 0, x_276); +lean_ctor_set(x_279, 1, x_278); +lean_ctor_set_uint8(x_279, sizeof(void*)*2, x_277); +lean_ctor_set(x_262, 1, x_279); +x_245 = x_262; +x_246 = x_263; +goto block_261; } else { -lean_object* x_277; lean_object* x_278; uint8_t x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_277 = lean_ctor_get(x_259, 0); -x_278 = lean_ctor_get(x_259, 1); -lean_inc(x_278); -lean_inc(x_277); -lean_dec(x_259); -x_279 = 0; -x_280 = l_Lake_Module_recParseImports___closed__3; -x_281 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_281, 0, x_278); -lean_ctor_set(x_281, 1, x_280); -lean_ctor_set_uint8(x_281, sizeof(void*)*2, x_279); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_277); -lean_ctor_set(x_282, 1, x_281); -x_242 = x_282; -x_243 = x_260; -goto block_258; +lean_object* x_280; lean_object* x_281; uint8_t x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_280 = lean_ctor_get(x_262, 0); +x_281 = lean_ctor_get(x_262, 1); +lean_inc(x_281); +lean_inc(x_280); +lean_dec(x_262); +x_282 = 0; +x_283 = l_Lake_Module_recFetchInput___closed__3; +x_284 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_284, 0, x_281); +lean_ctor_set(x_284, 1, x_283); +lean_ctor_set_uint8(x_284, sizeof(void*)*2, x_282); +x_285 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_285, 0, x_280); +lean_ctor_set(x_285, 1, x_284); +x_245 = x_285; +x_246 = x_263; +goto block_261; } } } } } -static lean_object* _init_l_Lake_Module_recBuildDeps___lambda__9___closed__1() { +static lean_object* _init_l_Lake_Module_recFetchSetup___lambda__10___closed__1() { _start: { lean_object* x_1; @@ -34123,376 +39872,413 @@ x_1 = lean_mk_string_unchecked("import oleans", 13, 13); return x_1; } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__9(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_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__10(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_133; lean_object* x_134; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_150 = lean_ctor_get(x_1, 2); -lean_inc(x_150); -x_151 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_151, 0, x_150); -x_152 = l_Lake_Module_keyword; -x_153 = l_Lake_Module_importsFacet; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_13 = lean_ctor_get(x_1, 2); +lean_inc(x_13); +x_14 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = l_Lake_Module_keyword; +x_16 = l_Lake_Module_headerFacet; lean_inc(x_1); -x_154 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_154, 0, x_151); -lean_ctor_set(x_154, 1, x_152); -lean_ctor_set(x_154, 2, x_1); -lean_ctor_set(x_154, 3, x_153); +lean_inc(x_14); +x_17 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_15); +lean_ctor_set(x_17, 2, x_1); +lean_ctor_set(x_17, 3, x_16); lean_inc(x_7); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_155 = lean_apply_6(x_7, x_154, x_8, x_9, x_10, x_11, x_12); +x_18 = lean_apply_6(x_7, x_17, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +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_135; lean_object* x_136; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_152 = l_Lake_Module_importsFacet; +lean_inc(x_1); +lean_inc(x_14); +x_153 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_153, 0, x_14); +lean_ctor_set(x_153, 1, x_15); +lean_ctor_set(x_153, 2, x_1); +lean_ctor_set(x_153, 3, x_152); +lean_inc(x_7); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_154 = lean_apply_6(x_7, x_153, x_8, x_9, x_10, x_23, x_20); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); if (lean_obj_tag(x_155) == 0) { -lean_object* x_156; -x_156 = lean_ctor_get(x_155, 0); +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_184; lean_object* x_185; +x_156 = lean_ctor_get(x_154, 1); lean_inc(x_156); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_185; lean_object* x_186; -x_157 = lean_ctor_get(x_155, 1); +lean_dec(x_154); +x_157 = lean_ctor_get(x_155, 0); lean_inc(x_157); -lean_dec(x_155); -x_158 = lean_ctor_get(x_156, 0); +x_158 = lean_ctor_get(x_155, 1); lean_inc(x_158); -x_159 = lean_ctor_get(x_156, 1); -lean_inc(x_159); -lean_dec(x_156); -x_185 = lean_ctor_get(x_158, 0); -lean_inc(x_185); -lean_dec(x_158); -x_186 = lean_io_wait(x_185, x_157); +lean_dec(x_155); +x_184 = lean_ctor_get(x_157, 0); +lean_inc(x_184); +lean_dec(x_157); +x_185 = lean_io_wait(x_184, x_156); +if (lean_obj_tag(x_185) == 0) +{ +lean_object* x_186; +x_186 = lean_ctor_get(x_185, 0); +lean_inc(x_186); if (lean_obj_tag(x_186) == 0) { -lean_object* x_187; -x_187 = lean_ctor_get(x_186, 0); +lean_object* x_187; lean_object* x_188; uint8_t x_189; +x_187 = lean_ctor_get(x_186, 1); lean_inc(x_187); -if (lean_obj_tag(x_187) == 0) -{ -lean_object* x_188; lean_object* x_189; uint8_t x_190; -x_188 = lean_ctor_get(x_187, 1); +x_188 = lean_ctor_get(x_185, 1); lean_inc(x_188); -x_189 = lean_ctor_get(x_186, 1); -lean_inc(x_189); -lean_dec(x_186); -x_190 = !lean_is_exclusive(x_187); -if (x_190 == 0) +lean_dec(x_185); +x_189 = !lean_is_exclusive(x_186); +if (x_189 == 0) { -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; -x_191 = lean_ctor_get(x_187, 0); -x_192 = lean_ctor_get(x_187, 1); +lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; +x_190 = lean_ctor_get(x_186, 0); +x_191 = lean_ctor_get(x_186, 1); +lean_dec(x_191); +x_192 = lean_ctor_get(x_187, 0); +lean_inc(x_192); +lean_dec(x_187); +x_193 = lean_array_get_size(x_192); +x_194 = lean_unsigned_to_nat(0u); +x_195 = lean_nat_dec_lt(x_194, x_193); +if (x_195 == 0) +{ +lean_dec(x_193); lean_dec(x_192); -x_193 = lean_ctor_get(x_188, 0); -lean_inc(x_193); -lean_dec(x_188); -x_194 = lean_array_get_size(x_193); -x_195 = lean_unsigned_to_nat(0u); -x_196 = lean_nat_dec_lt(x_195, x_194); +lean_ctor_set(x_186, 1, x_158); +x_159 = x_186; +x_160 = x_188; +goto block_183; +} +else +{ +uint8_t x_196; +x_196 = lean_nat_dec_le(x_193, x_193); if (x_196 == 0) { -lean_dec(x_194); lean_dec(x_193); -lean_ctor_set(x_187, 1, x_159); -x_160 = x_187; -x_161 = x_189; -goto block_184; +lean_dec(x_192); +lean_ctor_set(x_186, 1, x_158); +x_159 = x_186; +x_160 = x_188; +goto block_183; } else { -uint8_t x_197; -x_197 = lean_nat_dec_le(x_194, x_194); -if (x_197 == 0) -{ -lean_dec(x_194); +size_t x_197; size_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +lean_free_object(x_186); +x_197 = 0; +x_198 = lean_usize_of_nat(x_193); lean_dec(x_193); -lean_ctor_set(x_187, 1, x_159); -x_160 = x_187; -x_161 = x_189; -goto block_184; -} -else -{ -size_t x_198; size_t x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; -lean_free_object(x_187); -x_198 = 0; -x_199 = lean_usize_of_nat(x_194); -lean_dec(x_194); -x_200 = lean_box(0); -x_201 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_193, x_198, x_199, x_200, x_159, x_189); -lean_dec(x_193); -x_202 = lean_ctor_get(x_201, 0); +x_199 = lean_box(0); +x_200 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_192, x_197, x_198, x_199, x_158, x_188); +lean_dec(x_192); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); -lean_inc(x_203); -lean_dec(x_201); -x_204 = !lean_is_exclusive(x_202); -if (x_204 == 0) +lean_dec(x_200); +x_203 = !lean_is_exclusive(x_201); +if (x_203 == 0) { -lean_object* x_205; -x_205 = lean_ctor_get(x_202, 0); -lean_dec(x_205); -lean_ctor_set(x_202, 0, x_191); +lean_object* x_204; +x_204 = lean_ctor_get(x_201, 0); +lean_dec(x_204); +lean_ctor_set(x_201, 0, x_190); +x_159 = x_201; x_160 = x_202; -x_161 = x_203; -goto block_184; +goto block_183; } else { -lean_object* x_206; lean_object* x_207; -x_206 = lean_ctor_get(x_202, 1); -lean_inc(x_206); -lean_dec(x_202); -x_207 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_207, 0, x_191); -lean_ctor_set(x_207, 1, x_206); -x_160 = x_207; -x_161 = x_203; -goto block_184; +lean_object* x_205; lean_object* x_206; +x_205 = lean_ctor_get(x_201, 1); +lean_inc(x_205); +lean_dec(x_201); +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_190); +lean_ctor_set(x_206, 1, x_205); +x_159 = x_206; +x_160 = x_202; +goto block_183; } } } } else { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; uint8_t x_212; +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; +x_207 = lean_ctor_get(x_186, 0); +lean_inc(x_207); +lean_dec(x_186); x_208 = lean_ctor_get(x_187, 0); lean_inc(x_208); lean_dec(x_187); -x_209 = lean_ctor_get(x_188, 0); -lean_inc(x_209); -lean_dec(x_188); -x_210 = lean_array_get_size(x_209); -x_211 = lean_unsigned_to_nat(0u); -x_212 = lean_nat_dec_lt(x_211, x_210); -if (x_212 == 0) +x_209 = lean_array_get_size(x_208); +x_210 = lean_unsigned_to_nat(0u); +x_211 = lean_nat_dec_lt(x_210, x_209); +if (x_211 == 0) { -lean_object* x_213; -lean_dec(x_210); +lean_object* x_212; lean_dec(x_209); -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_208); -lean_ctor_set(x_213, 1, x_159); -x_160 = x_213; -x_161 = x_189; -goto block_184; +lean_dec(x_208); +x_212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_212, 0, x_207); +lean_ctor_set(x_212, 1, x_158); +x_159 = x_212; +x_160 = x_188; +goto block_183; } else { -uint8_t x_214; -x_214 = lean_nat_dec_le(x_210, x_210); -if (x_214 == 0) +uint8_t x_213; +x_213 = lean_nat_dec_le(x_209, x_209); +if (x_213 == 0) { -lean_object* x_215; -lean_dec(x_210); +lean_object* x_214; lean_dec(x_209); -x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_208); -lean_ctor_set(x_215, 1, x_159); -x_160 = x_215; -x_161 = x_189; -goto block_184; +lean_dec(x_208); +x_214 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_207); +lean_ctor_set(x_214, 1, x_158); +x_159 = x_214; +x_160 = x_188; +goto block_183; } else { -size_t x_216; size_t x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_216 = 0; -x_217 = lean_usize_of_nat(x_210); -lean_dec(x_210); -x_218 = lean_box(0); -x_219 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_209, x_216, x_217, x_218, x_159, x_189); +size_t x_215; size_t x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_215 = 0; +x_216 = lean_usize_of_nat(x_209); lean_dec(x_209); -x_220 = lean_ctor_get(x_219, 0); +x_217 = lean_box(0); +x_218 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_208, x_215, x_216, x_217, x_158, x_188); +lean_dec(x_208); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); lean_inc(x_220); +lean_dec(x_218); x_221 = lean_ctor_get(x_219, 1); lean_inc(x_221); -lean_dec(x_219); -x_222 = lean_ctor_get(x_220, 1); -lean_inc(x_222); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_223 = x_220; +if (lean_is_exclusive(x_219)) { + lean_ctor_release(x_219, 0); + lean_ctor_release(x_219, 1); + x_222 = x_219; } else { - lean_dec_ref(x_220); - x_223 = lean_box(0); + lean_dec_ref(x_219); + x_222 = lean_box(0); } -if (lean_is_scalar(x_223)) { - x_224 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_222)) { + x_223 = lean_alloc_ctor(0, 2, 0); } else { - x_224 = x_223; + x_223 = x_222; } -lean_ctor_set(x_224, 0, x_208); -lean_ctor_set(x_224, 1, x_222); -x_160 = x_224; -x_161 = x_221; -goto block_184; +lean_ctor_set(x_223, 0, x_207); +lean_ctor_set(x_223, 1, x_221); +x_159 = x_223; +x_160 = x_220; +goto block_183; } } } } else { -lean_object* x_225; lean_object* x_226; uint8_t x_227; -x_225 = lean_ctor_get(x_187, 1); +lean_object* x_224; lean_object* x_225; uint8_t x_226; +x_224 = lean_ctor_get(x_186, 1); +lean_inc(x_224); +x_225 = lean_ctor_get(x_185, 1); lean_inc(x_225); -x_226 = lean_ctor_get(x_186, 1); -lean_inc(x_226); -lean_dec(x_186); -x_227 = !lean_is_exclusive(x_187); -if (x_227 == 0) +lean_dec(x_185); +x_226 = !lean_is_exclusive(x_186); +if (x_226 == 0) { -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; -x_228 = lean_ctor_get(x_187, 0); -x_229 = lean_ctor_get(x_187, 1); +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; +x_227 = lean_ctor_get(x_186, 0); +x_228 = lean_ctor_get(x_186, 1); +lean_dec(x_228); +x_229 = lean_ctor_get(x_224, 0); +lean_inc(x_229); +lean_dec(x_224); +x_230 = lean_array_get_size(x_229); +x_231 = lean_unsigned_to_nat(0u); +x_232 = lean_nat_dec_lt(x_231, x_230); +if (x_232 == 0) +{ +lean_dec(x_230); lean_dec(x_229); -x_230 = lean_ctor_get(x_225, 0); -lean_inc(x_230); -lean_dec(x_225); -x_231 = lean_array_get_size(x_230); -x_232 = lean_unsigned_to_nat(0u); -x_233 = lean_nat_dec_lt(x_232, x_231); +lean_ctor_set(x_186, 1, x_158); +x_159 = x_186; +x_160 = x_225; +goto block_183; +} +else +{ +uint8_t x_233; +x_233 = lean_nat_dec_le(x_230, x_230); if (x_233 == 0) { -lean_dec(x_231); lean_dec(x_230); -lean_ctor_set(x_187, 1, x_159); -x_160 = x_187; -x_161 = x_226; -goto block_184; +lean_dec(x_229); +lean_ctor_set(x_186, 1, x_158); +x_159 = x_186; +x_160 = x_225; +goto block_183; } else { -uint8_t x_234; -x_234 = lean_nat_dec_le(x_231, x_231); -if (x_234 == 0) -{ -lean_dec(x_231); +size_t x_234; size_t x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; +lean_free_object(x_186); +x_234 = 0; +x_235 = lean_usize_of_nat(x_230); lean_dec(x_230); -lean_ctor_set(x_187, 1, x_159); -x_160 = x_187; -x_161 = x_226; -goto block_184; -} -else -{ -size_t x_235; size_t x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; -lean_free_object(x_187); -x_235 = 0; -x_236 = lean_usize_of_nat(x_231); -lean_dec(x_231); -x_237 = lean_box(0); -x_238 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_230, x_235, x_236, x_237, x_159, x_226); -lean_dec(x_230); -x_239 = lean_ctor_get(x_238, 0); +x_236 = lean_box(0); +x_237 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_229, x_234, x_235, x_236, x_158, x_225); +lean_dec(x_229); +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); lean_inc(x_239); -x_240 = lean_ctor_get(x_238, 1); -lean_inc(x_240); -lean_dec(x_238); -x_241 = !lean_is_exclusive(x_239); -if (x_241 == 0) +lean_dec(x_237); +x_240 = !lean_is_exclusive(x_238); +if (x_240 == 0) { -lean_object* x_242; -x_242 = lean_ctor_get(x_239, 0); -lean_dec(x_242); -lean_ctor_set_tag(x_239, 1); -lean_ctor_set(x_239, 0, x_228); +lean_object* x_241; +x_241 = lean_ctor_get(x_238, 0); +lean_dec(x_241); +lean_ctor_set_tag(x_238, 1); +lean_ctor_set(x_238, 0, x_227); +x_159 = x_238; x_160 = x_239; -x_161 = x_240; -goto block_184; +goto block_183; } else { -lean_object* x_243; lean_object* x_244; -x_243 = lean_ctor_get(x_239, 1); -lean_inc(x_243); -lean_dec(x_239); -x_244 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_244, 0, x_228); -lean_ctor_set(x_244, 1, x_243); -x_160 = x_244; -x_161 = x_240; -goto block_184; +lean_object* x_242; lean_object* x_243; +x_242 = lean_ctor_get(x_238, 1); +lean_inc(x_242); +lean_dec(x_238); +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_227); +lean_ctor_set(x_243, 1, x_242); +x_159 = x_243; +x_160 = x_239; +goto block_183; } } } } else { -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t x_249; -x_245 = lean_ctor_get(x_187, 0); +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; +x_244 = lean_ctor_get(x_186, 0); +lean_inc(x_244); +lean_dec(x_186); +x_245 = lean_ctor_get(x_224, 0); lean_inc(x_245); -lean_dec(x_187); -x_246 = lean_ctor_get(x_225, 0); -lean_inc(x_246); -lean_dec(x_225); -x_247 = lean_array_get_size(x_246); -x_248 = lean_unsigned_to_nat(0u); -x_249 = lean_nat_dec_lt(x_248, x_247); -if (x_249 == 0) +lean_dec(x_224); +x_246 = lean_array_get_size(x_245); +x_247 = lean_unsigned_to_nat(0u); +x_248 = lean_nat_dec_lt(x_247, x_246); +if (x_248 == 0) { -lean_object* x_250; -lean_dec(x_247); +lean_object* x_249; lean_dec(x_246); -x_250 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_250, 0, x_245); -lean_ctor_set(x_250, 1, x_159); -x_160 = x_250; -x_161 = x_226; -goto block_184; +lean_dec(x_245); +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_244); +lean_ctor_set(x_249, 1, x_158); +x_159 = x_249; +x_160 = x_225; +goto block_183; } else { -uint8_t x_251; -x_251 = lean_nat_dec_le(x_247, x_247); -if (x_251 == 0) +uint8_t x_250; +x_250 = lean_nat_dec_le(x_246, x_246); +if (x_250 == 0) { -lean_object* x_252; -lean_dec(x_247); +lean_object* x_251; lean_dec(x_246); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_245); -lean_ctor_set(x_252, 1, x_159); -x_160 = x_252; -x_161 = x_226; -goto block_184; +lean_dec(x_245); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_244); +lean_ctor_set(x_251, 1, x_158); +x_159 = x_251; +x_160 = x_225; +goto block_183; } else { -size_t x_253; size_t 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; -x_253 = 0; -x_254 = lean_usize_of_nat(x_247); -lean_dec(x_247); -x_255 = lean_box(0); -x_256 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_246, x_253, x_254, x_255, x_159, x_226); +size_t x_252; size_t 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; +x_252 = 0; +x_253 = lean_usize_of_nat(x_246); lean_dec(x_246); -x_257 = lean_ctor_get(x_256, 0); +x_254 = lean_box(0); +x_255 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_245, x_252, x_253, x_254, x_158, x_225); +lean_dec(x_245); +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_255, 1); lean_inc(x_257); +lean_dec(x_255); x_258 = lean_ctor_get(x_256, 1); lean_inc(x_258); -lean_dec(x_256); -x_259 = lean_ctor_get(x_257, 1); -lean_inc(x_259); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - x_260 = x_257; +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_259 = x_256; } else { - lean_dec_ref(x_257); - x_260 = lean_box(0); + lean_dec_ref(x_256); + x_259 = lean_box(0); } -if (lean_is_scalar(x_260)) { - x_261 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_259)) { + x_260 = lean_alloc_ctor(1, 2, 0); } else { - x_261 = x_260; - lean_ctor_set_tag(x_261, 1); + x_260 = x_259; + lean_ctor_set_tag(x_260, 1); } -lean_ctor_set(x_261, 0, x_245); -lean_ctor_set(x_261, 1, x_259); -x_160 = x_261; -x_161 = x_258; -goto block_184; +lean_ctor_set(x_260, 0, x_244); +lean_ctor_set(x_260, 1, x_258); +x_159 = x_260; +x_160 = x_257; +goto block_183; } } } @@ -34500,8 +40286,11 @@ goto block_184; } else { -uint8_t x_262; -lean_dec(x_159); +uint8_t x_261; +lean_dec(x_158); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -34511,114 +40300,117 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_262 = !lean_is_exclusive(x_186); -if (x_262 == 0) +x_261 = !lean_is_exclusive(x_185); +if (x_261 == 0) { -return x_186; +return x_185; } else { -lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_263 = lean_ctor_get(x_186, 0); -x_264 = lean_ctor_get(x_186, 1); -lean_inc(x_264); +lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_262 = lean_ctor_get(x_185, 0); +x_263 = lean_ctor_get(x_185, 1); lean_inc(x_263); -lean_dec(x_186); -x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_263); -lean_ctor_set(x_265, 1, x_264); -return x_265; +lean_inc(x_262); +lean_dec(x_185); +x_264 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_263); +return x_264; } } -block_184: +block_183: { -if (lean_obj_tag(x_160) == 0) +if (lean_obj_tag(x_159) == 0) { -uint8_t x_162; -x_162 = !lean_is_exclusive(x_160); -if (x_162 == 0) +uint8_t x_161; +x_161 = !lean_is_exclusive(x_159); +if (x_161 == 0) { -lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; -x_163 = lean_ctor_get(x_160, 1); -x_164 = 0; -x_165 = l_Lake_Module_recParseImports___closed__3; -x_166 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_166, 0, x_163); -lean_ctor_set(x_166, 1, x_165); -lean_ctor_set_uint8(x_166, sizeof(void*)*2, x_164); -lean_ctor_set(x_160, 1, x_166); -x_133 = x_160; -x_134 = x_161; -goto block_149; +lean_object* x_162; uint8_t x_163; lean_object* x_164; lean_object* x_165; +x_162 = lean_ctor_get(x_159, 1); +x_163 = 0; +x_164 = l_Lake_Module_recFetchInput___closed__3; +x_165 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_164); +lean_ctor_set_uint8(x_165, sizeof(void*)*2, x_163); +lean_ctor_set(x_159, 1, x_165); +x_135 = x_159; +x_136 = x_160; +goto block_151; } else { -lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_167 = lean_ctor_get(x_160, 0); -x_168 = lean_ctor_get(x_160, 1); -lean_inc(x_168); +lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_166 = lean_ctor_get(x_159, 0); +x_167 = lean_ctor_get(x_159, 1); lean_inc(x_167); -lean_dec(x_160); -x_169 = 0; -x_170 = l_Lake_Module_recParseImports___closed__3; -x_171 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_171, 0, x_168); +lean_inc(x_166); +lean_dec(x_159); +x_168 = 0; +x_169 = l_Lake_Module_recFetchInput___closed__3; +x_170 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_170, 0, x_167); +lean_ctor_set(x_170, 1, x_169); +lean_ctor_set_uint8(x_170, sizeof(void*)*2, x_168); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_166); lean_ctor_set(x_171, 1, x_170); -lean_ctor_set_uint8(x_171, sizeof(void*)*2, x_169); -x_172 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_172, 0, x_167); -lean_ctor_set(x_172, 1, x_171); -x_133 = x_172; -x_134 = x_161; -goto block_149; +x_135 = x_171; +x_136 = x_160; +goto block_151; } } else { -uint8_t x_173; -x_173 = !lean_is_exclusive(x_160); -if (x_173 == 0) +uint8_t x_172; +x_172 = !lean_is_exclusive(x_159); +if (x_172 == 0) { -lean_object* x_174; uint8_t x_175; lean_object* x_176; lean_object* x_177; -x_174 = lean_ctor_get(x_160, 1); -x_175 = 0; -x_176 = l_Lake_Module_recParseImports___closed__3; -x_177 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_177, 0, x_174); -lean_ctor_set(x_177, 1, x_176); -lean_ctor_set_uint8(x_177, sizeof(void*)*2, x_175); -lean_ctor_set(x_160, 1, x_177); -x_133 = x_160; -x_134 = x_161; -goto block_149; +lean_object* x_173; uint8_t x_174; lean_object* x_175; lean_object* x_176; +x_173 = lean_ctor_get(x_159, 1); +x_174 = 0; +x_175 = l_Lake_Module_recFetchInput___closed__3; +x_176 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_175); +lean_ctor_set_uint8(x_176, sizeof(void*)*2, x_174); +lean_ctor_set(x_159, 1, x_176); +x_135 = x_159; +x_136 = x_160; +goto block_151; } else { -lean_object* x_178; lean_object* x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_178 = lean_ctor_get(x_160, 0); -x_179 = lean_ctor_get(x_160, 1); -lean_inc(x_179); +lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_177 = lean_ctor_get(x_159, 0); +x_178 = lean_ctor_get(x_159, 1); lean_inc(x_178); -lean_dec(x_160); -x_180 = 0; -x_181 = l_Lake_Module_recParseImports___closed__3; -x_182 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_182, 0, x_179); +lean_inc(x_177); +lean_dec(x_159); +x_179 = 0; +x_180 = l_Lake_Module_recFetchInput___closed__3; +x_181 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_181, 0, x_178); +lean_ctor_set(x_181, 1, x_180); +lean_ctor_set_uint8(x_181, sizeof(void*)*2, x_179); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_177); lean_ctor_set(x_182, 1, x_181); -lean_ctor_set_uint8(x_182, sizeof(void*)*2, x_180); -x_183 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_183, 0, x_178); -lean_ctor_set(x_183, 1, x_182); -x_133 = x_183; -x_134 = x_161; -goto block_149; +x_135 = x_182; +x_136 = x_160; +goto block_151; } } } } else { -uint8_t x_266; +uint8_t x_265; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -34628,67 +40420,70 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_266 = !lean_is_exclusive(x_155); -if (x_266 == 0) +x_265 = !lean_is_exclusive(x_154); +if (x_265 == 0) { -lean_object* x_267; uint8_t x_268; -x_267 = lean_ctor_get(x_155, 0); -lean_dec(x_267); -x_268 = !lean_is_exclusive(x_156); -if (x_268 == 0) +lean_object* x_266; uint8_t x_267; +x_266 = lean_ctor_get(x_154, 0); +lean_dec(x_266); +x_267 = !lean_is_exclusive(x_155); +if (x_267 == 0) { -return x_155; +return x_154; } else { -lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_269 = lean_ctor_get(x_156, 0); -x_270 = lean_ctor_get(x_156, 1); -lean_inc(x_270); +lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_268 = lean_ctor_get(x_155, 0); +x_269 = lean_ctor_get(x_155, 1); lean_inc(x_269); -lean_dec(x_156); -x_271 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_271, 0, x_269); -lean_ctor_set(x_271, 1, x_270); -lean_ctor_set(x_155, 0, x_271); -return x_155; -} -} -else -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_272 = lean_ctor_get(x_155, 1); -lean_inc(x_272); +lean_inc(x_268); lean_dec(x_155); -x_273 = lean_ctor_get(x_156, 0); +x_270 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_270, 0, x_268); +lean_ctor_set(x_270, 1, x_269); +lean_ctor_set(x_154, 0, x_270); +return x_154; +} +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_271 = lean_ctor_get(x_154, 1); +lean_inc(x_271); +lean_dec(x_154); +x_272 = lean_ctor_get(x_155, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_155, 1); lean_inc(x_273); -x_274 = lean_ctor_get(x_156, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_275 = x_156; +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_274 = x_155; } else { - lean_dec_ref(x_156); - x_275 = lean_box(0); + lean_dec_ref(x_155); + x_274 = lean_box(0); } -if (lean_is_scalar(x_275)) { - x_276 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_274)) { + x_275 = lean_alloc_ctor(1, 2, 0); } else { - x_276 = x_275; + x_275 = x_274; } -lean_ctor_set(x_276, 0, x_273); -lean_ctor_set(x_276, 1, x_274); -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_272); -return x_277; +lean_ctor_set(x_275, 0, x_272); +lean_ctor_set(x_275, 1, x_273); +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_271); +return x_276; } } } else { -uint8_t x_278; +uint8_t x_277; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -34698,324 +40493,319 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_278 = !lean_is_exclusive(x_155); -if (x_278 == 0) +x_277 = !lean_is_exclusive(x_154); +if (x_277 == 0) { -return x_155; +return x_154; } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_279 = lean_ctor_get(x_155, 0); -x_280 = lean_ctor_get(x_155, 1); -lean_inc(x_280); +lean_object* x_278; lean_object* x_279; lean_object* x_280; +x_278 = lean_ctor_get(x_154, 0); +x_279 = lean_ctor_get(x_154, 1); lean_inc(x_279); -lean_dec(x_155); -x_281 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_281, 0, x_279); -lean_ctor_set(x_281, 1, x_280); -return x_281; +lean_inc(x_278); +lean_dec(x_154); +x_280 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_280, 0, x_278); +lean_ctor_set(x_280, 1, x_279); +return x_280; } } -block_132: +block_134: { -if (lean_obj_tag(x_13) == 0) +if (lean_obj_tag(x_24) == 0) { -lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_dec(x_13); -x_17 = lean_array_size(x_15); -x_18 = 0; +lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; +lean_dec(x_21); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_array_size(x_26); +x_29 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_3); -x_19 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1(x_1, x_2, x_3, x_17, x_18, x_15, x_7, x_8, x_9, x_10, x_16, x_14); -if (lean_obj_tag(x_19) == 0) +x_30 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1(x_1, x_2, x_3, x_28, x_29, x_26, x_7, x_8, x_9, x_10, x_27, x_25); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_20; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -if (lean_obj_tag(x_20) == 0) +lean_object* x_31; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -x_24 = l_Lake_Module_recBuildDeps___lambda__9___closed__1; -x_25 = l_Lake_Job_mixArray___rarg(x_22, x_24); -lean_dec(x_22); -x_26 = lean_ctor_get(x_3, 3); -lean_inc(x_26); -x_27 = lean_ctor_get_uint8(x_26, sizeof(void*)*25 + 1); -lean_dec(x_26); -if (x_27 == 0) -{ -uint8_t x_28; -x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_1, 2); -lean_inc(x_29); -x_30 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = l_Lake_Module_keyword; -x_32 = l_Lake_Module_precompileImportsFacet; -lean_inc(x_1); -x_33 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_31); -lean_ctor_set(x_33, 2, x_1); -lean_ctor_set(x_33, 3, x_32); -lean_inc(x_7); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_34 = lean_apply_6(x_7, x_33, x_8, x_9, x_10, x_23, x_21); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_ctor_get(x_35, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_ctor_get(x_31, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = l_Lake_Module_recFetchSetup___lambda__10___closed__1; +x_36 = l_Lake_Job_mixArray___rarg(x_33, x_35); +lean_dec(x_33); +x_37 = lean_ctor_get(x_3, 3); lean_inc(x_37); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = l_Lake_Module_recBuildDeps___lambda__8(x_3, x_4, x_1, x_25, x_6, x_18, x_5, x_37, x_7, x_8, x_9, x_10, x_38, x_36); -return x_39; -} -else +x_38 = lean_ctor_get_uint8(x_37, sizeof(void*)*25 + 1); +lean_dec(x_37); +if (x_38 == 0) { -uint8_t x_40; -lean_dec(x_25); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_40 = !lean_is_exclusive(x_34); -if (x_40 == 0) +uint8_t x_39; +x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +if (x_39 == 0) { -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_34, 0); -lean_dec(x_41); -x_42 = !lean_is_exclusive(x_35); -if (x_42 == 0) -{ -return x_34; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_35, 0); -x_44 = lean_ctor_get(x_35, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_35); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -lean_ctor_set(x_34, 0, x_45); -return x_34; -} -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_46 = lean_ctor_get(x_34, 1); -lean_inc(x_46); -lean_dec(x_34); -x_47 = lean_ctor_get(x_35, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_35, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_49 = x_35; -} else { - lean_dec_ref(x_35); - x_49 = lean_box(0); -} -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(1, 2, 0); -} else { - x_50 = x_49; -} -lean_ctor_set(x_50, 0, x_47); -lean_ctor_set(x_50, 1, x_48); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_46); -return x_51; -} -} -} -else -{ -uint8_t x_52; -lean_dec(x_25); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_52 = !lean_is_exclusive(x_34); -if (x_52 == 0) -{ -return x_34; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_34, 0); -x_54 = lean_ctor_get(x_34, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_34); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_56 = lean_ctor_get(x_1, 2); -lean_inc(x_56); -x_57 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_57, 0, x_56); -x_58 = l_Lake_Module_keyword; -x_59 = l_Lake_Module_transImportsFacet; +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = l_Lake_Module_precompileImportsFacet; lean_inc(x_1); -x_60 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -lean_ctor_set(x_60, 2, x_1); -lean_ctor_set(x_60, 3, x_59); +x_41 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_41, 0, x_14); +lean_ctor_set(x_41, 1, x_15); +lean_ctor_set(x_41, 2, x_1); +lean_ctor_set(x_41, 3, x_40); lean_inc(x_7); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_61 = lean_apply_6(x_7, x_60, x_8, x_9, x_10, x_23, x_21); -if (lean_obj_tag(x_61) == 0) +x_42 = lean_apply_6(x_7, x_41, x_8, x_9, x_10, x_34, x_32); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_62; -x_62 = lean_ctor_get(x_61, 0); +lean_object* x_43; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = l_Lake_Module_recFetchSetup___lambda__9(x_3, x_4, x_1, x_29, x_36, x_6, x_22, x_5, x_45, x_7, x_8, x_9, x_10, x_46, x_44); +return x_47; +} +else +{ +uint8_t x_48; +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_42); +if (x_48 == 0) +{ +lean_object* x_49; uint8_t x_50; +x_49 = lean_ctor_get(x_42, 0); +lean_dec(x_49); +x_50 = !lean_is_exclusive(x_43); +if (x_50 == 0) +{ +return x_42; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_43, 0); +x_52 = lean_ctor_get(x_43, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_43); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +lean_ctor_set(x_42, 0, x_53); +return x_42; +} +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_54 = lean_ctor_get(x_42, 1); +lean_inc(x_54); +lean_dec(x_42); +x_55 = lean_ctor_get(x_43, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_43, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_57 = x_43; +} else { + lean_dec_ref(x_43); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_54); +return x_59; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_42); +if (x_60 == 0) +{ +return x_42; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_42, 0); +x_62 = lean_ctor_get(x_42, 1); lean_inc(x_62); -if (lean_obj_tag(x_62) == 0) +lean_inc(x_61); +lean_dec(x_42); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = l_Lake_Module_transImportsFacet; +lean_inc(x_1); +x_65 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_65, 0, x_14); +lean_ctor_set(x_65, 1, x_15); +lean_ctor_set(x_65, 2, x_1); +lean_ctor_set(x_65, 3, x_64); +lean_inc(x_7); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_66 = lean_apply_6(x_7, x_65, x_8, x_9, x_10, x_34, x_32); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_ctor_get(x_67, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_67, 1); +lean_inc(x_70); +lean_dec(x_67); +x_71 = l_Lake_Module_recFetchSetup___lambda__9(x_3, x_4, x_1, x_29, x_36, x_6, x_22, x_5, x_69, x_7, x_8, x_9, x_10, x_70, x_68); +return x_71; +} +else +{ +uint8_t x_72; +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_72 = !lean_is_exclusive(x_66); +if (x_72 == 0) +{ +lean_object* x_73; uint8_t x_74; +x_73 = lean_ctor_get(x_66, 0); +lean_dec(x_73); +x_74 = !lean_is_exclusive(x_67); +if (x_74 == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec(x_61); -x_64 = lean_ctor_get(x_62, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_62, 1); -lean_inc(x_65); -lean_dec(x_62); -x_66 = l_Lake_Module_recBuildDeps___lambda__8(x_3, x_4, x_1, x_25, x_6, x_18, x_5, x_64, x_7, x_8, x_9, x_10, x_65, x_63); return x_66; } else { -uint8_t x_67; -lean_dec(x_25); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_67 = !lean_is_exclusive(x_61); -if (x_67 == 0) -{ -lean_object* x_68; uint8_t x_69; -x_68 = lean_ctor_get(x_61, 0); -lean_dec(x_68); -x_69 = !lean_is_exclusive(x_62); -if (x_69 == 0) -{ -return x_61; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_62, 0); -x_71 = lean_ctor_get(x_62, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_62); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -lean_ctor_set(x_61, 0, x_72); -return x_61; -} -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_61, 1); -lean_inc(x_73); -lean_dec(x_61); -x_74 = lean_ctor_get(x_62, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_62, 1); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_67, 0); +x_76 = lean_ctor_get(x_67, 1); +lean_inc(x_76); lean_inc(x_75); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_76 = x_62; -} else { - lean_dec_ref(x_62); - x_76 = lean_box(0); +lean_dec(x_67); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_66, 0, x_77); +return x_66; } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); -} else { - x_77 = x_76; } -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_73); -return x_78; +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_78 = lean_ctor_get(x_66, 1); +lean_inc(x_78); +lean_dec(x_66); +x_79 = lean_ctor_get(x_67, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_67, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_81 = x_67; +} else { + lean_dec_ref(x_67); + x_81 = lean_box(0); +} +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); +} else { + x_82 = x_81; +} +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_78); +return x_83; } } } else { -uint8_t x_79; -lean_dec(x_25); +uint8_t x_84; +lean_dec(x_36); +lean_dec(x_22); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -35024,70 +40814,66 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_79 = !lean_is_exclusive(x_61); -if (x_79 == 0) +x_84 = !lean_is_exclusive(x_66); +if (x_84 == 0) { -return x_61; +return x_66; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_61, 0); -x_81 = lean_ctor_get(x_61, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_61); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_66, 0); +x_86 = lean_ctor_get(x_66, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_66); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; } } } } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_83 = lean_ctor_get(x_1, 2); -lean_inc(x_83); -x_84 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_84, 0, x_83); -x_85 = l_Lake_Module_keyword; -x_86 = l_Lake_Module_transImportsFacet; +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = l_Lake_Module_transImportsFacet; lean_inc(x_1); -x_87 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -lean_ctor_set(x_87, 2, x_1); -lean_ctor_set(x_87, 3, x_86); +x_89 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_89, 0, x_14); +lean_ctor_set(x_89, 1, x_15); +lean_ctor_set(x_89, 2, x_1); +lean_ctor_set(x_89, 3, x_88); lean_inc(x_7); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_88 = lean_apply_6(x_7, x_87, x_8, x_9, x_10, x_23, x_21); -if (lean_obj_tag(x_88) == 0) +x_90 = lean_apply_6(x_7, x_89, x_8, x_9, x_10, x_34, x_32); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_89; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -x_91 = lean_ctor_get(x_89, 0); +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); -x_92 = lean_ctor_get(x_89, 1); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_90, 1); lean_inc(x_92); -lean_dec(x_89); -x_93 = l_Lake_Module_recBuildDeps___lambda__8(x_3, x_4, x_1, x_25, x_6, x_18, x_5, x_91, x_7, x_8, x_9, x_10, x_92, x_90); -return x_93; +lean_dec(x_90); +x_93 = lean_ctor_get(x_91, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +lean_dec(x_91); +x_95 = l_Lake_Module_recFetchSetup___lambda__9(x_3, x_4, x_1, x_29, x_36, x_6, x_22, x_5, x_93, x_7, x_8, x_9, x_10, x_94, x_92); +return x_95; } else { -uint8_t x_94; -lean_dec(x_25); +uint8_t x_96; +lean_dec(x_36); +lean_dec(x_22); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -35096,68 +40882,69 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_94 = !lean_is_exclusive(x_88); -if (x_94 == 0) -{ -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_88, 0); -lean_dec(x_95); -x_96 = !lean_is_exclusive(x_89); +x_96 = !lean_is_exclusive(x_90); if (x_96 == 0) { -return x_88; +lean_object* x_97; uint8_t x_98; +x_97 = lean_ctor_get(x_90, 0); +lean_dec(x_97); +x_98 = !lean_is_exclusive(x_91); +if (x_98 == 0) +{ +return x_90; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_89, 0); -x_98 = lean_ctor_get(x_89, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_89); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -lean_ctor_set(x_88, 0, x_99); -return x_88; -} -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_100 = lean_ctor_get(x_88, 1); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_91, 0); +x_100 = lean_ctor_get(x_91, 1); lean_inc(x_100); -lean_dec(x_88); -x_101 = lean_ctor_get(x_89, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_89, 1); +lean_inc(x_99); +lean_dec(x_91); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +lean_ctor_set(x_90, 0, x_101); +return x_90; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_102 = lean_ctor_get(x_90, 1); lean_inc(x_102); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_103 = x_89; +lean_dec(x_90); +x_103 = lean_ctor_get(x_91, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_91, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_105 = x_91; } else { - lean_dec_ref(x_89); - x_103 = lean_box(0); + lean_dec_ref(x_91); + x_105 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); } else { - x_104 = x_103; + x_106 = x_105; } -lean_ctor_set(x_104, 0, x_101); -lean_ctor_set(x_104, 1, x_102); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_100); -return x_105; +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_102); +return x_107; } } } else { -uint8_t x_106; -lean_dec(x_25); +uint8_t x_108; +lean_dec(x_36); +lean_dec(x_22); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -35166,30 +40953,32 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_106 = !lean_is_exclusive(x_88); -if (x_106 == 0) +x_108 = !lean_is_exclusive(x_90); +if (x_108 == 0) { -return x_88; +return x_90; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_88, 0); -x_108 = lean_ctor_get(x_88, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_88); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_90, 0); +x_110 = lean_ctor_get(x_90, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_90); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; } } } } else { -uint8_t x_110; +uint8_t x_112; +lean_dec(x_22); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -35198,67 +40987,69 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_110 = !lean_is_exclusive(x_19); -if (x_110 == 0) -{ -lean_object* x_111; uint8_t x_112; -x_111 = lean_ctor_get(x_19, 0); -lean_dec(x_111); -x_112 = !lean_is_exclusive(x_20); +x_112 = !lean_is_exclusive(x_30); if (x_112 == 0) { -return x_19; +lean_object* x_113; uint8_t x_114; +x_113 = lean_ctor_get(x_30, 0); +lean_dec(x_113); +x_114 = !lean_is_exclusive(x_31); +if (x_114 == 0) +{ +return x_30; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_20, 0); -x_114 = lean_ctor_get(x_20, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_20); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -lean_ctor_set(x_19, 0, x_115); -return x_19; -} -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_116 = lean_ctor_get(x_19, 1); +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_31, 0); +x_116 = lean_ctor_get(x_31, 1); lean_inc(x_116); -lean_dec(x_19); -x_117 = lean_ctor_get(x_20, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_20, 1); +lean_inc(x_115); +lean_dec(x_31); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +lean_ctor_set(x_30, 0, x_117); +return x_30; +} +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_118 = lean_ctor_get(x_30, 1); lean_inc(x_118); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_119 = x_20; +lean_dec(x_30); +x_119 = lean_ctor_get(x_31, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_31, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_121 = x_31; } else { - lean_dec_ref(x_20); - x_119 = lean_box(0); + lean_dec_ref(x_31); + x_121 = lean_box(0); } -if (lean_is_scalar(x_119)) { - x_120 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); } else { - x_120 = x_119; + x_122 = x_121; } -lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_118); -x_121 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_116); -return x_121; +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_118); +return x_123; } } } else { -uint8_t x_122; +uint8_t x_124; +lean_dec(x_22); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -35267,29 +41058,31 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_122 = !lean_is_exclusive(x_19); -if (x_122 == 0) +x_124 = !lean_is_exclusive(x_30); +if (x_124 == 0) { -return x_19; +return x_30; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_19, 0); -x_124 = lean_ctor_get(x_19, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_19); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -return x_125; +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_30, 0); +x_126 = lean_ctor_get(x_30, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_30); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; } } } else { -uint8_t x_126; +uint8_t x_128; +lean_dec(x_22); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -35299,109 +41092,221 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_126 = !lean_is_exclusive(x_13); -if (x_126 == 0) +x_128 = !lean_is_exclusive(x_24); +if (x_128 == 0) { -lean_object* x_127; -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_13); -lean_ctor_set(x_127, 1, x_14); -return x_127; +lean_object* x_129; +if (lean_is_scalar(x_21)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_21; +} +lean_ctor_set(x_129, 0, x_24); +lean_ctor_set(x_129, 1, x_25); +return x_129; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_128 = lean_ctor_get(x_13, 0); -x_129 = lean_ctor_get(x_13, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_13); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_14); -return x_131; +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_130 = lean_ctor_get(x_24, 0); +x_131 = lean_ctor_get(x_24, 1); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_24); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +if (lean_is_scalar(x_21)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_21; +} +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_25); +return x_133; } } } -block_149: +block_151: { -if (lean_obj_tag(x_133) == 0) +if (lean_obj_tag(x_135) == 0) { -uint8_t x_135; -x_135 = !lean_is_exclusive(x_133); -if (x_135 == 0) +uint8_t x_137; +x_137 = !lean_is_exclusive(x_135); +if (x_137 == 0) { -lean_object* x_136; lean_object* x_137; -x_136 = lean_ctor_get(x_133, 1); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -lean_dec(x_136); -lean_ctor_set(x_133, 1, x_137); -x_13 = x_133; -x_14 = x_134; -goto block_132; -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_138 = lean_ctor_get(x_133, 0); -x_139 = lean_ctor_get(x_133, 1); +lean_object* x_138; lean_object* x_139; +x_138 = lean_ctor_get(x_135, 1); +x_139 = lean_ctor_get(x_138, 0); lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_133); -x_140 = lean_ctor_get(x_139, 0); +lean_dec(x_138); +lean_ctor_set(x_135, 1, x_139); +x_24 = x_135; +x_25 = x_136; +goto block_134; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_140 = lean_ctor_get(x_135, 0); +x_141 = lean_ctor_get(x_135, 1); +lean_inc(x_141); lean_inc(x_140); -lean_dec(x_139); -x_141 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_141, 0, x_138); -lean_ctor_set(x_141, 1, x_140); -x_13 = x_141; -x_14 = x_134; -goto block_132; +lean_dec(x_135); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +lean_dec(x_141); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_142); +x_24 = x_143; +x_25 = x_136; +goto block_134; } } else { -uint8_t x_142; -x_142 = !lean_is_exclusive(x_133); -if (x_142 == 0) +uint8_t x_144; +x_144 = !lean_is_exclusive(x_135); +if (x_144 == 0) { -lean_object* x_143; lean_object* x_144; -x_143 = lean_ctor_get(x_133, 1); -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -lean_dec(x_143); -lean_ctor_set(x_133, 1, x_144); -x_13 = x_133; -x_14 = x_134; -goto block_132; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_145 = lean_ctor_get(x_133, 0); -x_146 = lean_ctor_get(x_133, 1); +lean_object* x_145; lean_object* x_146; +x_145 = lean_ctor_get(x_135, 1); +x_146 = lean_ctor_get(x_145, 0); lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_133); -x_147 = lean_ctor_get(x_146, 0); +lean_dec(x_145); +lean_ctor_set(x_135, 1, x_146); +x_24 = x_135; +x_25 = x_136; +goto block_134; +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_147 = lean_ctor_get(x_135, 0); +x_148 = lean_ctor_get(x_135, 1); +lean_inc(x_148); lean_inc(x_147); -lean_dec(x_146); -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_145); -lean_ctor_set(x_148, 1, x_147); -x_13 = x_148; -x_14 = x_134; -goto block_132; +lean_dec(x_135); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +lean_dec(x_148); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_147); +lean_ctor_set(x_150, 1, x_149); +x_24 = x_150; +x_25 = x_136; +goto block_134; } } } } +else +{ +uint8_t x_281; +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_281 = !lean_is_exclusive(x_18); +if (x_281 == 0) +{ +lean_object* x_282; uint8_t x_283; +x_282 = lean_ctor_get(x_18, 0); +lean_dec(x_282); +x_283 = !lean_is_exclusive(x_19); +if (x_283 == 0) +{ +return x_18; } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps(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) { +else +{ +lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_284 = lean_ctor_get(x_19, 0); +x_285 = lean_ctor_get(x_19, 1); +lean_inc(x_285); +lean_inc(x_284); +lean_dec(x_19); +x_286 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_286, 0, x_284); +lean_ctor_set(x_286, 1, x_285); +lean_ctor_set(x_18, 0, x_286); +return x_18; +} +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_287 = lean_ctor_get(x_18, 1); +lean_inc(x_287); +lean_dec(x_18); +x_288 = lean_ctor_get(x_19, 0); +lean_inc(x_288); +x_289 = lean_ctor_get(x_19, 1); +lean_inc(x_289); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_290 = x_19; +} else { + lean_dec_ref(x_19); + x_290 = lean_box(0); +} +if (lean_is_scalar(x_290)) { + x_291 = lean_alloc_ctor(1, 2, 0); +} else { + x_291 = x_290; +} +lean_ctor_set(x_291, 0, x_288); +lean_ctor_set(x_291, 1, x_289); +x_292 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_292, 0, x_291); +lean_ctor_set(x_292, 1, x_287); +return x_292; +} +} +} +else +{ +uint8_t x_293; +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_293 = !lean_is_exclusive(x_18); +if (x_293 == 0) +{ +return x_18; +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_294 = lean_ctor_get(x_18, 0); +x_295 = lean_ctor_get(x_18, 1); +lean_inc(x_295); +lean_inc(x_294); +lean_dec(x_18); +x_296 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_296, 0, x_294); +lean_ctor_set(x_296, 1, x_295); +return x_296; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -35430,7 +41335,7 @@ lean_ctor_set(x_16, 3, x_15); x_17 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); lean_closure_set(x_17, 0, x_16); lean_closure_set(x_17, 1, lean_box(0)); -x_18 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__9___boxed), 12, 5); +x_18 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup___lambda__10___boxed), 12, 5); lean_closure_set(x_18, 0, x_1); lean_closure_set(x_18, 1, x_8); lean_closure_set(x_18, 2, x_9); @@ -35439,20 +41344,20 @@ lean_closure_set(x_18, 4, x_12); x_19 = lean_alloc_closure((void*)(l_Lake_EquipT_bind___at_Lake_Module_recComputeTransImports___spec__3___rarg), 8, 2); lean_closure_set(x_19, 0, x_17); lean_closure_set(x_19, 1, x_18); -x_20 = l_Lake_ensureJob___at_Lake_Module_recBuildDeps___spec__17(x_19, x_2, x_3, x_4, x_5, x_6, x_7); +x_20 = l_Lake_ensureJob___at_Lake_Module_recFetchSetup___spec__19(x_19, x_2, x_3, x_4, x_5, x_6, x_7); return x_20; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___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) { _start: { lean_object* x_9; -x_9 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__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) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__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: { size_t x_13; size_t x_14; lean_object* x_15; @@ -35460,12 +41365,12 @@ x_13 = lean_unbox_usize(x_4); lean_dec(x_4); x_14 = lean_unbox_usize(x_5); lean_dec(x_5); -x_15 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_1); return x_15; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { size_t x_11; size_t x_12; lean_object* x_13; @@ -35473,61 +41378,83 @@ x_11 = lean_unbox_usize(x_2); lean_dec(x_2); x_12 = lean_unbox_usize(x_3); lean_dec(x_3); -x_13 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__4(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__4(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_13; } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__6___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__7___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) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_2); lean_dec(x_2); -x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__6(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__7(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6___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) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_4); lean_dec(x_4); -x_12 = l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lake_Job_mapM___at_Lake_Module_recFetchSetup___spec__6(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__11___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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__12___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) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_2); lean_dec(x_2); -x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__11(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__12(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10___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_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___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) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_4); lean_dec(x_4); -x_12 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } -LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15___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_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__16___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) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_4); lean_dec(x_4); -x_12 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__16(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDeps___spec__16___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_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__17___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) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__17(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recFetchSetup___spec__18___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: { size_t x_8; size_t x_9; lean_object* x_10; @@ -35535,115 +41462,486 @@ x_8 = lean_unbox_usize(x_5); lean_dec(x_5); x_9 = lean_unbox_usize(x_6); lean_dec(x_6); -x_10 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recBuildDeps___spec__16(x_1, x_2, x_3, x_4, x_8, x_9, x_7); +x_10 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recFetchSetup___spec__18(x_1, x_2, x_3, x_4, x_8, x_9, x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__18___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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__20___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) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_2); lean_dec(x_2); -x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDeps___spec__18(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchSetup___spec__20(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___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_EXPORT lean_object* l_Lake_Module_recFetchSetup___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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_12; -x_12 = l_Lake_Module_recBuildDeps___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_8); -lean_dec(x_7); +size_t x_17; lean_object* x_18; +x_17 = lean_unbox_usize(x_6); lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___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, lean_object* x_14, lean_object* x_15) { -_start: -{ -lean_object* x_16; -x_16 = l_Lake_Module_recBuildDeps___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, x_14, x_15); +x_18 = l_Lake_Module_recFetchSetup___lambda__1(x_1, x_2, x_3, x_4, x_5, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -return x_16; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_18; } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__6___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, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; _start: { -lean_object* x_15; -x_15 = l_Lake_Module_recBuildDeps___lambda__6(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, x_14); +size_t x_18; lean_object* x_19; +x_18 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_19 = l_Lake_Module_recFetchSetup___lambda__2(x_1, x_2, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); lean_dec(x_8); -return x_15; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_19; } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__7___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, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__3___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; _start: { -lean_object* x_16; -x_16 = l_Lake_Module_recBuildDeps___lambda__7(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, x_14, x_15); -lean_dec(x_9); -return x_16; +size_t x_18; lean_object* x_19; +x_18 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_19 = l_Lake_Module_recFetchSetup___lambda__3(x_1, x_2, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_19; } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__8___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, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__4___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; _start: { -size_t x_15; lean_object* x_16; -x_15 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_16 = l_Lake_Module_recBuildDeps___lambda__8(x_1, x_2, x_3, x_4, x_5, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_7); -return x_16; +size_t x_18; lean_object* x_19; +x_18 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_19 = l_Lake_Module_recFetchSetup___lambda__4(x_1, x_2, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_19; } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__9___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_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__5___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +_start: +{ +size_t x_18; lean_object* x_19; +x_18 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_19 = l_Lake_Module_recFetchSetup___lambda__5(x_1, x_2, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__6___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +_start: +{ +size_t x_18; lean_object* x_19; +x_18 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_19 = l_Lake_Module_recFetchSetup___lambda__6(x_1, x_2, x_3, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_11); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__7___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +size_t x_19; lean_object* x_20; +x_19 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_20 = l_Lake_Module_recFetchSetup___lambda__7(x_1, x_2, x_3, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_12); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__8___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +_start: +{ +size_t x_18; lean_object* x_19; +x_18 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_19 = l_Lake_Module_recFetchSetup___lambda__8(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__9___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, lean_object* x_14, lean_object* x_15) { +_start: +{ +size_t x_16; lean_object* x_17; +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = l_Lake_Module_recFetchSetup___lambda__9(x_1, x_2, x_3, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_8); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recFetchSetup___lambda__10___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_Module_recBuildDeps___lambda__9(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 = l_Lake_Module_recFetchSetup___lambda__10(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_5); return x_13; } } +static lean_object* _init_l_Lake_Module_setupFacetConfig___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_recFetchSetup), 7, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_setupFacetConfig___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lake_Module_keyword; +x_2 = l_Lake_Module_setupFacetConfig___closed__1; +x_3 = lean_box(0); +x_4 = 1; +x_5 = l_Lake_Module_inputFacetConfig___closed__2; +x_6 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4 + 1, x_4); +return x_6; +} +} +static lean_object* _init_l_Lake_Module_setupFacetConfig() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_setupFacetConfig___closed__2; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_depsFacetConfig___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = l_Lake_Module_keyword; +x_11 = l_Lake_Module_setupFacet; +x_12 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 2, x_1); +lean_ctor_set(x_12, 3, x_11); +x_13 = lean_apply_6(x_2, x_12, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_13, 0); +lean_dec(x_16); +x_17 = !lean_is_exclusive(x_14); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_14, 0); +x_19 = l_Lake_Job_toOpaque___rarg(x_18); +lean_ctor_set(x_14, 0, x_19); +return x_13; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_14); +x_22 = l_Lake_Job_toOpaque___rarg(x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +lean_ctor_set(x_13, 0, x_23); +return x_13; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_24 = lean_ctor_get(x_13, 1); +lean_inc(x_24); +lean_dec(x_13); +x_25 = lean_ctor_get(x_14, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_14, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_27 = x_14; +} else { + lean_dec_ref(x_14); + x_27 = lean_box(0); +} +x_28 = l_Lake_Job_toOpaque___rarg(x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_27; +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_24); +return x_30; +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_13); +if (x_31 == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_13, 0); +lean_dec(x_32); +x_33 = !lean_is_exclusive(x_14); +if (x_33 == 0) +{ +return x_13; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_14, 0); +x_35 = lean_ctor_get(x_14, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_14); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_13, 0, x_36); +return x_13; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_37 = lean_ctor_get(x_13, 1); +lean_inc(x_37); +lean_dec(x_13); +x_38 = lean_ctor_get(x_14, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_14, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_40 = x_14; +} else { + lean_dec_ref(x_14); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(1, 2, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, x_38); +lean_ctor_set(x_41, 1, x_39); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_37); +return x_42; +} +} +} +else +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_13); +if (x_43 == 0) +{ +return x_13; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_13, 0); +x_45 = lean_ctor_get(x_13, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_13); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +} static lean_object* _init_l_Lake_Module_depsFacetConfig___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps), 7, 0); +x_1 = lean_alloc_closure((void*)(l_Lake_Module_depsFacetConfig___lambda__1), 7, 0); return x_1; } } static lean_object* _init_l_Lake_Module_depsFacetConfig___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_nullFormat___rarg___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lake_Module_depsFacetConfig___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_depsFacetConfig___closed__1; x_3 = lean_box(0); x_4 = 1; -x_5 = l_Lake_Module_depsFacetConfig___closed__2; +x_5 = l_Lake_Module_inputFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -35658,7 +41956,7 @@ static lean_object* _init_l_Lake_Module_depsFacetConfig() { _start: { lean_object* x_1; -x_1 = l_Lake_Module_depsFacetConfig___closed__3; +x_1 = l_Lake_Module_depsFacetConfig___closed__2; return x_1; } } @@ -35674,7 +41972,7 @@ static lean_object* _init_l_Lake_Module_clearOutputHashes___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("ilean", 5, 5); +x_1 = lean_mk_string_unchecked("olean.server", 12, 12); return x_1; } } @@ -35682,20 +41980,27 @@ static lean_object* _init_l_Lake_Module_clearOutputHashes___closed__3() { _start: { lean_object* x_1; +x_1 = lean_mk_string_unchecked("olean.private", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_clearOutputHashes___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ilean", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_clearOutputHashes___closed__5() { +_start: +{ +lean_object* x_1; x_1 = lean_mk_string_unchecked("c", 1, 1); return x_1; } } -static uint8_t _init_l_Lake_Module_clearOutputHashes___closed__4() { -_start: -{ -lean_object* x_1; uint8_t x_2; -x_1 = lean_box(0); -x_2 = lean_internal_has_llvm_backend(x_1); -return x_2; -} -} -static lean_object* _init_l_Lake_Module_clearOutputHashes___closed__5() { +static lean_object* _init_l_Lake_Module_clearOutputHashes___closed__6() { _start: { lean_object* x_1; @@ -35742,160 +42047,390 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lake_Module_clearOutputHashes___closed__2; x_19 = l_Lean_modToFilePath(x_12, x_13, x_18); -lean_dec(x_12); x_20 = l_Lake_clearFileHash(x_19, x_17); if (lean_obj_tag(x_20) == 0) { -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_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = lean_ctor_get(x_6, 10); -lean_inc(x_22); +x_22 = l_Lake_Module_clearOutputHashes___closed__3; +x_23 = l_Lean_modToFilePath(x_12, x_13, x_22); +x_24 = l_Lake_clearFileHash(x_23, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Lake_Module_clearOutputHashes___closed__4; +x_27 = l_Lean_modToFilePath(x_12, x_13, x_26); +lean_dec(x_12); +x_28 = l_Lake_clearFileHash(x_27, x_25); +if (lean_obj_tag(x_28) == 0) +{ +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; +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_ctor_get(x_6, 10); +lean_inc(x_30); lean_dec(x_6); -x_23 = l_System_FilePath_normalize(x_22); -x_24 = l_Lake_joinRelative(x_9, x_23); -lean_dec(x_23); -x_25 = l_Lake_Module_clearOutputHashes___closed__3; -x_26 = l_Lean_modToFilePath(x_24, x_13, x_25); -x_27 = l_Lake_clearFileHash(x_26, x_21); -if (lean_obj_tag(x_27) == 0) -{ -uint8_t x_28; -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_27, 1); -x_30 = lean_ctor_get(x_27, 0); -lean_dec(x_30); -x_31 = l_Lake_Module_clearOutputHashes___closed__4; -if (x_31 == 0) -{ -lean_object* x_32; -lean_dec(x_24); -lean_dec(x_13); -x_32 = lean_box(0); -lean_ctor_set(x_27, 0, x_32); -return x_27; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -lean_free_object(x_27); +x_31 = l_System_FilePath_normalize(x_30); +x_32 = l_Lake_joinRelative(x_9, x_31); +lean_dec(x_31); x_33 = l_Lake_Module_clearOutputHashes___closed__5; -x_34 = l_Lean_modToFilePath(x_24, x_13, x_33); -lean_dec(x_13); -lean_dec(x_24); +x_34 = l_Lean_modToFilePath(x_32, x_13, x_33); x_35 = l_Lake_clearFileHash(x_34, x_29); -return x_35; -} -} -else +if (lean_obj_tag(x_35) == 0) { -lean_object* x_36; uint8_t x_37; -x_36 = lean_ctor_get(x_27, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_35, 1); lean_inc(x_36); -lean_dec(x_27); -x_37 = l_Lake_Module_clearOutputHashes___closed__4; -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -lean_dec(x_24); +lean_dec(x_35); +x_37 = l_Lake_Module_clearOutputHashes___closed__6; +x_38 = l_Lean_modToFilePath(x_32, x_13, x_37); lean_dec(x_13); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_36); +lean_dec(x_32); +x_39 = l_Lake_clearFileHash(x_38, x_36); return x_39; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = l_Lake_Module_clearOutputHashes___closed__5; -x_41 = l_Lean_modToFilePath(x_24, x_13, x_40); +uint8_t x_40; +lean_dec(x_32); lean_dec(x_13); -lean_dec(x_24); -x_42 = l_Lake_clearFileHash(x_41, x_36); -return x_42; +x_40 = !lean_is_exclusive(x_35); +if (x_40 == 0) +{ +return x_35; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_35, 0); +x_42 = lean_ctor_get(x_35, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_35); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } else { -uint8_t x_43; -lean_dec(x_24); -lean_dec(x_13); -x_43 = !lean_is_exclusive(x_27); -if (x_43 == 0) -{ -return x_27; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_27, 0); -x_45 = lean_ctor_get(x_27, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_27); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -else -{ -uint8_t x_47; +uint8_t x_44; lean_dec(x_13); lean_dec(x_9); lean_dec(x_6); -x_47 = !lean_is_exclusive(x_20); -if (x_47 == 0) +x_44 = !lean_is_exclusive(x_28); +if (x_44 == 0) +{ +return x_28; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_28, 0); +x_46 = lean_ctor_get(x_28, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_28); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_6); +x_48 = !lean_is_exclusive(x_24); +if (x_48 == 0) +{ +return x_24; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_24, 0); +x_50 = lean_ctor_get(x_24, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_24); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_6); +x_52 = !lean_is_exclusive(x_20); +if (x_52 == 0) { return x_20; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_20, 0); -x_49 = lean_ctor_get(x_20, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_20, 0); +x_54 = lean_ctor_get(x_20, 1); +lean_inc(x_54); +lean_inc(x_53); lean_dec(x_20); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } else { -uint8_t x_51; +uint8_t x_56; lean_dec(x_13); lean_dec(x_12); lean_dec(x_9); lean_dec(x_6); -x_51 = !lean_is_exclusive(x_16); -if (x_51 == 0) +x_56 = !lean_is_exclusive(x_16); +if (x_56 == 0) { return x_16; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_16, 0); -x_53 = lean_ctor_get(x_16, 1); -lean_inc(x_53); -lean_inc(x_52); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_16, 0); +x_58 = lean_ctor_get(x_16, 1); +lean_inc(x_58); +lean_inc(x_57); lean_dec(x_16); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +} +static uint8_t _init_l_Lake_Module_cacheOutputHashes___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; +x_1 = lean_box(0); +x_2 = lean_internal_has_llvm_backend(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Lake_Module_clearOutputHashes___closed__4; +x_8 = l_Lean_modToFilePath(x_1, x_2, x_7); +x_9 = l_Lake_cacheFileHash(x_8, x_6); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_ctor_get(x_3, 10); +lean_inc(x_11); +lean_dec(x_3); +x_12 = l_System_FilePath_normalize(x_11); +x_13 = l_Lake_joinRelative(x_4, x_12); +lean_dec(x_12); +x_14 = l_Lake_Module_clearOutputHashes___closed__5; +x_15 = l_Lean_modToFilePath(x_13, x_2, x_14); +x_16 = l_Lake_cacheFileHash(x_15, x_10); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_16, 1); +x_19 = lean_ctor_get(x_16, 0); +lean_dec(x_19); +x_20 = l_Lake_Module_cacheOutputHashes___lambda__1___closed__1; +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_13); +x_21 = lean_box(0); +lean_ctor_set(x_16, 0, x_21); +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_free_object(x_16); +x_22 = l_Lake_Module_clearOutputHashes___closed__6; +x_23 = l_Lean_modToFilePath(x_13, x_2, x_22); +lean_dec(x_13); +x_24 = l_Lake_cacheFileHash(x_23, x_18); +return x_24; +} +} +else +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_16, 1); +lean_inc(x_25); +lean_dec(x_16); +x_26 = l_Lake_Module_cacheOutputHashes___lambda__1___closed__1; +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_13); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = l_Lake_Module_clearOutputHashes___closed__6; +x_30 = l_Lean_modToFilePath(x_13, x_2, x_29); +lean_dec(x_13); +x_31 = l_Lake_cacheFileHash(x_30, x_25); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_13); +x_32 = !lean_is_exclusive(x_16); +if (x_32 == 0) +{ +return x_16; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_16, 0); +x_34 = lean_ctor_get(x_16, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_16); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else +{ +uint8_t x_36; +lean_dec(x_4); +lean_dec(x_3); +x_36 = !lean_is_exclusive(x_9); +if (x_36 == 0) +{ +return x_9; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_9, 0); +x_38 = lean_ctor_get(x_9, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_9); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = l_Lake_Module_clearOutputHashes___closed__3; +x_8 = l_Lean_modToFilePath(x_1, x_2, x_7); +x_9 = l_System_FilePath_pathExists(x_8, x_6); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_unbox(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_8); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +x_13 = lean_box(0); +x_14 = l_Lake_Module_cacheOutputHashes___lambda__1(x_1, x_2, x_3, x_4, x_13, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); +lean_dec(x_9); +x_16 = l_Lake_cacheFileHash(x_8, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lake_Module_cacheOutputHashes___lambda__1(x_1, x_2, x_3, x_4, x_17, x_18); +lean_dec(x_17); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_4); +lean_dec(x_3); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) +{ +return x_16; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 0); +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_16); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} } } } @@ -35933,170 +42468,226 @@ x_15 = l_Lean_modToFilePath(x_12, x_13, x_14); x_16 = l_Lake_cacheFileHash(x_15, x_2); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); x_18 = l_Lake_Module_clearOutputHashes___closed__2; x_19 = l_Lean_modToFilePath(x_12, x_13, x_18); -lean_dec(x_12); -x_20 = l_Lake_cacheFileHash(x_19, x_17); -if (lean_obj_tag(x_20) == 0) -{ -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; -x_21 = lean_ctor_get(x_20, 1); +x_20 = l_System_FilePath_pathExists(x_19, x_17); +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_19); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); lean_dec(x_20); -x_22 = lean_ctor_get(x_6, 10); -lean_inc(x_22); -lean_dec(x_6); -x_23 = l_System_FilePath_normalize(x_22); -x_24 = l_Lake_joinRelative(x_9, x_23); -lean_dec(x_23); -x_25 = l_Lake_Module_clearOutputHashes___closed__3; -x_26 = l_Lean_modToFilePath(x_24, x_13, x_25); -x_27 = l_Lake_cacheFileHash(x_26, x_21); +x_24 = lean_box(0); +x_25 = l_Lake_Module_cacheOutputHashes___lambda__2(x_12, x_13, x_6, x_9, x_24, x_23); +lean_dec(x_13); +lean_dec(x_12); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); +lean_dec(x_20); +x_27 = l_Lake_cacheFileHash(x_19, x_26); if (lean_obj_tag(x_27) == 0) { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); -x_30 = lean_ctor_get(x_27, 0); -lean_dec(x_30); -x_31 = l_Lake_Module_clearOutputHashes___closed__4; -if (x_31 == 0) -{ -lean_object* x_32; -lean_dec(x_24); -lean_dec(x_13); -x_32 = lean_box(0); -lean_ctor_set(x_27, 0, x_32); -return x_27; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -lean_free_object(x_27); -x_33 = l_Lake_Module_clearOutputHashes___closed__5; -x_34 = l_Lean_modToFilePath(x_24, x_13, x_33); -lean_dec(x_13); -lean_dec(x_24); -x_35 = l_Lake_cacheFileHash(x_34, x_29); -return x_35; -} -} -else -{ -lean_object* x_36; uint8_t x_37; -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); +lean_inc(x_29); lean_dec(x_27); -x_37 = l_Lake_Module_clearOutputHashes___closed__4; -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -lean_dec(x_24); +x_30 = l_Lake_Module_cacheOutputHashes___lambda__2(x_12, x_13, x_6, x_9, x_28, x_29); +lean_dec(x_28); lean_dec(x_13); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_36); -return x_39; +lean_dec(x_12); +return x_30; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = l_Lake_Module_clearOutputHashes___closed__5; -x_41 = l_Lean_modToFilePath(x_24, x_13, x_40); -lean_dec(x_13); -lean_dec(x_24); -x_42 = l_Lake_cacheFileHash(x_41, x_36); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_24); -lean_dec(x_13); -x_43 = !lean_is_exclusive(x_27); -if (x_43 == 0) -{ -return x_27; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_27, 0); -x_45 = lean_ctor_get(x_27, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_27); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -else -{ -uint8_t x_47; -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_6); -x_47 = !lean_is_exclusive(x_20); -if (x_47 == 0) -{ -return x_20; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_20, 0); -x_49 = lean_ctor_get(x_20, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_20); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -else -{ -uint8_t x_51; +uint8_t x_31; lean_dec(x_13); lean_dec(x_12); lean_dec(x_9); lean_dec(x_6); -x_51 = !lean_is_exclusive(x_16); -if (x_51 == 0) +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) +{ +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_6); +x_35 = !lean_is_exclusive(x_16); +if (x_35 == 0) { return x_16; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_16, 0); -x_53 = lean_ctor_get(x_16, 1); -lean_inc(x_53); -lean_inc(x_52); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_16, 0); +x_37 = lean_ctor_get(x_16, 1); +lean_inc(x_37); +lean_inc(x_36); lean_dec(x_16); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } } +LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lake_Module_cacheOutputHashes___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lake_Module_cacheOutputHashes___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +static lean_object* _init_l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("-D", 2, 2); +return x_1; +} +} +static lean_object* _init_l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("=", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_nat_to_int(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__4() { +_start: +{ +uint32_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__3; +x_3 = lean_alloc_ctor(0, 1, 4); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set_uint32(x_3, sizeof(void*)*1, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 2); +lean_inc(x_5); +x_6 = lean_ctor_get(x_2, 3); +lean_inc(x_6); +lean_dec(x_2); +x_7 = l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1(x_1, x_3); +x_8 = 1; +x_9 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; +x_10 = l_Lean_Name_toString(x_4, x_8, x_9); +x_11 = l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__1; +x_12 = lean_string_append(x_11, x_10); +lean_dec(x_10); +x_13 = l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__2; +x_14 = lean_string_append(x_12, x_13); +x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_5); +x_16 = lean_string_append(x_14, x_15); +lean_dec(x_15); +x_17 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_18 = lean_string_append(x_16, x_17); +x_19 = lean_string_hash(x_18); +x_20 = 1723; +x_21 = lean_uint64_mix_hash(x_20, x_19); +x_22 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_23 = l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__4; +x_24 = lean_box_uint64(x_21); +x_25 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_25, 0, x_18); +lean_ctor_set(x_25, 1, x_22); +lean_ctor_set(x_25, 2, x_24); +lean_ctor_set(x_25, 3, x_23); +x_26 = l_Lake_BuildTrace_mix(x_7, x_25); +x_1 = x_26; +x_2 = x_6; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_traceOptions(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Lake_BuildTrace_nil(x_2); +x_4 = l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1(x_3, x_1); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -36413,557 +43004,527 @@ x_2 = lean_alloc_closure((void*)(l_Lake_checkHashUpToDate___at_Lake_Module_recBu return x_2; } } -LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +static lean_object* _init_l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___closed__1() { _start: { -lean_object* x_21; lean_object* x_22; uint8_t x_98; -x_98 = !lean_is_exclusive(x_19); -if (x_98 == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("setup.json", 10, 10); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_99 = lean_ctor_get(x_19, 0); -x_100 = lean_ctor_get(x_18, 1); +lean_object* x_19; lean_object* x_20; uint8_t x_96; +x_96 = !lean_is_exclusive(x_17); +if (x_96 == 0) +{ +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_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_97 = lean_ctor_get(x_17, 0); +x_98 = lean_ctor_get(x_16, 1); +lean_inc(x_98); +lean_dec(x_16); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_100 = lean_ctor_get(x_99, 1); lean_inc(x_100); -lean_dec(x_18); -x_101 = lean_ctor_get(x_100, 1); +lean_dec(x_99); +x_101 = lean_ctor_get(x_100, 7); lean_inc(x_101); lean_dec(x_100); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -lean_dec(x_101); -x_103 = lean_ctor_get(x_102, 7); -lean_inc(x_103); -lean_dec(x_102); -lean_inc(x_2); -x_104 = l_Lake_relPathFrom(x_1, x_2); -x_105 = l_Lake_Module_clearOutputHashes___closed__1; -x_106 = l_Lean_modToFilePath(x_3, x_4, x_105); -x_107 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_107, 0, x_106); -x_108 = l_Lake_Module_clearOutputHashes___closed__2; -x_109 = l_Lean_modToFilePath(x_3, x_4, x_108); -x_110 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_110, 0, x_109); -x_111 = lean_ctor_get(x_5, 10); +x_102 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___closed__1; +x_103 = l_Lean_modToFilePath(x_1, x_2, x_102); +x_104 = lean_ctor_get(x_3, 5); +lean_inc(x_104); +lean_dec(x_3); +x_105 = l_System_FilePath_normalize(x_104); +x_106 = l_Lake_joinRelative(x_4, x_105); +lean_dec(x_105); +x_107 = lean_ctor_get(x_5, 1); +lean_inc(x_107); +lean_dec(x_5); +x_108 = l_System_FilePath_normalize(x_107); +x_109 = l_Lake_joinRelative(x_106, x_108); +lean_dec(x_108); +x_110 = l_Lake_compileLeanModule(x_6, x_7, x_8, x_103, x_9, x_10, x_12, x_109, x_101, x_97, x_18); +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); -lean_dec(x_5); -x_112 = l_System_FilePath_normalize(x_111); -x_113 = l_Lake_joinRelative(x_6, x_112); -lean_dec(x_112); -x_114 = l_Lake_Module_clearOutputHashes___closed__3; -x_115 = l_Lean_modToFilePath(x_113, x_4, x_114); -lean_dec(x_113); -x_116 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_116, 0, x_115); -lean_inc(x_7); -x_117 = l_Lake_Module_bcFile_x3f(x_7); -x_118 = lean_ctor_get(x_8, 2); -lean_inc(x_118); -lean_dec(x_8); -x_119 = lean_ctor_get(x_9, 2); -x_120 = l_Array_append___rarg(x_118, x_119); -x_121 = l_Array_append___rarg(x_120, x_10); -x_122 = l_Lake_compileLeanModule(x_2, x_104, x_107, x_110, x_116, x_117, x_14, x_11, x_12, x_13, x_121, x_103, x_99, x_20); -lean_dec(x_117); -lean_dec(x_116); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; uint8_t x_113; +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); lean_dec(x_110); -lean_dec(x_107); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -if (lean_obj_tag(x_123) == 0) +x_113 = !lean_is_exclusive(x_111); +if (x_113 == 0) { -lean_object* x_124; uint8_t x_125; -x_124 = lean_ctor_get(x_122, 1); +lean_object* x_114; +x_114 = lean_ctor_get(x_111, 1); +lean_ctor_set(x_17, 0, x_114); +lean_ctor_set(x_111, 1, x_17); +x_19 = x_111; +x_20 = x_112; +goto block_95; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_111, 0); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_111); +lean_ctor_set(x_17, 0, x_116); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_17); +x_19 = x_117; +x_20 = x_112; +goto block_95; +} +} +else +{ +lean_object* x_118; uint8_t x_119; +x_118 = lean_ctor_get(x_110, 1); +lean_inc(x_118); +lean_dec(x_110); +x_119 = !lean_is_exclusive(x_111); +if (x_119 == 0) +{ +lean_object* x_120; +x_120 = lean_ctor_get(x_111, 1); +lean_ctor_set(x_17, 0, x_120); +lean_ctor_set(x_111, 1, x_17); +x_19 = x_111; +x_20 = x_118; +goto block_95; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_111, 0); +x_122 = lean_ctor_get(x_111, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_111); +lean_ctor_set(x_17, 0, x_122); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_17); +x_19 = x_123; +x_20 = x_118; +goto block_95; +} +} +} +else +{ +lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_124 = lean_ctor_get(x_17, 0); +x_125 = lean_ctor_get_uint8(x_17, sizeof(void*)*2); +x_126 = lean_ctor_get(x_17, 1); +lean_inc(x_126); lean_inc(x_124); -lean_dec(x_122); -x_125 = !lean_is_exclusive(x_123); -if (x_125 == 0) -{ -lean_object* x_126; -x_126 = lean_ctor_get(x_123, 1); -lean_ctor_set(x_19, 0, x_126); -lean_ctor_set(x_123, 1, x_19); -x_21 = x_123; -x_22 = x_124; -goto block_97; -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_123, 0); -x_128 = lean_ctor_get(x_123, 1); -lean_inc(x_128); +lean_dec(x_17); +x_127 = lean_ctor_get(x_16, 1); lean_inc(x_127); -lean_dec(x_123); -lean_ctor_set(x_19, 0, x_128); -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_19); -x_21 = x_129; -x_22 = x_124; -goto block_97; -} -} -else -{ -lean_object* x_130; uint8_t x_131; -x_130 = lean_ctor_get(x_122, 1); +lean_dec(x_16); +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +lean_dec(x_127); +x_129 = lean_ctor_get(x_128, 1); +lean_inc(x_129); +lean_dec(x_128); +x_130 = lean_ctor_get(x_129, 7); lean_inc(x_130); -lean_dec(x_122); -x_131 = !lean_is_exclusive(x_123); -if (x_131 == 0) -{ -lean_object* x_132; -x_132 = lean_ctor_get(x_123, 1); -lean_ctor_set(x_19, 0, x_132); -lean_ctor_set(x_123, 1, x_19); -x_21 = x_123; -x_22 = x_130; -goto block_97; -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_123, 0); -x_134 = lean_ctor_get(x_123, 1); -lean_inc(x_134); +lean_dec(x_129); +x_131 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___closed__1; +x_132 = l_Lean_modToFilePath(x_1, x_2, x_131); +x_133 = lean_ctor_get(x_3, 5); lean_inc(x_133); -lean_dec(x_123); -lean_ctor_set(x_19, 0, x_134); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_19); -x_21 = x_135; -x_22 = x_130; -goto block_97; -} -} -} -else -{ -lean_object* x_136; uint8_t 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; -x_136 = lean_ctor_get(x_19, 0); -x_137 = lean_ctor_get_uint8(x_19, sizeof(void*)*2); -x_138 = lean_ctor_get(x_19, 1); -lean_inc(x_138); +lean_dec(x_3); +x_134 = l_System_FilePath_normalize(x_133); +x_135 = l_Lake_joinRelative(x_4, x_134); +lean_dec(x_134); +x_136 = lean_ctor_get(x_5, 1); lean_inc(x_136); -lean_dec(x_19); -x_139 = lean_ctor_get(x_18, 1); -lean_inc(x_139); -lean_dec(x_18); -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -lean_dec(x_139); -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -lean_dec(x_140); -x_142 = lean_ctor_get(x_141, 7); -lean_inc(x_142); -lean_dec(x_141); -lean_inc(x_2); -x_143 = l_Lake_relPathFrom(x_1, x_2); -x_144 = l_Lake_Module_clearOutputHashes___closed__1; -x_145 = l_Lean_modToFilePath(x_3, x_4, x_144); -x_146 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_146, 0, x_145); -x_147 = l_Lake_Module_clearOutputHashes___closed__2; -x_148 = l_Lean_modToFilePath(x_3, x_4, x_147); -x_149 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_149, 0, x_148); -x_150 = lean_ctor_get(x_5, 10); -lean_inc(x_150); lean_dec(x_5); -x_151 = l_System_FilePath_normalize(x_150); -x_152 = l_Lake_joinRelative(x_6, x_151); -lean_dec(x_151); -x_153 = l_Lake_Module_clearOutputHashes___closed__3; -x_154 = l_Lean_modToFilePath(x_152, x_4, x_153); -lean_dec(x_152); -x_155 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_155, 0, x_154); -lean_inc(x_7); -x_156 = l_Lake_Module_bcFile_x3f(x_7); -x_157 = lean_ctor_get(x_8, 2); -lean_inc(x_157); -lean_dec(x_8); -x_158 = lean_ctor_get(x_9, 2); -x_159 = l_Array_append___rarg(x_157, x_158); -x_160 = l_Array_append___rarg(x_159, x_10); -x_161 = l_Lake_compileLeanModule(x_2, x_143, x_146, x_149, x_155, x_156, x_14, x_11, x_12, x_13, x_160, x_142, x_136, x_20); -lean_dec(x_156); -lean_dec(x_155); -lean_dec(x_149); -lean_dec(x_146); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -if (lean_obj_tag(x_162) == 0) +x_137 = l_System_FilePath_normalize(x_136); +x_138 = l_Lake_joinRelative(x_135, x_137); +lean_dec(x_137); +x_139 = l_Lake_compileLeanModule(x_6, x_7, x_8, x_132, x_9, x_10, x_12, x_138, x_130, x_124, x_18); +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +if (lean_obj_tag(x_140) == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_164 = lean_ctor_get(x_162, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_166 = x_162; +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +lean_dec(x_139); +x_142 = lean_ctor_get(x_140, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_144 = x_140; } else { - lean_dec_ref(x_162); - x_166 = lean_box(0); + lean_dec_ref(x_140); + x_144 = lean_box(0); } -x_167 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_138); -lean_ctor_set_uint8(x_167, sizeof(void*)*2, x_137); -if (lean_is_scalar(x_166)) { - x_168 = lean_alloc_ctor(0, 2, 0); +x_145 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_126); +lean_ctor_set_uint8(x_145, sizeof(void*)*2, x_125); +if (lean_is_scalar(x_144)) { + x_146 = lean_alloc_ctor(0, 2, 0); } else { - x_168 = x_166; + x_146 = x_144; } -lean_ctor_set(x_168, 0, x_164); -lean_ctor_set(x_168, 1, x_167); -x_21 = x_168; -x_22 = x_163; -goto block_97; +lean_ctor_set(x_146, 0, x_142); +lean_ctor_set(x_146, 1, x_145); +x_19 = x_146; +x_20 = x_141; +goto block_95; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_169 = lean_ctor_get(x_161, 1); -lean_inc(x_169); -lean_dec(x_161); -x_170 = lean_ctor_get(x_162, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_162, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_172 = x_162; +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_147 = lean_ctor_get(x_139, 1); +lean_inc(x_147); +lean_dec(x_139); +x_148 = lean_ctor_get(x_140, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_140, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_150 = x_140; } else { - lean_dec_ref(x_162); - x_172 = lean_box(0); + lean_dec_ref(x_140); + x_150 = lean_box(0); } -x_173 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_173, 0, x_171); -lean_ctor_set(x_173, 1, x_138); -lean_ctor_set_uint8(x_173, sizeof(void*)*2, x_137); -if (lean_is_scalar(x_172)) { - x_174 = lean_alloc_ctor(1, 2, 0); +x_151 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_126); +lean_ctor_set_uint8(x_151, sizeof(void*)*2, x_125); +if (lean_is_scalar(x_150)) { + x_152 = lean_alloc_ctor(1, 2, 0); } else { - x_174 = x_172; + x_152 = x_150; } -lean_ctor_set(x_174, 0, x_170); -lean_ctor_set(x_174, 1, x_173); -x_21 = x_174; -x_22 = x_169; -goto block_97; +lean_ctor_set(x_152, 0, x_148); +lean_ctor_set(x_152, 1, x_151); +x_19 = x_152; +x_20 = x_147; +goto block_95; } } -block_97: +block_95: { -if (lean_obj_tag(x_21) == 0) +if (lean_obj_tag(x_19) == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) { -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_ctor_get(x_21, 1); -x_25 = lean_ctor_get(x_21, 0); -lean_dec(x_25); -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_19, 1); +x_23 = lean_ctor_get(x_19, 0); +lean_dec(x_23); +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_24, 0); -x_28 = l_Lake_Module_clearOutputHashes(x_7, x_22); -if (lean_obj_tag(x_28) == 0) +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 0); +x_26 = l_Lake_Module_clearOutputHashes(x_11, x_20); +if (lean_obj_tag(x_26) == 0) { -uint8_t x_29; -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_30; -x_30 = lean_ctor_get(x_28, 0); -lean_ctor_set(x_21, 0, x_30); -lean_ctor_set(x_28, 0, x_21); -return x_28; +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_ctor_set(x_19, 0, x_28); +lean_ctor_set(x_26, 0, x_19); +return x_26; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_28, 0); -x_32 = lean_ctor_get(x_28, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_28); -lean_ctor_set(x_21, 0, x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_21); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_26); +lean_ctor_set(x_19, 0, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } else { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_28); -if (x_34 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_35 = lean_ctor_get(x_28, 0); -x_36 = lean_io_error_to_string(x_35); -x_37 = 3; -x_38 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_37); -x_39 = lean_array_get_size(x_27); -x_40 = lean_array_push(x_27, x_38); -lean_ctor_set(x_24, 0, x_40); -lean_ctor_set_tag(x_21, 1); -lean_ctor_set(x_21, 0, x_39); -lean_ctor_set_tag(x_28, 0); -lean_ctor_set(x_28, 0, x_21); -return x_28; +lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_26, 0); +x_34 = lean_io_error_to_string(x_33); +x_35 = 3; +x_36 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set_uint8(x_36, sizeof(void*)*1, x_35); +x_37 = lean_array_get_size(x_25); +x_38 = lean_array_push(x_25, x_36); +lean_ctor_set(x_22, 0, x_38); +lean_ctor_set_tag(x_19, 1); +lean_ctor_set(x_19, 0, x_37); +lean_ctor_set_tag(x_26, 0); +lean_ctor_set(x_26, 0, x_19); +return x_26; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_41 = lean_ctor_get(x_28, 0); -x_42 = lean_ctor_get(x_28, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_28); -x_43 = lean_io_error_to_string(x_41); -x_44 = 3; -x_45 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set_uint8(x_45, sizeof(void*)*1, x_44); -x_46 = lean_array_get_size(x_27); -x_47 = lean_array_push(x_27, x_45); -lean_ctor_set(x_24, 0, x_47); -lean_ctor_set_tag(x_21, 1); -lean_ctor_set(x_21, 0, x_46); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_21); -lean_ctor_set(x_48, 1, x_42); -return x_48; +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_39 = lean_ctor_get(x_26, 0); +x_40 = lean_ctor_get(x_26, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_26); +x_41 = lean_io_error_to_string(x_39); +x_42 = 3; +x_43 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_42); +x_44 = lean_array_get_size(x_25); +x_45 = lean_array_push(x_25, x_43); +lean_ctor_set(x_22, 0, x_45); +lean_ctor_set_tag(x_19, 1); +lean_ctor_set(x_19, 0, x_44); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_19); +lean_ctor_set(x_46, 1, x_40); +return x_46; } } } else { -lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_24, 0); -x_50 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); -x_51 = lean_ctor_get(x_24, 1); -lean_inc(x_51); +lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_22, 0); +x_48 = lean_ctor_get_uint8(x_22, sizeof(void*)*2); +x_49 = lean_ctor_get(x_22, 1); lean_inc(x_49); -lean_dec(x_24); -x_52 = l_Lake_Module_clearOutputHashes(x_7, x_22); -if (lean_obj_tag(x_52) == 0) +lean_inc(x_47); +lean_dec(x_22); +x_50 = l_Lake_Module_clearOutputHashes(x_11, x_20); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_55 = x_52; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_53 = x_50; } else { - lean_dec_ref(x_52); - x_55 = lean_box(0); + lean_dec_ref(x_50); + x_53 = lean_box(0); } -x_56 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_56, 0, x_49); -lean_ctor_set(x_56, 1, x_51); -lean_ctor_set_uint8(x_56, sizeof(void*)*2, x_50); -lean_ctor_set(x_21, 1, x_56); -lean_ctor_set(x_21, 0, x_53); -if (lean_is_scalar(x_55)) { - x_57 = lean_alloc_ctor(0, 2, 0); +x_54 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_54, 0, x_47); +lean_ctor_set(x_54, 1, x_49); +lean_ctor_set_uint8(x_54, sizeof(void*)*2, x_48); +lean_ctor_set(x_19, 1, x_54); +lean_ctor_set(x_19, 0, x_51); +if (lean_is_scalar(x_53)) { + x_55 = lean_alloc_ctor(0, 2, 0); } else { - x_57 = x_55; + x_55 = x_53; } -lean_ctor_set(x_57, 0, x_21); -lean_ctor_set(x_57, 1, x_54); -return x_57; +lean_ctor_set(x_55, 0, x_19); +lean_ctor_set(x_55, 1, x_52); +return x_55; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_58 = lean_ctor_get(x_52, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_52, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_60 = x_52; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_56 = lean_ctor_get(x_50, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_58 = x_50; } else { - lean_dec_ref(x_52); - x_60 = lean_box(0); + lean_dec_ref(x_50); + x_58 = lean_box(0); } -x_61 = lean_io_error_to_string(x_58); -x_62 = 3; -x_63 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set_uint8(x_63, sizeof(void*)*1, x_62); -x_64 = lean_array_get_size(x_49); -x_65 = lean_array_push(x_49, x_63); -x_66 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_51); -lean_ctor_set_uint8(x_66, sizeof(void*)*2, x_50); -lean_ctor_set_tag(x_21, 1); -lean_ctor_set(x_21, 1, x_66); -lean_ctor_set(x_21, 0, x_64); -if (lean_is_scalar(x_60)) { - x_67 = lean_alloc_ctor(0, 2, 0); +x_59 = lean_io_error_to_string(x_56); +x_60 = 3; +x_61 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set_uint8(x_61, sizeof(void*)*1, x_60); +x_62 = lean_array_get_size(x_47); +x_63 = lean_array_push(x_47, x_61); +x_64 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_49); +lean_ctor_set_uint8(x_64, sizeof(void*)*2, x_48); +lean_ctor_set_tag(x_19, 1); +lean_ctor_set(x_19, 1, x_64); +lean_ctor_set(x_19, 0, x_62); +if (lean_is_scalar(x_58)) { + x_65 = lean_alloc_ctor(0, 2, 0); } else { - x_67 = x_60; - lean_ctor_set_tag(x_67, 0); + x_65 = x_58; + lean_ctor_set_tag(x_65, 0); } -lean_ctor_set(x_67, 0, x_21); -lean_ctor_set(x_67, 1, x_59); -return x_67; +lean_ctor_set(x_65, 0, x_19); +lean_ctor_set(x_65, 1, x_57); +return x_65; } } } else { -lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_68 = lean_ctor_get(x_21, 1); -lean_inc(x_68); -lean_dec(x_21); -x_69 = lean_ctor_get(x_68, 0); +lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_66 = lean_ctor_get(x_19, 1); +lean_inc(x_66); +lean_dec(x_19); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get_uint8(x_66, sizeof(void*)*2); +x_69 = lean_ctor_get(x_66, 1); lean_inc(x_69); -x_70 = lean_ctor_get_uint8(x_68, sizeof(void*)*2); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_72 = x_68; +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_70 = x_66; } else { - lean_dec_ref(x_68); - x_72 = lean_box(0); + lean_dec_ref(x_66); + x_70 = lean_box(0); } -x_73 = l_Lake_Module_clearOutputHashes(x_7, x_22); -if (lean_obj_tag(x_73) == 0) +x_71 = l_Lake_Module_clearOutputHashes(x_11, x_20); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_76 = x_73; +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_74 = x_71; } else { - lean_dec_ref(x_73); - x_76 = lean_box(0); + lean_dec_ref(x_71); + x_74 = lean_box(0); } -if (lean_is_scalar(x_72)) { - x_77 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_70)) { + x_75 = lean_alloc_ctor(0, 2, 1); } else { - x_77 = x_72; + x_75 = x_70; } -lean_ctor_set(x_77, 0, x_69); -lean_ctor_set(x_77, 1, x_71); -lean_ctor_set_uint8(x_77, sizeof(void*)*2, x_70); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_74); -lean_ctor_set(x_78, 1, x_77); -if (lean_is_scalar(x_76)) { - x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_67); +lean_ctor_set(x_75, 1, x_69); +lean_ctor_set_uint8(x_75, sizeof(void*)*2, x_68); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_72); +lean_ctor_set(x_76, 1, x_75); +if (lean_is_scalar(x_74)) { + x_77 = lean_alloc_ctor(0, 2, 0); } else { - x_79 = x_76; + x_77 = x_74; } -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_75); -return x_79; +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_73); +return x_77; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_80 = lean_ctor_get(x_73, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_73, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_82 = x_73; +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_78 = lean_ctor_get(x_71, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_71, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_80 = x_71; } else { - lean_dec_ref(x_73); - x_82 = lean_box(0); + lean_dec_ref(x_71); + x_80 = lean_box(0); } -x_83 = lean_io_error_to_string(x_80); -x_84 = 3; -x_85 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set_uint8(x_85, sizeof(void*)*1, x_84); -x_86 = lean_array_get_size(x_69); -x_87 = lean_array_push(x_69, x_85); -if (lean_is_scalar(x_72)) { - x_88 = lean_alloc_ctor(0, 2, 1); +x_81 = lean_io_error_to_string(x_78); +x_82 = 3; +x_83 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set_uint8(x_83, sizeof(void*)*1, x_82); +x_84 = lean_array_get_size(x_67); +x_85 = lean_array_push(x_67, x_83); +if (lean_is_scalar(x_70)) { + x_86 = lean_alloc_ctor(0, 2, 1); } else { - x_88 = x_72; + x_86 = x_70; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_69); +lean_ctor_set_uint8(x_86, sizeof(void*)*2, x_68); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_86); +if (lean_is_scalar(x_80)) { + x_88 = lean_alloc_ctor(0, 2, 0); +} else { + x_88 = x_80; + lean_ctor_set_tag(x_88, 0); } lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_71); -lean_ctor_set_uint8(x_88, sizeof(void*)*2, x_70); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_88); -if (lean_is_scalar(x_82)) { - x_90 = lean_alloc_ctor(0, 2, 0); -} else { - x_90 = x_82; - lean_ctor_set_tag(x_90, 0); +lean_ctor_set(x_88, 1, x_79); +return x_88; } -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_81); +} +} +else +{ +uint8_t x_89; +lean_dec(x_11); +x_89 = !lean_is_exclusive(x_19); +if (x_89 == 0) +{ +lean_object* x_90; +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_19); +lean_ctor_set(x_90, 1, x_20); return x_90; } -} -} else { -uint8_t x_91; -lean_dec(x_7); -x_91 = !lean_is_exclusive(x_21); -if (x_91 == 0) -{ -lean_object* x_92; -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_21); -lean_ctor_set(x_92, 1, x_22); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_93 = lean_ctor_get(x_21, 0); -x_94 = lean_ctor_get(x_21, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_21); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_22); -return x_96; +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_19, 0); +x_92 = lean_ctor_get(x_19, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_19); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_20); +return x_94; } } } @@ -36989,1178 +43550,1176 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, uint8_t 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_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, uint8_t 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) { _start: { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_286; -x_26 = lean_alloc_closure((void*)(l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___boxed), 20, 13); -lean_closure_set(x_26, 0, x_10); -lean_closure_set(x_26, 1, x_12); -lean_closure_set(x_26, 2, x_15); -lean_closure_set(x_26, 3, x_2); -lean_closure_set(x_26, 4, x_7); -lean_closure_set(x_26, 5, x_14); -lean_closure_set(x_26, 6, x_1); -lean_closure_set(x_26, 7, x_8); -lean_closure_set(x_26, 8, x_9); -lean_closure_set(x_26, 9, x_13); -lean_closure_set(x_26, 10, x_11); -lean_closure_set(x_26, 11, x_4); -lean_closure_set(x_26, 12, x_5); -x_27 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__2; -x_28 = lean_alloc_closure((void*)(l_Lake_EquipT_bind___at_Lake_buildFileUnlessUpToDate_x27___spec__1___rarg), 8, 2); -lean_closure_set(x_28, 0, x_27); -lean_closure_set(x_28, 1, x_26); -x_286 = !lean_is_exclusive(x_24); -if (x_286 == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_285; +x_25 = lean_alloc_closure((void*)(l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___boxed), 18, 11); +lean_closure_set(x_25, 0, x_11); +lean_closure_set(x_25, 1, x_2); +lean_closure_set(x_25, 2, x_8); +lean_closure_set(x_25, 3, x_10); +lean_closure_set(x_25, 4, x_9); +lean_closure_set(x_25, 5, x_3); +lean_closure_set(x_25, 6, x_12); +lean_closure_set(x_25, 7, x_4); +lean_closure_set(x_25, 8, x_14); +lean_closure_set(x_25, 9, x_13); +lean_closure_set(x_25, 10, x_1); +x_26 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__2; +x_27 = lean_alloc_closure((void*)(l_Lake_EquipT_bind___at_Lake_buildFileUnlessUpToDate_x27___spec__1___rarg), 8, 2); +lean_closure_set(x_27, 0, x_26); +lean_closure_set(x_27, 1, x_25); +x_285 = !lean_is_exclusive(x_23); +if (x_285 == 0) { -lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; -x_287 = lean_ctor_get(x_24, 0); -x_288 = l_System_FilePath_pathExists(x_18, x_25); -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_unbox(x_289); -lean_dec(x_289); +lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; +x_286 = lean_ctor_get(x_23, 0); +x_287 = l_System_FilePath_pathExists(x_17, x_24); +x_288 = lean_ctor_get(x_287, 0); +lean_inc(x_288); +x_289 = lean_unbox(x_288); +lean_dec(x_288); +if (x_289 == 0) +{ +uint8_t x_290; +x_290 = !lean_is_exclusive(x_287); if (x_290 == 0) { -uint8_t x_291; -x_291 = !lean_is_exclusive(x_288); -if (x_291 == 0) +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; +x_291 = lean_ctor_get(x_287, 1); +x_292 = lean_ctor_get(x_287, 0); +lean_dec(x_292); +x_293 = lean_ctor_get(x_16, 3); +x_294 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_15, x_293, x_291); +x_295 = !lean_is_exclusive(x_294); +if (x_295 == 0) { -lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; uint8_t x_296; -x_292 = lean_ctor_get(x_288, 1); -x_293 = lean_ctor_get(x_288, 0); -lean_dec(x_293); -x_294 = lean_ctor_get(x_17, 3); -x_295 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_16, x_294, x_292); -x_296 = !lean_is_exclusive(x_295); -if (x_296 == 0) +lean_object* x_296; lean_object* x_297; uint8_t x_298; +x_296 = lean_ctor_get(x_294, 0); +x_297 = lean_ctor_get(x_294, 1); +x_298 = lean_unbox(x_296); +lean_dec(x_296); +if (x_298 == 0) { -lean_object* x_297; lean_object* x_298; uint8_t x_299; -x_297 = lean_ctor_get(x_295, 0); -x_298 = lean_ctor_get(x_295, 1); -x_299 = lean_unbox(x_297); -lean_dec(x_297); -if (x_299 == 0) -{ -lean_object* x_300; -lean_free_object(x_295); -lean_free_object(x_288); -x_300 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_24, x_298); -return x_300; +lean_object* x_299; +lean_free_object(x_294); +lean_free_object(x_287); +x_299 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_23, x_297); +return x_299; } else { -uint8_t x_301; lean_object* x_302; -lean_dec(x_28); -lean_dec(x_23); +uint8_t x_300; lean_object* x_301; +lean_dec(x_27); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_301 = 1; -x_302 = lean_box(x_301); -lean_ctor_set(x_288, 1, x_24); -lean_ctor_set(x_288, 0, x_302); -lean_ctor_set(x_295, 0, x_288); -return x_295; +lean_dec(x_20); +lean_dec(x_5); +x_300 = 1; +x_301 = lean_box(x_300); +lean_ctor_set(x_287, 1, x_23); +lean_ctor_set(x_287, 0, x_301); +lean_ctor_set(x_294, 0, x_287); +return x_294; } } else { -lean_object* x_303; lean_object* x_304; uint8_t x_305; -x_303 = lean_ctor_get(x_295, 0); -x_304 = lean_ctor_get(x_295, 1); -lean_inc(x_304); +lean_object* x_302; lean_object* x_303; uint8_t x_304; +x_302 = lean_ctor_get(x_294, 0); +x_303 = lean_ctor_get(x_294, 1); lean_inc(x_303); -lean_dec(x_295); -x_305 = lean_unbox(x_303); -lean_dec(x_303); -if (x_305 == 0) +lean_inc(x_302); +lean_dec(x_294); +x_304 = lean_unbox(x_302); +lean_dec(x_302); +if (x_304 == 0) { -lean_object* x_306; -lean_free_object(x_288); -x_306 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_24, x_304); -return x_306; +lean_object* x_305; +lean_free_object(x_287); +x_305 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_23, x_303); +return x_305; } else { -uint8_t x_307; lean_object* x_308; lean_object* x_309; -lean_dec(x_28); -lean_dec(x_23); +uint8_t x_306; lean_object* x_307; lean_object* x_308; +lean_dec(x_27); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_307 = 1; -x_308 = lean_box(x_307); -lean_ctor_set(x_288, 1, x_24); -lean_ctor_set(x_288, 0, x_308); -x_309 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_309, 0, x_288); -lean_ctor_set(x_309, 1, x_304); -return x_309; +lean_dec(x_20); +lean_dec(x_5); +x_306 = 1; +x_307 = lean_box(x_306); +lean_ctor_set(x_287, 1, x_23); +lean_ctor_set(x_287, 0, x_307); +x_308 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_308, 0, x_287); +lean_ctor_set(x_308, 1, x_303); +return x_308; } } } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; uint8_t x_316; -x_310 = lean_ctor_get(x_288, 1); -lean_inc(x_310); -lean_dec(x_288); -x_311 = lean_ctor_get(x_17, 3); -x_312 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_16, x_311, x_310); -x_313 = lean_ctor_get(x_312, 0); +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; +x_309 = lean_ctor_get(x_287, 1); +lean_inc(x_309); +lean_dec(x_287); +x_310 = lean_ctor_get(x_16, 3); +x_311 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_15, x_310, x_309); +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_311, 1); lean_inc(x_313); -x_314 = lean_ctor_get(x_312, 1); -lean_inc(x_314); -if (lean_is_exclusive(x_312)) { - lean_ctor_release(x_312, 0); - lean_ctor_release(x_312, 1); - x_315 = x_312; +if (lean_is_exclusive(x_311)) { + lean_ctor_release(x_311, 0); + lean_ctor_release(x_311, 1); + x_314 = x_311; } else { - lean_dec_ref(x_312); - x_315 = lean_box(0); + lean_dec_ref(x_311); + x_314 = lean_box(0); } -x_316 = lean_unbox(x_313); -lean_dec(x_313); -if (x_316 == 0) +x_315 = lean_unbox(x_312); +lean_dec(x_312); +if (x_315 == 0) { -lean_object* x_317; -lean_dec(x_315); -x_317 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_24, x_314); -return x_317; +lean_object* x_316; +lean_dec(x_314); +x_316 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_23, x_313); +return x_316; } else { -uint8_t x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -lean_dec(x_28); -lean_dec(x_23); +uint8_t x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +lean_dec(x_27); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_318 = 1; -x_319 = lean_box(x_318); -x_320 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_20); +lean_dec(x_5); +x_317 = 1; +x_318 = lean_box(x_317); +x_319 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_23); +if (lean_is_scalar(x_314)) { + x_320 = lean_alloc_ctor(0, 2, 0); +} else { + x_320 = x_314; +} lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_24); -if (lean_is_scalar(x_315)) { - x_321 = lean_alloc_ctor(0, 2, 0); -} else { - x_321 = x_315; -} -lean_ctor_set(x_321, 0, x_320); -lean_ctor_set(x_321, 1, x_314); -return x_321; +lean_ctor_set(x_320, 1, x_313); +return x_320; } } } else { -lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; -x_322 = lean_ctor_get(x_288, 1); -lean_inc(x_322); -lean_dec(x_288); -x_323 = l_Lake_readTraceFile_x3f(x_18, x_287, x_322); -x_324 = lean_ctor_get(x_323, 0); +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; uint8_t x_325; +x_321 = lean_ctor_get(x_287, 1); +lean_inc(x_321); +lean_dec(x_287); +x_322 = l_Lake_readTraceFile_x3f(x_17, x_286, x_321); +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_322, 1); lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 1); -lean_inc(x_325); -lean_dec(x_323); -x_326 = !lean_is_exclusive(x_324); -if (x_326 == 0) +lean_dec(x_322); +x_325 = !lean_is_exclusive(x_323); +if (x_325 == 0) { -lean_object* x_327; -x_327 = lean_ctor_get(x_324, 1); -lean_ctor_set(x_24, 0, x_327); -lean_ctor_set(x_324, 1, x_24); +lean_object* x_326; +x_326 = lean_ctor_get(x_323, 1); +lean_ctor_set(x_23, 0, x_326); +lean_ctor_set(x_323, 1, x_23); +x_28 = x_323; x_29 = x_324; -x_30 = x_325; -goto block_285; +goto block_284; } else { -lean_object* x_328; lean_object* x_329; lean_object* x_330; -x_328 = lean_ctor_get(x_324, 0); -x_329 = lean_ctor_get(x_324, 1); -lean_inc(x_329); +lean_object* x_327; lean_object* x_328; lean_object* x_329; +x_327 = lean_ctor_get(x_323, 0); +x_328 = lean_ctor_get(x_323, 1); lean_inc(x_328); -lean_dec(x_324); -lean_ctor_set(x_24, 0, x_329); -x_330 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_330, 0, x_328); -lean_ctor_set(x_330, 1, x_24); -x_29 = x_330; -x_30 = x_325; -goto block_285; +lean_inc(x_327); +lean_dec(x_323); +lean_ctor_set(x_23, 0, x_328); +x_329 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_329, 0, x_327); +lean_ctor_set(x_329, 1, x_23); +x_28 = x_329; +x_29 = x_324; +goto block_284; } } } else { -lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; -x_331 = lean_ctor_get(x_24, 0); -x_332 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); -x_333 = lean_ctor_get(x_24, 1); -lean_inc(x_333); -lean_inc(x_331); -lean_dec(x_24); -x_334 = l_System_FilePath_pathExists(x_18, x_25); -x_335 = lean_ctor_get(x_334, 0); -lean_inc(x_335); -x_336 = lean_unbox(x_335); -lean_dec(x_335); -if (x_336 == 0) -{ -lean_object* x_337; 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; uint8_t x_345; -x_337 = lean_ctor_get(x_334, 1); -lean_inc(x_337); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_338 = x_334; -} else { - lean_dec_ref(x_334); - x_338 = lean_box(0); -} -x_339 = lean_ctor_get(x_17, 3); -x_340 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_16, x_339, x_337); -x_341 = lean_ctor_get(x_340, 0); -lean_inc(x_341); -x_342 = lean_ctor_get(x_340, 1); -lean_inc(x_342); -if (lean_is_exclusive(x_340)) { - lean_ctor_release(x_340, 0); - lean_ctor_release(x_340, 1); - x_343 = x_340; -} else { - lean_dec_ref(x_340); - x_343 = lean_box(0); -} -x_344 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_344, 0, x_331); -lean_ctor_set(x_344, 1, x_333); -lean_ctor_set_uint8(x_344, sizeof(void*)*2, x_332); -x_345 = lean_unbox(x_341); -lean_dec(x_341); -if (x_345 == 0) -{ -lean_object* x_346; -lean_dec(x_343); -lean_dec(x_338); -x_346 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_344, x_342); -return x_346; -} -else -{ -uint8_t x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; -lean_dec(x_28); +lean_object* x_330; uint8_t x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; uint8_t x_335; +x_330 = lean_ctor_get(x_23, 0); +x_331 = lean_ctor_get_uint8(x_23, sizeof(void*)*2); +x_332 = lean_ctor_get(x_23, 1); +lean_inc(x_332); +lean_inc(x_330); lean_dec(x_23); +x_333 = l_System_FilePath_pathExists(x_17, x_24); +x_334 = lean_ctor_get(x_333, 0); +lean_inc(x_334); +x_335 = lean_unbox(x_334); +lean_dec(x_334); +if (x_335 == 0) +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; uint8_t x_344; +x_336 = lean_ctor_get(x_333, 1); +lean_inc(x_336); +if (lean_is_exclusive(x_333)) { + lean_ctor_release(x_333, 0); + lean_ctor_release(x_333, 1); + x_337 = x_333; +} else { + lean_dec_ref(x_333); + x_337 = lean_box(0); +} +x_338 = lean_ctor_get(x_16, 3); +x_339 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_15, x_338, x_336); +x_340 = lean_ctor_get(x_339, 0); +lean_inc(x_340); +x_341 = lean_ctor_get(x_339, 1); +lean_inc(x_341); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_342 = x_339; +} else { + lean_dec_ref(x_339); + x_342 = lean_box(0); +} +x_343 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_343, 0, x_330); +lean_ctor_set(x_343, 1, x_332); +lean_ctor_set_uint8(x_343, sizeof(void*)*2, x_331); +x_344 = lean_unbox(x_340); +lean_dec(x_340); +if (x_344 == 0) +{ +lean_object* x_345; +lean_dec(x_342); +lean_dec(x_337); +x_345 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_343, x_341); +return x_345; +} +else +{ +uint8_t x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; +lean_dec(x_27); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_347 = 1; -x_348 = lean_box(x_347); -if (lean_is_scalar(x_338)) { +lean_dec(x_20); +lean_dec(x_5); +x_346 = 1; +x_347 = lean_box(x_346); +if (lean_is_scalar(x_337)) { + x_348 = lean_alloc_ctor(0, 2, 0); +} else { + x_348 = x_337; +} +lean_ctor_set(x_348, 0, x_347); +lean_ctor_set(x_348, 1, x_343); +if (lean_is_scalar(x_342)) { x_349 = lean_alloc_ctor(0, 2, 0); } else { - x_349 = x_338; + x_349 = x_342; } lean_ctor_set(x_349, 0, x_348); -lean_ctor_set(x_349, 1, x_344); -if (lean_is_scalar(x_343)) { - x_350 = lean_alloc_ctor(0, 2, 0); -} else { - x_350 = x_343; -} -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_342); -return x_350; +lean_ctor_set(x_349, 1, x_341); +return x_349; } } else { -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -x_351 = lean_ctor_get(x_334, 1); -lean_inc(x_351); -lean_dec(x_334); -x_352 = l_Lake_readTraceFile_x3f(x_18, x_331, x_351); -x_353 = lean_ctor_get(x_352, 0); +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; +x_350 = lean_ctor_get(x_333, 1); +lean_inc(x_350); +lean_dec(x_333); +x_351 = l_Lake_readTraceFile_x3f(x_17, x_330, x_350); +x_352 = lean_ctor_get(x_351, 0); +lean_inc(x_352); +x_353 = lean_ctor_get(x_351, 1); lean_inc(x_353); -x_354 = lean_ctor_get(x_352, 1); +lean_dec(x_351); +x_354 = lean_ctor_get(x_352, 0); lean_inc(x_354); -lean_dec(x_352); -x_355 = lean_ctor_get(x_353, 0); +x_355 = lean_ctor_get(x_352, 1); lean_inc(x_355); -x_356 = lean_ctor_get(x_353, 1); -lean_inc(x_356); -if (lean_is_exclusive(x_353)) { - lean_ctor_release(x_353, 0); - lean_ctor_release(x_353, 1); - x_357 = x_353; +if (lean_is_exclusive(x_352)) { + lean_ctor_release(x_352, 0); + lean_ctor_release(x_352, 1); + x_356 = x_352; } else { - lean_dec_ref(x_353); - x_357 = lean_box(0); + lean_dec_ref(x_352); + x_356 = lean_box(0); } -x_358 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_358, 0, x_356); -lean_ctor_set(x_358, 1, x_333); -lean_ctor_set_uint8(x_358, sizeof(void*)*2, x_332); -if (lean_is_scalar(x_357)) { - x_359 = lean_alloc_ctor(0, 2, 0); +x_357 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_357, 0, x_355); +lean_ctor_set(x_357, 1, x_332); +lean_ctor_set_uint8(x_357, sizeof(void*)*2, x_331); +if (lean_is_scalar(x_356)) { + x_358 = lean_alloc_ctor(0, 2, 0); } else { - x_359 = x_357; + x_358 = x_356; } -lean_ctor_set(x_359, 0, x_355); -lean_ctor_set(x_359, 1, x_358); -x_29 = x_359; -x_30 = x_354; -goto block_285; +lean_ctor_set(x_358, 0, x_354); +lean_ctor_set(x_358, 1, x_357); +x_28 = x_358; +x_29 = x_353; +goto block_284; } } -block_285: +block_284: { -lean_object* x_31; -x_31 = lean_ctor_get(x_29, 0); -lean_inc(x_31); -if (lean_obj_tag(x_31) == 0) +lean_object* x_30; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) { -uint8_t x_32; -x_32 = !lean_is_exclusive(x_29); -if (x_32 == 0) +uint8_t x_31; +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_29, 1); -x_34 = lean_ctor_get(x_29, 0); -lean_dec(x_34); -x_35 = !lean_is_exclusive(x_33); -if (x_35 == 0) -{ -lean_object* x_36; uint8_t x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_ctor_get(x_23, 0); -lean_inc(x_36); -x_37 = lean_ctor_get_uint8(x_36, sizeof(void*)*1); -lean_dec(x_36); -x_38 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_16, x_20, x_30); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) -{ -if (x_37 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_38, 0); -x_41 = lean_ctor_get(x_38, 1); -lean_free_object(x_38); -lean_dec(x_40); -lean_free_object(x_29); -x_42 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_33, x_41); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_38, 0); -x_44 = lean_ctor_get(x_38, 1); -x_45 = lean_unbox(x_43); -lean_dec(x_43); -if (x_45 == 0) -{ -lean_object* x_46; -lean_free_object(x_38); -lean_free_object(x_29); -x_46 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_33, x_44); -return x_46; -} -else -{ -uint8_t x_47; lean_object* x_48; -lean_dec(x_28); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_3); -x_47 = 1; -x_48 = lean_box(x_47); -lean_ctor_set(x_29, 0, x_48); -lean_ctor_set(x_38, 0, x_29); -return x_38; -} -} -} -else -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_38, 0); -x_50 = lean_ctor_get(x_38, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_38); -if (x_37 == 0) -{ -lean_object* x_51; -lean_dec(x_49); -lean_free_object(x_29); -x_51 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_33, x_50); -return x_51; -} -else -{ -uint8_t x_52; -x_52 = lean_unbox(x_49); -lean_dec(x_49); -if (x_52 == 0) -{ -lean_object* x_53; -lean_free_object(x_29); -x_53 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_33, x_50); -return x_53; -} -else -{ -uint8_t x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_28); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_3); -x_54 = 1; -x_55 = lean_box(x_54); -lean_ctor_set(x_29, 0, x_55); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_29); -lean_ctor_set(x_56, 1, x_50); -return x_56; -} -} -} -} -else -{ -lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_57 = lean_ctor_get(x_33, 0); -x_58 = lean_ctor_get_uint8(x_33, sizeof(void*)*2); -x_59 = lean_ctor_get(x_33, 1); -lean_inc(x_59); -lean_inc(x_57); +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_28, 1); +x_33 = lean_ctor_get(x_28, 0); lean_dec(x_33); -x_60 = lean_ctor_get(x_23, 0); -lean_inc(x_60); -x_61 = lean_ctor_get_uint8(x_60, sizeof(void*)*1); -lean_dec(x_60); -x_62 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_16, x_20, x_30); -x_63 = lean_ctor_get(x_62, 0); +x_34 = !lean_is_exclusive(x_32); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; lean_object* x_37; uint8_t x_38; +x_35 = lean_ctor_get(x_22, 0); +lean_inc(x_35); +x_36 = lean_ctor_get_uint8(x_35, sizeof(void*)*1); +lean_dec(x_35); +x_37 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_15, x_19, x_29); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +if (x_36 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_37, 0); +x_40 = lean_ctor_get(x_37, 1); +lean_free_object(x_37); +lean_dec(x_39); +lean_free_object(x_28); +x_41 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_32, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_37, 0); +x_43 = lean_ctor_get(x_37, 1); +x_44 = lean_unbox(x_42); +lean_dec(x_42); +if (x_44 == 0) +{ +lean_object* x_45; +lean_free_object(x_37); +lean_free_object(x_28); +x_45 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_32, x_43); +return x_45; +} +else +{ +uint8_t x_46; lean_object* x_47; +lean_dec(x_27); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_5); +x_46 = 1; +x_47 = lean_box(x_46); +lean_ctor_set(x_28, 0, x_47); +lean_ctor_set(x_37, 0, x_28); +return x_37; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_37, 0); +x_49 = lean_ctor_get(x_37, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_37); +if (x_36 == 0) +{ +lean_object* x_50; +lean_dec(x_48); +lean_free_object(x_28); +x_50 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_32, x_49); +return x_50; +} +else +{ +uint8_t x_51; +x_51 = lean_unbox(x_48); +lean_dec(x_48); +if (x_51 == 0) +{ +lean_object* x_52; +lean_free_object(x_28); +x_52 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_32, x_49); +return x_52; +} +else +{ +uint8_t x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_27); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_5); +x_53 = 1; +x_54 = lean_box(x_53); +lean_ctor_set(x_28, 0, x_54); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_28); +lean_ctor_set(x_55, 1, x_49); +return x_55; +} +} +} +} +else +{ +lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_56 = lean_ctor_get(x_32, 0); +x_57 = lean_ctor_get_uint8(x_32, sizeof(void*)*2); +x_58 = lean_ctor_get(x_32, 1); +lean_inc(x_58); +lean_inc(x_56); +lean_dec(x_32); +x_59 = lean_ctor_get(x_22, 0); +lean_inc(x_59); +x_60 = lean_ctor_get_uint8(x_59, sizeof(void*)*1); +lean_dec(x_59); +x_61 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_15, x_19, x_29); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_65 = x_62; +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_64 = x_61; } else { - lean_dec_ref(x_62); - x_65 = lean_box(0); + lean_dec_ref(x_61); + x_64 = lean_box(0); } -x_66 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_66, 0, x_57); -lean_ctor_set(x_66, 1, x_59); -lean_ctor_set_uint8(x_66, sizeof(void*)*2, x_58); -if (x_61 == 0) +x_65 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_65, 0, x_56); +lean_ctor_set(x_65, 1, x_58); +lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_57); +if (x_60 == 0) { -lean_object* x_67; -lean_dec(x_65); -lean_dec(x_63); -lean_free_object(x_29); -x_67 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_66, x_64); -return x_67; +lean_object* x_66; +lean_dec(x_64); +lean_dec(x_62); +lean_free_object(x_28); +x_66 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_65, x_63); +return x_66; } else { -uint8_t x_68; -x_68 = lean_unbox(x_63); -lean_dec(x_63); -if (x_68 == 0) +uint8_t x_67; +x_67 = lean_unbox(x_62); +lean_dec(x_62); +if (x_67 == 0) { -lean_object* x_69; -lean_dec(x_65); -lean_free_object(x_29); -x_69 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_66, x_64); -return x_69; +lean_object* x_68; +lean_dec(x_64); +lean_free_object(x_28); +x_68 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_65, x_63); +return x_68; } else { -uint8_t x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_28); -lean_dec(x_23); +uint8_t x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_27); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_70 = 1; -x_71 = lean_box(x_70); -lean_ctor_set(x_29, 1, x_66); -lean_ctor_set(x_29, 0, x_71); -if (lean_is_scalar(x_65)) { - x_72 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_20); +lean_dec(x_5); +x_69 = 1; +x_70 = lean_box(x_69); +lean_ctor_set(x_28, 1, x_65); +lean_ctor_set(x_28, 0, x_70); +if (lean_is_scalar(x_64)) { + x_71 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_65; + x_71 = x_64; } -lean_ctor_set(x_72, 0, x_29); -lean_ctor_set(x_72, 1, x_64); -return x_72; +lean_ctor_set(x_71, 0, x_28); +lean_ctor_set(x_71, 1, x_63); +return x_71; } } } } else { -lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_73 = lean_ctor_get(x_29, 1); +lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_72 = lean_ctor_get(x_28, 1); +lean_inc(x_72); +lean_dec(x_28); +x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); -lean_dec(x_29); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get_uint8(x_73, sizeof(void*)*2); -x_76 = lean_ctor_get(x_73, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_77 = x_73; +x_74 = lean_ctor_get_uint8(x_72, sizeof(void*)*2); +x_75 = lean_ctor_get(x_72, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_76 = x_72; } else { - lean_dec_ref(x_73); - x_77 = lean_box(0); + lean_dec_ref(x_72); + x_76 = lean_box(0); } -x_78 = lean_ctor_get(x_23, 0); -lean_inc(x_78); -x_79 = lean_ctor_get_uint8(x_78, sizeof(void*)*1); -lean_dec(x_78); -x_80 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_16, x_20, x_30); -x_81 = lean_ctor_get(x_80, 0); +x_77 = lean_ctor_get(x_22, 0); +lean_inc(x_77); +x_78 = lean_ctor_get_uint8(x_77, sizeof(void*)*1); +lean_dec(x_77); +x_79 = l_Lake_MTime_checkUpToDate___at_Lake_Module_recBuildLean___spec__2(x_15, x_19, x_29); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_83 = x_80; +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_82 = x_79; } else { - lean_dec_ref(x_80); - x_83 = lean_box(0); + lean_dec_ref(x_79); + x_82 = lean_box(0); } -if (lean_is_scalar(x_77)) { - x_84 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_76)) { + x_83 = lean_alloc_ctor(0, 2, 1); } else { - x_84 = x_77; + x_83 = x_76; } -lean_ctor_set(x_84, 0, x_74); -lean_ctor_set(x_84, 1, x_76); -lean_ctor_set_uint8(x_84, sizeof(void*)*2, x_75); -if (x_79 == 0) +lean_ctor_set(x_83, 0, x_73); +lean_ctor_set(x_83, 1, x_75); +lean_ctor_set_uint8(x_83, sizeof(void*)*2, x_74); +if (x_78 == 0) { -lean_object* x_85; -lean_dec(x_83); -lean_dec(x_81); -x_85 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_84, x_82); -return x_85; +lean_object* x_84; +lean_dec(x_82); +lean_dec(x_80); +x_84 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_83, x_81); +return x_84; } else { -uint8_t x_86; -x_86 = lean_unbox(x_81); -lean_dec(x_81); -if (x_86 == 0) +uint8_t x_85; +x_85 = lean_unbox(x_80); +lean_dec(x_80); +if (x_85 == 0) { -lean_object* x_87; -lean_dec(x_83); -x_87 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_84, x_82); -return x_87; +lean_object* x_86; +lean_dec(x_82); +x_86 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_83, x_81); +return x_86; } else { -uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_28); -lean_dec(x_23); +uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_27); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_88 = 1; -x_89 = lean_box(x_88); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_84); -if (lean_is_scalar(x_83)) { - x_91 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_20); +lean_dec(x_5); +x_87 = 1; +x_88 = lean_box(x_87); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_83); +if (lean_is_scalar(x_82)) { + x_90 = lean_alloc_ctor(0, 2, 0); } else { - x_91 = x_83; + x_90 = x_82; } -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_82); -return x_91; +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_81); +return x_90; } } } } else { -uint8_t x_92; -x_92 = !lean_is_exclusive(x_31); -if (x_92 == 0) +uint8_t x_91; +x_91 = !lean_is_exclusive(x_30); +if (x_91 == 0) { -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_93 = lean_ctor_get(x_31, 0); -x_94 = lean_ctor_get(x_29, 1); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_92 = lean_ctor_get(x_30, 0); +x_93 = lean_ctor_get(x_28, 1); +lean_inc(x_93); +lean_dec(x_28); +x_94 = lean_ctor_get(x_92, 0); lean_inc(x_94); -lean_dec(x_29); -x_95 = lean_ctor_get(x_93, 0); +x_95 = lean_ctor_get(x_92, 2); lean_inc(x_95); -x_96 = lean_ctor_get(x_93, 2); -lean_inc(x_96); -lean_dec(x_93); -lean_ctor_set(x_31, 0, x_95); -x_97 = l_Lake_checkHashUpToDate___at_Lake_Module_recBuildLean___spec__3___rarg(x_16, x_17, x_31, x_20, x_21, x_22, x_23, x_94, x_30); +lean_dec(x_92); +lean_ctor_set(x_30, 0, x_94); +x_96 = l_Lake_checkHashUpToDate___at_Lake_Module_recBuildLean___spec__3___rarg(x_15, x_16, x_30, x_19, x_20, x_21, x_22, x_93, x_29); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); x_98 = lean_ctor_get(x_97, 0); lean_inc(x_98); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_unbox(x_99); -lean_dec(x_99); -if (x_100 == 0) +x_99 = lean_unbox(x_98); +lean_dec(x_98); +if (x_99 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_95); +x_100 = lean_ctor_get(x_96, 1); +lean_inc(x_100); lean_dec(x_96); x_101 = lean_ctor_get(x_97, 1); lean_inc(x_101); lean_dec(x_97); -x_102 = lean_ctor_get(x_98, 1); -lean_inc(x_102); -lean_dec(x_98); -x_103 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_102, x_101); -return x_103; +x_102 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_101, x_100); +return x_102; } else { -uint8_t x_104; -lean_dec(x_28); -x_104 = !lean_is_exclusive(x_98); -if (x_104 == 0) +uint8_t x_103; +lean_dec(x_27); +x_103 = !lean_is_exclusive(x_97); +if (x_103 == 0) { -lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_105 = lean_ctor_get(x_98, 1); -x_106 = lean_ctor_get(x_98, 0); -lean_dec(x_106); -x_107 = !lean_is_exclusive(x_97); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; uint8_t x_110; -x_108 = lean_ctor_get(x_97, 1); -x_109 = lean_ctor_get(x_97, 0); -lean_dec(x_109); -x_110 = !lean_is_exclusive(x_105); -if (x_110 == 0) -{ -uint8_t x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_111 = lean_ctor_get_uint8(x_105, sizeof(void*)*2); -x_112 = 1; -x_113 = l_Lake_JobAction_merge(x_111, x_112); -lean_ctor_set_uint8(x_105, sizeof(void*)*2, x_113); -x_114 = lean_array_get_size(x_96); -x_115 = lean_unsigned_to_nat(0u); -x_116 = lean_nat_dec_lt(x_115, x_114); -if (x_116 == 0) -{ -uint8_t x_117; lean_object* x_118; -lean_dec(x_114); -lean_dec(x_96); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_3); -x_117 = 1; -x_118 = lean_box(x_117); -lean_ctor_set(x_98, 0, x_118); -return x_97; -} -else -{ -uint8_t x_119; -x_119 = lean_nat_dec_le(x_114, x_114); -if (x_119 == 0) -{ -uint8_t x_120; lean_object* x_121; -lean_dec(x_114); -lean_dec(x_96); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_3); -x_120 = 1; -x_121 = lean_box(x_120); -lean_ctor_set(x_98, 0, x_121); -return x_97; -} -else -{ -size_t x_122; size_t x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; -lean_free_object(x_97); -lean_free_object(x_98); -x_122 = 0; -x_123 = lean_usize_of_nat(x_114); -lean_dec(x_114); -x_124 = lean_box(0); -x_125 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_96, x_122, x_123, x_124, x_3, x_21, x_22, x_23, x_105, x_108); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_3); -lean_dec(x_96); -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) -{ -lean_object* x_127; uint8_t x_128; -x_127 = lean_ctor_get(x_125, 0); -x_128 = !lean_is_exclusive(x_127); -if (x_128 == 0) -{ -lean_object* x_129; uint8_t x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_127, 0); -lean_dec(x_129); -x_130 = 1; -x_131 = lean_box(x_130); -lean_ctor_set(x_127, 0, x_131); -return x_125; -} -else -{ -lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; -x_132 = lean_ctor_get(x_127, 1); -lean_inc(x_132); -lean_dec(x_127); -x_133 = 1; -x_134 = lean_box(x_133); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_132); -lean_ctor_set(x_125, 0, x_135); -return x_125; -} -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_136 = lean_ctor_get(x_125, 0); -x_137 = lean_ctor_get(x_125, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_125); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_139 = x_136; -} else { - lean_dec_ref(x_136); - x_139 = lean_box(0); -} -x_140 = 1; -x_141 = lean_box(x_140); -if (lean_is_scalar(x_139)) { - x_142 = lean_alloc_ctor(0, 2, 0); -} else { - x_142 = x_139; -} -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_138); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_137); -return x_143; -} -} -} -} -else -{ -lean_object* x_144; uint8_t x_145; lean_object* x_146; uint8_t x_147; uint8_t x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; -x_144 = lean_ctor_get(x_105, 0); -x_145 = lean_ctor_get_uint8(x_105, sizeof(void*)*2); -x_146 = lean_ctor_get(x_105, 1); -lean_inc(x_146); -lean_inc(x_144); +lean_object* x_104; lean_object* x_105; uint8_t x_106; +x_104 = lean_ctor_get(x_97, 1); +x_105 = lean_ctor_get(x_97, 0); lean_dec(x_105); -x_147 = 1; -x_148 = l_Lake_JobAction_merge(x_145, x_147); -x_149 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_149, 0, x_144); -lean_ctor_set(x_149, 1, x_146); -lean_ctor_set_uint8(x_149, sizeof(void*)*2, x_148); -x_150 = lean_array_get_size(x_96); -x_151 = lean_unsigned_to_nat(0u); -x_152 = lean_nat_dec_lt(x_151, x_150); -if (x_152 == 0) +x_106 = !lean_is_exclusive(x_96); +if (x_106 == 0) { -uint8_t x_153; lean_object* x_154; -lean_dec(x_150); -lean_dec(x_96); -lean_dec(x_23); +lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_107 = lean_ctor_get(x_96, 1); +x_108 = lean_ctor_get(x_96, 0); +lean_dec(x_108); +x_109 = !lean_is_exclusive(x_104); +if (x_109 == 0) +{ +uint8_t x_110; uint8_t x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_110 = lean_ctor_get_uint8(x_104, sizeof(void*)*2); +x_111 = 1; +x_112 = l_Lake_JobAction_merge(x_110, x_111); +lean_ctor_set_uint8(x_104, sizeof(void*)*2, x_112); +x_113 = lean_array_get_size(x_95); +x_114 = lean_unsigned_to_nat(0u); +x_115 = lean_nat_dec_lt(x_114, x_113); +if (x_115 == 0) +{ +uint8_t x_116; lean_object* x_117; +lean_dec(x_113); +lean_dec(x_95); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_153 = 1; -x_154 = lean_box(x_153); -lean_ctor_set(x_98, 1, x_149); -lean_ctor_set(x_98, 0, x_154); -return x_97; +lean_dec(x_20); +lean_dec(x_5); +x_116 = 1; +x_117 = lean_box(x_116); +lean_ctor_set(x_97, 0, x_117); +return x_96; } else { -uint8_t x_155; -x_155 = lean_nat_dec_le(x_150, x_150); -if (x_155 == 0) +uint8_t x_118; +x_118 = lean_nat_dec_le(x_113, x_113); +if (x_118 == 0) { -uint8_t x_156; lean_object* x_157; -lean_dec(x_150); -lean_dec(x_96); -lean_dec(x_23); +uint8_t x_119; lean_object* x_120; +lean_dec(x_113); +lean_dec(x_95); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_156 = 1; -x_157 = lean_box(x_156); -lean_ctor_set(x_98, 1, x_149); -lean_ctor_set(x_98, 0, x_157); -return x_97; +lean_dec(x_20); +lean_dec(x_5); +x_119 = 1; +x_120 = lean_box(x_119); +lean_ctor_set(x_97, 0, x_120); +return x_96; } else { -size_t x_158; size_t 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; uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +size_t x_121; size_t x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; +lean_free_object(x_96); lean_free_object(x_97); -lean_free_object(x_98); -x_158 = 0; -x_159 = lean_usize_of_nat(x_150); -lean_dec(x_150); -x_160 = lean_box(0); -x_161 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_96, x_158, x_159, x_160, x_3, x_21, x_22, x_23, x_149, x_108); -lean_dec(x_23); +x_121 = 0; +x_122 = lean_usize_of_nat(x_113); +lean_dec(x_113); +x_123 = lean_box(0); +x_124 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_95, x_121, x_122, x_123, x_5, x_20, x_21, x_22, x_104, x_107); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -lean_dec(x_96); -x_162 = lean_ctor_get(x_161, 0); +lean_dec(x_20); +lean_dec(x_5); +lean_dec(x_95); +x_125 = !lean_is_exclusive(x_124); +if (x_125 == 0) +{ +lean_object* x_126; uint8_t x_127; +x_126 = lean_ctor_get(x_124, 0); +x_127 = !lean_is_exclusive(x_126); +if (x_127 == 0) +{ +lean_object* x_128; uint8_t x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_126, 0); +lean_dec(x_128); +x_129 = 1; +x_130 = lean_box(x_129); +lean_ctor_set(x_126, 0, x_130); +return x_124; +} +else +{ +lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_126, 1); +lean_inc(x_131); +lean_dec(x_126); +x_132 = 1; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_131); +lean_ctor_set(x_124, 0, x_134); +return x_124; +} +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_135 = lean_ctor_get(x_124, 0); +x_136 = lean_ctor_get(x_124, 1); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_124); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_138 = x_135; +} else { + lean_dec_ref(x_135); + x_138 = lean_box(0); +} +x_139 = 1; +x_140 = lean_box(x_139); +if (lean_is_scalar(x_138)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_138; +} +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_137); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_136); +return x_142; +} +} +} +} +else +{ +lean_object* x_143; uint8_t x_144; lean_object* x_145; uint8_t x_146; uint8_t x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_143 = lean_ctor_get(x_104, 0); +x_144 = lean_ctor_get_uint8(x_104, sizeof(void*)*2); +x_145 = lean_ctor_get(x_104, 1); +lean_inc(x_145); +lean_inc(x_143); +lean_dec(x_104); +x_146 = 1; +x_147 = l_Lake_JobAction_merge(x_144, x_146); +x_148 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_148, 0, x_143); +lean_ctor_set(x_148, 1, x_145); +lean_ctor_set_uint8(x_148, sizeof(void*)*2, x_147); +x_149 = lean_array_get_size(x_95); +x_150 = lean_unsigned_to_nat(0u); +x_151 = lean_nat_dec_lt(x_150, x_149); +if (x_151 == 0) +{ +uint8_t x_152; lean_object* x_153; +lean_dec(x_149); +lean_dec(x_95); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_5); +x_152 = 1; +x_153 = lean_box(x_152); +lean_ctor_set(x_97, 1, x_148); +lean_ctor_set(x_97, 0, x_153); +return x_96; +} +else +{ +uint8_t x_154; +x_154 = lean_nat_dec_le(x_149, x_149); +if (x_154 == 0) +{ +uint8_t x_155; lean_object* x_156; +lean_dec(x_149); +lean_dec(x_95); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_5); +x_155 = 1; +x_156 = lean_box(x_155); +lean_ctor_set(x_97, 1, x_148); +lean_ctor_set(x_97, 0, x_156); +return x_96; +} +else +{ +size_t x_157; size_t 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; uint8_t x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_free_object(x_96); +lean_free_object(x_97); +x_157 = 0; +x_158 = lean_usize_of_nat(x_149); +lean_dec(x_149); +x_159 = lean_box(0); +x_160 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_95, x_157, x_158, x_159, x_5, x_20, x_21, x_22, x_148, x_107); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_5); +lean_dec(x_95); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_163 = x_160; +} else { + lean_dec_ref(x_160); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_161, 1); +lean_inc(x_164); if (lean_is_exclusive(x_161)) { lean_ctor_release(x_161, 0); lean_ctor_release(x_161, 1); - x_164 = x_161; + x_165 = x_161; } else { lean_dec_ref(x_161); - x_164 = lean_box(0); + x_165 = lean_box(0); } -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_166 = x_162; +x_166 = 1; +x_167 = lean_box(x_166); +if (lean_is_scalar(x_165)) { + x_168 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_162); - x_166 = lean_box(0); + x_168 = x_165; } -x_167 = 1; -x_168 = lean_box(x_167); -if (lean_is_scalar(x_166)) { +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_164); +if (lean_is_scalar(x_163)) { x_169 = lean_alloc_ctor(0, 2, 0); } else { - x_169 = x_166; + x_169 = x_163; } lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_165); -if (lean_is_scalar(x_164)) { - x_170 = lean_alloc_ctor(0, 2, 0); -} else { - x_170 = x_164; -} -lean_ctor_set(x_170, 0, x_169); -lean_ctor_set(x_170, 1, x_163); -return x_170; +lean_ctor_set(x_169, 1, x_162); +return x_169; } } } } else { -lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; uint8_t x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; -x_171 = lean_ctor_get(x_97, 1); +lean_object* x_170; lean_object* x_171; uint8_t x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; +x_170 = lean_ctor_get(x_96, 1); +lean_inc(x_170); +lean_dec(x_96); +x_171 = lean_ctor_get(x_104, 0); lean_inc(x_171); -lean_dec(x_97); -x_172 = lean_ctor_get(x_105, 0); -lean_inc(x_172); -x_173 = lean_ctor_get_uint8(x_105, sizeof(void*)*2); -x_174 = lean_ctor_get(x_105, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_175 = x_105; +x_172 = lean_ctor_get_uint8(x_104, sizeof(void*)*2); +x_173 = lean_ctor_get(x_104, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_174 = x_104; } else { - lean_dec_ref(x_105); - x_175 = lean_box(0); + lean_dec_ref(x_104); + x_174 = lean_box(0); } -x_176 = 1; -x_177 = l_Lake_JobAction_merge(x_173, x_176); -if (lean_is_scalar(x_175)) { - x_178 = lean_alloc_ctor(0, 2, 1); +x_175 = 1; +x_176 = l_Lake_JobAction_merge(x_172, x_175); +if (lean_is_scalar(x_174)) { + x_177 = lean_alloc_ctor(0, 2, 1); } else { - x_178 = x_175; + x_177 = x_174; } -lean_ctor_set(x_178, 0, x_172); -lean_ctor_set(x_178, 1, x_174); -lean_ctor_set_uint8(x_178, sizeof(void*)*2, x_177); -x_179 = lean_array_get_size(x_96); -x_180 = lean_unsigned_to_nat(0u); -x_181 = lean_nat_dec_lt(x_180, x_179); -if (x_181 == 0) +lean_ctor_set(x_177, 0, x_171); +lean_ctor_set(x_177, 1, x_173); +lean_ctor_set_uint8(x_177, sizeof(void*)*2, x_176); +x_178 = lean_array_get_size(x_95); +x_179 = lean_unsigned_to_nat(0u); +x_180 = lean_nat_dec_lt(x_179, x_178); +if (x_180 == 0) { -uint8_t x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_179); -lean_dec(x_96); -lean_dec(x_23); +uint8_t x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_178); +lean_dec(x_95); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_182 = 1; -x_183 = lean_box(x_182); -lean_ctor_set(x_98, 1, x_178); -lean_ctor_set(x_98, 0, x_183); -x_184 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_184, 0, x_98); -lean_ctor_set(x_184, 1, x_171); -return x_184; +lean_dec(x_20); +lean_dec(x_5); +x_181 = 1; +x_182 = lean_box(x_181); +lean_ctor_set(x_97, 1, x_177); +lean_ctor_set(x_97, 0, x_182); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_97); +lean_ctor_set(x_183, 1, x_170); +return x_183; } else { -uint8_t x_185; -x_185 = lean_nat_dec_le(x_179, x_179); -if (x_185 == 0) +uint8_t x_184; +x_184 = lean_nat_dec_le(x_178, x_178); +if (x_184 == 0) { -uint8_t x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_179); -lean_dec(x_96); -lean_dec(x_23); +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_178); +lean_dec(x_95); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_186 = 1; -x_187 = lean_box(x_186); -lean_ctor_set(x_98, 1, x_178); -lean_ctor_set(x_98, 0, x_187); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_98); -lean_ctor_set(x_188, 1, x_171); -return x_188; +lean_dec(x_20); +lean_dec(x_5); +x_185 = 1; +x_186 = lean_box(x_185); +lean_ctor_set(x_97, 1, x_177); +lean_ctor_set(x_97, 0, x_186); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_97); +lean_ctor_set(x_187, 1, x_170); +return x_187; } else { -size_t x_189; size_t x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -lean_free_object(x_98); -x_189 = 0; -x_190 = lean_usize_of_nat(x_179); -lean_dec(x_179); -x_191 = lean_box(0); -x_192 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_96, x_189, x_190, x_191, x_3, x_21, x_22, x_23, x_178, x_171); -lean_dec(x_23); +size_t x_188; size_t x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_free_object(x_97); +x_188 = 0; +x_189 = lean_usize_of_nat(x_178); +lean_dec(x_178); +x_190 = lean_box(0); +x_191 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_95, x_188, x_189, x_190, x_5, x_20, x_21, x_22, x_177, x_170); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -lean_dec(x_96); -x_193 = lean_ctor_get(x_192, 0); +lean_dec(x_20); +lean_dec(x_5); +lean_dec(x_95); +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_191, 1); lean_inc(x_193); -x_194 = lean_ctor_get(x_192, 1); -lean_inc(x_194); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_194 = x_191; +} else { + lean_dec_ref(x_191); + x_194 = lean_box(0); +} +x_195 = lean_ctor_get(x_192, 1); +lean_inc(x_195); if (lean_is_exclusive(x_192)) { lean_ctor_release(x_192, 0); lean_ctor_release(x_192, 1); - x_195 = x_192; + x_196 = x_192; } else { lean_dec_ref(x_192); - x_195 = lean_box(0); + x_196 = lean_box(0); } -x_196 = lean_ctor_get(x_193, 1); -lean_inc(x_196); -if (lean_is_exclusive(x_193)) { - lean_ctor_release(x_193, 0); - lean_ctor_release(x_193, 1); - x_197 = x_193; +x_197 = 1; +x_198 = lean_box(x_197); +if (lean_is_scalar(x_196)) { + x_199 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_193); - x_197 = lean_box(0); + x_199 = x_196; } -x_198 = 1; -x_199 = lean_box(x_198); -if (lean_is_scalar(x_197)) { +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_195); +if (lean_is_scalar(x_194)) { x_200 = lean_alloc_ctor(0, 2, 0); } else { - x_200 = x_197; + x_200 = x_194; } lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_196); -if (lean_is_scalar(x_195)) { - x_201 = lean_alloc_ctor(0, 2, 0); -} else { - x_201 = x_195; -} -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_194); -return x_201; +lean_ctor_set(x_200, 1, x_193); +return x_200; } } } } else { -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; uint8_t x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; uint8_t x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; -x_202 = lean_ctor_get(x_98, 1); +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; uint8_t x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_201 = lean_ctor_get(x_97, 1); +lean_inc(x_201); +lean_dec(x_97); +x_202 = lean_ctor_get(x_96, 1); lean_inc(x_202); -lean_dec(x_98); -x_203 = lean_ctor_get(x_97, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_204 = x_97; +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_203 = x_96; } else { - lean_dec_ref(x_97); - x_204 = lean_box(0); + lean_dec_ref(x_96); + x_203 = lean_box(0); } -x_205 = lean_ctor_get(x_202, 0); -lean_inc(x_205); -x_206 = lean_ctor_get_uint8(x_202, sizeof(void*)*2); -x_207 = lean_ctor_get(x_202, 1); -lean_inc(x_207); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_208 = x_202; +x_204 = lean_ctor_get(x_201, 0); +lean_inc(x_204); +x_205 = lean_ctor_get_uint8(x_201, sizeof(void*)*2); +x_206 = lean_ctor_get(x_201, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_207 = x_201; } else { - lean_dec_ref(x_202); - x_208 = lean_box(0); + lean_dec_ref(x_201); + x_207 = lean_box(0); } -x_209 = 1; -x_210 = l_Lake_JobAction_merge(x_206, x_209); -if (lean_is_scalar(x_208)) { - x_211 = lean_alloc_ctor(0, 2, 1); +x_208 = 1; +x_209 = l_Lake_JobAction_merge(x_205, x_208); +if (lean_is_scalar(x_207)) { + x_210 = lean_alloc_ctor(0, 2, 1); } else { - x_211 = x_208; + x_210 = x_207; } -lean_ctor_set(x_211, 0, x_205); -lean_ctor_set(x_211, 1, x_207); -lean_ctor_set_uint8(x_211, sizeof(void*)*2, x_210); -x_212 = lean_array_get_size(x_96); -x_213 = lean_unsigned_to_nat(0u); -x_214 = lean_nat_dec_lt(x_213, x_212); -if (x_214 == 0) +lean_ctor_set(x_210, 0, x_204); +lean_ctor_set(x_210, 1, x_206); +lean_ctor_set_uint8(x_210, sizeof(void*)*2, x_209); +x_211 = lean_array_get_size(x_95); +x_212 = lean_unsigned_to_nat(0u); +x_213 = lean_nat_dec_lt(x_212, x_211); +if (x_213 == 0) { -uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; -lean_dec(x_212); -lean_dec(x_96); -lean_dec(x_23); +uint8_t x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_211); +lean_dec(x_95); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_215 = 1; -x_216 = lean_box(x_215); -x_217 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_20); +lean_dec(x_5); +x_214 = 1; +x_215 = lean_box(x_214); +x_216 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_210); +if (lean_is_scalar(x_203)) { + x_217 = lean_alloc_ctor(0, 2, 0); +} else { + x_217 = x_203; +} lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_211); -if (lean_is_scalar(x_204)) { - x_218 = lean_alloc_ctor(0, 2, 0); -} else { - x_218 = x_204; -} -lean_ctor_set(x_218, 0, x_217); -lean_ctor_set(x_218, 1, x_203); -return x_218; +lean_ctor_set(x_217, 1, x_202); +return x_217; } else { -uint8_t x_219; -x_219 = lean_nat_dec_le(x_212, x_212); -if (x_219 == 0) +uint8_t x_218; +x_218 = lean_nat_dec_le(x_211, x_211); +if (x_218 == 0) { -uint8_t x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -lean_dec(x_212); -lean_dec(x_96); -lean_dec(x_23); +uint8_t x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +lean_dec(x_211); +lean_dec(x_95); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_220 = 1; -x_221 = lean_box(x_220); -x_222 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_20); +lean_dec(x_5); +x_219 = 1; +x_220 = lean_box(x_219); +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_210); +if (lean_is_scalar(x_203)) { + x_222 = lean_alloc_ctor(0, 2, 0); +} else { + x_222 = x_203; +} lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_211); -if (lean_is_scalar(x_204)) { - x_223 = lean_alloc_ctor(0, 2, 0); -} else { - x_223 = x_204; -} -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_203); -return x_223; +lean_ctor_set(x_222, 1, x_202); +return x_222; } else { -size_t x_224; size_t x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; -lean_dec(x_204); -x_224 = 0; -x_225 = lean_usize_of_nat(x_212); -lean_dec(x_212); -x_226 = lean_box(0); -x_227 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_96, x_224, x_225, x_226, x_3, x_21, x_22, x_23, x_211, x_203); -lean_dec(x_23); +size_t x_223; size_t x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_203); +x_223 = 0; +x_224 = lean_usize_of_nat(x_211); +lean_dec(x_211); +x_225 = lean_box(0); +x_226 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_95, x_223, x_224, x_225, x_5, x_20, x_21, x_22, x_210, x_202); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -lean_dec(x_96); -x_228 = lean_ctor_get(x_227, 0); +lean_dec(x_20); +lean_dec(x_5); +lean_dec(x_95); +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_226, 1); lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_229 = x_226; +} else { + lean_dec_ref(x_226); + x_229 = lean_box(0); +} +x_230 = lean_ctor_get(x_227, 1); +lean_inc(x_230); if (lean_is_exclusive(x_227)) { lean_ctor_release(x_227, 0); lean_ctor_release(x_227, 1); - x_230 = x_227; + x_231 = x_227; } else { lean_dec_ref(x_227); - x_230 = lean_box(0); + x_231 = lean_box(0); } -x_231 = lean_ctor_get(x_228, 1); -lean_inc(x_231); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_232 = x_228; +x_232 = 1; +x_233 = lean_box(x_232); +if (lean_is_scalar(x_231)) { + x_234 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_228); - x_232 = lean_box(0); + x_234 = x_231; } -x_233 = 1; -x_234 = lean_box(x_233); -if (lean_is_scalar(x_232)) { +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_230); +if (lean_is_scalar(x_229)) { x_235 = lean_alloc_ctor(0, 2, 0); } else { - x_235 = x_232; + x_235 = x_229; } lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_231); -if (lean_is_scalar(x_230)) { - x_236 = lean_alloc_ctor(0, 2, 0); -} else { - x_236 = x_230; -} -lean_ctor_set(x_236, 0, x_235); -lean_ctor_set(x_236, 1, x_229); -return x_236; +lean_ctor_set(x_235, 1, x_228); +return x_235; } } } @@ -38168,202 +44727,202 @@ return x_236; } else { -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; uint8_t x_245; -x_237 = lean_ctor_get(x_31, 0); +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; uint8_t x_244; +x_236 = lean_ctor_get(x_30, 0); +lean_inc(x_236); +lean_dec(x_30); +x_237 = lean_ctor_get(x_28, 1); lean_inc(x_237); -lean_dec(x_31); -x_238 = lean_ctor_get(x_29, 1); +lean_dec(x_28); +x_238 = lean_ctor_get(x_236, 0); lean_inc(x_238); -lean_dec(x_29); -x_239 = lean_ctor_get(x_237, 0); +x_239 = lean_ctor_get(x_236, 2); lean_inc(x_239); -x_240 = lean_ctor_get(x_237, 2); -lean_inc(x_240); -lean_dec(x_237); -x_241 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_241, 0, x_239); -x_242 = l_Lake_checkHashUpToDate___at_Lake_Module_recBuildLean___spec__3___rarg(x_16, x_17, x_241, x_20, x_21, x_22, x_23, x_238, x_30); +lean_dec(x_236); +x_240 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_240, 0, x_238); +x_241 = l_Lake_checkHashUpToDate___at_Lake_Module_recBuildLean___spec__3___rarg(x_15, x_16, x_240, x_19, x_20, x_21, x_22, x_237, x_29); +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); x_243 = lean_ctor_get(x_242, 0); lean_inc(x_243); -x_244 = lean_ctor_get(x_243, 0); -lean_inc(x_244); -x_245 = lean_unbox(x_244); -lean_dec(x_244); -if (x_245 == 0) +x_244 = lean_unbox(x_243); +lean_dec(x_243); +if (x_244 == 0) { -lean_object* x_246; lean_object* x_247; lean_object* x_248; -lean_dec(x_240); +lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_dec(x_239); +x_245 = lean_ctor_get(x_241, 1); +lean_inc(x_245); +lean_dec(x_241); x_246 = lean_ctor_get(x_242, 1); lean_inc(x_246); lean_dec(x_242); -x_247 = lean_ctor_get(x_243, 1); -lean_inc(x_247); -lean_dec(x_243); -x_248 = l_Lake_buildUnlessUpToDate_x3f_go(x_17, x_18, x_28, x_19, x_3, x_21, x_22, x_23, x_247, x_246); -return x_248; +x_247 = l_Lake_buildUnlessUpToDate_x3f_go(x_16, x_17, x_27, x_18, x_5, x_20, x_21, x_22, x_246, x_245); +return x_247; } else { -lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; uint8_t x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; uint8_t x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; -lean_dec(x_28); -x_249 = lean_ctor_get(x_243, 1); -lean_inc(x_249); -if (lean_is_exclusive(x_243)) { - lean_ctor_release(x_243, 0); - lean_ctor_release(x_243, 1); - x_250 = x_243; -} else { - lean_dec_ref(x_243); - x_250 = lean_box(0); -} -x_251 = lean_ctor_get(x_242, 1); -lean_inc(x_251); +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; uint8_t x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; +lean_dec(x_27); +x_248 = lean_ctor_get(x_242, 1); +lean_inc(x_248); if (lean_is_exclusive(x_242)) { lean_ctor_release(x_242, 0); lean_ctor_release(x_242, 1); - x_252 = x_242; + x_249 = x_242; } else { lean_dec_ref(x_242); - x_252 = lean_box(0); + x_249 = lean_box(0); } -x_253 = lean_ctor_get(x_249, 0); -lean_inc(x_253); -x_254 = lean_ctor_get_uint8(x_249, sizeof(void*)*2); -x_255 = lean_ctor_get(x_249, 1); -lean_inc(x_255); -if (lean_is_exclusive(x_249)) { - lean_ctor_release(x_249, 0); - lean_ctor_release(x_249, 1); - x_256 = x_249; +x_250 = lean_ctor_get(x_241, 1); +lean_inc(x_250); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_251 = x_241; } else { - lean_dec_ref(x_249); - x_256 = lean_box(0); + lean_dec_ref(x_241); + x_251 = lean_box(0); } -x_257 = 1; -x_258 = l_Lake_JobAction_merge(x_254, x_257); -if (lean_is_scalar(x_256)) { - x_259 = lean_alloc_ctor(0, 2, 1); +x_252 = lean_ctor_get(x_248, 0); +lean_inc(x_252); +x_253 = lean_ctor_get_uint8(x_248, sizeof(void*)*2); +x_254 = lean_ctor_get(x_248, 1); +lean_inc(x_254); +if (lean_is_exclusive(x_248)) { + lean_ctor_release(x_248, 0); + lean_ctor_release(x_248, 1); + x_255 = x_248; } else { - x_259 = x_256; + lean_dec_ref(x_248); + x_255 = lean_box(0); } -lean_ctor_set(x_259, 0, x_253); -lean_ctor_set(x_259, 1, x_255); -lean_ctor_set_uint8(x_259, sizeof(void*)*2, x_258); -x_260 = lean_array_get_size(x_240); -x_261 = lean_unsigned_to_nat(0u); -x_262 = lean_nat_dec_lt(x_261, x_260); -if (x_262 == 0) +x_256 = 1; +x_257 = l_Lake_JobAction_merge(x_253, x_256); +if (lean_is_scalar(x_255)) { + x_258 = lean_alloc_ctor(0, 2, 1); +} else { + x_258 = x_255; +} +lean_ctor_set(x_258, 0, x_252); +lean_ctor_set(x_258, 1, x_254); +lean_ctor_set_uint8(x_258, sizeof(void*)*2, x_257); +x_259 = lean_array_get_size(x_239); +x_260 = lean_unsigned_to_nat(0u); +x_261 = lean_nat_dec_lt(x_260, x_259); +if (x_261 == 0) { -uint8_t x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -lean_dec(x_260); -lean_dec(x_240); -lean_dec(x_23); +uint8_t x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_259); +lean_dec(x_239); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_263 = 1; -x_264 = lean_box(x_263); -if (lean_is_scalar(x_250)) { +lean_dec(x_20); +lean_dec(x_5); +x_262 = 1; +x_263 = lean_box(x_262); +if (lean_is_scalar(x_249)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_249; +} +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_258); +if (lean_is_scalar(x_251)) { x_265 = lean_alloc_ctor(0, 2, 0); } else { - x_265 = x_250; + x_265 = x_251; } lean_ctor_set(x_265, 0, x_264); -lean_ctor_set(x_265, 1, x_259); -if (lean_is_scalar(x_252)) { - x_266 = lean_alloc_ctor(0, 2, 0); -} else { - x_266 = x_252; -} -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_251); -return x_266; +lean_ctor_set(x_265, 1, x_250); +return x_265; } else { -uint8_t x_267; -x_267 = lean_nat_dec_le(x_260, x_260); -if (x_267 == 0) +uint8_t x_266; +x_266 = lean_nat_dec_le(x_259, x_259); +if (x_266 == 0) { -uint8_t x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -lean_dec(x_260); -lean_dec(x_240); -lean_dec(x_23); +uint8_t x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +lean_dec(x_259); +lean_dec(x_239); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -x_268 = 1; -x_269 = lean_box(x_268); -if (lean_is_scalar(x_250)) { +lean_dec(x_20); +lean_dec(x_5); +x_267 = 1; +x_268 = lean_box(x_267); +if (lean_is_scalar(x_249)) { + x_269 = lean_alloc_ctor(0, 2, 0); +} else { + x_269 = x_249; +} +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_258); +if (lean_is_scalar(x_251)) { x_270 = lean_alloc_ctor(0, 2, 0); } else { - x_270 = x_250; + x_270 = x_251; } lean_ctor_set(x_270, 0, x_269); -lean_ctor_set(x_270, 1, x_259); -if (lean_is_scalar(x_252)) { - x_271 = lean_alloc_ctor(0, 2, 0); -} else { - x_271 = x_252; -} -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_251); -return x_271; +lean_ctor_set(x_270, 1, x_250); +return x_270; } else { -size_t x_272; size_t 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; uint8_t x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; -lean_dec(x_252); -lean_dec(x_250); -x_272 = 0; -x_273 = lean_usize_of_nat(x_260); -lean_dec(x_260); -x_274 = lean_box(0); -x_275 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_240, x_272, x_273, x_274, x_3, x_21, x_22, x_23, x_259, x_251); -lean_dec(x_23); +size_t x_271; size_t 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; uint8_t x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; +lean_dec(x_251); +lean_dec(x_249); +x_271 = 0; +x_272 = lean_usize_of_nat(x_259); +lean_dec(x_259); +x_273 = lean_box(0); +x_274 = l_Array_foldlMUnsafe_fold___at_Lake_buildFileUnlessUpToDate_x27___spec__6(x_239, x_271, x_272, x_273, x_5, x_20, x_21, x_22, x_258, x_250); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); -lean_dec(x_240); -x_276 = lean_ctor_get(x_275, 0); +lean_dec(x_20); +lean_dec(x_5); +lean_dec(x_239); +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); lean_inc(x_276); -x_277 = lean_ctor_get(x_275, 1); -lean_inc(x_277); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_277 = x_274; +} else { + lean_dec_ref(x_274); + x_277 = lean_box(0); +} +x_278 = lean_ctor_get(x_275, 1); +lean_inc(x_278); if (lean_is_exclusive(x_275)) { lean_ctor_release(x_275, 0); lean_ctor_release(x_275, 1); - x_278 = x_275; + x_279 = x_275; } else { lean_dec_ref(x_275); - x_278 = lean_box(0); + x_279 = lean_box(0); } -x_279 = lean_ctor_get(x_276, 1); -lean_inc(x_279); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_280 = x_276; +x_280 = 1; +x_281 = lean_box(x_280); +if (lean_is_scalar(x_279)) { + x_282 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_276); - x_280 = lean_box(0); + x_282 = x_279; } -x_281 = 1; -x_282 = lean_box(x_281); -if (lean_is_scalar(x_280)) { +lean_ctor_set(x_282, 0, x_281); +lean_ctor_set(x_282, 1, x_278); +if (lean_is_scalar(x_277)) { x_283 = lean_alloc_ctor(0, 2, 0); } else { - x_283 = x_280; + x_283 = x_277; } lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_279); -if (lean_is_scalar(x_278)) { - x_284 = lean_alloc_ctor(0, 2, 0); -} else { - x_284 = x_278; -} -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_277); -return x_284; +lean_ctor_set(x_283, 1, x_276); +return x_283; } } } @@ -38372,269 +44931,7 @@ return x_284; } } } -static lean_object* _init_l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("-D", 2, 2); -return x_1; -} -} -static lean_object* _init_l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("=", 1, 1); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); -return x_2; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_3, 1); -lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 2); -lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 3); -lean_inc(x_7); -lean_dec(x_3); -lean_inc(x_1); -x_8 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4(x_1, x_2, x_4); -x_9 = 1; -lean_inc(x_1); -x_10 = l_Lean_Name_toString(x_5, x_9, x_1); -x_11 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_6); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_8, x_18); -x_2 = x_19; -x_3 = x_7; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___at_Lake_Module_recBuildLean___spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 3); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___at_Lake_Module_recBuildLean___spec__5(x_1, x_3); -x_8 = 1; -x_9 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -x_10 = l_Lean_Name_toString(x_4, x_8, x_9); -x_11 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_5); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_7, x_18); -x_1 = x_19; -x_2 = x_6; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); -return x_2; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_3, 1); -lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 2); -lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 3); -lean_inc(x_7); -lean_dec(x_3); -lean_inc(x_1); -x_8 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__6(x_1, x_2, x_4); -x_9 = 1; -lean_inc(x_1); -x_10 = l_Lean_Name_toString(x_5, x_9, x_1); -x_11 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_6); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_8, x_18); -x_2 = x_19; -x_3 = x_7; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__6___at_Lake_Module_recBuildLean___spec__7(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 3); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__6___at_Lake_Module_recBuildLean___spec__7(x_1, x_3); -x_8 = 1; -x_9 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -x_10 = l_Lean_Name_toString(x_4, x_8, x_9); -x_11 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_5); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_7, x_18); -x_1 = x_19; -x_2 = x_6; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); -return x_2; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_3, 1); -lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 2); -lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 3); -lean_inc(x_7); -lean_dec(x_3); -lean_inc(x_1); -x_8 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__8(x_1, x_2, x_4); -x_9 = 1; -lean_inc(x_1); -x_10 = l_Lean_Name_toString(x_5, x_9, x_1); -x_11 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_6); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_8, x_18); -x_2 = x_19; -x_3 = x_7; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__8___at_Lake_Module_recBuildLean___spec__9(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 3); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__8___at_Lake_Module_recBuildLean___spec__9(x_1, x_3); -x_8 = 1; -x_9 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -x_10 = l_Lean_Name_toString(x_4, x_8, x_9); -x_11 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_5); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_7, x_18); -x_1 = x_19; -x_2 = x_6; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__12(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_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -39464,7 +45761,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__13(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_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__7(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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -40294,7 +46591,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__14(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_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__8(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) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_31; @@ -41124,7 +47421,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__11(lean_object* x_1, uint8_t 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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__5(lean_object* x_1, uint8_t 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) { _start: { uint8_t x_9; @@ -41134,7 +47431,7 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); -x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_13 = lean_st_mk_ref(x_12, x_8); if (lean_obj_tag(x_13) == 0) { @@ -41159,10 +47456,10 @@ x_20 = l_IO_FS_Stream_ofBuffer(x_17); if (x_2 == 0) { lean_object* x_21; lean_object* x_22; -x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__12), 8, 2); +x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__6), 8, 2); lean_closure_set(x_21, 0, x_20); lean_closure_set(x_21, 1, x_1); -x_22 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__13(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); +x_22 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__7(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; @@ -41207,7 +47504,7 @@ if (x_36 == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_35); -x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_38 = l_panic___at_Lean_Name_getString_x21___spec__1(x_37); x_39 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_39, 0, x_38); @@ -41245,7 +47542,7 @@ if (x_45 == 0) { lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_dec(x_44); -x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_47 = l_panic___at_Lean_Name_getString_x21___spec__1(x_46); x_48 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_48, 0, x_47); @@ -41338,7 +47635,7 @@ if (x_66 == 0) { lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_65); -x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_68 = l_panic___at_Lean_Name_getString_x21___spec__1(x_67); x_69 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_69, 0, x_68); @@ -41456,7 +47753,7 @@ if (x_89 == 0) { lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec(x_88); -x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_91 = l_panic___at_Lean_Name_getString_x21___spec__1(x_90); x_92 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_92, 0, x_91); @@ -41614,13 +47911,13 @@ else { lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_inc(x_20); -x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildLean___spec__14), 8, 2); +x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildLean___spec__8), 8, 2); lean_closure_set(x_119, 0, x_20); lean_closure_set(x_119, 1, x_1); -x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__12), 8, 2); +x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__6), 8, 2); lean_closure_set(x_120, 0, x_20); lean_closure_set(x_120, 1, x_119); -x_121 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__13(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); +x_121 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__7(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_121) == 0) { lean_object* x_122; @@ -41665,7 +47962,7 @@ if (x_135 == 0) { lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_dec(x_134); -x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_137 = l_panic___at_Lean_Name_getString_x21___spec__1(x_136); x_138 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_138, 0, x_137); @@ -41703,7 +48000,7 @@ if (x_144 == 0) { lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_dec(x_143); -x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_146 = l_panic___at_Lean_Name_getString_x21___spec__1(x_145); x_147 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_147, 0, x_146); @@ -41796,7 +48093,7 @@ if (x_165 == 0) { lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_dec(x_164); -x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_167 = l_panic___at_Lean_Name_getString_x21___spec__1(x_166); x_168 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_168, 0, x_167); @@ -41914,7 +48211,7 @@ if (x_188 == 0) { lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_dec(x_187); -x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_190 = l_panic___at_Lean_Name_getString_x21___spec__1(x_189); x_191 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_191, 0, x_190); @@ -42141,7 +48438,7 @@ x_228 = lean_ctor_get(x_7, 1); lean_inc(x_228); lean_inc(x_226); lean_dec(x_7); -x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_230 = lean_st_mk_ref(x_229, x_8); if (lean_obj_tag(x_230) == 0) { @@ -42170,10 +48467,10 @@ x_238 = l_IO_FS_Stream_ofBuffer(x_234); if (x_2 == 0) { lean_object* x_239; lean_object* x_240; -x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__12), 8, 2); +x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__6), 8, 2); lean_closure_set(x_239, 0, x_238); lean_closure_set(x_239, 1, x_1); -x_240 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__13(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); +x_240 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__7(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); if (lean_obj_tag(x_240) == 0) { lean_object* x_241; @@ -42243,7 +48540,7 @@ if (x_256 == 0) { lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_dec(x_255); -x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_258 = l_panic___at_Lean_Name_getString_x21___spec__1(x_257); x_259 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_259, 0, x_258); @@ -42392,13 +48689,13 @@ else { lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_inc(x_238); -x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildLean___spec__14), 8, 2); +x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildLean___spec__8), 8, 2); lean_closure_set(x_281, 0, x_238); lean_closure_set(x_281, 1, x_1); -x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__12), 8, 2); +x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__6), 8, 2); lean_closure_set(x_282, 0, x_238); lean_closure_set(x_282, 1, x_281); -x_283 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__13(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); +x_283 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__7(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); if (lean_obj_tag(x_283) == 0) { lean_object* x_284; @@ -42468,7 +48765,7 @@ if (x_299 == 0) { lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_dec(x_298); -x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_301 = l_panic___at_Lean_Name_getString_x21___spec__1(x_300); x_302 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_302, 0, x_301); @@ -42681,7 +48978,7 @@ return x_331; } } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10___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_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4___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) { _start: { if (lean_obj_tag(x_7) == 0) @@ -42705,7 +49002,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_16 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__11(x_14, x_15, x_3, x_4, x_5, x_6, x_9, x_8); +x_16 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__5(x_14, x_15, x_3, x_4, x_5, x_6, x_9, x_8); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; @@ -42739,10 +49036,10 @@ x_28 = lean_string_utf8_extract(x_21, x_26, x_27); lean_dec(x_27); lean_dec(x_26); lean_dec(x_21); -x_29 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_29 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_30 = lean_string_append(x_29, x_28); lean_dec(x_28); -x_31 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_32 = lean_string_append(x_30, x_31); x_33 = 1; x_34 = lean_alloc_ctor(0, 1, 1); @@ -42756,7 +49053,7 @@ x_36 = lean_ctor_get(x_20, 0); x_37 = lean_array_push(x_36, x_34); lean_ctor_set(x_20, 0, x_37); x_38 = lean_box(0); -x_39 = l_Lake_Module_recParseImports___lambda__3(x_22, x_38, x_3, x_4, x_5, x_6, x_20, x_19); +x_39 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_38, x_3, x_4, x_5, x_6, x_20, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -42778,7 +49075,7 @@ lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_41); x_45 = lean_box(0); -x_46 = l_Lake_Module_recParseImports___lambda__3(x_22, x_45, x_3, x_4, x_5, x_6, x_44, x_19); +x_46 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_45, x_3, x_4, x_5, x_6, x_44, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -42792,7 +49089,7 @@ lean_object* x_47; lean_object* x_48; lean_dec(x_23); lean_dec(x_21); x_47 = lean_box(0); -x_48 = l_Lake_Module_recParseImports___lambda__3(x_22, x_47, x_3, x_4, x_5, x_6, x_20, x_19); +x_48 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_47, x_3, x_4, x_5, x_6, x_20, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -42912,7 +49209,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_72 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__11(x_69, x_71, x_3, x_4, x_5, x_6, x_70, x_8); +x_72 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__5(x_69, x_71, x_3, x_4, x_5, x_6, x_70, x_8); if (lean_obj_tag(x_72) == 0) { lean_object* x_73; @@ -42946,10 +49243,10 @@ x_84 = lean_string_utf8_extract(x_77, x_82, x_83); lean_dec(x_83); lean_dec(x_82); lean_dec(x_77); -x_85 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_85 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_86 = lean_string_append(x_85, x_84); lean_dec(x_84); -x_87 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_87 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_88 = lean_string_append(x_86, x_87); x_89 = 1; x_90 = lean_alloc_ctor(0, 1, 1); @@ -42978,7 +49275,7 @@ lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_93); lean_ctor_set_uint8(x_96, sizeof(void*)*2, x_92); x_97 = lean_box(0); -x_98 = l_Lake_Module_recParseImports___lambda__3(x_78, x_97, x_3, x_4, x_5, x_6, x_96, x_75); +x_98 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_97, x_3, x_4, x_5, x_6, x_96, x_75); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -42991,7 +49288,7 @@ lean_object* x_99; lean_object* x_100; lean_dec(x_79); lean_dec(x_77); x_99 = lean_box(0); -x_100 = l_Lake_Module_recParseImports___lambda__3(x_78, x_99, x_3, x_4, x_5, x_6, x_76, x_75); +x_100 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_99, x_3, x_4, x_5, x_6, x_76, x_75); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -43112,7 +49409,7 @@ return x_117; } } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { _start: { uint8_t x_11; @@ -43124,7 +49421,7 @@ x_12 = lean_ctor_get(x_1, 0); x_13 = lean_ctor_get(x_1, 2); x_14 = lean_ctor_get(x_1, 1); lean_dec(x_14); -x_15 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10___lambda__1), 8, 6); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4___lambda__1), 8, 6); lean_closure_set(x_15, 0, x_9); lean_closure_set(x_15, 1, x_2); lean_closure_set(x_15, 2, x_5); @@ -43140,7 +49437,7 @@ if (x_17 == 0) { lean_object* x_18; lean_object* x_19; x_18 = lean_ctor_get(x_16, 0); -x_19 = l_Lake_instDataKindUnit; +x_19 = lean_box(0); lean_ctor_set(x_1, 1, x_19); lean_ctor_set(x_1, 0, x_18); lean_ctor_set(x_16, 0, x_1); @@ -43154,7 +49451,7 @@ x_21 = lean_ctor_get(x_16, 1); lean_inc(x_21); lean_inc(x_20); lean_dec(x_16); -x_22 = l_Lake_instDataKindUnit; +x_22 = lean_box(0); lean_ctor_set(x_1, 1, x_22); lean_ctor_set(x_1, 0, x_20); x_23 = lean_alloc_ctor(0, 2, 0); @@ -43197,7 +49494,7 @@ x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); lean_inc(x_29); lean_inc(x_28); lean_dec(x_1); -x_31 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10___lambda__1), 8, 6); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4___lambda__1), 8, 6); lean_closure_set(x_31, 0, x_9); lean_closure_set(x_31, 1, x_2); lean_closure_set(x_31, 2, x_5); @@ -43220,7 +49517,7 @@ if (lean_is_exclusive(x_32)) { lean_dec_ref(x_32); x_35 = lean_box(0); } -x_36 = l_Lake_instDataKindUnit; +x_36 = lean_box(0); x_37 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_37, 0, x_33); lean_ctor_set(x_37, 1, x_36); @@ -43263,7 +49560,4693 @@ return x_42; } } } -LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__17(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_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__11(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stdout(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stdout(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__12(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stdin(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stdin(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__13(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stderr(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stderr(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__10(lean_object* x_1, uint8_t 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) { +_start: +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_13 = lean_st_mk_ref(x_12, x_8); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_mk_ref(x_12, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_IO_FS_Stream_ofBuffer(x_14); +lean_inc(x_17); +x_20 = l_IO_FS_Stream_ofBuffer(x_17); +if (x_2 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__11), 8, 2); +lean_closure_set(x_21, 0, x_20); +lean_closure_set(x_21, 1, x_1); +x_22 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__12(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +x_32 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_string_validate_utf8(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_35); +x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_38 = l_panic___at_Lean_Name_getString_x21___spec__1(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_27); +lean_ctor_set(x_23, 0, x_39); +lean_ctor_set(x_32, 0, x_23); +return x_32; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_string_from_utf8_unchecked(x_35); +lean_dec(x_35); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_27); +lean_ctor_set(x_23, 0, x_41); +lean_ctor_set(x_32, 0, x_23); +return x_32; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_32, 0); +x_43 = lean_ctor_get(x_32, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_32); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_string_validate_utf8(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_44); +x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_47 = l_panic___at_Lean_Name_getString_x21___spec__1(x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_27); +lean_ctor_set(x_23, 0, x_48); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_23); +lean_ctor_set(x_49, 1, x_43); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_string_from_utf8_unchecked(x_44); +lean_dec(x_44); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_27); +lean_ctor_set(x_23, 0, x_51); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_23); +lean_ctor_set(x_52, 1, x_43); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_free_object(x_24); +lean_dec(x_31); +lean_dec(x_30); +lean_free_object(x_23); +lean_dec(x_27); +x_53 = !lean_is_exclusive(x_32); +if (x_53 == 0) +{ +return x_32; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_32, 0); +x_55 = lean_ctor_get(x_32, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_32); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +else +{ +lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_24, 0); +x_58 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +x_59 = lean_ctor_get(x_24, 1); +lean_inc(x_59); +lean_inc(x_57); +lean_dec(x_24); +x_60 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_63 = x_60; +} else { + lean_dec_ref(x_60); + x_63 = lean_box(0); +} +x_64 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_64, 0, x_57); +lean_ctor_set(x_64, 1, x_59); +lean_ctor_set_uint8(x_64, sizeof(void*)*2, x_58); +x_65 = lean_ctor_get(x_61, 0); +lean_inc(x_65); +lean_dec(x_61); +x_66 = lean_string_validate_utf8(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_65); +x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_68 = l_panic___at_Lean_Name_getString_x21___spec__1(x_67); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_27); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_69); +if (lean_is_scalar(x_63)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_63; +} +lean_ctor_set(x_70, 0, x_23); +lean_ctor_set(x_70, 1, x_62); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_string_from_utf8_unchecked(x_65); +lean_dec(x_65); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_27); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_72); +if (lean_is_scalar(x_63)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_63; +} +lean_ctor_set(x_73, 0, x_23); +lean_ctor_set(x_73, 1, x_62); +return x_73; +} +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_59); +lean_dec(x_57); +lean_free_object(x_23); +lean_dec(x_27); +x_74 = lean_ctor_get(x_60, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_60, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_76 = x_60; +} else { + lean_dec_ref(x_60); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_78 = lean_ctor_get(x_23, 0); +lean_inc(x_78); +lean_dec(x_23); +x_79 = lean_ctor_get(x_24, 0); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +x_81 = lean_ctor_get(x_24, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_82 = x_24; +} else { + lean_dec_ref(x_24); + x_82 = lean_box(0); +} +x_83 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_86 = x_83; +} else { + lean_dec_ref(x_83); + x_86 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_87 = lean_alloc_ctor(0, 2, 1); +} else { + x_87 = x_82; +} +lean_ctor_set(x_87, 0, x_79); +lean_ctor_set(x_87, 1, x_81); +lean_ctor_set_uint8(x_87, sizeof(void*)*2, x_80); +x_88 = lean_ctor_get(x_84, 0); +lean_inc(x_88); +lean_dec(x_84); +x_89 = lean_string_validate_utf8(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_88); +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_91 = l_panic___at_Lean_Name_getString_x21___spec__1(x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_78); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_87); +if (lean_is_scalar(x_86)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_86; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_85); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_95 = lean_string_from_utf8_unchecked(x_88); +lean_dec(x_88); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_78); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_87); +if (lean_is_scalar(x_86)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_86; +} +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_85); +return x_98; +} +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_78); +x_99 = lean_ctor_get(x_83, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_83, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_101 = x_83; +} else { + lean_dec_ref(x_83); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; +} +} +} +else +{ +uint8_t x_103; +lean_dec(x_17); +x_103 = !lean_is_exclusive(x_22); +if (x_103 == 0) +{ +lean_object* x_104; uint8_t x_105; +x_104 = lean_ctor_get(x_22, 0); +lean_dec(x_104); +x_105 = !lean_is_exclusive(x_23); +if (x_105 == 0) +{ +return x_22; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_23, 0); +x_107 = lean_ctor_get(x_23, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_23); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_22, 0, x_108); +return x_22; +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_109 = lean_ctor_get(x_22, 1); +lean_inc(x_109); +lean_dec(x_22); +x_110 = lean_ctor_get(x_23, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_23, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_112 = x_23; +} else { + lean_dec_ref(x_23); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_109); +return x_114; +} +} +} +else +{ +uint8_t x_115; +lean_dec(x_17); +x_115 = !lean_is_exclusive(x_22); +if (x_115 == 0) +{ +return x_22; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_22, 0); +x_117 = lean_ctor_get(x_22, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_22); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_inc(x_20); +x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildLean___spec__13), 8, 2); +lean_closure_set(x_119, 0, x_20); +lean_closure_set(x_119, 1, x_1); +x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__11), 8, 2); +lean_closure_set(x_120, 0, x_20); +lean_closure_set(x_120, 1, x_119); +x_121 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__12(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_121, 1); +lean_inc(x_124); +lean_dec(x_121); +x_125 = !lean_is_exclusive(x_122); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_126 = lean_ctor_get(x_122, 0); +x_127 = lean_ctor_get(x_122, 1); +lean_dec(x_127); +x_128 = !lean_is_exclusive(x_123); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_123, 0); +x_130 = lean_ctor_get(x_123, 1); +x_131 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_131) == 0) +{ +uint8_t x_132; +x_132 = !lean_is_exclusive(x_131); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_133 = lean_ctor_get(x_131, 0); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_string_validate_utf8(x_134); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_134); +x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_137 = l_panic___at_Lean_Name_getString_x21___spec__1(x_136); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_126); +lean_ctor_set(x_122, 0, x_138); +lean_ctor_set(x_131, 0, x_122); +return x_131; +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_string_from_utf8_unchecked(x_134); +lean_dec(x_134); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_126); +lean_ctor_set(x_122, 0, x_140); +lean_ctor_set(x_131, 0, x_122); +return x_131; +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; +x_141 = lean_ctor_get(x_131, 0); +x_142 = lean_ctor_get(x_131, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_131); +x_143 = lean_ctor_get(x_141, 0); +lean_inc(x_143); +lean_dec(x_141); +x_144 = lean_string_validate_utf8(x_143); +if (x_144 == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_143); +x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_146 = l_panic___at_Lean_Name_getString_x21___spec__1(x_145); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_126); +lean_ctor_set(x_122, 0, x_147); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_122); +lean_ctor_set(x_148, 1, x_142); +return x_148; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_string_from_utf8_unchecked(x_143); +lean_dec(x_143); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_126); +lean_ctor_set(x_122, 0, x_150); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_122); +lean_ctor_set(x_151, 1, x_142); +return x_151; +} +} +} +else +{ +uint8_t x_152; +lean_free_object(x_123); +lean_dec(x_130); +lean_dec(x_129); +lean_free_object(x_122); +lean_dec(x_126); +x_152 = !lean_is_exclusive(x_131); +if (x_152 == 0) +{ +return x_131; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_131, 0); +x_154 = lean_ctor_get(x_131, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_131); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +} +else +{ +lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; +x_156 = lean_ctor_get(x_123, 0); +x_157 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_158 = lean_ctor_get(x_123, 1); +lean_inc(x_158); +lean_inc(x_156); +lean_dec(x_123); +x_159 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_159) == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_162 = x_159; +} else { + lean_dec_ref(x_159); + x_162 = lean_box(0); +} +x_163 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_163, 0, x_156); +lean_ctor_set(x_163, 1, x_158); +lean_ctor_set_uint8(x_163, sizeof(void*)*2, x_157); +x_164 = lean_ctor_get(x_160, 0); +lean_inc(x_164); +lean_dec(x_160); +x_165 = lean_string_validate_utf8(x_164); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_164); +x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_167 = l_panic___at_Lean_Name_getString_x21___spec__1(x_166); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_126); +lean_ctor_set(x_122, 1, x_163); +lean_ctor_set(x_122, 0, x_168); +if (lean_is_scalar(x_162)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_162; +} +lean_ctor_set(x_169, 0, x_122); +lean_ctor_set(x_169, 1, x_161); +return x_169; +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_string_from_utf8_unchecked(x_164); +lean_dec(x_164); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_126); +lean_ctor_set(x_122, 1, x_163); +lean_ctor_set(x_122, 0, x_171); +if (lean_is_scalar(x_162)) { + x_172 = lean_alloc_ctor(0, 2, 0); +} else { + x_172 = x_162; +} +lean_ctor_set(x_172, 0, x_122); +lean_ctor_set(x_172, 1, x_161); +return x_172; +} +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_158); +lean_dec(x_156); +lean_free_object(x_122); +lean_dec(x_126); +x_173 = lean_ctor_get(x_159, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_159, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_175 = x_159; +} else { + lean_dec_ref(x_159); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(1, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +} +} +else +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_177 = lean_ctor_get(x_122, 0); +lean_inc(x_177); +lean_dec(x_122); +x_178 = lean_ctor_get(x_123, 0); +lean_inc(x_178); +x_179 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_180 = lean_ctor_get(x_123, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_181 = x_123; +} else { + lean_dec_ref(x_123); + x_181 = lean_box(0); +} +x_182 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_185 = x_182; +} else { + lean_dec_ref(x_182); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_186 = lean_alloc_ctor(0, 2, 1); +} else { + x_186 = x_181; +} +lean_ctor_set(x_186, 0, x_178); +lean_ctor_set(x_186, 1, x_180); +lean_ctor_set_uint8(x_186, sizeof(void*)*2, x_179); +x_187 = lean_ctor_get(x_183, 0); +lean_inc(x_187); +lean_dec(x_183); +x_188 = lean_string_validate_utf8(x_187); +if (x_188 == 0) +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_dec(x_187); +x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_190 = l_panic___at_Lean_Name_getString_x21___spec__1(x_189); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_177); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_186); +if (lean_is_scalar(x_185)) { + x_193 = lean_alloc_ctor(0, 2, 0); +} else { + x_193 = x_185; +} +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_184); +return x_193; +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_194 = lean_string_from_utf8_unchecked(x_187); +lean_dec(x_187); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_177); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_186); +if (lean_is_scalar(x_185)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_185; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_184); +return x_197; +} +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +lean_dec(x_181); +lean_dec(x_180); +lean_dec(x_178); +lean_dec(x_177); +x_198 = lean_ctor_get(x_182, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_182, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_200 = x_182; +} else { + lean_dec_ref(x_182); + x_200 = lean_box(0); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(1, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_198); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +} +} +else +{ +uint8_t x_202; +lean_dec(x_17); +x_202 = !lean_is_exclusive(x_121); +if (x_202 == 0) +{ +lean_object* x_203; uint8_t x_204; +x_203 = lean_ctor_get(x_121, 0); +lean_dec(x_203); +x_204 = !lean_is_exclusive(x_122); +if (x_204 == 0) +{ +return x_121; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_122, 0); +x_206 = lean_ctor_get(x_122, 1); +lean_inc(x_206); +lean_inc(x_205); +lean_dec(x_122); +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_205); +lean_ctor_set(x_207, 1, x_206); +lean_ctor_set(x_121, 0, x_207); +return x_121; +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_208 = lean_ctor_get(x_121, 1); +lean_inc(x_208); +lean_dec(x_121); +x_209 = lean_ctor_get(x_122, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_122, 1); +lean_inc(x_210); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_211 = x_122; +} else { + lean_dec_ref(x_122); + x_211 = lean_box(0); +} +if (lean_is_scalar(x_211)) { + x_212 = lean_alloc_ctor(1, 2, 0); +} else { + x_212 = x_211; +} +lean_ctor_set(x_212, 0, x_209); +lean_ctor_set(x_212, 1, x_210); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_208); +return x_213; +} +} +} +else +{ +uint8_t x_214; +lean_dec(x_17); +x_214 = !lean_is_exclusive(x_121); +if (x_214 == 0) +{ +return x_121; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_121, 0); +x_216 = lean_ctor_get(x_121, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_121); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; +} +} +} +} +else +{ +uint8_t x_218; +lean_dec(x_14); +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_218 = !lean_is_exclusive(x_16); +if (x_218 == 0) +{ +return x_16; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_16, 0); +x_220 = lean_ctor_get(x_16, 1); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_16); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +return x_221; +} +} +} +else +{ +uint8_t x_222; +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_222 = !lean_is_exclusive(x_13); +if (x_222 == 0) +{ +return x_13; +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_13, 0); +x_224 = lean_ctor_get(x_13, 1); +lean_inc(x_224); +lean_inc(x_223); +lean_dec(x_13); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; +} +} +} +else +{ +lean_object* x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_226 = lean_ctor_get(x_7, 0); +x_227 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_228 = lean_ctor_get(x_7, 1); +lean_inc(x_228); +lean_inc(x_226); +lean_dec(x_7); +x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_230 = lean_st_mk_ref(x_229, x_8); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); +lean_inc(x_232); +lean_dec(x_230); +x_233 = lean_st_mk_ref(x_229, x_232); +if (lean_obj_tag(x_233) == 0) +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); +x_236 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_236, 0, x_226); +lean_ctor_set(x_236, 1, x_228); +lean_ctor_set_uint8(x_236, sizeof(void*)*2, x_227); +x_237 = l_IO_FS_Stream_ofBuffer(x_231); +lean_inc(x_234); +x_238 = l_IO_FS_Stream_ofBuffer(x_234); +if (x_2 == 0) +{ +lean_object* x_239; lean_object* x_240; +x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__11), 8, 2); +lean_closure_set(x_239, 0, x_238); +lean_closure_set(x_239, 1, x_1); +x_240 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__12(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +x_243 = lean_ctor_get(x_240, 1); +lean_inc(x_243); +lean_dec(x_240); +x_244 = lean_ctor_get(x_241, 0); +lean_inc(x_244); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_245 = x_241; +} else { + lean_dec_ref(x_241); + x_245 = lean_box(0); +} +x_246 = lean_ctor_get(x_242, 0); +lean_inc(x_246); +x_247 = lean_ctor_get_uint8(x_242, sizeof(void*)*2); +x_248 = lean_ctor_get(x_242, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_249 = x_242; +} else { + lean_dec_ref(x_242); + x_249 = lean_box(0); +} +x_250 = lean_st_ref_get(x_234, x_243); +lean_dec(x_234); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_250, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_253 = x_250; +} else { + lean_dec_ref(x_250); + x_253 = lean_box(0); +} +if (lean_is_scalar(x_249)) { + x_254 = lean_alloc_ctor(0, 2, 1); +} else { + x_254 = x_249; +} +lean_ctor_set(x_254, 0, x_246); +lean_ctor_set(x_254, 1, x_248); +lean_ctor_set_uint8(x_254, sizeof(void*)*2, x_247); +x_255 = lean_ctor_get(x_251, 0); +lean_inc(x_255); +lean_dec(x_251); +x_256 = lean_string_validate_utf8(x_255); +if (x_256 == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_dec(x_255); +x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_258 = l_panic___at_Lean_Name_getString_x21___spec__1(x_257); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_244); +if (lean_is_scalar(x_245)) { + x_260 = lean_alloc_ctor(0, 2, 0); +} else { + x_260 = x_245; +} +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_254); +if (lean_is_scalar(x_253)) { + x_261 = lean_alloc_ctor(0, 2, 0); +} else { + x_261 = x_253; +} +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_252); +return x_261; +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_262 = lean_string_from_utf8_unchecked(x_255); +lean_dec(x_255); +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_244); +if (lean_is_scalar(x_245)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_245; +} +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_254); +if (lean_is_scalar(x_253)) { + x_265 = lean_alloc_ctor(0, 2, 0); +} else { + x_265 = x_253; +} +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_252); +return x_265; +} +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_dec(x_249); +lean_dec(x_248); +lean_dec(x_246); +lean_dec(x_245); +lean_dec(x_244); +x_266 = lean_ctor_get(x_250, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_250, 1); +lean_inc(x_267); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_268 = x_250; +} else { + lean_dec_ref(x_250); + x_268 = lean_box(0); +} +if (lean_is_scalar(x_268)) { + x_269 = lean_alloc_ctor(1, 2, 0); +} else { + x_269 = x_268; +} +lean_ctor_set(x_269, 0, x_266); +lean_ctor_set(x_269, 1, x_267); +return x_269; +} +} +else +{ +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_dec(x_234); +x_270 = lean_ctor_get(x_240, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_271 = x_240; +} else { + lean_dec_ref(x_240); + x_271 = lean_box(0); +} +x_272 = lean_ctor_get(x_241, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_241, 1); +lean_inc(x_273); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_274 = x_241; +} else { + lean_dec_ref(x_241); + x_274 = lean_box(0); +} +if (lean_is_scalar(x_274)) { + x_275 = lean_alloc_ctor(1, 2, 0); +} else { + x_275 = x_274; +} +lean_ctor_set(x_275, 0, x_272); +lean_ctor_set(x_275, 1, x_273); +if (lean_is_scalar(x_271)) { + x_276 = lean_alloc_ctor(0, 2, 0); +} else { + x_276 = x_271; +} +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_270); +return x_276; +} +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +lean_dec(x_234); +x_277 = lean_ctor_get(x_240, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_240, 1); +lean_inc(x_278); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_279 = x_240; +} else { + lean_dec_ref(x_240); + x_279 = lean_box(0); +} +if (lean_is_scalar(x_279)) { + x_280 = lean_alloc_ctor(1, 2, 0); +} else { + x_280 = x_279; +} +lean_ctor_set(x_280, 0, x_277); +lean_ctor_set(x_280, 1, x_278); +return x_280; +} +} +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; +lean_inc(x_238); +x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildLean___spec__13), 8, 2); +lean_closure_set(x_281, 0, x_238); +lean_closure_set(x_281, 1, x_1); +x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__11), 8, 2); +lean_closure_set(x_282, 0, x_238); +lean_closure_set(x_282, 1, x_281); +x_283 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__12(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); +if (lean_obj_tag(x_283) == 0) +{ +lean_object* x_284; +x_284 = lean_ctor_get(x_283, 0); +lean_inc(x_284); +if (lean_obj_tag(x_284) == 0) +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +x_286 = lean_ctor_get(x_283, 1); +lean_inc(x_286); +lean_dec(x_283); +x_287 = lean_ctor_get(x_284, 0); +lean_inc(x_287); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_288 = x_284; +} else { + lean_dec_ref(x_284); + x_288 = lean_box(0); +} +x_289 = lean_ctor_get(x_285, 0); +lean_inc(x_289); +x_290 = lean_ctor_get_uint8(x_285, sizeof(void*)*2); +x_291 = lean_ctor_get(x_285, 1); +lean_inc(x_291); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_292 = x_285; +} else { + lean_dec_ref(x_285); + x_292 = lean_box(0); +} +x_293 = lean_st_ref_get(x_234, x_286); +lean_dec(x_234); +if (lean_obj_tag(x_293) == 0) +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_296 = x_293; +} else { + lean_dec_ref(x_293); + x_296 = lean_box(0); +} +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(0, 2, 1); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_289); +lean_ctor_set(x_297, 1, x_291); +lean_ctor_set_uint8(x_297, sizeof(void*)*2, x_290); +x_298 = lean_ctor_get(x_294, 0); +lean_inc(x_298); +lean_dec(x_294); +x_299 = lean_string_validate_utf8(x_298); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_dec(x_298); +x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_301 = l_panic___at_Lean_Name_getString_x21___spec__1(x_300); +x_302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_302, 0, x_301); +lean_ctor_set(x_302, 1, x_287); +if (lean_is_scalar(x_288)) { + x_303 = lean_alloc_ctor(0, 2, 0); +} else { + x_303 = x_288; +} +lean_ctor_set(x_303, 0, x_302); +lean_ctor_set(x_303, 1, x_297); +if (lean_is_scalar(x_296)) { + x_304 = lean_alloc_ctor(0, 2, 0); +} else { + x_304 = x_296; +} +lean_ctor_set(x_304, 0, x_303); +lean_ctor_set(x_304, 1, x_295); +return x_304; +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_305 = lean_string_from_utf8_unchecked(x_298); +lean_dec(x_298); +x_306 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_306, 0, x_305); +lean_ctor_set(x_306, 1, x_287); +if (lean_is_scalar(x_288)) { + x_307 = lean_alloc_ctor(0, 2, 0); +} else { + x_307 = x_288; +} +lean_ctor_set(x_307, 0, x_306); +lean_ctor_set(x_307, 1, x_297); +if (lean_is_scalar(x_296)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_296; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_295); +return x_308; +} +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_292); +lean_dec(x_291); +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_287); +x_309 = lean_ctor_get(x_293, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_293, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_311 = x_293; +} else { + lean_dec_ref(x_293); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 2, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +return x_312; +} +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_234); +x_313 = lean_ctor_get(x_283, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_314 = x_283; +} else { + lean_dec_ref(x_283); + x_314 = lean_box(0); +} +x_315 = lean_ctor_get(x_284, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_284, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_317 = x_284; +} else { + lean_dec_ref(x_284); + x_317 = lean_box(0); +} +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(1, 2, 0); +} else { + x_318 = x_317; +} +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +if (lean_is_scalar(x_314)) { + x_319 = lean_alloc_ctor(0, 2, 0); +} else { + x_319 = x_314; +} +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_313); +return x_319; +} +} +else +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_234); +x_320 = lean_ctor_get(x_283, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_283, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_322 = x_283; +} else { + lean_dec_ref(x_283); + x_322 = lean_box(0); +} +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 2, 0); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_320); +lean_ctor_set(x_323, 1, x_321); +return x_323; +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_dec(x_231); +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_324 = lean_ctor_get(x_233, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_233, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_326 = x_233; +} else { + lean_dec_ref(x_233); + x_326 = lean_box(0); +} +if (lean_is_scalar(x_326)) { + x_327 = lean_alloc_ctor(1, 2, 0); +} else { + x_327 = x_326; +} +lean_ctor_set(x_327, 0, x_324); +lean_ctor_set(x_327, 1, x_325); +return x_327; +} +} +else +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_328 = lean_ctor_get(x_230, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_230, 1); +lean_inc(x_329); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_330 = x_230; +} else { + lean_dec_ref(x_230); + x_330 = lean_box(0); +} +if (lean_is_scalar(x_330)) { + x_331 = lean_alloc_ctor(1, 2, 0); +} else { + x_331 = x_330; +} +lean_ctor_set(x_331, 0, x_328); +lean_ctor_set(x_331, 1, x_329); +return x_331; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_8, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_8, 0); +lean_inc(x_29); +lean_dec(x_8); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_28, 1); +x_32 = l_Lake_BuildTrace_mix(x_1, x_31); +x_33 = lean_apply_1(x_2, x_29); +lean_ctor_set(x_28, 1, x_32); +x_34 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_35 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__10(x_33, x_34, x_3, x_4, x_5, x_6, x_28, x_9); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) +{ +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; uint8_t x_44; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_ctor_get(x_37, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_37, 1); +lean_inc(x_41); +lean_dec(x_37); +x_42 = lean_string_utf8_byte_size(x_40); +x_43 = lean_unsigned_to_nat(0u); +x_44 = lean_nat_dec_eq(x_42, x_43); +if (x_44 == 0) +{ +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; uint8_t x_52; lean_object* x_53; uint8_t x_54; +x_45 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_40, x_42, x_43); +x_46 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_40, x_45, x_42); +x_47 = lean_string_utf8_extract(x_40, x_45, x_46); +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_40); +x_48 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_49 = lean_string_append(x_48, x_47); +lean_dec(x_47); +x_50 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_51 = lean_string_append(x_49, x_50); +x_52 = 1; +x_53 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_52); +x_54 = !lean_is_exclusive(x_39); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_array_push(x_55, x_53); +lean_ctor_set(x_39, 0, x_56); +x_57 = lean_box(0); +x_58 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_57, x_3, x_4, x_5, x_6, x_39, x_38); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_10 = x_59; +x_11 = x_60; +goto block_27; +} +else +{ +lean_object* x_61; uint8_t 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; +x_61 = lean_ctor_get(x_39, 0); +x_62 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_63 = lean_ctor_get(x_39, 1); +lean_inc(x_63); +lean_inc(x_61); +lean_dec(x_39); +x_64 = lean_array_push(x_61, x_53); +x_65 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_62); +x_66 = lean_box(0); +x_67 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_66, x_3, x_4, x_5, x_6, x_65, x_38); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_10 = x_68; +x_11 = x_69; +goto block_27; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_42); +lean_dec(x_40); +x_70 = lean_box(0); +x_71 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_70, x_3, x_4, x_5, x_6, x_39, x_38); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_10 = x_72; +x_11 = x_73; +goto block_27; +} +} +else +{ +lean_object* x_74; uint8_t x_75; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_74 = lean_ctor_get(x_35, 1); +lean_inc(x_74); +lean_dec(x_35); +x_75 = !lean_is_exclusive(x_36); +if (x_75 == 0) +{ +x_10 = x_36; +x_11 = x_74; +goto block_27; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_36, 0); +x_77 = lean_ctor_get(x_36, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_36); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +x_10 = x_78; +x_11 = x_74; +goto block_27; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_79 = !lean_is_exclusive(x_35); +if (x_79 == 0) +{ +return x_35; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_35, 0); +x_81 = lean_ctor_get(x_35, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_35); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; +x_83 = lean_ctor_get(x_28, 0); +x_84 = lean_ctor_get_uint8(x_28, sizeof(void*)*2); +x_85 = lean_ctor_get(x_28, 1); +lean_inc(x_85); +lean_inc(x_83); +lean_dec(x_28); +x_86 = l_Lake_BuildTrace_mix(x_1, x_85); +x_87 = lean_apply_1(x_2, x_29); +x_88 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_88, 0, x_83); +lean_ctor_set(x_88, 1, x_86); +lean_ctor_set_uint8(x_88, sizeof(void*)*2, x_84); +x_89 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__10(x_87, x_89, x_3, x_4, x_5, x_6, x_88, x_9); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +lean_dec(x_90); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +lean_dec(x_91); +x_95 = lean_ctor_get(x_92, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_92, 1); +lean_inc(x_96); +lean_dec(x_92); +x_97 = lean_string_utf8_byte_size(x_95); +x_98 = lean_unsigned_to_nat(0u); +x_99 = lean_nat_dec_eq(x_97, x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; uint8_t 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; lean_object* x_117; lean_object* x_118; +x_100 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_95, x_97, x_98); +x_101 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_95, x_100, x_97); +x_102 = lean_string_utf8_extract(x_95, x_100, x_101); +lean_dec(x_101); +lean_dec(x_100); +lean_dec(x_95); +x_103 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_104 = lean_string_append(x_103, x_102); +lean_dec(x_102); +x_105 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_106 = lean_string_append(x_104, x_105); +x_107 = 1; +x_108 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set_uint8(x_108, sizeof(void*)*1, x_107); +x_109 = lean_ctor_get(x_94, 0); +lean_inc(x_109); +x_110 = lean_ctor_get_uint8(x_94, sizeof(void*)*2); +x_111 = lean_ctor_get(x_94, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_112 = x_94; +} else { + lean_dec_ref(x_94); + x_112 = lean_box(0); +} +x_113 = lean_array_push(x_109, x_108); +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 2, 1); +} else { + x_114 = x_112; +} +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_111); +lean_ctor_set_uint8(x_114, sizeof(void*)*2, x_110); +x_115 = lean_box(0); +x_116 = l_Lake_Module_recFetchInput___lambda__3(x_96, x_115, x_3, x_4, x_5, x_6, x_114, x_93); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +lean_dec(x_116); +x_10 = x_117; +x_11 = x_118; +goto block_27; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_97); +lean_dec(x_95); +x_119 = lean_box(0); +x_120 = l_Lake_Module_recFetchInput___lambda__3(x_96, x_119, x_3, x_4, x_5, x_6, x_94, x_93); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +x_10 = x_121; +x_11 = x_122; +goto block_27; +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_123 = lean_ctor_get(x_90, 1); +lean_inc(x_123); +lean_dec(x_90); +x_124 = lean_ctor_get(x_91, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_91, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_126 = x_91; +} else { + lean_dec_ref(x_91); + x_126 = lean_box(0); +} +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); +} else { + x_127 = x_126; +} +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +x_10 = x_127; +x_11 = x_123; +goto block_27; +} +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_128 = lean_ctor_get(x_90, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_90, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_130 = x_90; +} else { + lean_dec_ref(x_90); + x_130 = lean_box(0); +} +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(1, 2, 0); +} else { + x_131 = x_130; +} +lean_ctor_set(x_131, 0, x_128); +lean_ctor_set(x_131, 1, x_129); +return x_131; +} +} +} +else +{ +uint8_t x_132; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_132 = !lean_is_exclusive(x_8); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; +x_133 = lean_task_pure(x_8); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_9); +return x_134; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_135 = lean_ctor_get(x_8, 0); +x_136 = lean_ctor_get(x_8, 1); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_8); +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = lean_task_pure(x_137); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_9); +return x_139; +} +} +block_27: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__1), 2, 1); +lean_closure_set(x_14, 0, x_13); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +x_16 = 1; +x_17 = lean_task_map(x_14, x_15, x_7, x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_11); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_7); +x_19 = !lean_is_exclusive(x_10); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_task_pure(x_10); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_11); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_10, 0); +x_23 = lean_ctor_get(x_10, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_10); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_task_pure(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_11); +return x_26; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { +_start: +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 1); +lean_dec(x_14); +lean_inc(x_3); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9___lambda__1), 9, 7); +lean_closure_set(x_15, 0, x_9); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_5); +lean_closure_set(x_15, 3, x_6); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_8); +lean_closure_set(x_15, 6, x_3); +x_16 = lean_io_bind_task(x_12, x_15, x_3, x_4, x_10); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_box(0); +lean_ctor_set(x_1, 1, x_19); +lean_ctor_set(x_1, 0, x_18); +lean_ctor_set(x_16, 0, x_1); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_box(0); +lean_ctor_set(x_1, 1, x_22); +lean_ctor_set(x_1, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_free_object(x_1); +lean_dec(x_13); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_16); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_1, 0); +x_29 = lean_ctor_get(x_1, 2); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_1); +lean_inc(x_3); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9___lambda__1), 9, 7); +lean_closure_set(x_31, 0, x_9); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_5); +lean_closure_set(x_31, 3, x_6); +lean_closure_set(x_31, 4, x_7); +lean_closure_set(x_31, 5, x_8); +lean_closure_set(x_31, 6, x_3); +x_32 = lean_io_bind_task(x_28, x_31, x_3, x_4, x_10); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_30); +if (lean_is_scalar(x_35)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_35; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_29); +x_39 = lean_ctor_get(x_32, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_41 = x_32; +} else { + lean_dec_ref(x_32); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_Module_recBuildLean___spec__16(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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_31; @@ -43640,7 +54623,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__18(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_EXPORT lean_object* l_IO_withStdin___at_Lake_Module_recBuildLean___spec__17(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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_31; @@ -44017,7 +55000,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__19(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_EXPORT lean_object* l_IO_withStderr___at_Lake_Module_recBuildLean___spec__18(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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_31; @@ -44394,11 +55377,11 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__16(lean_object* x_1, uint8_t 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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__15(lean_object* x_1, uint8_t 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) { _start: { lean_object* x_9; lean_object* x_10; -x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_10 = lean_st_mk_ref(x_9, x_8); if (lean_obj_tag(x_10) == 0) { @@ -44423,10 +55406,10 @@ x_17 = l_IO_FS_Stream_ofBuffer(x_14); if (x_2 == 0) { lean_object* x_18; lean_object* x_19; -x_18 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__17), 8, 2); +x_18 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__16), 8, 2); lean_closure_set(x_18, 0, x_17); lean_closure_set(x_18, 1, x_1); -x_19 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__18(x_16, x_18, x_3, x_4, x_5, x_6, x_7, x_15); +x_19 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__17(x_16, x_18, x_3, x_4, x_5, x_6, x_7, x_15); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; @@ -44462,7 +55445,7 @@ if (x_29 == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_28); -x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_31 = l_panic___at_Lean_Name_getString_x21___spec__1(x_30); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); @@ -44500,7 +55483,7 @@ if (x_38 == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_dec(x_37); -x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_40 = l_panic___at_Lean_Name_getString_x21___spec__1(x_39); x_41 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_41, 0, x_40); @@ -44586,7 +55569,7 @@ if (x_57 == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_dec(x_56); -x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_59 = l_panic___at_Lean_Name_getString_x21___spec__1(x_58); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_59); @@ -44742,13 +55725,13 @@ else { lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_inc(x_17); -x_87 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildLean___spec__19), 8, 2); +x_87 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_Module_recBuildLean___spec__18), 8, 2); lean_closure_set(x_87, 0, x_17); lean_closure_set(x_87, 1, x_1); -x_88 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__17), 8, 2); +x_88 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_Module_recBuildLean___spec__16), 8, 2); lean_closure_set(x_88, 0, x_17); lean_closure_set(x_88, 1, x_87); -x_89 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__18(x_16, x_88, x_3, x_4, x_5, x_6, x_7, x_15); +x_89 = l_IO_withStdin___at_Lake_Module_recBuildLean___spec__17(x_16, x_88, x_3, x_4, x_5, x_6, x_7, x_15); if (lean_obj_tag(x_89) == 0) { lean_object* x_90; @@ -44784,7 +55767,7 @@ if (x_99 == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_dec(x_98); -x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_101 = l_panic___at_Lean_Name_getString_x21___spec__1(x_100); x_102 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_102, 0, x_101); @@ -44822,7 +55805,7 @@ if (x_108 == 0) { lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_107); -x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_110 = l_panic___at_Lean_Name_getString_x21___spec__1(x_109); x_111 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_111, 0, x_110); @@ -44908,7 +55891,7 @@ if (x_127 == 0) { lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_dec(x_126); -x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_129 = l_panic___at_Lean_Name_getString_x21___spec__1(x_128); x_130 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_130, 0, x_129); @@ -45121,7 +56104,7 @@ return x_164; } } } -LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildLean___spec__15(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_EXPORT lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildLean___spec__14(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; uint8_t x_91; lean_object* x_92; @@ -45131,7 +56114,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_92 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__16(x_1, x_91, x_2, x_3, x_4, x_5, x_6, x_7); +x_92 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__15(x_1, x_91, x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_92) == 0) { lean_object* x_93; @@ -45165,10 +56148,10 @@ x_104 = lean_string_utf8_extract(x_97, x_102, x_103); lean_dec(x_103); lean_dec(x_102); lean_dec(x_97); -x_105 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_105 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_106 = lean_string_append(x_105, x_104); lean_dec(x_104); -x_107 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_107 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_108 = lean_string_append(x_106, x_107); x_109 = 1; x_110 = lean_alloc_ctor(0, 1, 1); @@ -45176,7 +56159,7 @@ lean_ctor_set(x_110, 0, x_108); lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_109); x_111 = lean_array_push(x_96, x_110); x_112 = lean_box(0); -x_113 = l_Lake_Module_recParseImports___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); +x_113 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -45196,7 +56179,7 @@ lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_99); lean_dec(x_97); x_116 = lean_box(0); -x_117 = l_Lake_Module_recParseImports___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); +x_117 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -45315,7 +56298,7 @@ lean_dec(x_22); x_23 = l_Task_Priority_default; x_24 = 1; x_25 = lean_task_map(x_19, x_21, x_23, x_24); -x_26 = l_Lake_instDataKindUnit; +x_26 = lean_box(0); lean_ctor_set(x_12, 1, x_26); lean_ctor_set(x_12, 0, x_25); lean_ctor_set(x_9, 1, x_17); @@ -45336,7 +56319,7 @@ lean_dec(x_12); x_31 = l_Task_Priority_default; x_32 = 1; x_33 = lean_task_map(x_19, x_28, x_31, x_32); -x_34 = l_Lake_instDataKindUnit; +x_34 = lean_box(0); x_35 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_35, 0, x_33); lean_ctor_set(x_35, 1, x_34); @@ -45401,7 +56384,7 @@ if (lean_is_exclusive(x_37)) { x_50 = l_Task_Priority_default; x_51 = 1; x_52 = lean_task_map(x_45, x_46, x_50, x_51); -x_53 = l_Lake_instDataKindUnit; +x_53 = lean_box(0); if (lean_is_scalar(x_49)) { x_54 = lean_alloc_ctor(0, 3, 1); } else { @@ -45438,7 +56421,7 @@ x_62 = l_Array_extract___rarg(x_58, x_8, x_61); lean_dec(x_61); lean_dec(x_58); x_63 = 0; -x_64 = l_Lake_Module_recParseImports___closed__3; +x_64 = l_Lake_Module_recFetchInput___closed__3; x_65 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_65, 0, x_62); lean_ctor_set(x_65, 1, x_64); @@ -45447,8 +56430,8 @@ x_66 = lean_unsigned_to_nat(0u); lean_ctor_set(x_9, 1, x_65); lean_ctor_set(x_9, 0, x_66); x_67 = lean_task_pure(x_9); -x_68 = l_Lake_instDataKindUnit; -x_69 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_68 = lean_box(0); +x_69 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_70 = 0; x_71 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_71, 0, x_67); @@ -45476,7 +56459,7 @@ x_77 = l_Array_extract___rarg(x_74, x_8, x_76); lean_dec(x_76); lean_dec(x_74); x_78 = 0; -x_79 = l_Lake_Module_recParseImports___closed__3; +x_79 = l_Lake_Module_recFetchInput___closed__3; x_80 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_80, 0, x_77); lean_ctor_set(x_80, 1, x_79); @@ -45486,8 +56469,8 @@ x_82 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); x_83 = lean_task_pure(x_82); -x_84 = l_Lake_instDataKindUnit; -x_85 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_84 = lean_box(0); +x_85 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_86 = 0; x_87 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_87, 0, x_83); @@ -45510,21 +56493,29 @@ static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Module.leanArgs", 15, 15); +x_1 = lean_mk_string_unchecked("options", 7, 7); return x_1; } } static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__2() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Module.leanArgs", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_2 = l_Lake_Module_recBuildLean___lambda__1___closed__1; +x_1 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_2 = l_Lake_Module_recBuildLean___lambda__1___closed__2; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__3() { +static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__4() { _start: { lean_object* x_1; @@ -45532,54 +56523,25 @@ x_1 = lean_mk_string_unchecked(": ", 2, 2); return x_1; } } -static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__4() { +static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_recBuildLean___lambda__1___closed__2; -x_2 = l_Lake_Module_recBuildLean___lambda__1___closed__3; +x_1 = l_Lake_Module_recBuildLean___lambda__1___closed__3; +x_2 = l_Lake_Module_recBuildLean___lambda__1___closed__4; x_3 = lean_string_append(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_nat_to_int(x_1); -return x_2; -} -} static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__6() { _start: { -uint32_t x_1; lean_object* x_2; lean_object* x_3; -x_1 = 0; -x_2 = l_Lake_Module_recBuildLean___lambda__1___closed__5; -x_3 = lean_alloc_ctor(0, 1, 4); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set_uint32(x_3, sizeof(void*)*1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("#", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__8() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string_unchecked(":leanArts", 9, 9); return x_1; } } -static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__9() { +static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__7() { _start: { lean_object* x_1; @@ -45587,2146 +56549,1776 @@ x_1 = lean_mk_string_unchecked("trace", 5, 5); return x_1; } } -static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__10() { +static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__8() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); +x_1 = lean_mk_string_unchecked("#", 1, 1); return x_1; } } -static lean_object* _init_l_Lake_Module_recBuildLean___lambda__1___closed__11() { +LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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_1; -x_1 = lean_alloc_closure((void*)(l_Lean_LeanOptions_append___lambda__1___boxed), 3, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* 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; uint8_t x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t 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; -x_11 = lean_ctor_get(x_4, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_4, 1); -lean_inc(x_12); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - x_13 = x_4; +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* 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; uint8_t x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t 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; uint8_t 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_360; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = lean_ctor_get_uint8(x_11, sizeof(void*)*2); +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_16 = x_11; } else { - lean_dec_ref(x_4); - x_13 = lean_box(0); + lean_dec_ref(x_11); + x_16 = lean_box(0); } -x_14 = lean_ctor_get(x_9, 0); -lean_inc(x_14); -x_15 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_17 = x_9; -} else { - lean_dec_ref(x_9); - x_17 = lean_box(0); -} -x_18 = lean_ctor_get(x_8, 2); -lean_inc(x_18); -x_19 = l_Lake_BuildTrace_mix(x_16, x_18); -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_21, 3); -lean_inc(x_22); -x_23 = lean_ctor_get(x_22, 1); +x_17 = lean_ctor_get(x_10, 2); +lean_inc(x_17); +x_18 = l_Lake_BuildTrace_mix(x_15, x_17); +x_19 = lean_ctor_get(x_6, 5); +lean_inc(x_19); +x_20 = l_Lake_Module_recBuildLean___lambda__1___closed__1; +x_21 = l___private_Lake_Build_Module_0__Lake_traceOptions(x_19, x_20); +x_22 = l_Lake_BuildTrace_mix(x_18, x_21); +x_23 = lean_ctor_get(x_1, 0); lean_inc(x_23); -x_24 = lean_ctor_get_uint8(x_23, sizeof(void*)*13); -x_25 = lean_ctor_get(x_20, 2); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_24, 3); lean_inc(x_25); -lean_dec(x_20); -x_26 = lean_ctor_get(x_25, 0); +x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); x_27 = lean_ctor_get_uint8(x_26, sizeof(void*)*13); -x_28 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_24, x_27); -x_29 = lean_ctor_get(x_23, 1); +x_28 = lean_ctor_get(x_23, 2); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -x_31 = lean_ctor_get(x_23, 0); -lean_inc(x_31); -x_32 = l_Lean_LeanOptions_ofArray(x_31); -lean_dec(x_31); -x_33 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get_uint8(x_29, sizeof(void*)*13); +x_31 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_27, x_30); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +x_33 = lean_ctor_get(x_29, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_21, 1); -lean_inc(x_34); -x_35 = lean_ctor_get(x_22, 5); -lean_inc(x_35); -x_36 = l_System_FilePath_normalize(x_35); -lean_inc(x_34); -x_37 = l_Lake_joinRelative(x_34, x_36); -lean_dec(x_36); -x_38 = lean_ctor_get(x_25, 1); -lean_inc(x_38); -lean_dec(x_25); -x_39 = l_System_FilePath_normalize(x_38); -x_40 = l_Lake_joinRelative(x_37, x_39); -lean_dec(x_39); -x_41 = l_Lake_Module_recParseImports___closed__1; -x_42 = l_Lean_modToFilePath(x_40, x_2, x_41); +x_34 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_35 = lean_string_append(x_34, x_2); +x_36 = l_Lake_Module_recBuildLean___lambda__1___closed__6; +x_37 = lean_string_append(x_35, x_36); +lean_inc(x_3); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_3); +x_39 = lean_ctor_get(x_24, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_25, 6); +lean_inc(x_40); +x_41 = l_System_FilePath_normalize(x_40); +lean_inc(x_39); +x_42 = l_Lake_joinRelative(x_39, x_41); +lean_dec(x_41); +x_43 = lean_ctor_get(x_25, 7); +lean_inc(x_43); +x_44 = l_System_FilePath_normalize(x_43); lean_inc(x_42); -x_43 = l_Lake_BuildTrace_compute___at_Lake_inputTextFile___spec__1(x_42, x_10); -switch (x_28) { -case 0: -{ -lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; -x_500 = l_Lake_BuildType_leanArgs(x_24); -x_501 = l_Array_append___rarg(x_500, x_29); -lean_dec(x_29); -x_502 = l_Array_append___rarg(x_501, x_30); -lean_dec(x_30); -x_503 = l_Lake_BuildType_leanOptions(x_24); -x_504 = l_Lake_Module_recBuildLean___lambda__1___closed__10; -x_505 = l_Lake_Module_recBuildLean___lambda__1___closed__11; -x_506 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_504, x_505, x_503, x_32); -x_507 = l_Lean_LeanOptions_appendArray(x_506, x_33); -lean_dec(x_33); -x_508 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___at_Lake_Module_recBuildLean___spec__5(x_502, x_507); -x_44 = x_508; -goto block_499; -} -case 1: -{ -lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; -x_509 = l_Lake_BuildType_leanArgs(x_24); -x_510 = l_Array_append___rarg(x_509, x_29); -lean_dec(x_29); -x_511 = l_Array_append___rarg(x_510, x_30); -lean_dec(x_30); -x_512 = l_Lake_BuildType_leanOptions(x_24); -x_513 = l_Lake_Module_recBuildLean___lambda__1___closed__10; -x_514 = l_Lake_Module_recBuildLean___lambda__1___closed__11; -x_515 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_513, x_514, x_512, x_32); -x_516 = l_Lean_LeanOptions_appendArray(x_515, x_33); -lean_dec(x_33); -x_517 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__6___at_Lake_Module_recBuildLean___spec__7(x_511, x_516); -x_44 = x_517; -goto block_499; -} -default: -{ -lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; -x_518 = l_Lake_BuildType_leanArgs(x_27); -x_519 = l_Array_append___rarg(x_518, x_29); -lean_dec(x_29); -x_520 = l_Array_append___rarg(x_519, x_30); -lean_dec(x_30); -x_521 = l_Lake_BuildType_leanOptions(x_27); -x_522 = l_Lake_Module_recBuildLean___lambda__1___closed__10; -x_523 = l_Lake_Module_recBuildLean___lambda__1___closed__11; -x_524 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_522, x_523, x_521, x_32); -x_525 = l_Lean_LeanOptions_appendArray(x_524, x_33); -lean_dec(x_33); -x_526 = l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__8___at_Lake_Module_recBuildLean___spec__9(x_520, x_525); -x_44 = x_526; -goto block_499; -} -} -block_499: -{ -lean_object* x_45; lean_object* x_46; uint8_t 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; uint64_t x_460; -x_45 = lean_array_get_size(x_44); -x_46 = lean_unsigned_to_nat(0u); -x_47 = lean_nat_dec_lt(x_46, x_45); -lean_inc(x_44); -x_48 = lean_array_to_list(x_44); -x_49 = l_List_toString___at_Lean_rewriteManualLinksCore_rw___spec__5(x_48); -lean_dec(x_48); -x_50 = l_Lake_Module_recBuildLean___lambda__1___closed__7; -x_51 = lean_string_append(x_50, x_49); -lean_dec(x_49); -x_52 = l_Lake_Module_recBuildLean___lambda__1___closed__4; -x_53 = lean_string_append(x_52, x_51); -lean_dec(x_51); -x_54 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_55 = lean_string_append(x_53, x_54); -if (x_47 == 0) -{ -uint64_t x_492; -lean_dec(x_45); -x_492 = l_Lake_Hash_nil; -x_460 = x_492; -goto block_491; -} -else -{ -uint8_t x_493; -x_493 = lean_nat_dec_le(x_45, x_45); -if (x_493 == 0) -{ -uint64_t x_494; -lean_dec(x_45); -x_494 = l_Lake_Hash_nil; -x_460 = x_494; -goto block_491; -} -else -{ -size_t x_495; size_t x_496; uint64_t x_497; uint64_t x_498; -x_495 = 0; -x_496 = lean_usize_of_nat(x_45); -lean_dec(x_45); -x_497 = l_Lake_Hash_nil; -x_498 = l_Array_foldlMUnsafe_fold___at_Lake_buildO___spec__1(x_44, x_495, x_496, x_497); -x_460 = x_498; -goto block_491; -} -} -block_459: -{ -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -lean_dec(x_13); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -x_59 = lean_ctor_get(x_56, 0); -lean_inc(x_59); -lean_dec(x_56); -x_60 = !lean_is_exclusive(x_58); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -x_62 = l_Lake_BuildTrace_mix(x_61, x_59); -x_63 = lean_string_append(x_54, x_3); -x_64 = l_Lake_Module_recBuildLean___lambda__1___closed__8; -x_65 = lean_string_append(x_63, x_64); -x_66 = !lean_is_exclusive(x_62); -if (x_66 == 0) -{ -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; uint8_t x_77; lean_object* x_78; -x_67 = lean_ctor_get(x_62, 0); -lean_dec(x_67); -lean_ctor_set(x_62, 0, x_65); +x_45 = l_Lake_joinRelative(x_42, x_44); +lean_dec(x_44); +x_46 = l_Lake_Module_clearOutputHashes___closed__1; +x_47 = l_Lean_modToFilePath(x_45, x_4, x_46); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_50 = l_Lake_Module_clearOutputHashes___closed__4; +x_51 = l_Lean_modToFilePath(x_45, x_4, x_50); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_ctor_get(x_25, 10); +lean_inc(x_53); +x_54 = l_System_FilePath_normalize(x_53); +x_55 = l_Lake_joinRelative(x_42, x_54); +lean_dec(x_54); +x_56 = l_Lake_Module_clearOutputHashes___closed__5; +x_57 = l_Lean_modToFilePath(x_55, x_4, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lake_Module_recBuildLean___lambda__1___closed__7; +x_60 = l_Lean_modToFilePath(x_45, x_4, x_59); +x_61 = lean_ctor_get(x_26, 2); +lean_inc(x_61); +lean_dec(x_26); +x_62 = lean_ctor_get(x_29, 2); lean_inc(x_62); -lean_ctor_set(x_58, 1, x_62); -x_68 = lean_ctor_get(x_22, 6); -lean_inc(x_68); -x_69 = l_System_FilePath_normalize(x_68); -lean_inc(x_34); -x_70 = l_Lake_joinRelative(x_34, x_69); -lean_dec(x_69); -x_71 = lean_ctor_get(x_22, 7); -lean_inc(x_71); -x_72 = l_System_FilePath_normalize(x_71); -lean_inc(x_70); -x_73 = l_Lake_joinRelative(x_70, x_72); -lean_dec(x_72); -x_74 = l_Lake_Module_recBuildLean___lambda__1___closed__9; -x_75 = l_Lean_modToFilePath(x_73, x_2, x_74); -x_76 = lean_ctor_get(x_59, 3); -lean_inc(x_76); -lean_dec(x_59); -x_77 = 3; -lean_inc(x_8); -lean_inc_n(x_1, 2); -x_78 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1(x_1, x_2, x_5, x_11, x_12, x_21, x_22, x_23, x_26, x_34, x_40, x_42, x_44, x_70, x_73, x_1, x_62, x_75, x_77, x_76, x_6, x_7, x_8, x_58, x_57); -lean_dec(x_76); -lean_dec(x_75); +lean_dec(x_29); +x_63 = l_Array_append___rarg(x_61, x_62); lean_dec(x_62); -lean_dec(x_21); -if (lean_obj_tag(x_78) == 0) +lean_inc(x_3); +lean_inc(x_39); +x_64 = l_Lake_relPathFrom(x_39, x_3); +x_65 = lean_ctor_get(x_5, 3); +x_360 = lean_box(x_31); +if (lean_obj_tag(x_360) == 2) { -lean_object* x_79; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -if (lean_obj_tag(x_79) == 0) +lean_object* x_361; lean_object* x_362; lean_object* x_363; +x_361 = l_Lake_BuildType_leanArgs(x_30); +x_362 = l_Array_append___rarg(x_361, x_32); +lean_dec(x_32); +x_363 = l_Array_append___rarg(x_362, x_33); +lean_dec(x_33); +x_66 = x_363; +goto block_359; +} +else { -uint8_t x_80; -x_80 = !lean_is_exclusive(x_79); -if (x_80 == 0) +lean_object* x_364; lean_object* x_365; lean_object* x_366; +lean_dec(x_360); +x_364 = l_Lake_BuildType_leanArgs(x_27); +x_365 = l_Array_append___rarg(x_364, x_32); +lean_dec(x_32); +x_366 = l_Array_append___rarg(x_365, x_33); +lean_dec(x_33); +x_66 = x_366; +goto block_359; +} +block_359: { -lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_81 = lean_ctor_get(x_79, 1); -x_82 = lean_ctor_get(x_79, 0); -x_83 = lean_unbox(x_82); -lean_dec(x_82); -if (x_83 == 0) +lean_object* x_67; lean_object* x_68; uint8_t 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; uint64_t x_78; +x_67 = lean_array_get_size(x_66); +x_68 = lean_unsigned_to_nat(0u); +x_69 = lean_nat_dec_lt(x_68, x_67); +lean_inc(x_66); +x_70 = lean_array_to_list(x_66); +x_71 = l_List_toString___at_Lean_rewriteManualLinksCore_rw___spec__5(x_70); +lean_dec(x_70); +x_72 = l_Lake_Module_recBuildLean___lambda__1___closed__8; +x_73 = lean_string_append(x_72, x_71); +lean_dec(x_71); +x_74 = l_Lake_Module_recBuildLean___lambda__1___closed__5; +x_75 = lean_string_append(x_74, x_73); +lean_dec(x_73); +x_76 = lean_string_append(x_75, x_34); +x_77 = l_Array_append___rarg(x_63, x_66); +if (x_69 == 0) { -lean_object* x_84; uint8_t x_85; -lean_dec(x_8); -x_84 = lean_ctor_get(x_78, 1); -lean_inc(x_84); -lean_dec(x_78); -x_85 = !lean_is_exclusive(x_81); -if (x_85 == 0) +uint64_t x_352; +lean_dec(x_67); +lean_dec(x_66); +x_352 = l_Lake_Hash_nil; +x_78 = x_352; +goto block_351; +} +else { -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_81, 0); -x_87 = l_Lake_Module_cacheOutputHashes(x_1, x_84); -if (lean_obj_tag(x_87) == 0) +uint8_t x_353; +x_353 = lean_nat_dec_le(x_67, x_67); +if (x_353 == 0) { -uint8_t x_88; -x_88 = !lean_is_exclusive(x_87); -if (x_88 == 0) +uint64_t x_354; +lean_dec(x_67); +lean_dec(x_66); +x_354 = l_Lake_Hash_nil; +x_78 = x_354; +goto block_351; +} +else +{ +size_t x_355; size_t x_356; uint64_t x_357; uint64_t x_358; +x_355 = 0; +x_356 = lean_usize_of_nat(x_67); +lean_dec(x_67); +x_357 = l_Lake_Hash_nil; +x_358 = l_Array_foldlMUnsafe_fold___at_Lake_buildO___spec__1(x_66, x_355, x_356, x_357); +lean_dec(x_66); +x_78 = x_358; +goto block_351; +} +} +block_351: +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_79 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_80 = l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__4; +x_81 = lean_box_uint64(x_78); +x_82 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_82, 0, x_76); +lean_ctor_set(x_82, 1, x_79); +lean_ctor_set(x_82, 2, x_81); +lean_ctor_set(x_82, 3, x_80); +x_83 = l_Lake_BuildTrace_mix(x_22, x_82); +x_84 = !lean_is_exclusive(x_83); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_83, 0); +lean_dec(x_85); +lean_ctor_set(x_83, 0, x_37); +lean_inc(x_83); +if (lean_is_scalar(x_16)) { + x_86 = lean_alloc_ctor(0, 2, 1); +} else { + x_86 = x_16; +} +lean_ctor_set(x_86, 0, x_13); +lean_ctor_set(x_86, 1, x_83); +lean_ctor_set_uint8(x_86, sizeof(void*)*2, x_14); +if (x_49 == 0) +{ +uint8_t x_262; +x_262 = 0; +x_87 = x_262; +goto block_261; +} +else +{ +uint8_t x_263; +x_263 = 1; +x_87 = x_263; +goto block_261; +} +block_261: +{ +lean_object* x_88; +if (x_87 == 0) +{ +lean_object* x_257; +x_257 = lean_box(0); +x_88 = x_257; +goto block_256; +} +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_258 = l_Lake_Module_clearOutputHashes___closed__2; +x_259 = l_Lean_modToFilePath(x_45, x_4, x_258); +x_260 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_260, 0, x_259); +x_88 = x_260; +goto block_256; +} +block_256: { lean_object* x_89; -x_89 = lean_ctor_get(x_87, 0); -lean_ctor_set(x_79, 0, x_89); -lean_ctor_set(x_87, 0, x_79); -return x_87; -} -else +if (x_87 == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_87, 0); -x_91 = lean_ctor_get(x_87, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_87); -lean_ctor_set(x_79, 0, x_90); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_79); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -else -{ -uint8_t x_93; -x_93 = !lean_is_exclusive(x_87); -if (x_93 == 0) -{ -lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_94 = lean_ctor_get(x_87, 0); -x_95 = lean_io_error_to_string(x_94); -x_96 = 3; -x_97 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set_uint8(x_97, sizeof(void*)*1, x_96); -x_98 = lean_array_get_size(x_86); -x_99 = lean_array_push(x_86, x_97); -lean_ctor_set(x_81, 0, x_99); -lean_ctor_set_tag(x_79, 1); -lean_ctor_set(x_79, 0, x_98); -lean_ctor_set_tag(x_87, 0); -lean_ctor_set(x_87, 0, x_79); -return x_87; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_100 = lean_ctor_get(x_87, 0); -x_101 = lean_ctor_get(x_87, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_87); -x_102 = lean_io_error_to_string(x_100); -x_103 = 3; -x_104 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set_uint8(x_104, sizeof(void*)*1, x_103); -x_105 = lean_array_get_size(x_86); -x_106 = lean_array_push(x_86, x_104); -lean_ctor_set(x_81, 0, x_106); -lean_ctor_set_tag(x_79, 1); -lean_ctor_set(x_79, 0, x_105); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_79); -lean_ctor_set(x_107, 1, x_101); -return x_107; -} -} -} -else -{ -lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; -x_108 = lean_ctor_get(x_81, 0); -x_109 = lean_ctor_get_uint8(x_81, sizeof(void*)*2); -x_110 = lean_ctor_get(x_81, 1); -lean_inc(x_110); -lean_inc(x_108); -lean_dec(x_81); -x_111 = l_Lake_Module_cacheOutputHashes(x_1, x_84); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_114 = x_111; -} else { - lean_dec_ref(x_111); - x_114 = lean_box(0); -} -x_115 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_115, 0, x_108); -lean_ctor_set(x_115, 1, x_110); -lean_ctor_set_uint8(x_115, sizeof(void*)*2, x_109); -lean_ctor_set(x_79, 1, x_115); -lean_ctor_set(x_79, 0, x_112); -if (lean_is_scalar(x_114)) { - x_116 = lean_alloc_ctor(0, 2, 0); -} else { - x_116 = x_114; -} -lean_ctor_set(x_116, 0, x_79); -lean_ctor_set(x_116, 1, x_113); -return x_116; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_117 = lean_ctor_get(x_111, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_111, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_119 = x_111; -} else { - lean_dec_ref(x_111); - x_119 = lean_box(0); -} -x_120 = lean_io_error_to_string(x_117); -x_121 = 3; -x_122 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set_uint8(x_122, sizeof(void*)*1, x_121); -x_123 = lean_array_get_size(x_108); -x_124 = lean_array_push(x_108, x_122); -x_125 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_110); -lean_ctor_set_uint8(x_125, sizeof(void*)*2, x_109); -lean_ctor_set_tag(x_79, 1); -lean_ctor_set(x_79, 1, x_125); -lean_ctor_set(x_79, 0, x_123); -if (lean_is_scalar(x_119)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_119; - lean_ctor_set_tag(x_126, 0); -} -lean_ctor_set(x_126, 0, x_79); -lean_ctor_set(x_126, 1, x_118); -return x_126; -} -} -} -else -{ -lean_object* x_127; uint8_t x_128; -x_127 = lean_ctor_get(x_8, 0); -lean_inc(x_127); -lean_dec(x_8); -x_128 = lean_ctor_get_uint8(x_127, sizeof(void*)*1 + 1); -lean_dec(x_127); -if (x_128 == 0) -{ -lean_object* x_129; uint8_t x_130; -x_129 = lean_ctor_get(x_78, 1); -lean_inc(x_129); -lean_dec(x_78); -x_130 = !lean_is_exclusive(x_81); -if (x_130 == 0) -{ -lean_object* x_131; lean_object* x_132; -x_131 = lean_ctor_get(x_81, 0); -x_132 = l_Lake_Module_cacheOutputHashes(x_1, x_129); -if (lean_obj_tag(x_132) == 0) -{ -uint8_t x_133; -x_133 = !lean_is_exclusive(x_132); -if (x_133 == 0) -{ -lean_object* x_134; -x_134 = lean_ctor_get(x_132, 0); -lean_ctor_set(x_79, 0, x_134); -lean_ctor_set(x_132, 0, x_79); -return x_132; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_132, 0); -x_136 = lean_ctor_get(x_132, 1); -lean_inc(x_136); -lean_inc(x_135); -lean_dec(x_132); -lean_ctor_set(x_79, 0, x_135); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_79); -lean_ctor_set(x_137, 1, x_136); -return x_137; -} -} -else -{ -uint8_t x_138; -x_138 = !lean_is_exclusive(x_132); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_139 = lean_ctor_get(x_132, 0); -x_140 = lean_io_error_to_string(x_139); -x_141 = 3; -x_142 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set_uint8(x_142, sizeof(void*)*1, x_141); -x_143 = lean_array_get_size(x_131); -x_144 = lean_array_push(x_131, x_142); -lean_ctor_set(x_81, 0, x_144); -lean_ctor_set_tag(x_79, 1); -lean_ctor_set(x_79, 0, x_143); -lean_ctor_set_tag(x_132, 0); -lean_ctor_set(x_132, 0, x_79); -return x_132; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_145 = lean_ctor_get(x_132, 0); -x_146 = lean_ctor_get(x_132, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_132); -x_147 = lean_io_error_to_string(x_145); -x_148 = 3; -x_149 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set_uint8(x_149, sizeof(void*)*1, x_148); -x_150 = lean_array_get_size(x_131); -x_151 = lean_array_push(x_131, x_149); -lean_ctor_set(x_81, 0, x_151); -lean_ctor_set_tag(x_79, 1); -lean_ctor_set(x_79, 0, x_150); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_79); -lean_ctor_set(x_152, 1, x_146); -return x_152; -} -} -} -else -{ -lean_object* x_153; uint8_t x_154; lean_object* x_155; lean_object* x_156; -x_153 = lean_ctor_get(x_81, 0); -x_154 = lean_ctor_get_uint8(x_81, sizeof(void*)*2); -x_155 = lean_ctor_get(x_81, 1); -lean_inc(x_155); -lean_inc(x_153); -lean_dec(x_81); -x_156 = l_Lake_Module_cacheOutputHashes(x_1, x_129); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_159 = x_156; -} else { - lean_dec_ref(x_156); - x_159 = lean_box(0); -} -x_160 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_160, 0, x_153); -lean_ctor_set(x_160, 1, x_155); -lean_ctor_set_uint8(x_160, sizeof(void*)*2, x_154); -lean_ctor_set(x_79, 1, x_160); -lean_ctor_set(x_79, 0, x_157); -if (lean_is_scalar(x_159)) { - x_161 = lean_alloc_ctor(0, 2, 0); -} else { - x_161 = x_159; -} -lean_ctor_set(x_161, 0, x_79); -lean_ctor_set(x_161, 1, x_158); -return x_161; -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_162 = lean_ctor_get(x_156, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_156, 1); -lean_inc(x_163); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_164 = x_156; -} else { - lean_dec_ref(x_156); - x_164 = lean_box(0); -} -x_165 = lean_io_error_to_string(x_162); -x_166 = 3; -x_167 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set_uint8(x_167, sizeof(void*)*1, x_166); -x_168 = lean_array_get_size(x_153); -x_169 = lean_array_push(x_153, x_167); -x_170 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_170, 0, x_169); -lean_ctor_set(x_170, 1, x_155); -lean_ctor_set_uint8(x_170, sizeof(void*)*2, x_154); -lean_ctor_set_tag(x_79, 1); -lean_ctor_set(x_79, 1, x_170); -lean_ctor_set(x_79, 0, x_168); -if (lean_is_scalar(x_164)) { - x_171 = lean_alloc_ctor(0, 2, 0); -} else { - x_171 = x_164; - lean_ctor_set_tag(x_171, 0); -} -lean_ctor_set(x_171, 0, x_79); -lean_ctor_set(x_171, 1, x_163); -return x_171; -} -} -} -else -{ -uint8_t x_172; -lean_dec(x_1); -x_172 = !lean_is_exclusive(x_78); -if (x_172 == 0) -{ -lean_object* x_173; uint8_t x_174; -x_173 = lean_ctor_get(x_78, 0); -lean_dec(x_173); -x_174 = !lean_is_exclusive(x_81); -if (x_174 == 0) -{ -lean_object* x_175; -x_175 = lean_box(0); -lean_ctor_set(x_79, 0, x_175); -return x_78; -} -else -{ -lean_object* x_176; uint8_t x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_176 = lean_ctor_get(x_81, 0); -x_177 = lean_ctor_get_uint8(x_81, sizeof(void*)*2); -x_178 = lean_ctor_get(x_81, 1); -lean_inc(x_178); -lean_inc(x_176); -lean_dec(x_81); -x_179 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_179, 0, x_176); -lean_ctor_set(x_179, 1, x_178); -lean_ctor_set_uint8(x_179, sizeof(void*)*2, x_177); -x_180 = lean_box(0); -lean_ctor_set(x_79, 1, x_179); -lean_ctor_set(x_79, 0, x_180); -return x_78; -} -} -else -{ -lean_object* x_181; lean_object* x_182; uint8_t x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_181 = lean_ctor_get(x_78, 1); -lean_inc(x_181); -lean_dec(x_78); -x_182 = lean_ctor_get(x_81, 0); -lean_inc(x_182); -x_183 = lean_ctor_get_uint8(x_81, sizeof(void*)*2); -x_184 = lean_ctor_get(x_81, 1); -lean_inc(x_184); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_185 = x_81; -} else { - lean_dec_ref(x_81); - x_185 = lean_box(0); -} -if (lean_is_scalar(x_185)) { - x_186 = lean_alloc_ctor(0, 2, 1); -} else { - x_186 = x_185; -} -lean_ctor_set(x_186, 0, x_182); -lean_ctor_set(x_186, 1, x_184); -lean_ctor_set_uint8(x_186, sizeof(void*)*2, x_183); -x_187 = lean_box(0); -lean_ctor_set(x_79, 1, x_186); -lean_ctor_set(x_79, 0, x_187); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_79); -lean_ctor_set(x_188, 1, x_181); -return x_188; -} -} -} -} -else -{ -lean_object* x_189; lean_object* x_190; uint8_t x_191; -x_189 = lean_ctor_get(x_79, 1); -x_190 = lean_ctor_get(x_79, 0); -lean_inc(x_189); -lean_inc(x_190); -lean_dec(x_79); -x_191 = lean_unbox(x_190); -lean_dec(x_190); -if (x_191 == 0) -{ -lean_object* x_192; lean_object* x_193; uint8_t x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_8); -x_192 = lean_ctor_get(x_78, 1); -lean_inc(x_192); -lean_dec(x_78); -x_193 = lean_ctor_get(x_189, 0); -lean_inc(x_193); -x_194 = lean_ctor_get_uint8(x_189, sizeof(void*)*2); -x_195 = lean_ctor_get(x_189, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_196 = x_189; -} else { - lean_dec_ref(x_189); - x_196 = lean_box(0); -} -x_197 = l_Lake_Module_cacheOutputHashes(x_1, x_192); -if (lean_obj_tag(x_197) == 0) -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_198 = lean_ctor_get(x_197, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_197, 1); -lean_inc(x_199); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_200 = x_197; -} else { - lean_dec_ref(x_197); - x_200 = lean_box(0); -} -if (lean_is_scalar(x_196)) { - x_201 = lean_alloc_ctor(0, 2, 1); -} else { - x_201 = x_196; -} -lean_ctor_set(x_201, 0, x_193); -lean_ctor_set(x_201, 1, x_195); -lean_ctor_set_uint8(x_201, sizeof(void*)*2, x_194); -x_202 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_202, 0, x_198); -lean_ctor_set(x_202, 1, x_201); -if (lean_is_scalar(x_200)) { - x_203 = lean_alloc_ctor(0, 2, 0); -} else { - x_203 = x_200; -} -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_199); -return x_203; -} -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_204 = lean_ctor_get(x_197, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_197, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_206 = x_197; -} else { - lean_dec_ref(x_197); - x_206 = lean_box(0); -} -x_207 = lean_io_error_to_string(x_204); -x_208 = 3; -x_209 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set_uint8(x_209, sizeof(void*)*1, x_208); -x_210 = lean_array_get_size(x_193); -x_211 = lean_array_push(x_193, x_209); -if (lean_is_scalar(x_196)) { - x_212 = lean_alloc_ctor(0, 2, 1); -} else { - x_212 = x_196; -} -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_195); -lean_ctor_set_uint8(x_212, sizeof(void*)*2, x_194); -x_213 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_213, 0, x_210); -lean_ctor_set(x_213, 1, x_212); -if (lean_is_scalar(x_206)) { - x_214 = lean_alloc_ctor(0, 2, 0); -} else { - x_214 = x_206; - lean_ctor_set_tag(x_214, 0); -} -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_205); -return x_214; -} -} -else -{ -lean_object* x_215; uint8_t x_216; -x_215 = lean_ctor_get(x_8, 0); -lean_inc(x_215); -lean_dec(x_8); -x_216 = lean_ctor_get_uint8(x_215, sizeof(void*)*1 + 1); -lean_dec(x_215); -if (x_216 == 0) -{ -lean_object* x_217; lean_object* x_218; uint8_t x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_217 = lean_ctor_get(x_78, 1); -lean_inc(x_217); -lean_dec(x_78); -x_218 = lean_ctor_get(x_189, 0); -lean_inc(x_218); -x_219 = lean_ctor_get_uint8(x_189, sizeof(void*)*2); -x_220 = lean_ctor_get(x_189, 1); -lean_inc(x_220); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_221 = x_189; -} else { - lean_dec_ref(x_189); - x_221 = lean_box(0); -} -x_222 = l_Lake_Module_cacheOutputHashes(x_1, x_217); -if (lean_obj_tag(x_222) == 0) -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); -lean_inc(x_224); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_225 = x_222; -} else { - lean_dec_ref(x_222); - x_225 = lean_box(0); -} -if (lean_is_scalar(x_221)) { - x_226 = lean_alloc_ctor(0, 2, 1); -} else { - x_226 = x_221; -} -lean_ctor_set(x_226, 0, x_218); -lean_ctor_set(x_226, 1, x_220); -lean_ctor_set_uint8(x_226, sizeof(void*)*2, x_219); -x_227 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_227, 0, x_223); -lean_ctor_set(x_227, 1, x_226); -if (lean_is_scalar(x_225)) { - x_228 = lean_alloc_ctor(0, 2, 0); -} else { - x_228 = x_225; -} -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_224); -return x_228; -} -else -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_229 = lean_ctor_get(x_222, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_222, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_231 = x_222; -} else { - lean_dec_ref(x_222); - x_231 = lean_box(0); -} -x_232 = lean_io_error_to_string(x_229); -x_233 = 3; -x_234 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set_uint8(x_234, sizeof(void*)*1, x_233); -x_235 = lean_array_get_size(x_218); -x_236 = lean_array_push(x_218, x_234); -if (lean_is_scalar(x_221)) { - x_237 = lean_alloc_ctor(0, 2, 1); -} else { - x_237 = x_221; -} -lean_ctor_set(x_237, 0, x_236); -lean_ctor_set(x_237, 1, x_220); -lean_ctor_set_uint8(x_237, sizeof(void*)*2, x_219); -x_238 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_238, 0, x_235); -lean_ctor_set(x_238, 1, x_237); -if (lean_is_scalar(x_231)) { - x_239 = lean_alloc_ctor(0, 2, 0); -} else { - x_239 = x_231; - lean_ctor_set_tag(x_239, 0); -} -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_230); -return x_239; -} -} -else -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; uint8_t x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_dec(x_1); -x_240 = lean_ctor_get(x_78, 1); -lean_inc(x_240); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_241 = x_78; -} else { - lean_dec_ref(x_78); - x_241 = lean_box(0); -} -x_242 = lean_ctor_get(x_189, 0); -lean_inc(x_242); -x_243 = lean_ctor_get_uint8(x_189, sizeof(void*)*2); -x_244 = lean_ctor_get(x_189, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_245 = x_189; -} else { - lean_dec_ref(x_189); - x_245 = lean_box(0); -} -if (lean_is_scalar(x_245)) { - x_246 = lean_alloc_ctor(0, 2, 1); -} else { - x_246 = x_245; -} -lean_ctor_set(x_246, 0, x_242); -lean_ctor_set(x_246, 1, x_244); -lean_ctor_set_uint8(x_246, sizeof(void*)*2, x_243); -x_247 = lean_box(0); -x_248 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_246); -if (lean_is_scalar(x_241)) { - x_249 = lean_alloc_ctor(0, 2, 0); -} else { - x_249 = x_241; -} -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_240); -return x_249; -} -} -} -} -else -{ -uint8_t x_250; -lean_dec(x_8); -lean_dec(x_1); -x_250 = !lean_is_exclusive(x_78); -if (x_250 == 0) -{ -lean_object* x_251; uint8_t x_252; -x_251 = lean_ctor_get(x_78, 0); -lean_dec(x_251); -x_252 = !lean_is_exclusive(x_79); -if (x_252 == 0) -{ -return x_78; +lean_object* x_252; +lean_dec(x_45); +x_252 = lean_box(0); +x_89 = x_252; +goto block_251; } else { lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_253 = lean_ctor_get(x_79, 0); -x_254 = lean_ctor_get(x_79, 1); -lean_inc(x_254); -lean_inc(x_253); -lean_dec(x_79); -x_255 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_255, 0, x_253); -lean_ctor_set(x_255, 1, x_254); -lean_ctor_set(x_78, 0, x_255); -return x_78; +x_253 = l_Lake_Module_clearOutputHashes___closed__3; +x_254 = l_Lean_modToFilePath(x_45, x_4, x_253); +lean_dec(x_45); +x_255 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_255, 0, x_254); +x_89 = x_255; +goto block_251; } +block_251: +{ +lean_object* x_90; uint8_t x_246; +x_246 = l_Lake_Module_cacheOutputHashes___lambda__1___closed__1; +if (x_246 == 0) +{ +lean_object* x_247; +x_247 = lean_box(0); +x_90 = x_247; +goto block_245; } else { -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; -x_256 = lean_ctor_get(x_78, 1); -lean_inc(x_256); -lean_dec(x_78); -x_257 = lean_ctor_get(x_79, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_79, 1); -lean_inc(x_258); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_259 = x_79; -} else { - lean_dec_ref(x_79); - x_259 = lean_box(0); +lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_248 = l_Lake_Module_clearOutputHashes___closed__6; +x_249 = l_Lean_modToFilePath(x_55, x_4, x_248); +x_250 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_250, 0, x_249); +x_90 = x_250; +goto block_245; } -if (lean_is_scalar(x_259)) { - x_260 = lean_alloc_ctor(1, 2, 0); -} else { - x_260 = x_259; -} -lean_ctor_set(x_260, 0, x_257); -lean_ctor_set(x_260, 1, x_258); -x_261 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_256); -return x_261; -} -} -} -else +block_245: { -uint8_t x_262; -lean_dec(x_8); -lean_dec(x_1); -x_262 = !lean_is_exclusive(x_78); -if (x_262 == 0) -{ -return x_78; -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_263 = lean_ctor_get(x_78, 0); -x_264 = lean_ctor_get(x_78, 1); -lean_inc(x_264); -lean_inc(x_263); -lean_dec(x_78); -x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_263); -lean_ctor_set(x_265, 1, x_264); -return x_265; -} -} -} -else -{ -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; uint8_t x_279; lean_object* x_280; -x_266 = lean_ctor_get(x_62, 1); -x_267 = lean_ctor_get(x_62, 2); -x_268 = lean_ctor_get(x_62, 3); -lean_inc(x_268); -lean_inc(x_267); -lean_inc(x_266); -lean_dec(x_62); -x_269 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_269, 0, x_65); -lean_ctor_set(x_269, 1, x_266); -lean_ctor_set(x_269, 2, x_267); -lean_ctor_set(x_269, 3, x_268); -lean_inc(x_269); -lean_ctor_set(x_58, 1, x_269); -x_270 = lean_ctor_get(x_22, 6); -lean_inc(x_270); -x_271 = l_System_FilePath_normalize(x_270); -lean_inc(x_34); -x_272 = l_Lake_joinRelative(x_34, x_271); -lean_dec(x_271); -x_273 = lean_ctor_get(x_22, 7); -lean_inc(x_273); -x_274 = l_System_FilePath_normalize(x_273); -lean_inc(x_272); -x_275 = l_Lake_joinRelative(x_272, x_274); -lean_dec(x_274); -x_276 = l_Lake_Module_recBuildLean___lambda__1___closed__9; -x_277 = l_Lean_modToFilePath(x_275, x_2, x_276); -x_278 = lean_ctor_get(x_59, 3); -lean_inc(x_278); -lean_dec(x_59); -x_279 = 3; +lean_object* x_91; uint8_t x_92; lean_object* x_93; +x_91 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_91, 0, x_38); +lean_ctor_set(x_91, 1, x_48); +lean_ctor_set(x_91, 2, x_88); +lean_ctor_set(x_91, 3, x_89); +lean_ctor_set(x_91, 4, x_52); +lean_ctor_set(x_91, 5, x_58); +lean_ctor_set(x_91, 6, x_90); +x_92 = 3; +lean_inc(x_10); +lean_inc(x_9); lean_inc(x_8); +lean_inc(x_91); +lean_inc(x_7); lean_inc_n(x_1, 2); -x_280 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1(x_1, x_2, x_5, x_11, x_12, x_21, x_22, x_23, x_26, x_34, x_40, x_42, x_44, x_272, x_275, x_1, x_269, x_277, x_279, x_278, x_6, x_7, x_8, x_58, x_57); -lean_dec(x_278); -lean_dec(x_277); -lean_dec(x_269); -lean_dec(x_21); -if (lean_obj_tag(x_280) == 0) +x_93 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1(x_1, x_4, x_3, x_6, x_7, x_23, x_24, x_25, x_28, x_39, x_55, x_64, x_77, x_91, x_1, x_83, x_60, x_92, x_65, x_8, x_9, x_10, x_86, x_12); +lean_dec(x_60); +lean_dec(x_83); +lean_dec(x_24); +lean_dec(x_23); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_281; -x_281 = lean_ctor_get(x_280, 0); -lean_inc(x_281); -if (lean_obj_tag(x_281) == 0) +lean_object* x_94; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; -x_282 = lean_ctor_get(x_281, 1); -lean_inc(x_282); -x_283 = lean_ctor_get(x_281, 0); -lean_inc(x_283); -if (lean_is_exclusive(x_281)) { - lean_ctor_release(x_281, 0); - lean_ctor_release(x_281, 1); - x_284 = x_281; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +x_96 = lean_ctor_get(x_93, 1); +lean_inc(x_96); +lean_dec(x_93); +x_97 = !lean_is_exclusive(x_94); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_98 = lean_ctor_get(x_94, 0); +x_99 = lean_ctor_get(x_94, 1); +lean_dec(x_99); +x_100 = !lean_is_exclusive(x_95); +if (x_100 == 0) +{ +lean_object* x_101; uint8_t x_102; lean_object* x_103; uint8_t x_104; +x_101 = lean_ctor_get(x_95, 0); +x_102 = lean_ctor_get_uint8(x_95, sizeof(void*)*2); +x_103 = lean_ctor_get(x_95, 1); +lean_inc(x_103); +lean_inc(x_101); +x_104 = lean_unbox(x_98); +lean_dec(x_98); +if (x_104 == 0) +{ +lean_object* x_105; +x_105 = l_Lake_Module_cacheOutputHashes(x_1, x_96); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_103); +lean_dec(x_101); +lean_free_object(x_94); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_106, x_7, x_8, x_9, x_10, x_95, x_107); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_106); +return x_108; +} +else +{ +uint8_t x_109; +lean_dec(x_95); +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_109 = !lean_is_exclusive(x_105); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_110 = lean_ctor_get(x_105, 0); +x_111 = lean_io_error_to_string(x_110); +x_112 = 3; +x_113 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set_uint8(x_113, sizeof(void*)*1, x_112); +x_114 = lean_array_get_size(x_101); +x_115 = lean_array_push(x_101, x_113); +x_116 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_103); +lean_ctor_set_uint8(x_116, sizeof(void*)*2, x_102); +lean_ctor_set_tag(x_94, 1); +lean_ctor_set(x_94, 1, x_116); +lean_ctor_set(x_94, 0, x_114); +lean_ctor_set_tag(x_105, 0); +lean_ctor_set(x_105, 0, x_94); +return x_105; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t 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_105, 0); +x_118 = lean_ctor_get(x_105, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_105); +x_119 = lean_io_error_to_string(x_117); +x_120 = 3; +x_121 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set_uint8(x_121, sizeof(void*)*1, x_120); +x_122 = lean_array_get_size(x_101); +x_123 = lean_array_push(x_101, x_121); +x_124 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_103); +lean_ctor_set_uint8(x_124, sizeof(void*)*2, x_102); +lean_ctor_set_tag(x_94, 1); +lean_ctor_set(x_94, 1, x_124); +lean_ctor_set(x_94, 0, x_122); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_94); +lean_ctor_set(x_125, 1, x_118); +return x_125; +} +} +} +else +{ +lean_object* x_126; uint8_t x_127; +x_126 = lean_ctor_get(x_10, 0); +lean_inc(x_126); +x_127 = lean_ctor_get_uint8(x_126, sizeof(void*)*1 + 1); +lean_dec(x_126); +if (x_127 == 0) +{ +lean_object* x_128; +x_128 = l_Lake_Module_cacheOutputHashes(x_1, x_96); +if (lean_obj_tag(x_128) == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_103); +lean_dec(x_101); +lean_free_object(x_94); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_129, x_7, x_8, x_9, x_10, x_95, x_130); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_129); +return x_131; +} +else +{ +uint8_t x_132; +lean_dec(x_95); +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_132 = !lean_is_exclusive(x_128); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_133 = lean_ctor_get(x_128, 0); +x_134 = lean_io_error_to_string(x_133); +x_135 = 3; +x_136 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set_uint8(x_136, sizeof(void*)*1, x_135); +x_137 = lean_array_get_size(x_101); +x_138 = lean_array_push(x_101, x_136); +x_139 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_103); +lean_ctor_set_uint8(x_139, sizeof(void*)*2, x_102); +lean_ctor_set_tag(x_94, 1); +lean_ctor_set(x_94, 1, x_139); +lean_ctor_set(x_94, 0, x_137); +lean_ctor_set_tag(x_128, 0); +lean_ctor_set(x_128, 0, x_94); +return x_128; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_140 = lean_ctor_get(x_128, 0); +x_141 = lean_ctor_get(x_128, 1); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_128); +x_142 = lean_io_error_to_string(x_140); +x_143 = 3; +x_144 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set_uint8(x_144, sizeof(void*)*1, x_143); +x_145 = lean_array_get_size(x_101); +x_146 = lean_array_push(x_101, x_144); +x_147 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_103); +lean_ctor_set_uint8(x_147, sizeof(void*)*2, x_102); +lean_ctor_set_tag(x_94, 1); +lean_ctor_set(x_94, 1, x_147); +lean_ctor_set(x_94, 0, x_145); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_94); +lean_ctor_set(x_148, 1, x_141); +return x_148; +} +} +} +else +{ +lean_object* x_149; lean_object* x_150; +lean_dec(x_103); +lean_dec(x_101); +lean_free_object(x_94); +lean_dec(x_1); +x_149 = lean_box(0); +x_150 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_149, x_7, x_8, x_9, x_10, x_95, x_96); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_150; +} +} +} +else +{ +lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_151 = lean_ctor_get(x_95, 0); +x_152 = lean_ctor_get_uint8(x_95, sizeof(void*)*2); +x_153 = lean_ctor_get(x_95, 1); +lean_inc(x_153); +lean_inc(x_151); +lean_dec(x_95); +lean_inc(x_153); +lean_inc(x_151); +x_154 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_153); +lean_ctor_set_uint8(x_154, sizeof(void*)*2, x_152); +x_155 = lean_unbox(x_98); +lean_dec(x_98); +if (x_155 == 0) +{ +lean_object* x_156; +x_156 = l_Lake_Module_cacheOutputHashes(x_1, x_96); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_153); +lean_dec(x_151); +lean_free_object(x_94); +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +lean_dec(x_156); +x_159 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_157, x_7, x_8, x_9, x_10, x_154, x_158); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_157); +return x_159; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_154); +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_160 = lean_ctor_get(x_156, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_156, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_162 = x_156; } else { - lean_dec_ref(x_281); + lean_dec_ref(x_156); + x_162 = lean_box(0); +} +x_163 = lean_io_error_to_string(x_160); +x_164 = 3; +x_165 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set_uint8(x_165, sizeof(void*)*1, x_164); +x_166 = lean_array_get_size(x_151); +x_167 = lean_array_push(x_151, x_165); +x_168 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_153); +lean_ctor_set_uint8(x_168, sizeof(void*)*2, x_152); +lean_ctor_set_tag(x_94, 1); +lean_ctor_set(x_94, 1, x_168); +lean_ctor_set(x_94, 0, x_166); +if (lean_is_scalar(x_162)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_162; + lean_ctor_set_tag(x_169, 0); +} +lean_ctor_set(x_169, 0, x_94); +lean_ctor_set(x_169, 1, x_161); +return x_169; +} +} +else +{ +lean_object* x_170; uint8_t x_171; +x_170 = lean_ctor_get(x_10, 0); +lean_inc(x_170); +x_171 = lean_ctor_get_uint8(x_170, sizeof(void*)*1 + 1); +lean_dec(x_170); +if (x_171 == 0) +{ +lean_object* x_172; +x_172 = l_Lake_Module_cacheOutputHashes(x_1, x_96); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_153); +lean_dec(x_151); +lean_free_object(x_94); +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 1); +lean_inc(x_174); +lean_dec(x_172); +x_175 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_173, x_7, x_8, x_9, x_10, x_154, x_174); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_173); +return x_175; +} +else +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_dec(x_154); +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_176 = lean_ctor_get(x_172, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_172, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_178 = x_172; +} else { + lean_dec_ref(x_172); + x_178 = lean_box(0); +} +x_179 = lean_io_error_to_string(x_176); +x_180 = 3; +x_181 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set_uint8(x_181, sizeof(void*)*1, x_180); +x_182 = lean_array_get_size(x_151); +x_183 = lean_array_push(x_151, x_181); +x_184 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_153); +lean_ctor_set_uint8(x_184, sizeof(void*)*2, x_152); +lean_ctor_set_tag(x_94, 1); +lean_ctor_set(x_94, 1, x_184); +lean_ctor_set(x_94, 0, x_182); +if (lean_is_scalar(x_178)) { + x_185 = lean_alloc_ctor(0, 2, 0); +} else { + x_185 = x_178; + lean_ctor_set_tag(x_185, 0); +} +lean_ctor_set(x_185, 0, x_94); +lean_ctor_set(x_185, 1, x_177); +return x_185; +} +} +else +{ +lean_object* x_186; lean_object* x_187; +lean_dec(x_153); +lean_dec(x_151); +lean_free_object(x_94); +lean_dec(x_1); +x_186 = lean_box(0); +x_187 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_186, x_7, x_8, x_9, x_10, x_154, x_96); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_187; +} +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; uint8_t x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; +x_188 = lean_ctor_get(x_94, 0); +lean_inc(x_188); +lean_dec(x_94); +x_189 = lean_ctor_get(x_95, 0); +lean_inc(x_189); +x_190 = lean_ctor_get_uint8(x_95, sizeof(void*)*2); +x_191 = lean_ctor_get(x_95, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_192 = x_95; +} else { + lean_dec_ref(x_95); + x_192 = lean_box(0); +} +lean_inc(x_191); +lean_inc(x_189); +if (lean_is_scalar(x_192)) { + x_193 = lean_alloc_ctor(0, 2, 1); +} else { + x_193 = x_192; +} +lean_ctor_set(x_193, 0, x_189); +lean_ctor_set(x_193, 1, x_191); +lean_ctor_set_uint8(x_193, sizeof(void*)*2, x_190); +x_194 = lean_unbox(x_188); +lean_dec(x_188); +if (x_194 == 0) +{ +lean_object* x_195; +x_195 = l_Lake_Module_cacheOutputHashes(x_1, x_96); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_191); +lean_dec(x_189); +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +lean_dec(x_195); +x_198 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_196, x_7, x_8, x_9, x_10, x_193, x_197); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_196); +return x_198; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t 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_dec(x_193); +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_199 = lean_ctor_get(x_195, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_195, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + lean_ctor_release(x_195, 1); + x_201 = x_195; +} else { + lean_dec_ref(x_195); + x_201 = lean_box(0); +} +x_202 = lean_io_error_to_string(x_199); +x_203 = 3; +x_204 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_204, 0, x_202); +lean_ctor_set_uint8(x_204, sizeof(void*)*1, x_203); +x_205 = lean_array_get_size(x_189); +x_206 = lean_array_push(x_189, x_204); +x_207 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_191); +lean_ctor_set_uint8(x_207, sizeof(void*)*2, x_190); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_205); +lean_ctor_set(x_208, 1, x_207); +if (lean_is_scalar(x_201)) { + x_209 = lean_alloc_ctor(0, 2, 0); +} else { + x_209 = x_201; + lean_ctor_set_tag(x_209, 0); +} +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_200); +return x_209; +} +} +else +{ +lean_object* x_210; uint8_t x_211; +x_210 = lean_ctor_get(x_10, 0); +lean_inc(x_210); +x_211 = lean_ctor_get_uint8(x_210, sizeof(void*)*1 + 1); +lean_dec(x_210); +if (x_211 == 0) +{ +lean_object* x_212; +x_212 = l_Lake_Module_cacheOutputHashes(x_1, x_96); +if (lean_obj_tag(x_212) == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_191); +lean_dec(x_189); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +x_215 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_213, x_7, x_8, x_9, x_10, x_193, x_214); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_213); +return x_215; +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +lean_dec(x_193); +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_216 = lean_ctor_get(x_212, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_212, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_218 = x_212; +} else { + lean_dec_ref(x_212); + x_218 = lean_box(0); +} +x_219 = lean_io_error_to_string(x_216); +x_220 = 3; +x_221 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set_uint8(x_221, sizeof(void*)*1, x_220); +x_222 = lean_array_get_size(x_189); +x_223 = lean_array_push(x_189, x_221); +x_224 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_191); +lean_ctor_set_uint8(x_224, sizeof(void*)*2, x_190); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_222); +lean_ctor_set(x_225, 1, x_224); +if (lean_is_scalar(x_218)) { + x_226 = lean_alloc_ctor(0, 2, 0); +} else { + x_226 = x_218; + lean_ctor_set_tag(x_226, 0); +} +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_217); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; +lean_dec(x_191); +lean_dec(x_189); +lean_dec(x_1); +x_227 = lean_box(0); +x_228 = l_Lake_Module_recFetchInput___lambda__3(x_91, x_227, x_7, x_8, x_9, x_10, x_193, x_96); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_228; +} +} +} +} +else +{ +uint8_t x_229; +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_229 = !lean_is_exclusive(x_93); +if (x_229 == 0) +{ +lean_object* x_230; uint8_t x_231; +x_230 = lean_ctor_get(x_93, 0); +lean_dec(x_230); +x_231 = !lean_is_exclusive(x_94); +if (x_231 == 0) +{ +return x_93; +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_94, 0); +x_233 = lean_ctor_get(x_94, 1); +lean_inc(x_233); +lean_inc(x_232); +lean_dec(x_94); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_232); +lean_ctor_set(x_234, 1, x_233); +lean_ctor_set(x_93, 0, x_234); +return x_93; +} +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_235 = lean_ctor_get(x_93, 1); +lean_inc(x_235); +lean_dec(x_93); +x_236 = lean_ctor_get(x_94, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_94, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_238 = x_94; +} else { + lean_dec_ref(x_94); + x_238 = lean_box(0); +} +if (lean_is_scalar(x_238)) { + x_239 = lean_alloc_ctor(1, 2, 0); +} else { + x_239 = x_238; +} +lean_ctor_set(x_239, 0, x_236); +lean_ctor_set(x_239, 1, x_237); +x_240 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_235); +return x_240; +} +} +} +else +{ +uint8_t x_241; +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_241 = !lean_is_exclusive(x_93); +if (x_241 == 0) +{ +return x_93; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_93, 0); +x_243 = lean_ctor_get(x_93, 1); +lean_inc(x_243); +lean_inc(x_242); +lean_dec(x_93); +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +return x_244; +} +} +} +} +} +} +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; +x_264 = lean_ctor_get(x_83, 1); +x_265 = lean_ctor_get(x_83, 2); +x_266 = lean_ctor_get(x_83, 3); +lean_inc(x_266); +lean_inc(x_265); +lean_inc(x_264); +lean_dec(x_83); +x_267 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_267, 0, x_37); +lean_ctor_set(x_267, 1, x_264); +lean_ctor_set(x_267, 2, x_265); +lean_ctor_set(x_267, 3, x_266); +lean_inc(x_267); +if (lean_is_scalar(x_16)) { + x_268 = lean_alloc_ctor(0, 2, 1); +} else { + x_268 = x_16; +} +lean_ctor_set(x_268, 0, x_13); +lean_ctor_set(x_268, 1, x_267); +lean_ctor_set_uint8(x_268, sizeof(void*)*2, x_14); +if (x_49 == 0) +{ +uint8_t x_349; +x_349 = 0; +x_269 = x_349; +goto block_348; +} +else +{ +uint8_t x_350; +x_350 = 1; +x_269 = x_350; +goto block_348; +} +block_348: +{ +lean_object* x_270; +if (x_269 == 0) +{ +lean_object* x_344; +x_344 = lean_box(0); +x_270 = x_344; +goto block_343; +} +else +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; +x_345 = l_Lake_Module_clearOutputHashes___closed__2; +x_346 = l_Lean_modToFilePath(x_45, x_4, x_345); +x_347 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_347, 0, x_346); +x_270 = x_347; +goto block_343; +} +block_343: +{ +lean_object* x_271; +if (x_269 == 0) +{ +lean_object* x_339; +lean_dec(x_45); +x_339 = lean_box(0); +x_271 = x_339; +goto block_338; +} +else +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_340 = l_Lake_Module_clearOutputHashes___closed__3; +x_341 = l_Lean_modToFilePath(x_45, x_4, x_340); +lean_dec(x_45); +x_342 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_342, 0, x_341); +x_271 = x_342; +goto block_338; +} +block_338: +{ +lean_object* x_272; uint8_t x_333; +x_333 = l_Lake_Module_cacheOutputHashes___lambda__1___closed__1; +if (x_333 == 0) +{ +lean_object* x_334; +x_334 = lean_box(0); +x_272 = x_334; +goto block_332; +} +else +{ +lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_335 = l_Lake_Module_clearOutputHashes___closed__6; +x_336 = l_Lean_modToFilePath(x_55, x_4, x_335); +x_337 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_337, 0, x_336); +x_272 = x_337; +goto block_332; +} +block_332: +{ +lean_object* x_273; uint8_t x_274; lean_object* x_275; +x_273 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_273, 0, x_38); +lean_ctor_set(x_273, 1, x_48); +lean_ctor_set(x_273, 2, x_270); +lean_ctor_set(x_273, 3, x_271); +lean_ctor_set(x_273, 4, x_52); +lean_ctor_set(x_273, 5, x_58); +lean_ctor_set(x_273, 6, x_272); +x_274 = 3; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_273); +lean_inc(x_7); +lean_inc_n(x_1, 2); +x_275 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1(x_1, x_4, x_3, x_6, x_7, x_23, x_24, x_25, x_28, x_39, x_55, x_64, x_77, x_273, x_1, x_267, x_60, x_274, x_65, x_8, x_9, x_10, x_268, x_12); +lean_dec(x_60); +lean_dec(x_267); +lean_dec(x_24); +lean_dec(x_23); +if (lean_obj_tag(x_275) == 0) +{ +lean_object* x_276; +x_276 = lean_ctor_get(x_275, 0); +lean_inc(x_276); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_277 = lean_ctor_get(x_276, 1); +lean_inc(x_277); +x_278 = lean_ctor_get(x_275, 1); +lean_inc(x_278); +lean_dec(x_275); +x_279 = lean_ctor_get(x_276, 0); +lean_inc(x_279); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_280 = x_276; +} else { + lean_dec_ref(x_276); + x_280 = lean_box(0); +} +x_281 = lean_ctor_get(x_277, 0); +lean_inc(x_281); +x_282 = lean_ctor_get_uint8(x_277, sizeof(void*)*2); +x_283 = lean_ctor_get(x_277, 1); +lean_inc(x_283); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_284 = x_277; +} else { + lean_dec_ref(x_277); x_284 = lean_box(0); } -x_285 = lean_unbox(x_283); +lean_inc(x_283); +lean_inc(x_281); +if (lean_is_scalar(x_284)) { + x_285 = lean_alloc_ctor(0, 2, 1); +} else { + x_285 = x_284; +} +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_283); +lean_ctor_set_uint8(x_285, sizeof(void*)*2, x_282); +x_286 = lean_unbox(x_279); +lean_dec(x_279); +if (x_286 == 0) +{ +lean_object* x_287; +x_287 = l_Lake_Module_cacheOutputHashes(x_1, x_278); +if (lean_obj_tag(x_287) == 0) +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_dec(x_283); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; uint8_t x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -lean_dec(x_8); -x_286 = lean_ctor_get(x_280, 1); -lean_inc(x_286); +lean_dec(x_281); lean_dec(x_280); -x_287 = lean_ctor_get(x_282, 0); -lean_inc(x_287); -x_288 = lean_ctor_get_uint8(x_282, sizeof(void*)*2); -x_289 = lean_ctor_get(x_282, 1); +x_288 = lean_ctor_get(x_287, 0); +lean_inc(x_288); +x_289 = lean_ctor_get(x_287, 1); lean_inc(x_289); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_290 = x_282; -} else { - lean_dec_ref(x_282); - x_290 = lean_box(0); -} -x_291 = l_Lake_Module_cacheOutputHashes(x_1, x_286); -if (lean_obj_tag(x_291) == 0) -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_292 = lean_ctor_get(x_291, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_291, 1); -lean_inc(x_293); -if (lean_is_exclusive(x_291)) { - lean_ctor_release(x_291, 0); - lean_ctor_release(x_291, 1); - x_294 = x_291; -} else { - lean_dec_ref(x_291); - x_294 = lean_box(0); -} -if (lean_is_scalar(x_290)) { - x_295 = lean_alloc_ctor(0, 2, 1); -} else { - x_295 = x_290; -} -lean_ctor_set(x_295, 0, x_287); -lean_ctor_set(x_295, 1, x_289); -lean_ctor_set_uint8(x_295, sizeof(void*)*2, x_288); -if (lean_is_scalar(x_284)) { - x_296 = lean_alloc_ctor(0, 2, 0); -} else { - x_296 = x_284; -} -lean_ctor_set(x_296, 0, x_292); -lean_ctor_set(x_296, 1, x_295); -if (lean_is_scalar(x_294)) { - x_297 = lean_alloc_ctor(0, 2, 0); -} else { - x_297 = x_294; -} -lean_ctor_set(x_297, 0, x_296); -lean_ctor_set(x_297, 1, x_293); -return x_297; -} -else -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; uint8_t 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; -x_298 = lean_ctor_get(x_291, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_291, 1); -lean_inc(x_299); -if (lean_is_exclusive(x_291)) { - lean_ctor_release(x_291, 0); - lean_ctor_release(x_291, 1); - x_300 = x_291; -} else { - lean_dec_ref(x_291); - x_300 = lean_box(0); -} -x_301 = lean_io_error_to_string(x_298); -x_302 = 3; -x_303 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_303, 0, x_301); -lean_ctor_set_uint8(x_303, sizeof(void*)*1, x_302); -x_304 = lean_array_get_size(x_287); -x_305 = lean_array_push(x_287, x_303); -if (lean_is_scalar(x_290)) { - x_306 = lean_alloc_ctor(0, 2, 1); -} else { - x_306 = x_290; -} -lean_ctor_set(x_306, 0, x_305); -lean_ctor_set(x_306, 1, x_289); -lean_ctor_set_uint8(x_306, sizeof(void*)*2, x_288); -if (lean_is_scalar(x_284)) { - x_307 = lean_alloc_ctor(1, 2, 0); -} else { - x_307 = x_284; - lean_ctor_set_tag(x_307, 1); -} -lean_ctor_set(x_307, 0, x_304); -lean_ctor_set(x_307, 1, x_306); -if (lean_is_scalar(x_300)) { - x_308 = lean_alloc_ctor(0, 2, 0); -} else { - x_308 = x_300; - lean_ctor_set_tag(x_308, 0); -} -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_299); -return x_308; -} -} -else -{ -lean_object* x_309; uint8_t x_310; -x_309 = lean_ctor_get(x_8, 0); -lean_inc(x_309); +lean_dec(x_287); +x_290 = l_Lake_Module_recFetchInput___lambda__3(x_273, x_288, x_7, x_8, x_9, x_10, x_285, x_289); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); -x_310 = lean_ctor_get_uint8(x_309, sizeof(void*)*1 + 1); -lean_dec(x_309); -if (x_310 == 0) -{ -lean_object* x_311; lean_object* x_312; uint8_t x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_311 = lean_ctor_get(x_280, 1); -lean_inc(x_311); -lean_dec(x_280); -x_312 = lean_ctor_get(x_282, 0); -lean_inc(x_312); -x_313 = lean_ctor_get_uint8(x_282, sizeof(void*)*2); -x_314 = lean_ctor_get(x_282, 1); -lean_inc(x_314); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_315 = x_282; -} else { - lean_dec_ref(x_282); - x_315 = lean_box(0); -} -x_316 = l_Lake_Module_cacheOutputHashes(x_1, x_311); -if (lean_obj_tag(x_316) == 0) -{ -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_317 = lean_ctor_get(x_316, 0); -lean_inc(x_317); -x_318 = lean_ctor_get(x_316, 1); -lean_inc(x_318); -if (lean_is_exclusive(x_316)) { - lean_ctor_release(x_316, 0); - lean_ctor_release(x_316, 1); - x_319 = x_316; -} else { - lean_dec_ref(x_316); - x_319 = lean_box(0); -} -if (lean_is_scalar(x_315)) { - x_320 = lean_alloc_ctor(0, 2, 1); -} else { - x_320 = x_315; -} -lean_ctor_set(x_320, 0, x_312); -lean_ctor_set(x_320, 1, x_314); -lean_ctor_set_uint8(x_320, sizeof(void*)*2, x_313); -if (lean_is_scalar(x_284)) { - x_321 = lean_alloc_ctor(0, 2, 0); -} else { - x_321 = x_284; -} -lean_ctor_set(x_321, 0, x_317); -lean_ctor_set(x_321, 1, x_320); -if (lean_is_scalar(x_319)) { - x_322 = lean_alloc_ctor(0, 2, 0); -} else { - x_322 = x_319; -} -lean_ctor_set(x_322, 0, x_321); -lean_ctor_set(x_322, 1, x_318); -return x_322; +lean_dec(x_7); +lean_dec(x_288); +return x_290; } else { -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_323 = lean_ctor_get(x_316, 0); -lean_inc(x_323); -x_324 = lean_ctor_get(x_316, 1); -lean_inc(x_324); -if (lean_is_exclusive(x_316)) { - lean_ctor_release(x_316, 0); - lean_ctor_release(x_316, 1); - x_325 = x_316; +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t 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_dec(x_285); +lean_dec(x_273); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_291 = lean_ctor_get(x_287, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_287, 1); +lean_inc(x_292); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + x_293 = x_287; } else { - lean_dec_ref(x_316); + lean_dec_ref(x_287); + x_293 = lean_box(0); +} +x_294 = lean_io_error_to_string(x_291); +x_295 = 3; +x_296 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_296, 0, x_294); +lean_ctor_set_uint8(x_296, sizeof(void*)*1, x_295); +x_297 = lean_array_get_size(x_281); +x_298 = lean_array_push(x_281, x_296); +x_299 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_283); +lean_ctor_set_uint8(x_299, sizeof(void*)*2, x_282); +if (lean_is_scalar(x_280)) { + x_300 = lean_alloc_ctor(1, 2, 0); +} else { + x_300 = x_280; + lean_ctor_set_tag(x_300, 1); +} +lean_ctor_set(x_300, 0, x_297); +lean_ctor_set(x_300, 1, x_299); +if (lean_is_scalar(x_293)) { + x_301 = lean_alloc_ctor(0, 2, 0); +} else { + x_301 = x_293; + lean_ctor_set_tag(x_301, 0); +} +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_292); +return x_301; +} +} +else +{ +lean_object* x_302; uint8_t x_303; +x_302 = lean_ctor_get(x_10, 0); +lean_inc(x_302); +x_303 = lean_ctor_get_uint8(x_302, sizeof(void*)*1 + 1); +lean_dec(x_302); +if (x_303 == 0) +{ +lean_object* x_304; +x_304 = l_Lake_Module_cacheOutputHashes(x_1, x_278); +if (lean_obj_tag(x_304) == 0) +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; +lean_dec(x_283); +lean_dec(x_281); +lean_dec(x_280); +x_305 = lean_ctor_get(x_304, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_304, 1); +lean_inc(x_306); +lean_dec(x_304); +x_307 = l_Lake_Module_recFetchInput___lambda__3(x_273, x_305, x_7, x_8, x_9, x_10, x_285, x_306); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_305); +return x_307; +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; +lean_dec(x_285); +lean_dec(x_273); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_308 = lean_ctor_get(x_304, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_304, 1); +lean_inc(x_309); +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + lean_ctor_release(x_304, 1); + x_310 = x_304; +} else { + lean_dec_ref(x_304); + x_310 = lean_box(0); +} +x_311 = lean_io_error_to_string(x_308); +x_312 = 3; +x_313 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_313, 0, x_311); +lean_ctor_set_uint8(x_313, sizeof(void*)*1, x_312); +x_314 = lean_array_get_size(x_281); +x_315 = lean_array_push(x_281, x_313); +x_316 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_283); +lean_ctor_set_uint8(x_316, sizeof(void*)*2, x_282); +if (lean_is_scalar(x_280)) { + x_317 = lean_alloc_ctor(1, 2, 0); +} else { + x_317 = x_280; + lean_ctor_set_tag(x_317, 1); +} +lean_ctor_set(x_317, 0, x_314); +lean_ctor_set(x_317, 1, x_316); +if (lean_is_scalar(x_310)) { + x_318 = lean_alloc_ctor(0, 2, 0); +} else { + x_318 = x_310; + lean_ctor_set_tag(x_318, 0); +} +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_309); +return x_318; +} +} +else +{ +lean_object* x_319; lean_object* x_320; +lean_dec(x_283); +lean_dec(x_281); +lean_dec(x_280); +lean_dec(x_1); +x_319 = lean_box(0); +x_320 = l_Lake_Module_recFetchInput___lambda__3(x_273, x_319, x_7, x_8, x_9, x_10, x_285, x_278); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_320; +} +} +} +else +{ +lean_object* x_321; 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_dec(x_273); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_321 = lean_ctor_get(x_275, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + lean_ctor_release(x_275, 1); + x_322 = x_275; +} else { + lean_dec_ref(x_275); + x_322 = lean_box(0); +} +x_323 = lean_ctor_get(x_276, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_276, 1); +lean_inc(x_324); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_325 = x_276; +} else { + lean_dec_ref(x_276); x_325 = lean_box(0); } -x_326 = lean_io_error_to_string(x_323); -x_327 = 3; -x_328 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_328, 0, x_326); -lean_ctor_set_uint8(x_328, sizeof(void*)*1, x_327); -x_329 = lean_array_get_size(x_312); -x_330 = lean_array_push(x_312, x_328); -if (lean_is_scalar(x_315)) { - x_331 = lean_alloc_ctor(0, 2, 1); -} else { - x_331 = x_315; -} -lean_ctor_set(x_331, 0, x_330); -lean_ctor_set(x_331, 1, x_314); -lean_ctor_set_uint8(x_331, sizeof(void*)*2, x_313); -if (lean_is_scalar(x_284)) { - x_332 = lean_alloc_ctor(1, 2, 0); -} else { - x_332 = x_284; - lean_ctor_set_tag(x_332, 1); -} -lean_ctor_set(x_332, 0, x_329); -lean_ctor_set(x_332, 1, x_331); if (lean_is_scalar(x_325)) { - x_333 = lean_alloc_ctor(0, 2, 0); + x_326 = lean_alloc_ctor(1, 2, 0); } else { - x_333 = x_325; - lean_ctor_set_tag(x_333, 0); + x_326 = x_325; } -lean_ctor_set(x_333, 0, x_332); -lean_ctor_set(x_333, 1, x_324); -return x_333; +lean_ctor_set(x_326, 0, x_323); +lean_ctor_set(x_326, 1, x_324); +if (lean_is_scalar(x_322)) { + x_327 = lean_alloc_ctor(0, 2, 0); +} else { + x_327 = x_322; +} +lean_ctor_set(x_327, 0, x_326); +lean_ctor_set(x_327, 1, x_321); +return x_327; } } else { -lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; 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_dec(x_1); -x_334 = lean_ctor_get(x_280, 1); -lean_inc(x_334); -if (lean_is_exclusive(x_280)) { - lean_ctor_release(x_280, 0); - lean_ctor_release(x_280, 1); - x_335 = x_280; -} else { - lean_dec_ref(x_280); - x_335 = lean_box(0); -} -x_336 = lean_ctor_get(x_282, 0); -lean_inc(x_336); -x_337 = lean_ctor_get_uint8(x_282, sizeof(void*)*2); -x_338 = lean_ctor_get(x_282, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_339 = x_282; -} else { - lean_dec_ref(x_282); - x_339 = lean_box(0); -} -if (lean_is_scalar(x_339)) { - x_340 = lean_alloc_ctor(0, 2, 1); -} else { - x_340 = x_339; -} -lean_ctor_set(x_340, 0, x_336); -lean_ctor_set(x_340, 1, x_338); -lean_ctor_set_uint8(x_340, sizeof(void*)*2, x_337); -x_341 = lean_box(0); -if (lean_is_scalar(x_284)) { - x_342 = lean_alloc_ctor(0, 2, 0); -} else { - x_342 = x_284; -} -lean_ctor_set(x_342, 0, x_341); -lean_ctor_set(x_342, 1, x_340); -if (lean_is_scalar(x_335)) { - x_343 = lean_alloc_ctor(0, 2, 0); -} else { - x_343 = x_335; -} -lean_ctor_set(x_343, 0, x_342); -lean_ctor_set(x_343, 1, x_334); -return x_343; -} -} -} -else -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_273); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); +lean_dec(x_7); lean_dec(x_1); -x_344 = lean_ctor_get(x_280, 1); -lean_inc(x_344); -if (lean_is_exclusive(x_280)) { - lean_ctor_release(x_280, 0); - lean_ctor_release(x_280, 1); - x_345 = x_280; +x_328 = lean_ctor_get(x_275, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_275, 1); +lean_inc(x_329); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + lean_ctor_release(x_275, 1); + x_330 = x_275; } else { - lean_dec_ref(x_280); - x_345 = lean_box(0); + lean_dec_ref(x_275); + x_330 = lean_box(0); } -x_346 = lean_ctor_get(x_281, 0); -lean_inc(x_346); -x_347 = lean_ctor_get(x_281, 1); -lean_inc(x_347); -if (lean_is_exclusive(x_281)) { - lean_ctor_release(x_281, 0); - lean_ctor_release(x_281, 1); - x_348 = x_281; +if (lean_is_scalar(x_330)) { + x_331 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_281); - x_348 = lean_box(0); + x_331 = x_330; } -if (lean_is_scalar(x_348)) { - x_349 = lean_alloc_ctor(1, 2, 0); -} else { - x_349 = x_348; +lean_ctor_set(x_331, 0, x_328); +lean_ctor_set(x_331, 1, x_329); +return x_331; } -lean_ctor_set(x_349, 0, x_346); -lean_ctor_set(x_349, 1, x_347); -if (lean_is_scalar(x_345)) { - x_350 = lean_alloc_ctor(0, 2, 0); -} else { - x_350 = x_345; } -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_344); -return x_350; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_inc(x_12); +x_13 = lean_alloc_closure((void*)(l_Lake_Module_recBuildLean___lambda__1___boxed), 12, 5); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_2); +lean_closure_set(x_13, 2, x_5); +lean_closure_set(x_13, 3, x_3); +lean_closure_set(x_13, 4, x_12); +x_14 = l_Task_Priority_default; +x_15 = 0; +x_16 = l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4(x_4, x_13, x_14, x_15, x_6, x_7, x_8, x_9, x_12, x_11); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_10); +lean_ctor_set(x_16, 0, x_19); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_10); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; } } else { -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; -lean_dec(x_8); -lean_dec(x_1); -x_351 = lean_ctor_get(x_280, 0); -lean_inc(x_351); -x_352 = lean_ctor_get(x_280, 1); -lean_inc(x_352); -if (lean_is_exclusive(x_280)) { - lean_ctor_release(x_280, 0); - lean_ctor_release(x_280, 1); - x_353 = x_280; -} else { - lean_dec_ref(x_280); - x_353 = lean_box(0); -} -if (lean_is_scalar(x_353)) { - x_354 = lean_alloc_ctor(1, 2, 0); -} else { - x_354 = x_353; -} -lean_ctor_set(x_354, 0, x_351); -lean_ctor_set(x_354, 1, x_352); -return x_354; -} -} +uint8_t x_24; +lean_dec(x_10); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; } else { -lean_object* x_355; uint8_t x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; -x_355 = lean_ctor_get(x_58, 0); -x_356 = lean_ctor_get_uint8(x_58, sizeof(void*)*2); -x_357 = lean_ctor_get(x_58, 1); -lean_inc(x_357); -lean_inc(x_355); -lean_dec(x_58); -lean_inc(x_59); -x_358 = l_Lake_BuildTrace_mix(x_357, x_59); -x_359 = lean_string_append(x_54, x_3); -x_360 = l_Lake_Module_recBuildLean___lambda__1___closed__8; -x_361 = lean_string_append(x_359, x_360); -x_362 = lean_ctor_get(x_358, 1); -lean_inc(x_362); -x_363 = lean_ctor_get(x_358, 2); -lean_inc(x_363); -x_364 = lean_ctor_get(x_358, 3); -lean_inc(x_364); -if (lean_is_exclusive(x_358)) { - lean_ctor_release(x_358, 0); - lean_ctor_release(x_358, 1); - lean_ctor_release(x_358, 2); - lean_ctor_release(x_358, 3); - x_365 = x_358; -} else { - lean_dec_ref(x_358); - x_365 = lean_box(0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_16); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; } -if (lean_is_scalar(x_365)) { - x_366 = lean_alloc_ctor(0, 4, 0); -} else { - x_366 = x_365; } -lean_ctor_set(x_366, 0, x_361); -lean_ctor_set(x_366, 1, x_362); -lean_ctor_set(x_366, 2, x_363); -lean_ctor_set(x_366, 3, x_364); -lean_inc(x_366); -x_367 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_367, 0, x_355); -lean_ctor_set(x_367, 1, x_366); -lean_ctor_set_uint8(x_367, sizeof(void*)*2, x_356); -x_368 = lean_ctor_get(x_22, 6); -lean_inc(x_368); -x_369 = l_System_FilePath_normalize(x_368); -lean_inc(x_34); -x_370 = l_Lake_joinRelative(x_34, x_369); -lean_dec(x_369); -x_371 = lean_ctor_get(x_22, 7); -lean_inc(x_371); -x_372 = l_System_FilePath_normalize(x_371); -lean_inc(x_370); -x_373 = l_Lake_joinRelative(x_370, x_372); -lean_dec(x_372); -x_374 = l_Lake_Module_recBuildLean___lambda__1___closed__9; -x_375 = l_Lean_modToFilePath(x_373, x_2, x_374); -x_376 = lean_ctor_get(x_59, 3); -lean_inc(x_376); -lean_dec(x_59); -x_377 = 3; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = l_Lake_Module_keyword; +x_13 = l_Lake_Module_leanFacet; +lean_inc(x_2); +x_14 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_12); +lean_ctor_set(x_14, 2, x_2); +lean_ctor_set(x_14, 3, x_13); +lean_inc(x_6); +lean_inc(x_9); lean_inc(x_8); -lean_inc_n(x_1, 2); -x_378 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1(x_1, x_2, x_5, x_11, x_12, x_21, x_22, x_23, x_26, x_34, x_40, x_42, x_44, x_370, x_373, x_1, x_366, x_375, x_377, x_376, x_6, x_7, x_8, x_367, x_57); -lean_dec(x_376); -lean_dec(x_375); -lean_dec(x_366); -lean_dec(x_21); -if (lean_obj_tag(x_378) == 0) +lean_inc(x_7); +x_15 = lean_apply_6(x_6, x_14, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_379; -x_379 = lean_ctor_get(x_378, 0); -lean_inc(x_379); -if (lean_obj_tag(x_379) == 0) +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_380; lean_object* x_381; lean_object* x_382; uint8_t x_383; -x_380 = lean_ctor_get(x_379, 1); -lean_inc(x_380); -x_381 = lean_ctor_get(x_379, 0); -lean_inc(x_381); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_382 = x_379; -} else { - lean_dec_ref(x_379); - x_382 = lean_box(0); -} -x_383 = lean_unbox(x_381); -lean_dec(x_381); -if (x_383 == 0) +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) { -lean_object* x_384; lean_object* x_385; uint8_t x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; -lean_dec(x_8); -x_384 = lean_ctor_get(x_378, 1); -lean_inc(x_384); -lean_dec(x_378); -x_385 = lean_ctor_get(x_380, 0); -lean_inc(x_385); -x_386 = lean_ctor_get_uint8(x_380, sizeof(void*)*2); -x_387 = lean_ctor_get(x_380, 1); -lean_inc(x_387); -if (lean_is_exclusive(x_380)) { - lean_ctor_release(x_380, 0); - lean_ctor_release(x_380, 1); - x_388 = x_380; -} else { - lean_dec_ref(x_380); - x_388 = lean_box(0); -} -x_389 = l_Lake_Module_cacheOutputHashes(x_1, x_384); -if (lean_obj_tag(x_389) == 0) +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +x_21 = lean_alloc_closure((void*)(l_Lake_Module_recBuildLean___lambda__2), 11, 4); +lean_closure_set(x_21, 0, x_2); +lean_closure_set(x_21, 1, x_3); +lean_closure_set(x_21, 2, x_4); +lean_closure_set(x_21, 3, x_5); +x_22 = l_Task_Priority_default; +x_23 = 0; +x_24 = l_Lake_Module_recFetchInput___closed__3; +x_25 = l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9(x_19, x_21, x_22, x_23, x_6, x_7, x_8, x_9, x_24, x_17); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; -x_390 = lean_ctor_get(x_389, 0); -lean_inc(x_390); -x_391 = lean_ctor_get(x_389, 1); -lean_inc(x_391); -if (lean_is_exclusive(x_389)) { - lean_ctor_release(x_389, 0); - lean_ctor_release(x_389, 1); - x_392 = x_389; -} else { - lean_dec_ref(x_389); - x_392 = lean_box(0); -} -if (lean_is_scalar(x_388)) { - x_393 = lean_alloc_ctor(0, 2, 1); -} else { - x_393 = x_388; -} -lean_ctor_set(x_393, 0, x_385); -lean_ctor_set(x_393, 1, x_387); -lean_ctor_set_uint8(x_393, sizeof(void*)*2, x_386); -if (lean_is_scalar(x_382)) { - x_394 = lean_alloc_ctor(0, 2, 0); -} else { - x_394 = x_382; -} -lean_ctor_set(x_394, 0, x_390); -lean_ctor_set(x_394, 1, x_393); -if (lean_is_scalar(x_392)) { - x_395 = lean_alloc_ctor(0, 2, 0); -} else { - x_395 = x_392; -} -lean_ctor_set(x_395, 0, x_394); -lean_ctor_set(x_395, 1, x_391); -return x_395; +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_ctor_set(x_16, 0, x_27); +lean_ctor_set(x_25, 0, x_16); +return x_25; } else { -lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; -x_396 = lean_ctor_get(x_389, 0); -lean_inc(x_396); -x_397 = lean_ctor_get(x_389, 1); -lean_inc(x_397); -if (lean_is_exclusive(x_389)) { - lean_ctor_release(x_389, 0); - lean_ctor_release(x_389, 1); - x_398 = x_389; -} else { - lean_dec_ref(x_389); - x_398 = lean_box(0); -} -x_399 = lean_io_error_to_string(x_396); -x_400 = 3; -x_401 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_401, 0, x_399); -lean_ctor_set_uint8(x_401, sizeof(void*)*1, x_400); -x_402 = lean_array_get_size(x_385); -x_403 = lean_array_push(x_385, x_401); -if (lean_is_scalar(x_388)) { - x_404 = lean_alloc_ctor(0, 2, 1); -} else { - x_404 = x_388; -} -lean_ctor_set(x_404, 0, x_403); -lean_ctor_set(x_404, 1, x_387); -lean_ctor_set_uint8(x_404, sizeof(void*)*2, x_386); -if (lean_is_scalar(x_382)) { - x_405 = lean_alloc_ctor(1, 2, 0); -} else { - x_405 = x_382; - lean_ctor_set_tag(x_405, 1); -} -lean_ctor_set(x_405, 0, x_402); -lean_ctor_set(x_405, 1, x_404); -if (lean_is_scalar(x_398)) { - x_406 = lean_alloc_ctor(0, 2, 0); -} else { - x_406 = x_398; - lean_ctor_set_tag(x_406, 0); -} -lean_ctor_set(x_406, 0, x_405); -lean_ctor_set(x_406, 1, x_397); -return x_406; +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_25, 0); +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_25); +lean_ctor_set(x_16, 0, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_16); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } else { -lean_object* x_407; uint8_t x_408; -x_407 = lean_ctor_get(x_8, 0); -lean_inc(x_407); -lean_dec(x_8); -x_408 = lean_ctor_get_uint8(x_407, sizeof(void*)*1 + 1); -lean_dec(x_407); -if (x_408 == 0) +uint8_t x_31; +lean_free_object(x_16); +lean_dec(x_20); +x_31 = !lean_is_exclusive(x_25); +if (x_31 == 0) { -lean_object* x_409; lean_object* x_410; uint8_t x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; -x_409 = lean_ctor_get(x_378, 1); -lean_inc(x_409); -lean_dec(x_378); -x_410 = lean_ctor_get(x_380, 0); -lean_inc(x_410); -x_411 = lean_ctor_get_uint8(x_380, sizeof(void*)*2); -x_412 = lean_ctor_get(x_380, 1); -lean_inc(x_412); -if (lean_is_exclusive(x_380)) { - lean_ctor_release(x_380, 0); - lean_ctor_release(x_380, 1); - x_413 = x_380; -} else { - lean_dec_ref(x_380); - x_413 = lean_box(0); -} -x_414 = l_Lake_Module_cacheOutputHashes(x_1, x_409); -if (lean_obj_tag(x_414) == 0) -{ -lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_415 = lean_ctor_get(x_414, 0); -lean_inc(x_415); -x_416 = lean_ctor_get(x_414, 1); -lean_inc(x_416); -if (lean_is_exclusive(x_414)) { - lean_ctor_release(x_414, 0); - lean_ctor_release(x_414, 1); - x_417 = x_414; -} else { - lean_dec_ref(x_414); - x_417 = lean_box(0); -} -if (lean_is_scalar(x_413)) { - x_418 = lean_alloc_ctor(0, 2, 1); -} else { - x_418 = x_413; -} -lean_ctor_set(x_418, 0, x_410); -lean_ctor_set(x_418, 1, x_412); -lean_ctor_set_uint8(x_418, sizeof(void*)*2, x_411); -if (lean_is_scalar(x_382)) { - x_419 = lean_alloc_ctor(0, 2, 0); -} else { - x_419 = x_382; -} -lean_ctor_set(x_419, 0, x_415); -lean_ctor_set(x_419, 1, x_418); -if (lean_is_scalar(x_417)) { - x_420 = lean_alloc_ctor(0, 2, 0); -} else { - x_420 = x_417; -} -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_416); -return x_420; +return x_25; } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; uint8_t x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; -x_421 = lean_ctor_get(x_414, 0); -lean_inc(x_421); -x_422 = lean_ctor_get(x_414, 1); -lean_inc(x_422); -if (lean_is_exclusive(x_414)) { - lean_ctor_release(x_414, 0); - lean_ctor_release(x_414, 1); - x_423 = x_414; -} else { - lean_dec_ref(x_414); - x_423 = lean_box(0); -} -x_424 = lean_io_error_to_string(x_421); -x_425 = 3; -x_426 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_426, 0, x_424); -lean_ctor_set_uint8(x_426, sizeof(void*)*1, x_425); -x_427 = lean_array_get_size(x_410); -x_428 = lean_array_push(x_410, x_426); -if (lean_is_scalar(x_413)) { - x_429 = lean_alloc_ctor(0, 2, 1); -} else { - x_429 = x_413; -} -lean_ctor_set(x_429, 0, x_428); -lean_ctor_set(x_429, 1, x_412); -lean_ctor_set_uint8(x_429, sizeof(void*)*2, x_411); -if (lean_is_scalar(x_382)) { - x_430 = lean_alloc_ctor(1, 2, 0); -} else { - x_430 = x_382; - lean_ctor_set_tag(x_430, 1); -} -lean_ctor_set(x_430, 0, x_427); -lean_ctor_set(x_430, 1, x_429); -if (lean_is_scalar(x_423)) { - x_431 = lean_alloc_ctor(0, 2, 0); -} else { - x_431 = x_423; - lean_ctor_set_tag(x_431, 0); -} -lean_ctor_set(x_431, 0, x_430); -lean_ctor_set(x_431, 1, x_422); -return x_431; -} -} -else -{ -lean_object* x_432; lean_object* x_433; lean_object* x_434; uint8_t x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; -lean_dec(x_1); -x_432 = lean_ctor_get(x_378, 1); -lean_inc(x_432); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_433 = x_378; -} else { - lean_dec_ref(x_378); - x_433 = lean_box(0); -} -x_434 = lean_ctor_get(x_380, 0); -lean_inc(x_434); -x_435 = lean_ctor_get_uint8(x_380, sizeof(void*)*2); -x_436 = lean_ctor_get(x_380, 1); -lean_inc(x_436); -if (lean_is_exclusive(x_380)) { - lean_ctor_release(x_380, 0); - lean_ctor_release(x_380, 1); - x_437 = x_380; -} else { - lean_dec_ref(x_380); - x_437 = lean_box(0); -} -if (lean_is_scalar(x_437)) { - x_438 = lean_alloc_ctor(0, 2, 1); -} else { - x_438 = x_437; -} -lean_ctor_set(x_438, 0, x_434); -lean_ctor_set(x_438, 1, x_436); -lean_ctor_set_uint8(x_438, sizeof(void*)*2, x_435); -x_439 = lean_box(0); -if (lean_is_scalar(x_382)) { - x_440 = lean_alloc_ctor(0, 2, 0); -} else { - x_440 = x_382; -} -lean_ctor_set(x_440, 0, x_439); -lean_ctor_set(x_440, 1, x_438); -if (lean_is_scalar(x_433)) { - x_441 = lean_alloc_ctor(0, 2, 0); -} else { - x_441 = x_433; -} -lean_ctor_set(x_441, 0, x_440); -lean_ctor_set(x_441, 1, x_432); -return x_441; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_25, 0); +x_33 = lean_ctor_get(x_25, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_25); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; -lean_dec(x_8); -lean_dec(x_1); -x_442 = lean_ctor_get(x_378, 1); -lean_inc(x_442); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_443 = x_378; +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get(x_16, 0); +x_36 = lean_ctor_get(x_16, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_16); +x_37 = lean_alloc_closure((void*)(l_Lake_Module_recBuildLean___lambda__2), 11, 4); +lean_closure_set(x_37, 0, x_2); +lean_closure_set(x_37, 1, x_3); +lean_closure_set(x_37, 2, x_4); +lean_closure_set(x_37, 3, x_5); +x_38 = l_Task_Priority_default; +x_39 = 0; +x_40 = l_Lake_Module_recFetchInput___closed__3; +x_41 = l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9(x_35, x_37, x_38, x_39, x_6, x_7, x_8, x_9, x_40, x_17); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_44 = x_41; } else { - lean_dec_ref(x_378); - x_443 = lean_box(0); + lean_dec_ref(x_41); + x_44 = lean_box(0); } -x_444 = lean_ctor_get(x_379, 0); -lean_inc(x_444); -x_445 = lean_ctor_get(x_379, 1); -lean_inc(x_445); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_446 = x_379; +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_36); +if (lean_is_scalar(x_44)) { + x_46 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_379); - x_446 = lean_box(0); -} -if (lean_is_scalar(x_446)) { - x_447 = lean_alloc_ctor(1, 2, 0); -} else { - x_447 = x_446; -} -lean_ctor_set(x_447, 0, x_444); -lean_ctor_set(x_447, 1, x_445); -if (lean_is_scalar(x_443)) { - x_448 = lean_alloc_ctor(0, 2, 0); -} else { - x_448 = x_443; -} -lean_ctor_set(x_448, 0, x_447); -lean_ctor_set(x_448, 1, x_442); -return x_448; + x_46 = x_44; } +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_43); +return x_46; } else { -lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; -lean_dec(x_8); -lean_dec(x_1); -x_449 = lean_ctor_get(x_378, 0); -lean_inc(x_449); -x_450 = lean_ctor_get(x_378, 1); -lean_inc(x_450); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_451 = x_378; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_36); +x_47 = lean_ctor_get(x_41, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_41, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_49 = x_41; } else { - lean_dec_ref(x_378); - x_451 = lean_box(0); + lean_dec_ref(x_41); + x_49 = lean_box(0); } -if (lean_is_scalar(x_451)) { - x_452 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_452 = x_451; + x_50 = x_49; } -lean_ctor_set(x_452, 0, x_449); -lean_ctor_set(x_452, 1, x_450); -return x_452; +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } } else { -uint8_t x_453; -lean_dec(x_44); -lean_dec(x_42); -lean_dec(x_40); -lean_dec(x_34); -lean_dec(x_26); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_12); -lean_dec(x_11); +uint8_t x_51; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_453 = !lean_is_exclusive(x_56); -if (x_453 == 0) +x_51 = !lean_is_exclusive(x_15); +if (x_51 == 0) { -lean_object* x_454; -if (lean_is_scalar(x_13)) { - x_454 = lean_alloc_ctor(0, 2, 0); -} else { - x_454 = x_13; -} -lean_ctor_set(x_454, 0, x_56); -lean_ctor_set(x_454, 1, x_57); -return x_454; -} -else +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_15, 0); +lean_dec(x_52); +x_53 = !lean_is_exclusive(x_16); +if (x_53 == 0) { -lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; -x_455 = lean_ctor_get(x_56, 0); -x_456 = lean_ctor_get(x_56, 1); -lean_inc(x_456); -lean_inc(x_455); -lean_dec(x_56); -x_457 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_457, 0, x_455); -lean_ctor_set(x_457, 1, x_456); -if (lean_is_scalar(x_13)) { - x_458 = lean_alloc_ctor(0, 2, 0); -} else { - x_458 = x_13; -} -lean_ctor_set(x_458, 0, x_457); -lean_ctor_set(x_458, 1, x_57); -return x_458; -} -} -} -block_491: -{ -lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; -x_461 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -x_462 = l_Lake_Module_recBuildLean___lambda__1___closed__6; -x_463 = lean_box_uint64(x_460); -x_464 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_464, 0, x_55); -lean_ctor_set(x_464, 1, x_461); -lean_ctor_set(x_464, 2, x_463); -lean_ctor_set(x_464, 3, x_462); -x_465 = l_Lake_BuildTrace_mix(x_19, x_464); -if (lean_obj_tag(x_43) == 0) -{ -uint8_t x_466; -x_466 = !lean_is_exclusive(x_43); -if (x_466 == 0) -{ -lean_object* x_467; lean_object* x_468; -x_467 = lean_ctor_get(x_43, 1); -if (lean_is_scalar(x_17)) { - x_468 = lean_alloc_ctor(0, 2, 1); -} else { - x_468 = x_17; -} -lean_ctor_set(x_468, 0, x_14); -lean_ctor_set(x_468, 1, x_465); -lean_ctor_set_uint8(x_468, sizeof(void*)*2, x_15); -lean_ctor_set(x_43, 1, x_468); -x_56 = x_43; -x_57 = x_467; -goto block_459; -} -else -{ -lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; -x_469 = lean_ctor_get(x_43, 0); -x_470 = lean_ctor_get(x_43, 1); -lean_inc(x_470); -lean_inc(x_469); -lean_dec(x_43); -if (lean_is_scalar(x_17)) { - x_471 = lean_alloc_ctor(0, 2, 1); -} else { - x_471 = x_17; -} -lean_ctor_set(x_471, 0, x_14); -lean_ctor_set(x_471, 1, x_465); -lean_ctor_set_uint8(x_471, sizeof(void*)*2, x_15); -x_472 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_472, 0, x_469); -lean_ctor_set(x_472, 1, x_471); -x_56 = x_472; -x_57 = x_470; -goto block_459; -} -} -else -{ -uint8_t x_473; -x_473 = !lean_is_exclusive(x_43); -if (x_473 == 0) -{ -lean_object* x_474; lean_object* x_475; lean_object* x_476; uint8_t x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; -x_474 = lean_ctor_get(x_43, 0); -x_475 = lean_ctor_get(x_43, 1); -x_476 = lean_io_error_to_string(x_474); -x_477 = 3; -x_478 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_478, 0, x_476); -lean_ctor_set_uint8(x_478, sizeof(void*)*1, x_477); -x_479 = lean_array_get_size(x_14); -x_480 = lean_array_push(x_14, x_478); -if (lean_is_scalar(x_17)) { - x_481 = lean_alloc_ctor(0, 2, 1); -} else { - x_481 = x_17; -} -lean_ctor_set(x_481, 0, x_480); -lean_ctor_set(x_481, 1, x_465); -lean_ctor_set_uint8(x_481, sizeof(void*)*2, x_15); -lean_ctor_set(x_43, 1, x_481); -lean_ctor_set(x_43, 0, x_479); -x_56 = x_43; -x_57 = x_475; -goto block_459; -} -else -{ -lean_object* x_482; lean_object* x_483; lean_object* x_484; uint8_t x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_482 = lean_ctor_get(x_43, 0); -x_483 = lean_ctor_get(x_43, 1); -lean_inc(x_483); -lean_inc(x_482); -lean_dec(x_43); -x_484 = lean_io_error_to_string(x_482); -x_485 = 3; -x_486 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_486, 0, x_484); -lean_ctor_set_uint8(x_486, sizeof(void*)*1, x_485); -x_487 = lean_array_get_size(x_14); -x_488 = lean_array_push(x_14, x_486); -if (lean_is_scalar(x_17)) { - x_489 = lean_alloc_ctor(0, 2, 1); -} else { - x_489 = x_17; -} -lean_ctor_set(x_489, 0, x_488); -lean_ctor_set(x_489, 1, x_465); -lean_ctor_set_uint8(x_489, sizeof(void*)*2, x_15); -x_490 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_490, 0, x_487); -lean_ctor_set(x_490, 1, x_489); -x_56 = x_490; -x_57 = x_483; -goto block_459; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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) { -_start: -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_alloc_closure((void*)(l_Lake_Module_recBuildLean___lambda__1___boxed), 10, 3); -lean_closure_set(x_11, 0, x_1); -lean_closure_set(x_11, 1, x_2); -lean_closure_set(x_11, 2, x_3); -x_12 = l_Task_Priority_default; -x_13 = 0; -x_14 = l_Lake_Module_recParseImports___closed__3; -x_15 = l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10(x_4, x_11, x_12, x_13, x_5, x_6, x_7, x_8, x_14, x_10); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_9); -lean_ctor_set(x_15, 0, x_18); return x_15; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_9); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_16, 0); +x_55 = lean_ctor_get(x_16, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_16); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +lean_ctor_set(x_15, 0, x_56); +return x_15; } } else { -uint8_t x_23; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_57 = lean_ctor_get(x_15, 1); +lean_inc(x_57); +lean_dec(x_15); +x_58 = lean_ctor_get(x_16, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_16, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_60 = x_16; +} else { + lean_dec_ref(x_16); + x_60 = lean_box(0); +} +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(1, 2, 0); +} else { + x_61 = x_60; +} +lean_ctor_set(x_61, 0, x_58); +lean_ctor_set(x_61, 1, x_59); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_57); +return x_62; +} +} +} +else +{ +uint8_t x_63; lean_dec(x_9); -x_23 = !lean_is_exclusive(x_15); -if (x_23 == 0) +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_63 = !lean_is_exclusive(x_15); +if (x_63 == 0) { return x_15; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_15, 0); -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); -lean_inc(x_24); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_15, 0); +x_65 = lean_ctor_get(x_15, 1); +lean_inc(x_65); +lean_inc(x_64); lean_dec(x_15); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } } @@ -47746,8 +58338,9 @@ lean_inc(x_12); x_13 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_13, 0, x_12); x_14 = l_Lake_Module_keyword; -x_15 = l_Lake_Module_depsFacet; +x_15 = l_Lake_Module_setupFacet; lean_inc(x_1); +lean_inc(x_13); x_16 = lean_alloc_ctor(1, 4, 0); lean_ctor_set(x_16, 0, x_13); lean_ctor_set(x_16, 1, x_14); @@ -47757,15 +58350,16 @@ x_17 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); lean_closure_set(x_17, 0, x_16); lean_closure_set(x_17, 1, lean_box(0)); lean_inc(x_11); -x_18 = lean_alloc_closure((void*)(l_Lake_Module_recBuildLean___lambda__2), 10, 3); -lean_closure_set(x_18, 0, x_1); -lean_closure_set(x_18, 1, x_8); +x_18 = lean_alloc_closure((void*)(l_Lake_Module_recBuildLean___lambda__3), 11, 4); +lean_closure_set(x_18, 0, x_13); +lean_closure_set(x_18, 1, x_1); lean_closure_set(x_18, 2, x_11); +lean_closure_set(x_18, 3, x_8); x_19 = lean_alloc_closure((void*)(l_Lake_EquipT_bind___at_Lake_Module_recComputeTransImports___spec__3___rarg), 8, 2); lean_closure_set(x_19, 0, x_17); lean_closure_set(x_19, 1, x_18); lean_inc(x_5); -x_20 = l_Lake_ensureJob___at_Lake_Module_recBuildLean___spec__15(x_19, x_2, x_3, x_4, x_5, x_6, x_7); +x_20 = l_Lake_ensureJob___at_Lake_Module_recBuildLean___spec__14(x_19, x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; @@ -48089,22 +58683,17 @@ lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; _start: { -lean_object* x_21; -x_21 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___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, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -lean_dec(x_17); -lean_dec(x_16); +lean_object* x_19; +x_19 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___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, x_13, x_14, x_15, x_16, x_17, x_18); lean_dec(x_15); +lean_dec(x_14); lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); lean_dec(x_9); -lean_dec(x_4); -lean_dec(x_3); -return x_21; +lean_dec(x_2); +lean_dec(x_1); +return x_19; } } LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___boxed(lean_object** _args) { @@ -48132,57 +58721,78 @@ lean_object* x_21 = _args[20]; lean_object* x_22 = _args[21]; lean_object* x_23 = _args[22]; lean_object* x_24 = _args[23]; -lean_object* x_25 = _args[24]; _start: { -uint8_t x_26; lean_object* x_27; -x_26 = lean_unbox(x_19); -lean_dec(x_19); -x_27 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__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, x_13, x_14, x_15, x_16, x_17, x_18, x_26, x_20, x_21, x_22, x_23, x_24, x_25); -lean_dec(x_20); +uint8_t x_25; lean_object* x_26; +x_25 = lean_unbox(x_18); lean_dec(x_18); +x_26 = l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__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, x_13, x_14, x_15, x_16, x_17, x_25, x_19, x_20, x_21, x_22, x_23, x_24); +lean_dec(x_19); lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_7); lean_dec(x_6); -return x_27; +return x_26; } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__11___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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__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, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_2); lean_dec(x_2); -x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__11(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__5(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10___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_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_4); lean_dec(x_4); -x_12 = l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__10(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lake_Job_mapM___at_Lake_Module_recBuildLean___spec__4(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } -LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__16___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_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__10___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) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_2); lean_dec(x_2); -x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__16(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__10(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9___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) { _start: { -lean_object* x_11; -x_11 = l_Lake_Module_recBuildLean___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_3); -return x_11; +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lake_Job_bindM___at_Lake_Module_recBuildLean___spec__9(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__15___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLean___spec__15(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___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_Module_recBuildLean___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_5); +lean_dec(x_2); +return x_13; } } static lean_object* _init_l_Lake_Module_leanArtsFacetConfig___closed__1() { @@ -48199,9 +58809,9 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_leanArtsFacetConfig___closed__1; -x_3 = l_Lake_instDataKindUnit; +x_3 = lean_box(0); x_4 = 1; -x_5 = l_Lake_Module_depsFacetConfig___closed__2; +x_5 = l_Lake_Module_inputFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -48220,7 +58830,7 @@ x_1 = l_Lake_Module_leanArtsFacetConfig___closed__2; return x_1; } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1___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_EXPORT lean_object* l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1___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) { _start: { if (lean_obj_tag(x_7) == 0) @@ -48278,10 +58888,10 @@ x_28 = lean_string_utf8_extract(x_21, x_26, x_27); lean_dec(x_27); lean_dec(x_26); lean_dec(x_21); -x_29 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_29 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_30 = lean_string_append(x_29, x_28); lean_dec(x_28); -x_31 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_32 = lean_string_append(x_30, x_31); x_33 = 1; x_34 = lean_alloc_ctor(0, 1, 1); @@ -48295,7 +58905,7 @@ x_36 = lean_ctor_get(x_20, 0); x_37 = lean_array_push(x_36, x_34); lean_ctor_set(x_20, 0, x_37); x_38 = lean_box(0); -x_39 = l_Lake_Module_recParseImports___lambda__3(x_22, x_38, x_3, x_4, x_5, x_6, x_20, x_19); +x_39 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_38, x_3, x_4, x_5, x_6, x_20, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -48317,7 +58927,7 @@ lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_41); x_45 = lean_box(0); -x_46 = l_Lake_Module_recParseImports___lambda__3(x_22, x_45, x_3, x_4, x_5, x_6, x_44, x_19); +x_46 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_45, x_3, x_4, x_5, x_6, x_44, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -48331,7 +58941,7 @@ lean_object* x_47; lean_object* x_48; lean_dec(x_23); lean_dec(x_21); x_47 = lean_box(0); -x_48 = l_Lake_Module_recParseImports___lambda__3(x_22, x_47, x_3, x_4, x_5, x_6, x_20, x_19); +x_48 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_47, x_3, x_4, x_5, x_6, x_20, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -48485,10 +59095,10 @@ x_84 = lean_string_utf8_extract(x_77, x_82, x_83); lean_dec(x_83); lean_dec(x_82); lean_dec(x_77); -x_85 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_85 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_86 = lean_string_append(x_85, x_84); lean_dec(x_84); -x_87 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_87 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_88 = lean_string_append(x_86, x_87); x_89 = 1; x_90 = lean_alloc_ctor(0, 1, 1); @@ -48517,7 +59127,7 @@ lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_93); lean_ctor_set_uint8(x_96, sizeof(void*)*2, x_92); x_97 = lean_box(0); -x_98 = l_Lake_Module_recParseImports___lambda__3(x_78, x_97, x_3, x_4, x_5, x_6, x_96, x_75); +x_98 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_97, x_3, x_4, x_5, x_6, x_96, x_75); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -48530,7 +59140,7 @@ lean_object* x_99; lean_object* x_100; lean_dec(x_79); lean_dec(x_77); x_99 = lean_box(0); -x_100 = l_Lake_Module_recParseImports___lambda__3(x_78, x_99, x_3, x_4, x_5, x_6, x_76, x_75); +x_100 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_99, x_3, x_4, x_5, x_6, x_76, x_75); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -48651,7 +59261,7 @@ return x_117; } } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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_EXPORT lean_object* l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { _start: { uint8_t x_11; @@ -48663,7 +59273,7 @@ x_12 = lean_ctor_get(x_1, 0); x_13 = lean_ctor_get(x_1, 2); x_14 = lean_ctor_get(x_1, 1); lean_dec(x_14); -x_15 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1___lambda__1), 8, 6); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1___lambda__1), 8, 6); lean_closure_set(x_15, 0, x_9); lean_closure_set(x_15, 1, x_2); lean_closure_set(x_15, 2, x_5); @@ -48736,7 +59346,7 @@ x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); lean_inc(x_29); lean_inc(x_28); lean_dec(x_1); -x_31 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1___lambda__1), 8, 6); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1___lambda__1), 8, 6); lean_closure_set(x_31, 0, x_9); lean_closure_set(x_31, 1, x_2); lean_closure_set(x_31, 2, x_5); @@ -48802,208 +59412,991 @@ return x_42; } } } -LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_oleanFacetConfig___spec__2(uint8_t x_1, lean_object* x_2) { -_start: -{ -if (x_1 == 0) -{ -return x_2; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lake_mkRelPathString(x_2); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_3); -x_5 = l_Lean_Json_compress(x_4); -return x_5; -} -} -} -static lean_object* _init_l_Lake_Module_oleanFacetConfig___lambda__1___closed__1() { +static lean_object* _init_l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lambda__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(":olean", 6, 6); +x_1 = lean_mk_string_unchecked(":", 1, 1); return x_1; } } -LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___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_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___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_10; lean_object* x_11; lean_object* x_182; uint8_t 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; uint8_t x_190; -x_182 = lean_ctor_get(x_1, 1); +lean_object* x_13; +x_13 = lean_apply_1(x_1, x_6); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; lean_object* x_15; uint8_t x_16; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +x_14 = 3; +x_15 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_15, 0, x_2); +lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_14); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_array_get_size(x_17); +x_19 = lean_array_push(x_17, x_15); +lean_ctor_set(x_11, 0, x_19); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_11); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_12); +return x_21; +} +else +{ +lean_object* x_22; uint8_t 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; +x_22 = lean_ctor_get(x_11, 0); +x_23 = lean_ctor_get_uint8(x_11, sizeof(void*)*2); +x_24 = lean_ctor_get(x_11, 1); +lean_inc(x_24); +lean_inc(x_22); +lean_dec(x_11); +x_25 = lean_array_get_size(x_22); +x_26 = lean_array_push(x_22, x_15); +x_27 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*2, x_23); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_25); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_12); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; uint8_t 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; uint8_t x_41; +lean_dec(x_2); +x_30 = lean_ctor_get(x_13, 0); +lean_inc(x_30); +lean_dec(x_13); +x_31 = lean_ctor_get(x_3, 1); +lean_inc(x_31); +x_32 = 1; +x_33 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; +x_34 = l_Lean_Name_toString(x_31, x_32, x_33); +x_35 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_36 = lean_string_append(x_35, x_34); +lean_dec(x_34); +x_37 = l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lambda__1___closed__1; +x_38 = lean_string_append(x_36, x_37); +x_39 = lean_string_append(x_38, x_4); +x_40 = lean_string_append(x_39, x_35); +x_41 = !lean_is_exclusive(x_11); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_42 = lean_ctor_get(x_11, 0); +x_43 = lean_ctor_get(x_11, 1); +lean_dec(x_43); +x_44 = l_Lake_BuildTrace_nil(x_40); +x_178 = l_Lake_Module_keyword; +x_179 = l_Lake_Module_setupFacet; +x_180 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_180, 0, x_5); +lean_ctor_set(x_180, 1, x_178); +lean_ctor_set(x_180, 2, x_3); +lean_ctor_set(x_180, 3, x_179); +lean_inc(x_7); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_181 = lean_apply_6(x_7, x_180, x_8, x_9, x_10, x_42, x_12); +if (lean_obj_tag(x_181) == 0) +{ +lean_object* x_182; +x_182 = lean_ctor_get(x_181, 0); lean_inc(x_182); -x_183 = 1; -x_184 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -x_185 = l_Lean_Name_toString(x_182, x_183, x_184); -x_186 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_187 = lean_string_append(x_186, x_185); -lean_dec(x_185); -x_188 = l_Lake_Module_oleanFacetConfig___lambda__1___closed__1; -x_189 = lean_string_append(x_187, x_188); -x_190 = !lean_is_exclusive(x_8); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; uint8_t x_184; +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); +lean_dec(x_181); +x_184 = !lean_is_exclusive(x_182); +if (x_184 == 0) +{ +lean_object* x_185; +x_185 = lean_ctor_get(x_182, 1); +lean_ctor_set(x_11, 1, x_44); +lean_ctor_set(x_11, 0, x_185); +lean_ctor_set(x_182, 1, x_11); +x_45 = x_182; +x_46 = x_183; +goto block_177; +} +else +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = lean_ctor_get(x_182, 0); +x_187 = lean_ctor_get(x_182, 1); +lean_inc(x_187); +lean_inc(x_186); +lean_dec(x_182); +lean_ctor_set(x_11, 1, x_44); +lean_ctor_set(x_11, 0, x_187); +x_188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_11); +x_45 = x_188; +x_46 = x_183; +goto block_177; +} +} +else +{ +lean_object* x_189; uint8_t x_190; +x_189 = lean_ctor_get(x_181, 1); +lean_inc(x_189); +lean_dec(x_181); +x_190 = !lean_is_exclusive(x_182); if (x_190 == 0) { -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_191 = lean_ctor_get(x_8, 0); -x_192 = lean_ctor_get(x_8, 1); -lean_dec(x_192); -x_193 = l_Lake_BuildTrace_nil(x_189); -x_194 = l_Lake_Module_keyword; -x_195 = l_Lake_Module_depsFacet; -lean_inc(x_1); -x_196 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_196, 0, x_2); -lean_ctor_set(x_196, 1, x_194); -lean_ctor_set(x_196, 2, x_1); -lean_ctor_set(x_196, 3, x_195); -lean_inc(x_4); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_197 = lean_apply_6(x_4, x_196, x_5, x_6, x_7, x_191, x_9); -if (lean_obj_tag(x_197) == 0) -{ -lean_object* x_198; -x_198 = lean_ctor_get(x_197, 0); -lean_inc(x_198); -if (lean_obj_tag(x_198) == 0) -{ -lean_object* x_199; uint8_t x_200; -x_199 = lean_ctor_get(x_197, 1); -lean_inc(x_199); -lean_dec(x_197); -x_200 = !lean_is_exclusive(x_198); -if (x_200 == 0) -{ -lean_object* x_201; -x_201 = lean_ctor_get(x_198, 1); -lean_ctor_set(x_8, 1, x_193); -lean_ctor_set(x_8, 0, x_201); -lean_ctor_set(x_198, 1, x_8); -x_10 = x_198; -x_11 = x_199; -goto block_181; +lean_object* x_191; +x_191 = lean_ctor_get(x_182, 1); +lean_ctor_set(x_11, 1, x_44); +lean_ctor_set(x_11, 0, x_191); +lean_ctor_set(x_182, 1, x_11); +x_45 = x_182; +x_46 = x_189; +goto block_177; } else { -lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_202 = lean_ctor_get(x_198, 0); -x_203 = lean_ctor_get(x_198, 1); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_198); -lean_ctor_set(x_8, 1, x_193); -lean_ctor_set(x_8, 0, x_203); -x_204 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_8); -x_10 = x_204; -x_11 = x_199; -goto block_181; -} -} -else -{ -lean_object* x_205; uint8_t x_206; -x_205 = lean_ctor_get(x_197, 1); -lean_inc(x_205); -lean_dec(x_197); -x_206 = !lean_is_exclusive(x_198); -if (x_206 == 0) -{ -lean_object* x_207; -x_207 = lean_ctor_get(x_198, 1); -lean_ctor_set(x_8, 1, x_193); -lean_ctor_set(x_8, 0, x_207); -lean_ctor_set(x_198, 1, x_8); -x_10 = x_198; -x_11 = x_205; -goto block_181; -} -else -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_208 = lean_ctor_get(x_198, 0); -x_209 = lean_ctor_get(x_198, 1); -lean_inc(x_209); -lean_inc(x_208); -lean_dec(x_198); -lean_ctor_set(x_8, 1, x_193); -lean_ctor_set(x_8, 0, x_209); -x_210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_210, 0, x_208); -lean_ctor_set(x_210, 1, x_8); -x_10 = x_210; -x_11 = x_205; -goto block_181; +lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_192 = lean_ctor_get(x_182, 0); +x_193 = lean_ctor_get(x_182, 1); +lean_inc(x_193); +lean_inc(x_192); +lean_dec(x_182); +lean_ctor_set(x_11, 1, x_44); +lean_ctor_set(x_11, 0, x_193); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_192); +lean_ctor_set(x_194, 1, x_11); +x_45 = x_194; +x_46 = x_189; +goto block_177; } } } else { -uint8_t x_211; -lean_dec(x_193); -lean_free_object(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_211 = !lean_is_exclusive(x_197); -if (x_211 == 0) -{ -return x_197; -} -else -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_212 = lean_ctor_get(x_197, 0); -x_213 = lean_ctor_get(x_197, 1); -lean_inc(x_213); -lean_inc(x_212); -lean_dec(x_197); -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_212); -lean_ctor_set(x_214, 1, x_213); -return x_214; -} -} -} -else -{ -lean_object* x_215; uint8_t x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_215 = lean_ctor_get(x_8, 0); -x_216 = lean_ctor_get_uint8(x_8, sizeof(void*)*2); -lean_inc(x_215); +uint8_t x_195; +lean_dec(x_44); +lean_free_object(x_11); +lean_dec(x_30); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); -x_217 = l_Lake_BuildTrace_nil(x_189); -x_218 = l_Lake_Module_keyword; -x_219 = l_Lake_Module_depsFacet; -lean_inc(x_1); -x_220 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_220, 0, x_2); -lean_ctor_set(x_220, 1, x_218); -lean_ctor_set(x_220, 2, x_1); -lean_ctor_set(x_220, 3, x_219); -lean_inc(x_4); +lean_dec(x_7); +x_195 = !lean_is_exclusive(x_181); +if (x_195 == 0) +{ +return x_181; +} +else +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_181, 0); +x_197 = lean_ctor_get(x_181, 1); +lean_inc(x_197); +lean_inc(x_196); +lean_dec(x_181); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); +return x_198; +} +} +block_177: +{ +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_169; lean_object* x_170; +x_47 = lean_ctor_get(x_45, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = lean_ctor_get(x_47, 0); +lean_inc(x_49); +lean_dec(x_47); +x_50 = lean_task_get_own(x_49); +x_169 = lean_ctor_get(x_50, 1); +lean_inc(x_169); +lean_dec(x_50); +x_170 = lean_ctor_get(x_169, 1); +lean_inc(x_170); +lean_dec(x_169); +x_51 = x_170; +goto block_168; +block_168: +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_53 = lean_ctor_get(x_51, 1); +lean_dec(x_53); +x_54 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +lean_ctor_set(x_51, 1, x_54); +x_55 = !lean_is_exclusive(x_48); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_56 = lean_ctor_get(x_48, 1); +x_57 = l_Lake_BuildTrace_mix(x_56, x_51); +lean_ctor_set(x_48, 1, x_57); +x_58 = 0; +lean_inc(x_30); +x_59 = l_Lake_fetchFileTrace(x_30, x_58, x_7, x_8, x_9, x_10, x_48, x_46); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; uint8_t x_62; +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +x_62 = !lean_is_exclusive(x_59); +if (x_62 == 0) +{ +lean_object* x_63; uint8_t x_64; +x_63 = lean_ctor_get(x_59, 0); +lean_dec(x_63); +x_64 = !lean_is_exclusive(x_60); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = lean_ctor_get(x_60, 0); +x_66 = lean_ctor_get(x_60, 1); +lean_dec(x_66); +x_67 = !lean_is_exclusive(x_61); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; +x_68 = lean_ctor_get(x_61, 1); +x_69 = l_Lake_BuildTrace_mix(x_68, x_65); +lean_ctor_set(x_61, 1, x_69); +lean_ctor_set(x_60, 0, x_30); +return x_59; +} +else +{ +lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_70 = lean_ctor_get(x_61, 0); +x_71 = lean_ctor_get_uint8(x_61, sizeof(void*)*2); +x_72 = lean_ctor_get(x_61, 1); +lean_inc(x_72); +lean_inc(x_70); +lean_dec(x_61); +x_73 = l_Lake_BuildTrace_mix(x_72, x_65); +x_74 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_74, 0, x_70); +lean_ctor_set(x_74, 1, x_73); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_71); +lean_ctor_set(x_60, 1, x_74); +lean_ctor_set(x_60, 0, x_30); +return x_59; +} +} +else +{ +lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_75 = lean_ctor_get(x_60, 0); +lean_inc(x_75); +lean_dec(x_60); +x_76 = lean_ctor_get(x_61, 0); +lean_inc(x_76); +x_77 = lean_ctor_get_uint8(x_61, sizeof(void*)*2); +x_78 = lean_ctor_get(x_61, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_79 = x_61; +} else { + lean_dec_ref(x_61); + x_79 = lean_box(0); +} +x_80 = l_Lake_BuildTrace_mix(x_78, x_75); +if (lean_is_scalar(x_79)) { + x_81 = lean_alloc_ctor(0, 2, 1); +} else { + x_81 = x_79; +} +lean_ctor_set(x_81, 0, x_76); +lean_ctor_set(x_81, 1, x_80); +lean_ctor_set_uint8(x_81, sizeof(void*)*2, x_77); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_30); +lean_ctor_set(x_82, 1, x_81); +lean_ctor_set(x_59, 0, x_82); +return x_59; +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_83 = lean_ctor_get(x_59, 1); +lean_inc(x_83); +lean_dec(x_59); +x_84 = lean_ctor_get(x_60, 0); +lean_inc(x_84); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_85 = x_60; +} else { + lean_dec_ref(x_60); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get(x_61, 0); +lean_inc(x_86); +x_87 = lean_ctor_get_uint8(x_61, sizeof(void*)*2); +x_88 = lean_ctor_get(x_61, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_89 = x_61; +} else { + lean_dec_ref(x_61); + x_89 = lean_box(0); +} +x_90 = l_Lake_BuildTrace_mix(x_88, x_84); +if (lean_is_scalar(x_89)) { + x_91 = lean_alloc_ctor(0, 2, 1); +} else { + x_91 = x_89; +} +lean_ctor_set(x_91, 0, x_86); +lean_ctor_set(x_91, 1, x_90); +lean_ctor_set_uint8(x_91, sizeof(void*)*2, x_87); +if (lean_is_scalar(x_85)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_85; +} +lean_ctor_set(x_92, 0, x_30); +lean_ctor_set(x_92, 1, x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_83); +return x_93; +} +} +else +{ +uint8_t x_94; +lean_dec(x_30); +x_94 = !lean_is_exclusive(x_59); +if (x_94 == 0) +{ +lean_object* x_95; uint8_t x_96; +x_95 = lean_ctor_get(x_59, 0); +lean_dec(x_95); +x_96 = !lean_is_exclusive(x_60); +if (x_96 == 0) +{ +return x_59; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_60, 0); +x_98 = lean_ctor_get(x_60, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_60); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +lean_ctor_set(x_59, 0, x_99); +return x_59; +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_100 = lean_ctor_get(x_59, 1); +lean_inc(x_100); +lean_dec(x_59); +x_101 = lean_ctor_get(x_60, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_60, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_103 = x_60; +} else { + lean_dec_ref(x_60); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_100); +return x_105; +} +} +} +else +{ +lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; +x_106 = lean_ctor_get(x_48, 0); +x_107 = lean_ctor_get_uint8(x_48, sizeof(void*)*2); +x_108 = lean_ctor_get(x_48, 1); +lean_inc(x_108); +lean_inc(x_106); +lean_dec(x_48); +x_109 = l_Lake_BuildTrace_mix(x_108, x_51); +x_110 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_110, 0, x_106); +lean_ctor_set(x_110, 1, x_109); +lean_ctor_set_uint8(x_110, sizeof(void*)*2, x_107); +x_111 = 0; +lean_inc(x_30); +x_112 = l_Lake_fetchFileTrace(x_30, x_111, x_7, x_8, x_9, x_10, x_110, x_46); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_112, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_116 = x_112; +} else { + lean_dec_ref(x_112); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_113, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_118 = x_113; +} else { + lean_dec_ref(x_113); + x_118 = lean_box(0); +} +x_119 = lean_ctor_get(x_114, 0); +lean_inc(x_119); +x_120 = lean_ctor_get_uint8(x_114, sizeof(void*)*2); +x_121 = lean_ctor_get(x_114, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_122 = x_114; +} else { + lean_dec_ref(x_114); + x_122 = lean_box(0); +} +x_123 = l_Lake_BuildTrace_mix(x_121, x_117); +if (lean_is_scalar(x_122)) { + x_124 = lean_alloc_ctor(0, 2, 1); +} else { + x_124 = x_122; +} +lean_ctor_set(x_124, 0, x_119); +lean_ctor_set(x_124, 1, x_123); +lean_ctor_set_uint8(x_124, sizeof(void*)*2, x_120); +if (lean_is_scalar(x_118)) { + x_125 = lean_alloc_ctor(0, 2, 0); +} else { + x_125 = x_118; +} +lean_ctor_set(x_125, 0, x_30); +lean_ctor_set(x_125, 1, x_124); +if (lean_is_scalar(x_116)) { + x_126 = lean_alloc_ctor(0, 2, 0); +} else { + x_126 = x_116; +} +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_115); +return x_126; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_dec(x_30); +x_127 = lean_ctor_get(x_112, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_128 = x_112; +} else { + lean_dec_ref(x_112); + x_128 = lean_box(0); +} +x_129 = lean_ctor_get(x_113, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_113, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_131 = x_113; +} else { + lean_dec_ref(x_113); + x_131 = lean_box(0); +} +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); +} else { + x_132 = x_131; +} +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +if (lean_is_scalar(x_128)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_128; +} +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_127); +return x_133; +} +} +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; +x_134 = lean_ctor_get(x_51, 0); +x_135 = lean_ctor_get(x_51, 2); +x_136 = lean_ctor_get(x_51, 3); +lean_inc(x_136); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_51); +x_137 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_138 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_138, 0, x_134); +lean_ctor_set(x_138, 1, x_137); +lean_ctor_set(x_138, 2, x_135); +lean_ctor_set(x_138, 3, x_136); +x_139 = lean_ctor_get(x_48, 0); +lean_inc(x_139); +x_140 = lean_ctor_get_uint8(x_48, sizeof(void*)*2); +x_141 = lean_ctor_get(x_48, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_142 = x_48; +} else { + lean_dec_ref(x_48); + x_142 = lean_box(0); +} +x_143 = l_Lake_BuildTrace_mix(x_141, x_138); +if (lean_is_scalar(x_142)) { + x_144 = lean_alloc_ctor(0, 2, 1); +} else { + x_144 = x_142; +} +lean_ctor_set(x_144, 0, x_139); +lean_ctor_set(x_144, 1, x_143); +lean_ctor_set_uint8(x_144, sizeof(void*)*2, x_140); +x_145 = 0; +lean_inc(x_30); +x_146 = l_Lake_fetchFileTrace(x_30, x_145, x_7, x_8, x_9, x_10, x_144, x_46); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +if (lean_obj_tag(x_147) == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t 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; +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +x_149 = lean_ctor_get(x_146, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_150 = x_146; +} else { + lean_dec_ref(x_146); + x_150 = lean_box(0); +} +x_151 = lean_ctor_get(x_147, 0); +lean_inc(x_151); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_152 = x_147; +} else { + lean_dec_ref(x_147); + x_152 = lean_box(0); +} +x_153 = lean_ctor_get(x_148, 0); +lean_inc(x_153); +x_154 = lean_ctor_get_uint8(x_148, sizeof(void*)*2); +x_155 = lean_ctor_get(x_148, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_156 = x_148; +} else { + lean_dec_ref(x_148); + x_156 = lean_box(0); +} +x_157 = l_Lake_BuildTrace_mix(x_155, x_151); +if (lean_is_scalar(x_156)) { + x_158 = lean_alloc_ctor(0, 2, 1); +} else { + x_158 = x_156; +} +lean_ctor_set(x_158, 0, x_153); +lean_ctor_set(x_158, 1, x_157); +lean_ctor_set_uint8(x_158, sizeof(void*)*2, x_154); +if (lean_is_scalar(x_152)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_152; +} +lean_ctor_set(x_159, 0, x_30); +lean_ctor_set(x_159, 1, x_158); +if (lean_is_scalar(x_150)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_150; +} +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_149); +return x_160; +} +else +{ +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_dec(x_30); +x_161 = lean_ctor_get(x_146, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_162 = x_146; +} else { + lean_dec_ref(x_146); + x_162 = lean_box(0); +} +x_163 = lean_ctor_get(x_147, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_147, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_165 = x_147; +} else { + lean_dec_ref(x_147); + x_165 = lean_box(0); +} +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +if (lean_is_scalar(x_162)) { + x_167 = lean_alloc_ctor(0, 2, 0); +} else { + x_167 = x_162; +} +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_161); +return x_167; +} +} +} +} +else +{ +uint8_t x_171; +lean_dec(x_30); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_171 = !lean_is_exclusive(x_45); +if (x_171 == 0) +{ +lean_object* x_172; +x_172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_45); +lean_ctor_set(x_172, 1, x_46); +return x_172; +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_173 = lean_ctor_get(x_45, 0); +x_174 = lean_ctor_get(x_45, 1); +lean_inc(x_174); +lean_inc(x_173); +lean_dec(x_45); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_46); +return x_176; +} +} +} +} +else +{ +lean_object* x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_199 = lean_ctor_get(x_11, 0); +x_200 = lean_ctor_get_uint8(x_11, sizeof(void*)*2); +lean_inc(x_199); +lean_dec(x_11); +x_201 = l_Lake_BuildTrace_nil(x_40); +x_253 = l_Lake_Module_keyword; +x_254 = l_Lake_Module_setupFacet; +x_255 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_255, 0, x_5); +lean_ctor_set(x_255, 1, x_253); +lean_ctor_set(x_255, 2, x_3); +lean_ctor_set(x_255, 3, x_254); lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_221 = lean_apply_6(x_4, x_220, x_5, x_6, x_7, x_215, x_9); -if (lean_obj_tag(x_221) == 0) +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_256 = lean_apply_6(x_7, x_255, x_8, x_9, x_10, x_199, x_12); +if (lean_obj_tag(x_256) == 0) { -lean_object* x_222; -x_222 = lean_ctor_get(x_221, 0); -lean_inc(x_222); -if (lean_obj_tag(x_222) == 0) +lean_object* x_257; +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +if (lean_obj_tag(x_257) == 0) { -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_223 = lean_ctor_get(x_221, 1); +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +lean_dec(x_256); +x_259 = lean_ctor_get(x_257, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_257, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_261 = x_257; +} else { + lean_dec_ref(x_257); + x_261 = lean_box(0); +} +x_262 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_262, 0, x_260); +lean_ctor_set(x_262, 1, x_201); +lean_ctor_set_uint8(x_262, sizeof(void*)*2, x_200); +if (lean_is_scalar(x_261)) { + x_263 = lean_alloc_ctor(0, 2, 0); +} else { + x_263 = x_261; +} +lean_ctor_set(x_263, 0, x_259); +lean_ctor_set(x_263, 1, x_262); +x_202 = x_263; +x_203 = x_258; +goto block_252; +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +x_264 = lean_ctor_get(x_256, 1); +lean_inc(x_264); +lean_dec(x_256); +x_265 = lean_ctor_get(x_257, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_257, 1); +lean_inc(x_266); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_267 = x_257; +} else { + lean_dec_ref(x_257); + x_267 = lean_box(0); +} +x_268 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_268, 0, x_266); +lean_ctor_set(x_268, 1, x_201); +lean_ctor_set_uint8(x_268, sizeof(void*)*2, x_200); +if (lean_is_scalar(x_267)) { + x_269 = lean_alloc_ctor(1, 2, 0); +} else { + x_269 = x_267; +} +lean_ctor_set(x_269, 0, x_265); +lean_ctor_set(x_269, 1, x_268); +x_202 = x_269; +x_203 = x_264; +goto block_252; +} +} +else +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; +lean_dec(x_201); +lean_dec(x_30); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_270 = lean_ctor_get(x_256, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_256, 1); +lean_inc(x_271); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_272 = x_256; +} else { + lean_dec_ref(x_256); + x_272 = lean_box(0); +} +if (lean_is_scalar(x_272)) { + x_273 = lean_alloc_ctor(1, 2, 0); +} else { + x_273 = x_272; +} +lean_ctor_set(x_273, 0, x_270); +lean_ctor_set(x_273, 1, x_271); +return x_273; +} +block_252: +{ +if (lean_obj_tag(x_202) == 0) +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_245; lean_object* x_246; +x_204 = lean_ctor_get(x_202, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_202, 1); +lean_inc(x_205); +lean_dec(x_202); +x_206 = lean_ctor_get(x_204, 0); +lean_inc(x_206); +lean_dec(x_204); +x_207 = lean_task_get_own(x_206); +x_245 = lean_ctor_get(x_207, 1); +lean_inc(x_245); +lean_dec(x_207); +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +lean_dec(x_245); +x_208 = x_246; +goto block_244; +block_244: +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; +x_209 = lean_ctor_get(x_208, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_208, 2); +lean_inc(x_210); +x_211 = lean_ctor_get(x_208, 3); +lean_inc(x_211); +if (lean_is_exclusive(x_208)) { + lean_ctor_release(x_208, 0); + lean_ctor_release(x_208, 1); + lean_ctor_release(x_208, 2); + lean_ctor_release(x_208, 3); + x_212 = x_208; +} else { + lean_dec_ref(x_208); + x_212 = lean_box(0); +} +x_213 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +if (lean_is_scalar(x_212)) { + x_214 = lean_alloc_ctor(0, 4, 0); +} else { + x_214 = x_212; +} +lean_ctor_set(x_214, 0, x_209); +lean_ctor_set(x_214, 1, x_213); +lean_ctor_set(x_214, 2, x_210); +lean_ctor_set(x_214, 3, x_211); +x_215 = lean_ctor_get(x_205, 0); +lean_inc(x_215); +x_216 = lean_ctor_get_uint8(x_205, sizeof(void*)*2); +x_217 = lean_ctor_get(x_205, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_218 = x_205; +} else { + lean_dec_ref(x_205); + x_218 = lean_box(0); +} +x_219 = l_Lake_BuildTrace_mix(x_217, x_214); +if (lean_is_scalar(x_218)) { + x_220 = lean_alloc_ctor(0, 2, 1); +} else { + x_220 = x_218; +} +lean_ctor_set(x_220, 0, x_215); +lean_ctor_set(x_220, 1, x_219); +lean_ctor_set_uint8(x_220, sizeof(void*)*2, x_216); +x_221 = 0; +lean_inc(x_30); +x_222 = l_Lake_fetchFileTrace(x_30, x_221, x_7, x_8, x_9, x_10, x_220, x_203); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_223 = lean_ctor_get(x_222, 0); lean_inc(x_223); -lean_dec(x_221); -x_224 = lean_ctor_get(x_222, 0); +if (lean_obj_tag(x_223) == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; uint8_t x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_224 = lean_ctor_get(x_223, 1); lean_inc(x_224); x_225 = lean_ctor_get(x_222, 1); lean_inc(x_225); @@ -49015,1005 +60408,444 @@ if (lean_is_exclusive(x_222)) { lean_dec_ref(x_222); x_226 = lean_box(0); } -x_227 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_227, 0, x_225); -lean_ctor_set(x_227, 1, x_217); -lean_ctor_set_uint8(x_227, sizeof(void*)*2, x_216); -if (lean_is_scalar(x_226)) { - x_228 = lean_alloc_ctor(0, 2, 0); +x_227 = lean_ctor_get(x_223, 0); +lean_inc(x_227); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_228 = x_223; } else { - x_228 = x_226; + lean_dec_ref(x_223); + x_228 = lean_box(0); } -lean_ctor_set(x_228, 0, x_224); -lean_ctor_set(x_228, 1, x_227); -x_10 = x_228; -x_11 = x_223; -goto block_181; -} -else -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_229 = lean_ctor_get(x_221, 1); +x_229 = lean_ctor_get(x_224, 0); lean_inc(x_229); -lean_dec(x_221); -x_230 = lean_ctor_get(x_222, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_222, 1); +x_230 = lean_ctor_get_uint8(x_224, sizeof(void*)*2); +x_231 = lean_ctor_get(x_224, 1); lean_inc(x_231); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_232 = x_222; +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_232 = x_224; } else { - lean_dec_ref(x_222); + lean_dec_ref(x_224); x_232 = lean_box(0); } -x_233 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_233, 0, x_231); -lean_ctor_set(x_233, 1, x_217); -lean_ctor_set_uint8(x_233, sizeof(void*)*2, x_216); +x_233 = l_Lake_BuildTrace_mix(x_231, x_227); if (lean_is_scalar(x_232)) { - x_234 = lean_alloc_ctor(1, 2, 0); + x_234 = lean_alloc_ctor(0, 2, 1); } else { x_234 = x_232; } -lean_ctor_set(x_234, 0, x_230); +lean_ctor_set(x_234, 0, x_229); lean_ctor_set(x_234, 1, x_233); -x_10 = x_234; -x_11 = x_229; -goto block_181; +lean_ctor_set_uint8(x_234, sizeof(void*)*2, x_230); +if (lean_is_scalar(x_228)) { + x_235 = lean_alloc_ctor(0, 2, 0); +} else { + x_235 = x_228; +} +lean_ctor_set(x_235, 0, x_30); +lean_ctor_set(x_235, 1, x_234); +if (lean_is_scalar(x_226)) { + x_236 = lean_alloc_ctor(0, 2, 0); +} else { + x_236 = x_226; +} +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_225); +return x_236; +} +else +{ +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_dec(x_30); +x_237 = lean_ctor_get(x_222, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_238 = x_222; +} else { + lean_dec_ref(x_222); + x_238 = lean_box(0); +} +x_239 = lean_ctor_get(x_223, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_223, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_241 = x_223; +} else { + lean_dec_ref(x_223); + x_241 = lean_box(0); +} +if (lean_is_scalar(x_241)) { + x_242 = lean_alloc_ctor(1, 2, 0); +} else { + x_242 = x_241; +} +lean_ctor_set(x_242, 0, x_239); +lean_ctor_set(x_242, 1, x_240); +if (lean_is_scalar(x_238)) { + x_243 = lean_alloc_ctor(0, 2, 0); +} else { + x_243 = x_238; +} +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_237); +return x_243; +} } } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -lean_dec(x_217); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_235 = lean_ctor_get(x_221, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_221, 1); -lean_inc(x_236); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_237 = x_221; -} else { - lean_dec_ref(x_221); - x_237 = lean_box(0); -} -if (lean_is_scalar(x_237)) { - x_238 = lean_alloc_ctor(1, 2, 0); -} else { - x_238 = x_237; -} -lean_ctor_set(x_238, 0, x_235); -lean_ctor_set(x_238, 1, x_236); -return x_238; -} -} -block_181: -{ -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_173; lean_object* x_174; -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +lean_dec(x_30); lean_dec(x_10); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_task_get_own(x_14); -x_173 = lean_ctor_get(x_15, 1); -lean_inc(x_173); -lean_dec(x_15); -x_174 = lean_ctor_get(x_173, 1); -lean_inc(x_174); -lean_dec(x_173); -x_16 = x_174; -goto block_172; -block_172: -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = lean_ctor_get(x_16, 1); -lean_dec(x_18); -x_19 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -lean_ctor_set(x_16, 1, x_19); -x_20 = !lean_is_exclusive(x_13); -if (x_20 == 0) -{ -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; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; -x_21 = lean_ctor_get(x_13, 1); -x_22 = l_Lake_BuildTrace_mix(x_21, x_16); -lean_ctor_set(x_13, 1, x_22); -x_23 = lean_ctor_get(x_1, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 3); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_26, 6); -lean_inc(x_27); -x_28 = l_System_FilePath_normalize(x_27); -x_29 = l_Lake_joinRelative(x_25, x_28); -lean_dec(x_28); -x_30 = lean_ctor_get(x_26, 7); -lean_inc(x_30); -lean_dec(x_26); -x_31 = l_System_FilePath_normalize(x_30); -x_32 = l_Lake_joinRelative(x_29, x_31); -lean_dec(x_31); -x_33 = lean_ctor_get(x_1, 1); -lean_inc(x_33); -lean_dec(x_1); -x_34 = l_Lake_Module_clearOutputHashes___closed__1; -x_35 = l_Lean_modToFilePath(x_32, x_33, x_34); -lean_dec(x_33); -lean_dec(x_32); -x_36 = 0; -lean_inc(x_35); -x_37 = l_Lake_fetchFileTrace(x_35, x_36, x_4, x_5, x_6, x_7, x_13, x_11); +lean_dec(x_9); +lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -x_40 = !lean_is_exclusive(x_37); -if (x_40 == 0) -{ -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_37, 0); -lean_dec(x_41); -x_42 = !lean_is_exclusive(x_38); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_38, 0); -x_44 = lean_ctor_get(x_38, 1); -lean_dec(x_44); -x_45 = !lean_is_exclusive(x_39); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_39, 1); -x_47 = l_Lake_BuildTrace_mix(x_46, x_43); -lean_ctor_set(x_39, 1, x_47); -lean_ctor_set(x_38, 0, x_35); -return x_37; -} -else -{ -lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_48 = lean_ctor_get(x_39, 0); -x_49 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); -x_50 = lean_ctor_get(x_39, 1); -lean_inc(x_50); -lean_inc(x_48); -lean_dec(x_39); -x_51 = l_Lake_BuildTrace_mix(x_50, x_43); -x_52 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_52, 0, x_48); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set_uint8(x_52, sizeof(void*)*2, x_49); -lean_ctor_set(x_38, 1, x_52); -lean_ctor_set(x_38, 0, x_35); -return x_37; -} -} -else -{ -lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_53 = lean_ctor_get(x_38, 0); -lean_inc(x_53); -lean_dec(x_38); -x_54 = lean_ctor_get(x_39, 0); -lean_inc(x_54); -x_55 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); -x_56 = lean_ctor_get(x_39, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_57 = x_39; +x_247 = lean_ctor_get(x_202, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_202, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_202)) { + lean_ctor_release(x_202, 0); + lean_ctor_release(x_202, 1); + x_249 = x_202; } else { - lean_dec_ref(x_39); - x_57 = lean_box(0); + lean_dec_ref(x_202); + x_249 = lean_box(0); } -x_58 = l_Lake_BuildTrace_mix(x_56, x_53); -if (lean_is_scalar(x_57)) { - x_59 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_249)) { + x_250 = lean_alloc_ctor(1, 2, 0); } else { - x_59 = x_57; + x_250 = x_249; } -lean_ctor_set(x_59, 0, x_54); -lean_ctor_set(x_59, 1, x_58); -lean_ctor_set_uint8(x_59, sizeof(void*)*2, x_55); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_35); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_37, 0, x_60); -return x_37; -} -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t 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; -x_61 = lean_ctor_get(x_37, 1); -lean_inc(x_61); -lean_dec(x_37); -x_62 = lean_ctor_get(x_38, 0); -lean_inc(x_62); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_63 = x_38; -} else { - lean_dec_ref(x_38); - x_63 = lean_box(0); -} -x_64 = lean_ctor_get(x_39, 0); -lean_inc(x_64); -x_65 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); -x_66 = lean_ctor_get(x_39, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_67 = x_39; -} else { - lean_dec_ref(x_39); - x_67 = lean_box(0); -} -x_68 = l_Lake_BuildTrace_mix(x_66, x_62); -if (lean_is_scalar(x_67)) { - x_69 = lean_alloc_ctor(0, 2, 1); -} else { - x_69 = x_67; -} -lean_ctor_set(x_69, 0, x_64); -lean_ctor_set(x_69, 1, x_68); -lean_ctor_set_uint8(x_69, sizeof(void*)*2, x_65); -if (lean_is_scalar(x_63)) { - x_70 = lean_alloc_ctor(0, 2, 0); -} else { - x_70 = x_63; -} -lean_ctor_set(x_70, 0, x_35); -lean_ctor_set(x_70, 1, x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_61); -return x_71; -} -} -else -{ -uint8_t x_72; -lean_dec(x_35); -x_72 = !lean_is_exclusive(x_37); -if (x_72 == 0) -{ -lean_object* x_73; uint8_t x_74; -x_73 = lean_ctor_get(x_37, 0); -lean_dec(x_73); -x_74 = !lean_is_exclusive(x_38); -if (x_74 == 0) -{ -return x_37; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_38, 0); -x_76 = lean_ctor_get(x_38, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_38); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_37, 0, x_77); -return x_37; -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_78 = lean_ctor_get(x_37, 1); -lean_inc(x_78); -lean_dec(x_37); -x_79 = lean_ctor_get(x_38, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_38, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_81 = x_38; -} else { - lean_dec_ref(x_38); - x_81 = lean_box(0); -} -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(1, 2, 0); -} else { - x_82 = x_81; -} -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_78); -return x_83; -} -} -} -else -{ -lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; -x_84 = lean_ctor_get(x_13, 0); -x_85 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); -x_86 = lean_ctor_get(x_13, 1); -lean_inc(x_86); -lean_inc(x_84); -lean_dec(x_13); -x_87 = l_Lake_BuildTrace_mix(x_86, x_16); -x_88 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_88, 0, x_84); -lean_ctor_set(x_88, 1, x_87); -lean_ctor_set_uint8(x_88, sizeof(void*)*2, x_85); -x_89 = lean_ctor_get(x_1, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -lean_dec(x_89); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 3); -lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_ctor_get(x_92, 6); -lean_inc(x_93); -x_94 = l_System_FilePath_normalize(x_93); -x_95 = l_Lake_joinRelative(x_91, x_94); -lean_dec(x_94); -x_96 = lean_ctor_get(x_92, 7); -lean_inc(x_96); -lean_dec(x_92); -x_97 = l_System_FilePath_normalize(x_96); -x_98 = l_Lake_joinRelative(x_95, x_97); -lean_dec(x_97); -x_99 = lean_ctor_get(x_1, 1); -lean_inc(x_99); -lean_dec(x_1); -x_100 = l_Lake_Module_clearOutputHashes___closed__1; -x_101 = l_Lean_modToFilePath(x_98, x_99, x_100); -lean_dec(x_99); -lean_dec(x_98); -x_102 = 0; -lean_inc(x_101); -x_103 = l_Lake_fetchFileTrace(x_101, x_102, x_4, x_5, x_6, x_7, x_88, x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_105 = lean_ctor_get(x_104, 1); -lean_inc(x_105); -x_106 = lean_ctor_get(x_103, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_107 = x_103; -} else { - lean_dec_ref(x_103); - x_107 = lean_box(0); -} -x_108 = lean_ctor_get(x_104, 0); -lean_inc(x_108); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_109 = x_104; -} else { - lean_dec_ref(x_104); - x_109 = lean_box(0); -} -x_110 = lean_ctor_get(x_105, 0); -lean_inc(x_110); -x_111 = lean_ctor_get_uint8(x_105, sizeof(void*)*2); -x_112 = lean_ctor_get(x_105, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_113 = x_105; -} else { - lean_dec_ref(x_105); - x_113 = lean_box(0); -} -x_114 = l_Lake_BuildTrace_mix(x_112, x_108); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 2, 1); -} else { - x_115 = x_113; -} -lean_ctor_set(x_115, 0, x_110); -lean_ctor_set(x_115, 1, x_114); -lean_ctor_set_uint8(x_115, sizeof(void*)*2, x_111); -if (lean_is_scalar(x_109)) { - x_116 = lean_alloc_ctor(0, 2, 0); -} else { - x_116 = x_109; -} -lean_ctor_set(x_116, 0, x_101); -lean_ctor_set(x_116, 1, x_115); -if (lean_is_scalar(x_107)) { - x_117 = lean_alloc_ctor(0, 2, 0); -} else { - x_117 = x_107; -} -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_106); -return x_117; -} -else -{ -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_dec(x_101); -x_118 = lean_ctor_get(x_103, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_119 = x_103; -} else { - lean_dec_ref(x_103); - x_119 = lean_box(0); -} -x_120 = lean_ctor_get(x_104, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_104, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_122 = x_104; -} else { - lean_dec_ref(x_104); - x_122 = lean_box(0); -} -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_122; -} -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -if (lean_is_scalar(x_119)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_119; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_118); -return x_124; -} -} -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t 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; uint8_t x_149; lean_object* x_150; lean_object* x_151; -x_125 = lean_ctor_get(x_16, 0); -x_126 = lean_ctor_get(x_16, 2); -x_127 = lean_ctor_get(x_16, 3); -lean_inc(x_127); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_16); -x_128 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; -x_129 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_129, 0, x_125); -lean_ctor_set(x_129, 1, x_128); -lean_ctor_set(x_129, 2, x_126); -lean_ctor_set(x_129, 3, x_127); -x_130 = lean_ctor_get(x_13, 0); -lean_inc(x_130); -x_131 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); -x_132 = lean_ctor_get(x_13, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - lean_ctor_release(x_13, 1); - x_133 = x_13; -} else { - lean_dec_ref(x_13); - x_133 = lean_box(0); -} -x_134 = l_Lake_BuildTrace_mix(x_132, x_129); -if (lean_is_scalar(x_133)) { - x_135 = lean_alloc_ctor(0, 2, 1); -} else { - x_135 = x_133; -} -lean_ctor_set(x_135, 0, x_130); -lean_ctor_set(x_135, 1, x_134); -lean_ctor_set_uint8(x_135, sizeof(void*)*2, x_131); -x_136 = lean_ctor_get(x_1, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -lean_dec(x_136); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 3); -lean_inc(x_139); -lean_dec(x_137); -x_140 = lean_ctor_get(x_139, 6); -lean_inc(x_140); -x_141 = l_System_FilePath_normalize(x_140); -x_142 = l_Lake_joinRelative(x_138, x_141); -lean_dec(x_141); -x_143 = lean_ctor_get(x_139, 7); -lean_inc(x_143); -lean_dec(x_139); -x_144 = l_System_FilePath_normalize(x_143); -x_145 = l_Lake_joinRelative(x_142, x_144); -lean_dec(x_144); -x_146 = lean_ctor_get(x_1, 1); -lean_inc(x_146); -lean_dec(x_1); -x_147 = l_Lake_Module_clearOutputHashes___closed__1; -x_148 = l_Lean_modToFilePath(x_145, x_146, x_147); -lean_dec(x_146); -lean_dec(x_145); -x_149 = 0; -lean_inc(x_148); -x_150 = l_Lake_fetchFileTrace(x_148, x_149, x_4, x_5, x_6, x_7, x_135, x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -if (lean_obj_tag(x_151) == 0) -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t 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; -x_152 = lean_ctor_get(x_151, 1); -lean_inc(x_152); -x_153 = lean_ctor_get(x_150, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_154 = x_150; -} else { - lean_dec_ref(x_150); - x_154 = lean_box(0); -} -x_155 = lean_ctor_get(x_151, 0); -lean_inc(x_155); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_156 = x_151; -} else { - lean_dec_ref(x_151); - x_156 = lean_box(0); -} -x_157 = lean_ctor_get(x_152, 0); -lean_inc(x_157); -x_158 = lean_ctor_get_uint8(x_152, sizeof(void*)*2); -x_159 = lean_ctor_get(x_152, 1); -lean_inc(x_159); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_160 = x_152; -} else { - lean_dec_ref(x_152); - x_160 = lean_box(0); -} -x_161 = l_Lake_BuildTrace_mix(x_159, x_155); -if (lean_is_scalar(x_160)) { - x_162 = lean_alloc_ctor(0, 2, 1); -} else { - x_162 = x_160; -} -lean_ctor_set(x_162, 0, x_157); -lean_ctor_set(x_162, 1, x_161); -lean_ctor_set_uint8(x_162, sizeof(void*)*2, x_158); -if (lean_is_scalar(x_156)) { - x_163 = lean_alloc_ctor(0, 2, 0); -} else { - x_163 = x_156; -} -lean_ctor_set(x_163, 0, x_148); -lean_ctor_set(x_163, 1, x_162); -if (lean_is_scalar(x_154)) { - x_164 = lean_alloc_ctor(0, 2, 0); -} else { - x_164 = x_154; -} -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_153); -return x_164; -} -else -{ -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_dec(x_148); -x_165 = lean_ctor_get(x_150, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_166 = x_150; -} else { - lean_dec_ref(x_150); - x_166 = lean_box(0); -} -x_167 = lean_ctor_get(x_151, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_151, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_169 = x_151; -} else { - lean_dec_ref(x_151); - x_169 = lean_box(0); -} -if (lean_is_scalar(x_169)) { - x_170 = lean_alloc_ctor(1, 2, 0); -} else { - x_170 = x_169; -} -lean_ctor_set(x_170, 0, x_167); -lean_ctor_set(x_170, 1, x_168); -if (lean_is_scalar(x_166)) { - x_171 = lean_alloc_ctor(0, 2, 0); -} else { - x_171 = x_166; -} -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_165); -return x_171; -} -} -} -} -else -{ -uint8_t x_175; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_175 = !lean_is_exclusive(x_10); -if (x_175 == 0) -{ -lean_object* x_176; -x_176 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_176, 0, x_10); -lean_ctor_set(x_176, 1, x_11); -return x_176; -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_177 = lean_ctor_get(x_10, 0); -x_178 = lean_ctor_get(x_10, 1); -lean_inc(x_178); -lean_inc(x_177); -lean_dec(x_10); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_177); -lean_ctor_set(x_179, 1, x_178); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_11); -return x_180; +lean_ctor_set(x_250, 0, x_247); +lean_ctor_set(x_250, 1, x_248); +x_251 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_203); +return x_251; } } } } } -LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___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_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore(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) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_8 = lean_ctor_get(x_1, 2); -lean_inc(x_8); -x_9 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_9, 0, x_8); -x_10 = l_Lake_Module_keyword; -x_11 = l_Lake_Module_leanArtsFacet; -lean_inc(x_1); -lean_inc(x_9); -x_12 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_12, 0, x_9); -lean_ctor_set(x_12, 1, x_10); -lean_ctor_set(x_12, 2, x_1); -lean_ctor_set(x_12, 3, x_11); -lean_inc(x_2); -lean_inc(x_5); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_4, 2); +lean_inc(x_11); +x_12 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_12, 0, x_11); +x_13 = l_Lake_Module_keyword; +x_14 = l_Lake_Module_leanArtsFacet; lean_inc(x_4); -lean_inc(x_3); -x_13 = lean_apply_6(x_2, x_12, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_13) == 0) +lean_inc(x_12); +x_15 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_13); +lean_ctor_set(x_15, 2, x_4); +lean_ctor_set(x_15, 3, x_14); +lean_inc(x_5); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_16 = lean_apply_6(x_5, x_15, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 0) +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -x_17 = lean_ctor_get(x_14, 0); -x_18 = lean_ctor_get(x_14, 1); -x_19 = lean_alloc_closure((void*)(l_Lake_Module_oleanFacetConfig___lambda__1___boxed), 9, 2); -lean_closure_set(x_19, 0, x_1); -lean_closure_set(x_19, 1, x_9); -x_20 = l_Task_Priority_default; -x_21 = 0; -x_22 = l_Lake_Module_recParseImports___closed__3; -x_23 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_17, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_22, x_15); -if (lean_obj_tag(x_23) == 0) +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 1); +x_22 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lambda__1___boxed), 12, 5); +lean_closure_set(x_22, 0, x_2); +lean_closure_set(x_22, 1, x_3); +lean_closure_set(x_22, 2, x_4); +lean_closure_set(x_22, 3, x_1); +lean_closure_set(x_22, 4, x_12); +x_23 = l_Task_Priority_default; +x_24 = 0; +x_25 = l_Lake_Module_recFetchInput___closed__3; +x_26 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_20, x_22, x_23, x_24, x_5, x_6, x_7, x_8, x_25, x_18); +if (lean_obj_tag(x_26) == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); -lean_ctor_set(x_14, 0, x_25); -lean_ctor_set(x_23, 0, x_14); -return x_23; +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_ctor_set(x_17, 0, x_28); +lean_ctor_set(x_26, 0, x_17); +return x_26; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_23, 0); -x_27 = lean_ctor_get(x_23, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_23); -lean_ctor_set(x_14, 0, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_14); -lean_ctor_set(x_28, 1, x_27); -return x_28; -} -} -else -{ -uint8_t x_29; -lean_free_object(x_14); -lean_dec(x_18); -x_29 = !lean_is_exclusive(x_23); -if (x_29 == 0) -{ -return x_23; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_23, 0); -x_31 = lean_ctor_get(x_23, 1); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_26, 1); lean_inc(x_30); -lean_dec(x_23); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} +lean_inc(x_29); +lean_dec(x_26); +lean_ctor_set(x_17, 0, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_17); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; -x_33 = lean_ctor_get(x_14, 0); -x_34 = lean_ctor_get(x_14, 1); +uint8_t x_32; +lean_free_object(x_17); +lean_dec(x_21); +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 0) +{ +return x_26; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_26, 0); +x_34 = lean_ctor_get(x_26, 1); lean_inc(x_34); lean_inc(x_33); -lean_dec(x_14); -x_35 = lean_alloc_closure((void*)(l_Lake_Module_oleanFacetConfig___lambda__1___boxed), 9, 2); -lean_closure_set(x_35, 0, x_1); -lean_closure_set(x_35, 1, x_9); -x_36 = l_Task_Priority_default; -x_37 = 0; -x_38 = l_Lake_Module_recParseImports___closed__3; -x_39 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_33, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_38, x_15); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_42 = x_39; -} else { - lean_dec_ref(x_39); - x_42 = lean_box(0); -} -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_34); -if (lean_is_scalar(x_42)) { - x_44 = lean_alloc_ctor(0, 2, 0); -} else { - x_44 = x_42; -} -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_41); -return x_44; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_34); -x_45 = lean_ctor_get(x_39, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_39, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_47 = x_39; -} else { - lean_dec_ref(x_39); - x_47 = lean_box(0); -} -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_47; -} -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_dec(x_26); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } else { -uint8_t x_49; -lean_dec(x_9); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; +x_36 = lean_ctor_get(x_17, 0); +x_37 = lean_ctor_get(x_17, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_17); +x_38 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lambda__1___boxed), 12, 5); +lean_closure_set(x_38, 0, x_2); +lean_closure_set(x_38, 1, x_3); +lean_closure_set(x_38, 2, x_4); +lean_closure_set(x_38, 3, x_1); +lean_closure_set(x_38, 4, x_12); +x_39 = l_Task_Priority_default; +x_40 = 0; +x_41 = l_Lake_Module_recFetchInput___closed__3; +x_42 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_36, x_38, x_39, x_40, x_5, x_6, x_7, x_8, x_41, x_18); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_45 = x_42; +} else { + lean_dec_ref(x_42); + x_45 = lean_box(0); +} +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_37); +if (lean_is_scalar(x_45)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_45; +} +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_44); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_37); +x_48 = lean_ctor_get(x_42, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_42, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_50 = x_42; +} else { + lean_dec_ref(x_42); + x_50 = lean_box(0); +} +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(1, 2, 0); +} else { + x_51 = x_50; +} +lean_ctor_set(x_51, 0, x_48); +lean_ctor_set(x_51, 1, x_49); +return x_51; +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_13); -if (x_49 == 0) +x_52 = !lean_is_exclusive(x_16); +if (x_52 == 0) { -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_13, 0); -lean_dec(x_50); -x_51 = !lean_is_exclusive(x_14); -if (x_51 == 0) +lean_object* x_53; uint8_t x_54; +x_53 = lean_ctor_get(x_16, 0); +lean_dec(x_53); +x_54 = !lean_is_exclusive(x_17); +if (x_54 == 0) { -return x_13; +return x_16; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_14, 0); -x_53 = lean_ctor_get(x_14, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_14); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -lean_ctor_set(x_13, 0, x_54); -return x_13; -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_55 = lean_ctor_get(x_13, 1); -lean_inc(x_55); -lean_dec(x_13); -x_56 = lean_ctor_get(x_14, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_17, 0); +x_56 = lean_ctor_get(x_17, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_14, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - x_58 = x_14; -} else { - lean_dec_ref(x_14); - x_58 = lean_box(0); +lean_inc(x_55); +lean_dec(x_17); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_16, 0, x_57); +return x_16; } -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(1, 2, 0); -} else { - x_59 = x_58; } -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_57); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_55); -return x_60; +else +{ +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_58 = lean_ctor_get(x_16, 1); +lean_inc(x_58); +lean_dec(x_16); +x_59 = lean_ctor_get(x_17, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_17, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_61 = x_17; +} else { + lean_dec_ref(x_17); + x_61 = lean_box(0); +} +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(1, 2, 0); +} else { + x_62 = x_61; +} +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_58); +return x_63; } } } else { -uint8_t x_61; -lean_dec(x_9); +uint8_t x_64; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_13); -if (x_61 == 0) +x_64 = !lean_is_exclusive(x_16); +if (x_64 == 0) { -return x_13; +return x_16; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_13, 0); -x_63 = lean_ctor_get(x_13, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_13); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_16, 0); +x_66 = lean_ctor_get(x_16, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_16); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } } } +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__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) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___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___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___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_4); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +return x_2; +} +} static lean_object* _init_l_Lake_Module_oleanFacetConfig___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_Module_oleanFacetConfig___lambda__2), 7, 0); +x_1 = lean_alloc_closure((void*)(l_Lake_Module_oleanFacetConfig___lambda__1___boxed), 1, 0); return x_1; } } @@ -50021,19 +60853,33 @@ static lean_object* _init_l_Lake_Module_oleanFacetConfig___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_stdFormat___at_Lake_Module_oleanFacetConfig___spec__2___boxed), 2, 0); +x_1 = lean_mk_string_unchecked("No olean generated. This is likely an error in Lean or Lake.", 60, 60); return x_1; } } static lean_object* _init_l_Lake_Module_oleanFacetConfig___closed__3() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lake_Module_clearOutputHashes___closed__1; +x_2 = l_Lake_Module_oleanFacetConfig___closed__1; +x_3 = l_Lake_Module_oleanFacetConfig___closed__2; +x_4 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore), 10, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lake_Module_oleanFacetConfig___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lake_Module_keyword; -x_2 = l_Lake_Module_oleanFacetConfig___closed__1; +x_2 = l_Lake_Module_oleanFacetConfig___closed__3; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -50048,43 +60894,193 @@ static lean_object* _init_l_Lake_Module_oleanFacetConfig() { _start: { lean_object* x_1; -x_1 = l_Lake_Module_oleanFacetConfig___closed__3; +x_1 = l_Lake_Module_oleanFacetConfig___closed__4; return x_1; } } -LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__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_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___lambda__1___boxed(lean_object* x_1) { _start: { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_4); -lean_dec(x_4); -x_12 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lake_stdFormat___at_Lake_Module_oleanFacetConfig___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = lean_unbox(x_1); +lean_object* x_2; +x_2 = l_Lake_Module_oleanFacetConfig___lambda__1(x_1); lean_dec(x_1); -x_4 = l_Lake_stdFormat___at_Lake_Module_oleanFacetConfig___spec__2(x_3, x_2); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 2); +lean_inc(x_2); +return x_2; +} +} +static lean_object* _init_l_Lake_Module_oleanServerFacetConfig___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_oleanServerFacetConfig___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_oleanServerFacetConfig___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("No server olean generated. Ensure the module system is enabled.", 63, 63); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_oleanServerFacetConfig___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lake_Module_clearOutputHashes___closed__2; +x_2 = l_Lake_Module_oleanServerFacetConfig___closed__1; +x_3 = l_Lake_Module_oleanServerFacetConfig___closed__2; +x_4 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore), 10, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lake_Module_oleanFacetConfig___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) { +static lean_object* _init_l_Lake_Module_oleanServerFacetConfig___closed__4() { _start: { -lean_object* x_10; -x_10 = l_Lake_Module_oleanFacetConfig___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_3); -return x_10; +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lake_Module_keyword; +x_2 = l_Lake_Module_oleanServerFacetConfig___closed__3; +x_3 = l_Lake_instDataKindFilePath; +x_4 = 1; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; +x_6 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4 + 1, x_4); +return x_6; +} +} +static lean_object* _init_l_Lake_Module_oleanServerFacetConfig() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_oleanServerFacetConfig___closed__4; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFacetConfig___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_Module_oleanServerFacetConfig___lambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 3); +lean_inc(x_2); +return x_2; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFacetConfig___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_Module_oleanPrivateFacetConfig___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFacetConfig___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("No private olean generated. Ensure the module system is enabled.", 64, 64); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFacetConfig___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lake_Module_clearOutputHashes___closed__3; +x_2 = l_Lake_Module_oleanPrivateFacetConfig___closed__1; +x_3 = l_Lake_Module_oleanPrivateFacetConfig___closed__2; +x_4 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore), 10, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFacetConfig___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lake_Module_keyword; +x_2 = l_Lake_Module_oleanPrivateFacetConfig___closed__3; +x_3 = l_Lake_instDataKindFilePath; +x_4 = 1; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; +x_6 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4 + 1, x_4); +return x_6; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFacetConfig() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_Module_oleanPrivateFacetConfig___closed__4; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFacetConfig___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_Module_oleanPrivateFacetConfig___lambda__1(x_1); +lean_dec(x_1); +return x_2; } } static lean_object* _init_l_Lake_Module_ileanFacetConfig___lambda__1___closed__1() { _start: { lean_object* x_1; +x_1 = lean_mk_string_unchecked("No ilean generated. This is likely an error in Lean or Lake.", 60, 60); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_ileanFacetConfig___lambda__1___closed__2() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 3; +x_2 = l_Lake_Module_ileanFacetConfig___lambda__1___closed__1; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lake_Module_ileanFacetConfig___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; x_1 = lean_mk_string_unchecked(":ilean", 6, 6); return x_1; } @@ -50092,399 +61088,403 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_Module_ileanFacetConfig___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) { _start: { -lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_9 = lean_ctor_get(x_1, 1); +lean_object* x_9; +x_9 = lean_ctor_get(x_2, 4); lean_inc(x_9); -x_10 = 1; -x_11 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -lean_inc(x_9); -x_12 = l_Lean_Name_toString(x_9, x_10, x_11); -x_13 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_14 = lean_string_append(x_13, x_12); -lean_dec(x_12); -x_15 = l_Lake_Module_ileanFacetConfig___lambda__1___closed__1; -x_16 = lean_string_append(x_14, x_15); -x_17 = !lean_is_exclusive(x_7); -if (x_17 == 0) +lean_dec(x_2); +if (lean_obj_tag(x_9) == 0) { -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; uint8_t x_32; lean_object* x_33; lean_object* x_34; -x_18 = lean_ctor_get(x_7, 1); -lean_dec(x_18); -x_19 = l_Lake_BuildTrace_nil(x_16); -lean_ctor_set(x_7, 1, x_19); -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); +uint8_t x_10; lean_dec(x_1); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 3); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_ctor_get(x_23, 6); -lean_inc(x_24); -x_25 = l_System_FilePath_normalize(x_24); -x_26 = l_Lake_joinRelative(x_22, x_25); -lean_dec(x_25); -x_27 = lean_ctor_get(x_23, 7); -lean_inc(x_27); -lean_dec(x_23); -x_28 = l_System_FilePath_normalize(x_27); -x_29 = l_Lake_joinRelative(x_26, x_28); -lean_dec(x_28); -x_30 = l_Lake_Module_clearOutputHashes___closed__2; -x_31 = l_Lean_modToFilePath(x_29, x_9, x_30); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_array_get_size(x_11); +x_13 = l_Lake_Module_ileanFacetConfig___lambda__1___closed__2; +x_14 = lean_array_push(x_11, x_13); +lean_ctor_set(x_7, 0, x_14); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_7); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_8); +return x_16; +} +else +{ +lean_object* x_17; uint8_t 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; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_19 = lean_ctor_get(x_7, 1); +lean_inc(x_19); +lean_inc(x_17); +lean_dec(x_7); +x_20 = lean_array_get_size(x_17); +x_21 = l_Lake_Module_ileanFacetConfig___lambda__1___closed__2; +x_22 = lean_array_push(x_17, x_21); +x_23 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_19); +lean_ctor_set_uint8(x_23, sizeof(void*)*2, x_18); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_8); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t 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; uint8_t x_35; +x_26 = lean_ctor_get(x_9, 0); +lean_inc(x_26); lean_dec(x_9); -lean_dec(x_29); -x_32 = 0; -lean_inc(x_31); -x_33 = l_Lake_fetchFileTrace(x_31, x_32, x_3, x_4, x_5, x_6, x_7, x_8); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -if (lean_obj_tag(x_34) == 0) +x_27 = lean_ctor_get(x_1, 1); +lean_inc(x_27); +lean_dec(x_1); +x_28 = 1; +x_29 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; +x_30 = l_Lean_Name_toString(x_27, x_28, x_29); +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_32 = lean_string_append(x_31, x_30); +lean_dec(x_30); +x_33 = l_Lake_Module_ileanFacetConfig___lambda__1___closed__3; +x_34 = lean_string_append(x_32, x_33); +x_35 = !lean_is_exclusive(x_7); +if (x_35 == 0) { -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -x_36 = !lean_is_exclusive(x_33); -if (x_36 == 0) +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = l_Lake_BuildTrace_nil(x_34); +lean_ctor_set(x_7, 1, x_37); +x_38 = 0; +lean_inc(x_26); +x_39 = l_Lake_fetchFileTrace(x_26, x_38, x_3, x_4, x_5, x_6, x_7, x_8); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_33, 0); -lean_dec(x_37); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) +lean_object* x_41; uint8_t x_42; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +x_42 = !lean_is_exclusive(x_39); +if (x_42 == 0) { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_dec(x_40); -x_41 = !lean_is_exclusive(x_35); -if (x_41 == 0) +lean_object* x_43; uint8_t x_44; +x_43 = lean_ctor_get(x_39, 0); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_35, 1); -x_43 = l_Lake_BuildTrace_mix(x_42, x_39); -lean_ctor_set(x_35, 1, x_43); -lean_ctor_set(x_34, 0, x_31); -return x_33; +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); +lean_dec(x_46); +x_47 = !lean_is_exclusive(x_41); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_41, 1); +x_49 = l_Lake_BuildTrace_mix(x_48, x_45); +lean_ctor_set(x_41, 1, x_49); +lean_ctor_set(x_40, 0, x_26); +return x_39; } else { -lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_35, 0); -x_45 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_46 = lean_ctor_get(x_35, 1); -lean_inc(x_46); -lean_inc(x_44); -lean_dec(x_35); -x_47 = l_Lake_BuildTrace_mix(x_46, x_39); -x_48 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_48, 0, x_44); -lean_ctor_set(x_48, 1, x_47); -lean_ctor_set_uint8(x_48, sizeof(void*)*2, x_45); -lean_ctor_set(x_34, 1, x_48); -lean_ctor_set(x_34, 0, x_31); -return x_33; -} -} -else -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_49 = lean_ctor_get(x_34, 0); -lean_inc(x_49); -lean_dec(x_34); -x_50 = lean_ctor_get(x_35, 0); -lean_inc(x_50); -x_51 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_52 = lean_ctor_get(x_35, 1); +lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_41, 0); +x_51 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_52 = lean_ctor_get(x_41, 1); lean_inc(x_52); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_53 = x_35; -} else { - lean_dec_ref(x_35); - x_53 = lean_box(0); -} -x_54 = l_Lake_BuildTrace_mix(x_52, x_49); -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 2, 1); -} else { - x_55 = x_53; -} -lean_ctor_set(x_55, 0, x_50); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set_uint8(x_55, sizeof(void*)*2, x_51); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_31); -lean_ctor_set(x_56, 1, x_55); -lean_ctor_set(x_33, 0, x_56); -return x_33; +lean_inc(x_50); +lean_dec(x_41); +x_53 = l_Lake_BuildTrace_mix(x_52, x_45); +x_54 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_54, 0, x_50); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set_uint8(x_54, sizeof(void*)*2, x_51); +lean_ctor_set(x_40, 1, x_54); +lean_ctor_set(x_40, 0, x_26); +return x_39; } } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t 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; -x_57 = lean_ctor_get(x_33, 1); -lean_inc(x_57); -lean_dec(x_33); -x_58 = lean_ctor_get(x_34, 0); +lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_55 = lean_ctor_get(x_40, 0); +lean_inc(x_55); +lean_dec(x_40); +x_56 = lean_ctor_get(x_41, 0); +lean_inc(x_56); +x_57 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_58 = lean_ctor_get(x_41, 1); lean_inc(x_58); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_59 = x_34; +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_59 = x_41; } else { - lean_dec_ref(x_34); + lean_dec_ref(x_41); x_59 = lean_box(0); } -x_60 = lean_ctor_get(x_35, 0); -lean_inc(x_60); -x_61 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_62 = lean_ctor_get(x_35, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_63 = x_35; -} else { - lean_dec_ref(x_35); - x_63 = lean_box(0); -} -x_64 = l_Lake_BuildTrace_mix(x_62, x_58); -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(0, 2, 1); -} else { - x_65 = x_63; -} -lean_ctor_set(x_65, 0, x_60); -lean_ctor_set(x_65, 1, x_64); -lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_61); +x_60 = l_Lake_BuildTrace_mix(x_58, x_55); if (lean_is_scalar(x_59)) { - x_66 = lean_alloc_ctor(0, 2, 0); + x_61 = lean_alloc_ctor(0, 2, 1); } else { - x_66 = x_59; + x_61 = x_59; } -lean_ctor_set(x_66, 0, x_31); -lean_ctor_set(x_66, 1, x_65); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_57); -return x_67; +lean_ctor_set(x_61, 0, x_56); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set_uint8(x_61, sizeof(void*)*2, x_57); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_26); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_39, 0, x_62); +return x_39; } } else { -uint8_t x_68; -lean_dec(x_31); -x_68 = !lean_is_exclusive(x_33); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_33, 0); -lean_dec(x_69); -x_70 = !lean_is_exclusive(x_34); -if (x_70 == 0) -{ -return x_33; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_34, 0); -x_72 = lean_ctor_get(x_34, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_34); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -lean_ctor_set(x_33, 0, x_73); -return x_33; -} -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_74 = lean_ctor_get(x_33, 1); -lean_inc(x_74); -lean_dec(x_33); -x_75 = lean_ctor_get(x_34, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_34, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_77 = x_34; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t 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; +x_63 = lean_ctor_get(x_39, 1); +lean_inc(x_63); +lean_dec(x_39); +x_64 = lean_ctor_get(x_40, 0); +lean_inc(x_64); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_65 = x_40; } else { - lean_dec_ref(x_34); - x_77 = lean_box(0); + lean_dec_ref(x_40); + x_65 = lean_box(0); } -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(1, 2, 0); +x_66 = lean_ctor_get(x_41, 0); +lean_inc(x_66); +x_67 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_68 = lean_ctor_get(x_41, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_69 = x_41; } else { - x_78 = x_77; + lean_dec_ref(x_41); + x_69 = lean_box(0); } -lean_ctor_set(x_78, 0, x_75); -lean_ctor_set(x_78, 1, x_76); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_74); -return x_79; +x_70 = l_Lake_BuildTrace_mix(x_68, x_64); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 2, 1); +} else { + x_71 = x_69; } +lean_ctor_set(x_71, 0, x_66); +lean_ctor_set(x_71, 1, x_70); +lean_ctor_set_uint8(x_71, sizeof(void*)*2, x_67); +if (lean_is_scalar(x_65)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_65; +} +lean_ctor_set(x_72, 0, x_26); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_63); +return x_73; } } else { -lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; -x_80 = lean_ctor_get(x_7, 0); -x_81 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +uint8_t x_74; +lean_dec(x_26); +x_74 = !lean_is_exclusive(x_39); +if (x_74 == 0) +{ +lean_object* x_75; uint8_t x_76; +x_75 = lean_ctor_get(x_39, 0); +lean_dec(x_75); +x_76 = !lean_is_exclusive(x_40); +if (x_76 == 0) +{ +return x_39; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_40, 0); +x_78 = lean_ctor_get(x_40, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_40); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +lean_ctor_set(x_39, 0, x_79); +return x_39; +} +} +else +{ +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_80 = lean_ctor_get(x_39, 1); lean_inc(x_80); -lean_dec(x_7); -x_82 = l_Lake_BuildTrace_nil(x_16); -x_83 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_82); -lean_ctor_set_uint8(x_83, sizeof(void*)*2, x_81); -x_84 = lean_ctor_get(x_1, 0); -lean_inc(x_84); -lean_dec(x_1); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 3); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_87, 6); -lean_inc(x_88); -x_89 = l_System_FilePath_normalize(x_88); -x_90 = l_Lake_joinRelative(x_86, x_89); -lean_dec(x_89); -x_91 = lean_ctor_get(x_87, 7); -lean_inc(x_91); -lean_dec(x_87); -x_92 = l_System_FilePath_normalize(x_91); -x_93 = l_Lake_joinRelative(x_90, x_92); -lean_dec(x_92); -x_94 = l_Lake_Module_clearOutputHashes___closed__2; -x_95 = l_Lean_modToFilePath(x_93, x_9, x_94); -lean_dec(x_9); -lean_dec(x_93); -x_96 = 0; -lean_inc(x_95); -x_97 = l_Lake_fetchFileTrace(x_95, x_96, x_3, x_4, x_5, x_6, x_83, x_8); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_99 = lean_ctor_get(x_98, 1); -lean_inc(x_99); -x_100 = lean_ctor_get(x_97, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_101 = x_97; +lean_dec(x_39); +x_81 = lean_ctor_get(x_40, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_40, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_83 = x_40; } else { - lean_dec_ref(x_97); + lean_dec_ref(x_40); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_80); +return x_85; +} +} +} +else +{ +lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; +x_86 = lean_ctor_get(x_7, 0); +x_87 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_inc(x_86); +lean_dec(x_7); +x_88 = l_Lake_BuildTrace_nil(x_34); +x_89 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set_uint8(x_89, sizeof(void*)*2, x_87); +x_90 = 0; +lean_inc(x_26); +x_91 = l_Lake_fetchFileTrace(x_26, x_90, x_3, x_4, x_5, x_6, x_89, x_8); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_95 = x_91; +} else { + lean_dec_ref(x_91); + x_95 = lean_box(0); +} +x_96 = lean_ctor_get(x_92, 0); +lean_inc(x_96); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_97 = x_92; +} else { + lean_dec_ref(x_92); + x_97 = lean_box(0); +} +x_98 = lean_ctor_get(x_93, 0); +lean_inc(x_98); +x_99 = lean_ctor_get_uint8(x_93, sizeof(void*)*2); +x_100 = lean_ctor_get(x_93, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_101 = x_93; +} else { + lean_dec_ref(x_93); x_101 = lean_box(0); } -x_102 = lean_ctor_get(x_98, 0); -lean_inc(x_102); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_103 = x_98; -} else { - lean_dec_ref(x_98); - x_103 = lean_box(0); -} -x_104 = lean_ctor_get(x_99, 0); -lean_inc(x_104); -x_105 = lean_ctor_get_uint8(x_99, sizeof(void*)*2); -x_106 = lean_ctor_get(x_99, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_107 = x_99; -} else { - lean_dec_ref(x_99); - x_107 = lean_box(0); -} -x_108 = l_Lake_BuildTrace_mix(x_106, x_102); -if (lean_is_scalar(x_107)) { - x_109 = lean_alloc_ctor(0, 2, 1); -} else { - x_109 = x_107; -} -lean_ctor_set(x_109, 0, x_104); -lean_ctor_set(x_109, 1, x_108); -lean_ctor_set_uint8(x_109, sizeof(void*)*2, x_105); -if (lean_is_scalar(x_103)) { - x_110 = lean_alloc_ctor(0, 2, 0); -} else { - x_110 = x_103; -} -lean_ctor_set(x_110, 0, x_95); -lean_ctor_set(x_110, 1, x_109); +x_102 = l_Lake_BuildTrace_mix(x_100, x_96); if (lean_is_scalar(x_101)) { - x_111 = lean_alloc_ctor(0, 2, 0); + x_103 = lean_alloc_ctor(0, 2, 1); } else { - x_111 = x_101; + x_103 = x_101; } -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_100); -return x_111; +lean_ctor_set(x_103, 0, x_98); +lean_ctor_set(x_103, 1, x_102); +lean_ctor_set_uint8(x_103, sizeof(void*)*2, x_99); +if (lean_is_scalar(x_97)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_97; +} +lean_ctor_set(x_104, 0, x_26); +lean_ctor_set(x_104, 1, x_103); +if (lean_is_scalar(x_95)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_95; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_94); +return x_105; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_95); -x_112 = lean_ctor_get(x_97, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_113 = x_97; +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_26); +x_106 = lean_ctor_get(x_91, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_107 = x_91; } else { - lean_dec_ref(x_97); - x_113 = lean_box(0); + lean_dec_ref(x_91); + x_107 = lean_box(0); } -x_114 = lean_ctor_get(x_98, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_98, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_116 = x_98; +x_108 = lean_ctor_get(x_92, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_92, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_110 = x_92; } else { - lean_dec_ref(x_98); - x_116 = lean_box(0); + lean_dec_ref(x_92); + x_110 = lean_box(0); } -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); } else { - x_117 = x_116; + x_111 = x_110; } -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -if (lean_is_scalar(x_113)) { - x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +if (lean_is_scalar(x_107)) { + x_112 = lean_alloc_ctor(0, 2, 0); } else { - x_118 = x_113; + x_112 = x_107; +} +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_106); +return x_112; } -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_112); -return x_118; } } } @@ -50531,8 +61531,8 @@ x_19 = lean_alloc_closure((void*)(l_Lake_Module_ileanFacetConfig___lambda__1___b lean_closure_set(x_19, 0, x_1); x_20 = l_Task_Priority_default; x_21 = 0; -x_22 = l_Lake_Module_recParseImports___closed__3; -x_23 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_17, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_22, x_15); +x_22 = l_Lake_Module_recFetchInput___closed__3; +x_23 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_17, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_22, x_15); if (lean_obj_tag(x_23) == 0) { uint8_t x_24; @@ -50597,8 +61597,8 @@ x_35 = lean_alloc_closure((void*)(l_Lake_Module_ileanFacetConfig___lambda__1___b lean_closure_set(x_35, 0, x_1); x_36 = l_Task_Priority_default; x_37 = 0; -x_38 = l_Lake_Module_recParseImports___closed__3; -x_39 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_33, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_38, x_15); +x_38 = l_Lake_Module_recFetchInput___closed__3; +x_39 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_33, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_38, x_15); if (lean_obj_tag(x_39) == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; @@ -50764,7 +61764,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_ileanFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -50792,7 +61792,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); return x_9; } } @@ -50800,6 +61799,26 @@ static lean_object* _init_l_Lake_Module_cFacetConfig___lambda__1___closed__1() { _start: { lean_object* x_1; +x_1 = lean_mk_string_unchecked("No C file generated. This is likely an error in Lean or Lake.", 61, 61); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_cFacetConfig___lambda__1___closed__2() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 3; +x_2 = l_Lake_Module_cFacetConfig___lambda__1___closed__1; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lake_Module_cFacetConfig___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; x_1 = lean_mk_string_unchecked(":c", 2, 2); return x_1; } @@ -50807,421 +61826,426 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_Module_cFacetConfig___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) { _start: { -lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_9 = lean_ctor_get(x_1, 1); +lean_object* x_9; +x_9 = lean_ctor_get(x_2, 5); lean_inc(x_9); -x_10 = 1; -x_11 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -lean_inc(x_9); -x_12 = l_Lean_Name_toString(x_9, x_10, x_11); -x_13 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_14 = lean_string_append(x_13, x_12); -lean_dec(x_12); -x_15 = l_Lake_Module_cFacetConfig___lambda__1___closed__1; -x_16 = lean_string_append(x_14, x_15); -x_17 = !lean_is_exclusive(x_7); -if (x_17 == 0) +lean_dec(x_2); +if (lean_obj_tag(x_9) == 0) { -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; uint8_t x_32; lean_object* x_33; lean_object* x_34; -x_18 = lean_ctor_get(x_7, 1); -lean_dec(x_18); -x_19 = l_Lake_BuildTrace_nil(x_16); -lean_ctor_set(x_7, 1, x_19); -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -lean_dec(x_1); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 3); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_ctor_get(x_23, 6); -lean_inc(x_24); -x_25 = l_System_FilePath_normalize(x_24); -x_26 = l_Lake_joinRelative(x_22, x_25); -lean_dec(x_25); -x_27 = lean_ctor_get(x_23, 10); -lean_inc(x_27); -lean_dec(x_23); -x_28 = l_System_FilePath_normalize(x_27); -x_29 = l_Lake_joinRelative(x_26, x_28); -lean_dec(x_28); -x_30 = l_Lake_Module_clearOutputHashes___closed__3; -x_31 = l_Lean_modToFilePath(x_29, x_9, x_30); -lean_dec(x_9); -lean_dec(x_29); -x_32 = 0; -lean_inc(x_31); -x_33 = l_Lake_fetchFileTrace(x_31, x_32, x_3, x_4, x_5, x_6, x_7, x_8); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -x_36 = !lean_is_exclusive(x_33); -if (x_36 == 0) -{ -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_33, 0); -lean_dec(x_37); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_dec(x_40); -x_41 = !lean_is_exclusive(x_35); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_35, 1); -x_43 = l_Lake_BuildTrace_mix(x_42, x_39); -x_44 = lean_ctor_get(x_6, 2); -lean_inc(x_44); +uint8_t x_10; lean_dec(x_6); -x_45 = l_Lake_BuildTrace_mix(x_43, x_44); -lean_ctor_set(x_35, 1, x_45); -lean_ctor_set(x_34, 0, x_31); -return x_33; +lean_dec(x_1); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_array_get_size(x_11); +x_13 = l_Lake_Module_cFacetConfig___lambda__1___closed__2; +x_14 = lean_array_push(x_11, x_13); +lean_ctor_set(x_7, 0, x_14); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_7); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_8); +return x_16; } else { -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_46 = lean_ctor_get(x_35, 0); -x_47 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_48 = lean_ctor_get(x_35, 1); -lean_inc(x_48); -lean_inc(x_46); -lean_dec(x_35); -x_49 = l_Lake_BuildTrace_mix(x_48, x_39); +lean_object* x_17; uint8_t 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; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_19 = lean_ctor_get(x_7, 1); +lean_inc(x_19); +lean_inc(x_17); +lean_dec(x_7); +x_20 = lean_array_get_size(x_17); +x_21 = l_Lake_Module_cFacetConfig___lambda__1___closed__2; +x_22 = lean_array_push(x_17, x_21); +x_23 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_19); +lean_ctor_set_uint8(x_23, sizeof(void*)*2, x_18); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_8); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t 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; uint8_t x_35; +x_26 = lean_ctor_get(x_9, 0); +lean_inc(x_26); +lean_dec(x_9); +x_27 = lean_ctor_get(x_1, 1); +lean_inc(x_27); +lean_dec(x_1); +x_28 = 1; +x_29 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; +x_30 = l_Lean_Name_toString(x_27, x_28, x_29); +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_32 = lean_string_append(x_31, x_30); +lean_dec(x_30); +x_33 = l_Lake_Module_cFacetConfig___lambda__1___closed__3; +x_34 = lean_string_append(x_32, x_33); +x_35 = !lean_is_exclusive(x_7); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = l_Lake_BuildTrace_nil(x_34); +lean_ctor_set(x_7, 1, x_37); +x_38 = 0; +lean_inc(x_26); +x_39 = l_Lake_fetchFileTrace(x_26, x_38, x_3, x_4, x_5, x_6, x_7, x_8); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; uint8_t x_42; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +x_42 = !lean_is_exclusive(x_39); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; +x_43 = lean_ctor_get(x_39, 0); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); +lean_dec(x_46); +x_47 = !lean_is_exclusive(x_41); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_41, 1); +x_49 = l_Lake_BuildTrace_mix(x_48, x_45); x_50 = lean_ctor_get(x_6, 2); lean_inc(x_50); lean_dec(x_6); x_51 = l_Lake_BuildTrace_mix(x_49, x_50); -x_52 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_52, 0, x_46); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set_uint8(x_52, sizeof(void*)*2, x_47); -lean_ctor_set(x_34, 1, x_52); -lean_ctor_set(x_34, 0, x_31); -return x_33; -} +lean_ctor_set(x_41, 1, x_51); +lean_ctor_set(x_40, 0, x_26); +return x_39; } else { -lean_object* x_53; lean_object* x_54; uint8_t 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; -x_53 = lean_ctor_get(x_34, 0); -lean_inc(x_53); -lean_dec(x_34); -x_54 = lean_ctor_get(x_35, 0); +lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_52 = lean_ctor_get(x_41, 0); +x_53 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_54 = lean_ctor_get(x_41, 1); lean_inc(x_54); -x_55 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_56 = lean_ctor_get(x_35, 1); +lean_inc(x_52); +lean_dec(x_41); +x_55 = l_Lake_BuildTrace_mix(x_54, x_45); +x_56 = lean_ctor_get(x_6, 2); lean_inc(x_56); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_57 = x_35; -} else { - lean_dec_ref(x_35); - x_57 = lean_box(0); +lean_dec(x_6); +x_57 = l_Lake_BuildTrace_mix(x_55, x_56); +x_58 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set_uint8(x_58, sizeof(void*)*2, x_53); +lean_ctor_set(x_40, 1, x_58); +lean_ctor_set(x_40, 0, x_26); +return x_39; } -x_58 = l_Lake_BuildTrace_mix(x_56, x_53); -x_59 = lean_ctor_get(x_6, 2); +} +else +{ +lean_object* x_59; lean_object* x_60; uint8_t 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; +x_59 = lean_ctor_get(x_40, 0); lean_inc(x_59); +lean_dec(x_40); +x_60 = lean_ctor_get(x_41, 0); +lean_inc(x_60); +x_61 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_62 = lean_ctor_get(x_41, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_63 = x_41; +} else { + lean_dec_ref(x_41); + x_63 = lean_box(0); +} +x_64 = l_Lake_BuildTrace_mix(x_62, x_59); +x_65 = lean_ctor_get(x_6, 2); +lean_inc(x_65); lean_dec(x_6); -x_60 = l_Lake_BuildTrace_mix(x_58, x_59); -if (lean_is_scalar(x_57)) { - x_61 = lean_alloc_ctor(0, 2, 1); +x_66 = l_Lake_BuildTrace_mix(x_64, x_65); +if (lean_is_scalar(x_63)) { + x_67 = lean_alloc_ctor(0, 2, 1); } else { - x_61 = x_57; + x_67 = x_63; } -lean_ctor_set(x_61, 0, x_54); -lean_ctor_set(x_61, 1, x_60); -lean_ctor_set_uint8(x_61, sizeof(void*)*2, x_55); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_31); -lean_ctor_set(x_62, 1, x_61); -lean_ctor_set(x_33, 0, x_62); -return x_33; +lean_ctor_set(x_67, 0, x_60); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set_uint8(x_67, sizeof(void*)*2, x_61); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_26); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_39, 0, x_68); +return x_39; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t 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; -x_63 = lean_ctor_get(x_33, 1); -lean_inc(x_63); -lean_dec(x_33); -x_64 = lean_ctor_get(x_34, 0); -lean_inc(x_64); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_65 = x_34; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t 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; +x_69 = lean_ctor_get(x_39, 1); +lean_inc(x_69); +lean_dec(x_39); +x_70 = lean_ctor_get(x_40, 0); +lean_inc(x_70); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_71 = x_40; } else { - lean_dec_ref(x_34); - x_65 = lean_box(0); + lean_dec_ref(x_40); + x_71 = lean_box(0); } -x_66 = lean_ctor_get(x_35, 0); -lean_inc(x_66); -x_67 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_68 = lean_ctor_get(x_35, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_69 = x_35; +x_72 = lean_ctor_get(x_41, 0); +lean_inc(x_72); +x_73 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_74 = lean_ctor_get(x_41, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_75 = x_41; } else { - lean_dec_ref(x_35); - x_69 = lean_box(0); + lean_dec_ref(x_41); + x_75 = lean_box(0); } -x_70 = l_Lake_BuildTrace_mix(x_68, x_64); -x_71 = lean_ctor_get(x_6, 2); -lean_inc(x_71); +x_76 = l_Lake_BuildTrace_mix(x_74, x_70); +x_77 = lean_ctor_get(x_6, 2); +lean_inc(x_77); lean_dec(x_6); -x_72 = l_Lake_BuildTrace_mix(x_70, x_71); -if (lean_is_scalar(x_69)) { - x_73 = lean_alloc_ctor(0, 2, 1); +x_78 = l_Lake_BuildTrace_mix(x_76, x_77); +if (lean_is_scalar(x_75)) { + x_79 = lean_alloc_ctor(0, 2, 1); } else { - x_73 = x_69; + x_79 = x_75; } -lean_ctor_set(x_73, 0, x_66); -lean_ctor_set(x_73, 1, x_72); -lean_ctor_set_uint8(x_73, sizeof(void*)*2, x_67); -if (lean_is_scalar(x_65)) { - x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_72); +lean_ctor_set(x_79, 1, x_78); +lean_ctor_set_uint8(x_79, sizeof(void*)*2, x_73); +if (lean_is_scalar(x_71)) { + x_80 = lean_alloc_ctor(0, 2, 0); } else { - x_74 = x_65; + x_80 = x_71; } -lean_ctor_set(x_74, 0, x_31); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_63); -return x_75; +lean_ctor_set(x_80, 0, x_26); +lean_ctor_set(x_80, 1, x_79); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_69); +return x_81; } } else { -uint8_t x_76; -lean_dec(x_31); +uint8_t x_82; +lean_dec(x_26); lean_dec(x_6); -x_76 = !lean_is_exclusive(x_33); -if (x_76 == 0) +x_82 = !lean_is_exclusive(x_39); +if (x_82 == 0) { -lean_object* x_77; uint8_t x_78; -x_77 = lean_ctor_get(x_33, 0); -lean_dec(x_77); -x_78 = !lean_is_exclusive(x_34); -if (x_78 == 0) +lean_object* x_83; uint8_t x_84; +x_83 = lean_ctor_get(x_39, 0); +lean_dec(x_83); +x_84 = !lean_is_exclusive(x_40); +if (x_84 == 0) { -return x_33; +return x_39; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_34, 0); -x_80 = lean_ctor_get(x_34, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_34); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_33, 0, x_81); -return x_33; +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_40, 0); +x_86 = lean_ctor_get(x_40, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_40); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +lean_ctor_set(x_39, 0, x_87); +return x_39; } } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_82 = lean_ctor_get(x_33, 1); -lean_inc(x_82); -lean_dec(x_33); -x_83 = lean_ctor_get(x_34, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_34, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_85 = x_34; -} else { - lean_dec_ref(x_34); - x_85 = lean_box(0); -} -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(1, 2, 0); -} else { - x_86 = x_85; -} -lean_ctor_set(x_86, 0, x_83); -lean_ctor_set(x_86, 1, x_84); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_82); -return x_87; -} -} -} -else -{ -lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; -x_88 = lean_ctor_get(x_7, 0); -x_89 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_88 = lean_ctor_get(x_39, 1); lean_inc(x_88); -lean_dec(x_7); -x_90 = l_Lake_BuildTrace_nil(x_16); -x_91 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_90); -lean_ctor_set_uint8(x_91, sizeof(void*)*2, x_89); -x_92 = lean_ctor_get(x_1, 0); -lean_inc(x_92); -lean_dec(x_1); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -lean_dec(x_92); -x_94 = lean_ctor_get(x_93, 1); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 3); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_ctor_get(x_95, 6); -lean_inc(x_96); -x_97 = l_System_FilePath_normalize(x_96); -x_98 = l_Lake_joinRelative(x_94, x_97); -lean_dec(x_97); -x_99 = lean_ctor_get(x_95, 10); -lean_inc(x_99); -lean_dec(x_95); -x_100 = l_System_FilePath_normalize(x_99); -x_101 = l_Lake_joinRelative(x_98, x_100); -lean_dec(x_100); -x_102 = l_Lake_Module_clearOutputHashes___closed__3; -x_103 = l_Lean_modToFilePath(x_101, x_9, x_102); -lean_dec(x_9); -lean_dec(x_101); -x_104 = 0; -lean_inc(x_103); -x_105 = l_Lake_fetchFileTrace(x_103, x_104, x_3, x_4, x_5, x_6, x_91, x_8); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -if (lean_obj_tag(x_106) == 0) -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -x_108 = lean_ctor_get(x_105, 1); -lean_inc(x_108); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_109 = x_105; +lean_dec(x_39); +x_89 = lean_ctor_get(x_40, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_40, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_91 = x_40; } else { - lean_dec_ref(x_105); + lean_dec_ref(x_40); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(1, 2, 0); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_88); +return x_93; +} +} +} +else +{ +lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; +x_94 = lean_ctor_get(x_7, 0); +x_95 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_inc(x_94); +lean_dec(x_7); +x_96 = l_Lake_BuildTrace_nil(x_34); +x_97 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_97, 0, x_94); +lean_ctor_set(x_97, 1, x_96); +lean_ctor_set_uint8(x_97, sizeof(void*)*2, x_95); +x_98 = 0; +lean_inc(x_26); +x_99 = l_Lake_fetchFileTrace(x_26, x_98, x_3, x_4, x_5, x_6, x_97, x_8); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +x_102 = lean_ctor_get(x_99, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_103 = x_99; +} else { + lean_dec_ref(x_99); + x_103 = lean_box(0); +} +x_104 = lean_ctor_get(x_100, 0); +lean_inc(x_104); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_105 = x_100; +} else { + lean_dec_ref(x_100); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_101, 0); +lean_inc(x_106); +x_107 = lean_ctor_get_uint8(x_101, sizeof(void*)*2); +x_108 = lean_ctor_get(x_101, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_109 = x_101; +} else { + lean_dec_ref(x_101); x_109 = lean_box(0); } -x_110 = lean_ctor_get(x_106, 0); -lean_inc(x_110); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_111 = x_106; -} else { - lean_dec_ref(x_106); - x_111 = lean_box(0); -} -x_112 = lean_ctor_get(x_107, 0); -lean_inc(x_112); -x_113 = lean_ctor_get_uint8(x_107, sizeof(void*)*2); -x_114 = lean_ctor_get(x_107, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_115 = x_107; -} else { - lean_dec_ref(x_107); - x_115 = lean_box(0); -} -x_116 = l_Lake_BuildTrace_mix(x_114, x_110); -x_117 = lean_ctor_get(x_6, 2); -lean_inc(x_117); +x_110 = l_Lake_BuildTrace_mix(x_108, x_104); +x_111 = lean_ctor_get(x_6, 2); +lean_inc(x_111); lean_dec(x_6); -x_118 = l_Lake_BuildTrace_mix(x_116, x_117); -if (lean_is_scalar(x_115)) { - x_119 = lean_alloc_ctor(0, 2, 1); -} else { - x_119 = x_115; -} -lean_ctor_set(x_119, 0, x_112); -lean_ctor_set(x_119, 1, x_118); -lean_ctor_set_uint8(x_119, sizeof(void*)*2, x_113); -if (lean_is_scalar(x_111)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_111; -} -lean_ctor_set(x_120, 0, x_103); -lean_ctor_set(x_120, 1, x_119); +x_112 = l_Lake_BuildTrace_mix(x_110, x_111); if (lean_is_scalar(x_109)) { - x_121 = lean_alloc_ctor(0, 2, 0); + x_113 = lean_alloc_ctor(0, 2, 1); } else { - x_121 = x_109; + x_113 = x_109; } -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_108); -return x_121; +lean_ctor_set(x_113, 0, x_106); +lean_ctor_set(x_113, 1, x_112); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_107); +if (lean_is_scalar(x_105)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_105; +} +lean_ctor_set(x_114, 0, x_26); +lean_ctor_set(x_114, 1, x_113); +if (lean_is_scalar(x_103)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_103; +} +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_102); +return x_115; } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_103); +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_26); lean_dec(x_6); -x_122 = lean_ctor_get(x_105, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_123 = x_105; +x_116 = lean_ctor_get(x_99, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_117 = x_99; } else { - lean_dec_ref(x_105); - x_123 = lean_box(0); + lean_dec_ref(x_99); + x_117 = lean_box(0); } -x_124 = lean_ctor_get(x_106, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_106, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_126 = x_106; +x_118 = lean_ctor_get(x_100, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_100, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_120 = x_100; } else { - lean_dec_ref(x_106); - x_126 = lean_box(0); + lean_dec_ref(x_100); + x_120 = lean_box(0); } -if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); } else { - x_127 = x_126; + x_121 = x_120; } -lean_ctor_set(x_127, 0, x_124); -lean_ctor_set(x_127, 1, x_125); -if (lean_is_scalar(x_123)) { - x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +if (lean_is_scalar(x_117)) { + x_122 = lean_alloc_ctor(0, 2, 0); } else { - x_128 = x_123; + x_122 = x_117; +} +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_116); +return x_122; } -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_122); -return x_128; } } } @@ -51268,8 +62292,8 @@ x_19 = lean_alloc_closure((void*)(l_Lake_Module_cFacetConfig___lambda__1___boxed lean_closure_set(x_19, 0, x_1); x_20 = l_Task_Priority_default; x_21 = 0; -x_22 = l_Lake_Module_recParseImports___closed__3; -x_23 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_17, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_22, x_15); +x_22 = l_Lake_Module_recFetchInput___closed__3; +x_23 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_17, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_22, x_15); if (lean_obj_tag(x_23) == 0) { uint8_t x_24; @@ -51334,8 +62358,8 @@ x_35 = lean_alloc_closure((void*)(l_Lake_Module_cFacetConfig___lambda__1___boxed lean_closure_set(x_35, 0, x_1); x_36 = l_Task_Priority_default; x_37 = 0; -x_38 = l_Lake_Module_recParseImports___closed__3; -x_39 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_33, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_38, x_15); +x_38 = l_Lake_Module_recFetchInput___closed__3; +x_39 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_33, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_38, x_15); if (lean_obj_tag(x_39) == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; @@ -51501,7 +62525,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_cFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -51528,7 +62552,6 @@ x_9 = l_Lake_Module_cFacetConfig___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); return x_9; } } @@ -51536,6 +62559,26 @@ static lean_object* _init_l_Lake_Module_bcFacetConfig___lambda__1___closed__1() _start: { lean_object* x_1; +x_1 = lean_mk_string_unchecked("No LLVM bitcode generated. Ensure your Lean version supports the LLVM backend.", 78, 78); +return x_1; +} +} +static lean_object* _init_l_Lake_Module_bcFacetConfig___lambda__1___closed__2() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 3; +x_2 = l_Lake_Module_bcFacetConfig___lambda__1___closed__1; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lake_Module_bcFacetConfig___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; x_1 = lean_mk_string_unchecked(":bc", 3, 3); return x_1; } @@ -51543,399 +62586,403 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig___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) { _start: { -lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_9 = lean_ctor_get(x_1, 1); +lean_object* x_9; +x_9 = lean_ctor_get(x_2, 6); lean_inc(x_9); -x_10 = 1; -x_11 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; -lean_inc(x_9); -x_12 = l_Lean_Name_toString(x_9, x_10, x_11); -x_13 = l_Lake_Module_recParseImports___lambda__4___closed__2; -x_14 = lean_string_append(x_13, x_12); -lean_dec(x_12); -x_15 = l_Lake_Module_bcFacetConfig___lambda__1___closed__1; -x_16 = lean_string_append(x_14, x_15); -x_17 = !lean_is_exclusive(x_7); -if (x_17 == 0) +lean_dec(x_2); +if (lean_obj_tag(x_9) == 0) { -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; uint8_t x_32; lean_object* x_33; lean_object* x_34; -x_18 = lean_ctor_get(x_7, 1); -lean_dec(x_18); -x_19 = l_Lake_BuildTrace_nil(x_16); -lean_ctor_set(x_7, 1, x_19); -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); +uint8_t x_10; lean_dec(x_1); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 3); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_ctor_get(x_23, 6); -lean_inc(x_24); -x_25 = l_System_FilePath_normalize(x_24); -x_26 = l_Lake_joinRelative(x_22, x_25); -lean_dec(x_25); -x_27 = lean_ctor_get(x_23, 10); -lean_inc(x_27); -lean_dec(x_23); -x_28 = l_System_FilePath_normalize(x_27); -x_29 = l_Lake_joinRelative(x_26, x_28); -lean_dec(x_28); -x_30 = l_Lake_Module_clearOutputHashes___closed__5; -x_31 = l_Lean_modToFilePath(x_29, x_9, x_30); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_array_get_size(x_11); +x_13 = l_Lake_Module_bcFacetConfig___lambda__1___closed__2; +x_14 = lean_array_push(x_11, x_13); +lean_ctor_set(x_7, 0, x_14); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_7); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_8); +return x_16; +} +else +{ +lean_object* x_17; uint8_t 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; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_19 = lean_ctor_get(x_7, 1); +lean_inc(x_19); +lean_inc(x_17); +lean_dec(x_7); +x_20 = lean_array_get_size(x_17); +x_21 = l_Lake_Module_bcFacetConfig___lambda__1___closed__2; +x_22 = lean_array_push(x_17, x_21); +x_23 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_19); +lean_ctor_set_uint8(x_23, sizeof(void*)*2, x_18); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_8); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t 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; uint8_t x_35; +x_26 = lean_ctor_get(x_9, 0); +lean_inc(x_26); lean_dec(x_9); -lean_dec(x_29); -x_32 = 0; -lean_inc(x_31); -x_33 = l_Lake_fetchFileTrace(x_31, x_32, x_3, x_4, x_5, x_6, x_7, x_8); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -if (lean_obj_tag(x_34) == 0) +x_27 = lean_ctor_get(x_1, 1); +lean_inc(x_27); +lean_dec(x_1); +x_28 = 1; +x_29 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; +x_30 = l_Lean_Name_toString(x_27, x_28, x_29); +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_32 = lean_string_append(x_31, x_30); +lean_dec(x_30); +x_33 = l_Lake_Module_bcFacetConfig___lambda__1___closed__3; +x_34 = lean_string_append(x_32, x_33); +x_35 = !lean_is_exclusive(x_7); +if (x_35 == 0) { -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -x_36 = !lean_is_exclusive(x_33); -if (x_36 == 0) +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = l_Lake_BuildTrace_nil(x_34); +lean_ctor_set(x_7, 1, x_37); +x_38 = 0; +lean_inc(x_26); +x_39 = l_Lake_fetchFileTrace(x_26, x_38, x_3, x_4, x_5, x_6, x_7, x_8); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_33, 0); -lean_dec(x_37); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) +lean_object* x_41; uint8_t x_42; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +x_42 = !lean_is_exclusive(x_39); +if (x_42 == 0) { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_dec(x_40); -x_41 = !lean_is_exclusive(x_35); -if (x_41 == 0) +lean_object* x_43; uint8_t x_44; +x_43 = lean_ctor_get(x_39, 0); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_35, 1); -x_43 = l_Lake_BuildTrace_mix(x_42, x_39); -lean_ctor_set(x_35, 1, x_43); -lean_ctor_set(x_34, 0, x_31); -return x_33; +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); +lean_dec(x_46); +x_47 = !lean_is_exclusive(x_41); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_41, 1); +x_49 = l_Lake_BuildTrace_mix(x_48, x_45); +lean_ctor_set(x_41, 1, x_49); +lean_ctor_set(x_40, 0, x_26); +return x_39; } else { -lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_35, 0); -x_45 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_46 = lean_ctor_get(x_35, 1); -lean_inc(x_46); -lean_inc(x_44); -lean_dec(x_35); -x_47 = l_Lake_BuildTrace_mix(x_46, x_39); -x_48 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_48, 0, x_44); -lean_ctor_set(x_48, 1, x_47); -lean_ctor_set_uint8(x_48, sizeof(void*)*2, x_45); -lean_ctor_set(x_34, 1, x_48); -lean_ctor_set(x_34, 0, x_31); -return x_33; -} -} -else -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_49 = lean_ctor_get(x_34, 0); -lean_inc(x_49); -lean_dec(x_34); -x_50 = lean_ctor_get(x_35, 0); -lean_inc(x_50); -x_51 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_52 = lean_ctor_get(x_35, 1); +lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_41, 0); +x_51 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_52 = lean_ctor_get(x_41, 1); lean_inc(x_52); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_53 = x_35; -} else { - lean_dec_ref(x_35); - x_53 = lean_box(0); -} -x_54 = l_Lake_BuildTrace_mix(x_52, x_49); -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 2, 1); -} else { - x_55 = x_53; -} -lean_ctor_set(x_55, 0, x_50); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set_uint8(x_55, sizeof(void*)*2, x_51); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_31); -lean_ctor_set(x_56, 1, x_55); -lean_ctor_set(x_33, 0, x_56); -return x_33; +lean_inc(x_50); +lean_dec(x_41); +x_53 = l_Lake_BuildTrace_mix(x_52, x_45); +x_54 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_54, 0, x_50); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set_uint8(x_54, sizeof(void*)*2, x_51); +lean_ctor_set(x_40, 1, x_54); +lean_ctor_set(x_40, 0, x_26); +return x_39; } } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t 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; -x_57 = lean_ctor_get(x_33, 1); -lean_inc(x_57); -lean_dec(x_33); -x_58 = lean_ctor_get(x_34, 0); +lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_55 = lean_ctor_get(x_40, 0); +lean_inc(x_55); +lean_dec(x_40); +x_56 = lean_ctor_get(x_41, 0); +lean_inc(x_56); +x_57 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_58 = lean_ctor_get(x_41, 1); lean_inc(x_58); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_59 = x_34; +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_59 = x_41; } else { - lean_dec_ref(x_34); + lean_dec_ref(x_41); x_59 = lean_box(0); } -x_60 = lean_ctor_get(x_35, 0); -lean_inc(x_60); -x_61 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); -x_62 = lean_ctor_get(x_35, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_63 = x_35; -} else { - lean_dec_ref(x_35); - x_63 = lean_box(0); -} -x_64 = l_Lake_BuildTrace_mix(x_62, x_58); -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(0, 2, 1); -} else { - x_65 = x_63; -} -lean_ctor_set(x_65, 0, x_60); -lean_ctor_set(x_65, 1, x_64); -lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_61); +x_60 = l_Lake_BuildTrace_mix(x_58, x_55); if (lean_is_scalar(x_59)) { - x_66 = lean_alloc_ctor(0, 2, 0); + x_61 = lean_alloc_ctor(0, 2, 1); } else { - x_66 = x_59; + x_61 = x_59; } -lean_ctor_set(x_66, 0, x_31); -lean_ctor_set(x_66, 1, x_65); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_57); -return x_67; +lean_ctor_set(x_61, 0, x_56); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set_uint8(x_61, sizeof(void*)*2, x_57); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_26); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_39, 0, x_62); +return x_39; } } else { -uint8_t x_68; -lean_dec(x_31); -x_68 = !lean_is_exclusive(x_33); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_33, 0); -lean_dec(x_69); -x_70 = !lean_is_exclusive(x_34); -if (x_70 == 0) -{ -return x_33; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_34, 0); -x_72 = lean_ctor_get(x_34, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_34); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -lean_ctor_set(x_33, 0, x_73); -return x_33; -} -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_74 = lean_ctor_get(x_33, 1); -lean_inc(x_74); -lean_dec(x_33); -x_75 = lean_ctor_get(x_34, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_34, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_77 = x_34; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t 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; +x_63 = lean_ctor_get(x_39, 1); +lean_inc(x_63); +lean_dec(x_39); +x_64 = lean_ctor_get(x_40, 0); +lean_inc(x_64); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_65 = x_40; } else { - lean_dec_ref(x_34); - x_77 = lean_box(0); + lean_dec_ref(x_40); + x_65 = lean_box(0); } -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(1, 2, 0); +x_66 = lean_ctor_get(x_41, 0); +lean_inc(x_66); +x_67 = lean_ctor_get_uint8(x_41, sizeof(void*)*2); +x_68 = lean_ctor_get(x_41, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_69 = x_41; } else { - x_78 = x_77; + lean_dec_ref(x_41); + x_69 = lean_box(0); } -lean_ctor_set(x_78, 0, x_75); -lean_ctor_set(x_78, 1, x_76); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_74); -return x_79; +x_70 = l_Lake_BuildTrace_mix(x_68, x_64); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 2, 1); +} else { + x_71 = x_69; } +lean_ctor_set(x_71, 0, x_66); +lean_ctor_set(x_71, 1, x_70); +lean_ctor_set_uint8(x_71, sizeof(void*)*2, x_67); +if (lean_is_scalar(x_65)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_65; +} +lean_ctor_set(x_72, 0, x_26); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_63); +return x_73; } } else { -lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; -x_80 = lean_ctor_get(x_7, 0); -x_81 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +uint8_t x_74; +lean_dec(x_26); +x_74 = !lean_is_exclusive(x_39); +if (x_74 == 0) +{ +lean_object* x_75; uint8_t x_76; +x_75 = lean_ctor_get(x_39, 0); +lean_dec(x_75); +x_76 = !lean_is_exclusive(x_40); +if (x_76 == 0) +{ +return x_39; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_40, 0); +x_78 = lean_ctor_get(x_40, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_40); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +lean_ctor_set(x_39, 0, x_79); +return x_39; +} +} +else +{ +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_80 = lean_ctor_get(x_39, 1); lean_inc(x_80); -lean_dec(x_7); -x_82 = l_Lake_BuildTrace_nil(x_16); -x_83 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_82); -lean_ctor_set_uint8(x_83, sizeof(void*)*2, x_81); -x_84 = lean_ctor_get(x_1, 0); -lean_inc(x_84); -lean_dec(x_1); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 3); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_87, 6); -lean_inc(x_88); -x_89 = l_System_FilePath_normalize(x_88); -x_90 = l_Lake_joinRelative(x_86, x_89); -lean_dec(x_89); -x_91 = lean_ctor_get(x_87, 10); -lean_inc(x_91); -lean_dec(x_87); -x_92 = l_System_FilePath_normalize(x_91); -x_93 = l_Lake_joinRelative(x_90, x_92); -lean_dec(x_92); -x_94 = l_Lake_Module_clearOutputHashes___closed__5; -x_95 = l_Lean_modToFilePath(x_93, x_9, x_94); -lean_dec(x_9); -lean_dec(x_93); -x_96 = 0; -lean_inc(x_95); -x_97 = l_Lake_fetchFileTrace(x_95, x_96, x_3, x_4, x_5, x_6, x_83, x_8); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_99 = lean_ctor_get(x_98, 1); -lean_inc(x_99); -x_100 = lean_ctor_get(x_97, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_101 = x_97; +lean_dec(x_39); +x_81 = lean_ctor_get(x_40, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_40, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_83 = x_40; } else { - lean_dec_ref(x_97); + lean_dec_ref(x_40); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_80); +return x_85; +} +} +} +else +{ +lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; +x_86 = lean_ctor_get(x_7, 0); +x_87 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_inc(x_86); +lean_dec(x_7); +x_88 = l_Lake_BuildTrace_nil(x_34); +x_89 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set_uint8(x_89, sizeof(void*)*2, x_87); +x_90 = 0; +lean_inc(x_26); +x_91 = l_Lake_fetchFileTrace(x_26, x_90, x_3, x_4, x_5, x_6, x_89, x_8); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_95 = x_91; +} else { + lean_dec_ref(x_91); + x_95 = lean_box(0); +} +x_96 = lean_ctor_get(x_92, 0); +lean_inc(x_96); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_97 = x_92; +} else { + lean_dec_ref(x_92); + x_97 = lean_box(0); +} +x_98 = lean_ctor_get(x_93, 0); +lean_inc(x_98); +x_99 = lean_ctor_get_uint8(x_93, sizeof(void*)*2); +x_100 = lean_ctor_get(x_93, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_101 = x_93; +} else { + lean_dec_ref(x_93); x_101 = lean_box(0); } -x_102 = lean_ctor_get(x_98, 0); -lean_inc(x_102); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_103 = x_98; -} else { - lean_dec_ref(x_98); - x_103 = lean_box(0); -} -x_104 = lean_ctor_get(x_99, 0); -lean_inc(x_104); -x_105 = lean_ctor_get_uint8(x_99, sizeof(void*)*2); -x_106 = lean_ctor_get(x_99, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_107 = x_99; -} else { - lean_dec_ref(x_99); - x_107 = lean_box(0); -} -x_108 = l_Lake_BuildTrace_mix(x_106, x_102); -if (lean_is_scalar(x_107)) { - x_109 = lean_alloc_ctor(0, 2, 1); -} else { - x_109 = x_107; -} -lean_ctor_set(x_109, 0, x_104); -lean_ctor_set(x_109, 1, x_108); -lean_ctor_set_uint8(x_109, sizeof(void*)*2, x_105); -if (lean_is_scalar(x_103)) { - x_110 = lean_alloc_ctor(0, 2, 0); -} else { - x_110 = x_103; -} -lean_ctor_set(x_110, 0, x_95); -lean_ctor_set(x_110, 1, x_109); +x_102 = l_Lake_BuildTrace_mix(x_100, x_96); if (lean_is_scalar(x_101)) { - x_111 = lean_alloc_ctor(0, 2, 0); + x_103 = lean_alloc_ctor(0, 2, 1); } else { - x_111 = x_101; + x_103 = x_101; } -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_100); -return x_111; +lean_ctor_set(x_103, 0, x_98); +lean_ctor_set(x_103, 1, x_102); +lean_ctor_set_uint8(x_103, sizeof(void*)*2, x_99); +if (lean_is_scalar(x_97)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_97; +} +lean_ctor_set(x_104, 0, x_26); +lean_ctor_set(x_104, 1, x_103); +if (lean_is_scalar(x_95)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_95; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_94); +return x_105; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_95); -x_112 = lean_ctor_get(x_97, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_113 = x_97; +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_26); +x_106 = lean_ctor_get(x_91, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_107 = x_91; } else { - lean_dec_ref(x_97); - x_113 = lean_box(0); + lean_dec_ref(x_91); + x_107 = lean_box(0); } -x_114 = lean_ctor_get(x_98, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_98, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_116 = x_98; +x_108 = lean_ctor_get(x_92, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_92, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_110 = x_92; } else { - lean_dec_ref(x_98); - x_116 = lean_box(0); + lean_dec_ref(x_92); + x_110 = lean_box(0); } -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); } else { - x_117 = x_116; + x_111 = x_110; } -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -if (lean_is_scalar(x_113)) { - x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +if (lean_is_scalar(x_107)) { + x_112 = lean_alloc_ctor(0, 2, 0); } else { - x_118 = x_113; + x_112 = x_107; +} +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_106); +return x_112; } -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_112); -return x_118; } } } @@ -51982,8 +63029,8 @@ x_19 = lean_alloc_closure((void*)(l_Lake_Module_bcFacetConfig___lambda__1___boxe lean_closure_set(x_19, 0, x_1); x_20 = l_Task_Priority_default; x_21 = 0; -x_22 = l_Lake_Module_recParseImports___closed__3; -x_23 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_17, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_22, x_15); +x_22 = l_Lake_Module_recFetchInput___closed__3; +x_23 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_17, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_22, x_15); if (lean_obj_tag(x_23) == 0) { uint8_t x_24; @@ -52048,8 +63095,8 @@ x_35 = lean_alloc_closure((void*)(l_Lake_Module_bcFacetConfig___lambda__1___boxe lean_closure_set(x_35, 0, x_1); x_36 = l_Task_Priority_default; x_37 = 0; -x_38 = l_Lake_Module_recParseImports___closed__3; -x_39 = l_Lake_Job_mapM___at_Lake_Module_oleanFacetConfig___spec__1(x_33, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_38, x_15); +x_38 = l_Lake_Module_recFetchInput___closed__3; +x_39 = l_Lake_Job_mapM___at___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___spec__1(x_33, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_38, x_15); if (lean_obj_tag(x_39) == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; @@ -52215,7 +63262,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_bcFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -52243,7 +63290,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); return x_9; } } @@ -53382,7 +64428,7 @@ LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildLe _start: { lean_object* x_9; lean_object* x_10; -x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_10 = lean_st_mk_ref(x_9, x_8); if (lean_obj_tag(x_10) == 0) { @@ -53446,7 +64492,7 @@ if (x_29 == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_28); -x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_31 = l_panic___at_Lean_Name_getString_x21___spec__1(x_30); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); @@ -53484,7 +64530,7 @@ if (x_38 == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_dec(x_37); -x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_40 = l_panic___at_Lean_Name_getString_x21___spec__1(x_39); x_41 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_41, 0, x_40); @@ -53570,7 +64616,7 @@ if (x_57 == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_dec(x_56); -x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_59 = l_panic___at_Lean_Name_getString_x21___spec__1(x_58); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_59); @@ -53768,7 +64814,7 @@ if (x_99 == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_dec(x_98); -x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_101 = l_panic___at_Lean_Name_getString_x21___spec__1(x_100); x_102 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_102, 0, x_101); @@ -53806,7 +64852,7 @@ if (x_108 == 0) { lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_107); -x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_110 = l_panic___at_Lean_Name_getString_x21___spec__1(x_109); x_111 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_111, 0, x_110); @@ -53892,7 +64938,7 @@ if (x_127 == 0) { lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_dec(x_126); -x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_129 = l_panic___at_Lean_Name_getString_x21___spec__1(x_128); x_130 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_130, 0, x_129); @@ -54149,10 +65195,10 @@ x_104 = lean_string_utf8_extract(x_97, x_102, x_103); lean_dec(x_103); lean_dec(x_102); lean_dec(x_97); -x_105 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_105 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_106 = lean_string_append(x_105, x_104); lean_dec(x_104); -x_107 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_107 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_108 = lean_string_append(x_106, x_107); x_109 = 1; x_110 = lean_alloc_ctor(0, 1, 1); @@ -54160,7 +65206,7 @@ lean_ctor_set(x_110, 0, x_108); lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_109); x_111 = lean_array_push(x_96, x_110); x_112 = lean_box(0); -x_113 = l_Lake_Module_recParseImports___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); +x_113 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -54180,7 +65226,7 @@ lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_99); lean_dec(x_97); x_116 = lean_box(0); -x_117 = l_Lake_Module_recParseImports___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); +x_117 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -54422,7 +65468,7 @@ x_62 = l_Array_extract___rarg(x_58, x_8, x_61); lean_dec(x_61); lean_dec(x_58); x_63 = 0; -x_64 = l_Lake_Module_recParseImports___closed__3; +x_64 = l_Lake_Module_recFetchInput___closed__3; x_65 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_65, 0, x_62); lean_ctor_set(x_65, 1, x_64); @@ -54432,7 +65478,7 @@ lean_ctor_set(x_9, 1, x_65); lean_ctor_set(x_9, 0, x_66); x_67 = lean_task_pure(x_9); x_68 = l_Lake_instDataKindFilePath; -x_69 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_69 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_70 = 0; x_71 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_71, 0, x_67); @@ -54460,7 +65506,7 @@ x_77 = l_Array_extract___rarg(x_74, x_8, x_76); lean_dec(x_76); lean_dec(x_74); x_78 = 0; -x_79 = l_Lake_Module_recParseImports___closed__3; +x_79 = l_Lake_Module_recFetchInput___closed__3; x_80 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_80, 0, x_77); lean_ctor_set(x_80, 1, x_79); @@ -54471,7 +65517,7 @@ lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); x_83 = lean_task_pure(x_82); x_84 = l_Lake_instDataKindFilePath; -x_85 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_85 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_86 = 0; x_87 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_87, 0, x_83); @@ -54539,7 +65585,7 @@ if (x_26 == 0) lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_17); x_27 = lean_box(0); -x_28 = l_Lake_Module_recParseImports___closed__3; +x_28 = l_Lake_Module_recFetchInput___closed__3; x_29 = l_Lake_buildLeanO(x_22, x_7, x_25, x_6, x_27, x_8, x_9, x_10, x_11, x_28, x_13); if (lean_obj_tag(x_29) == 0) { @@ -54603,7 +65649,7 @@ x_41 = l_Lake_Module_recBuildLeanCToOExport___lambda__1___closed__2; x_42 = l_Lake_joinRelative(x_17, x_41); x_43 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_43, 0, x_42); -x_44 = l_Lake_Module_recParseImports___closed__3; +x_44 = l_Lake_Module_recFetchInput___closed__3; x_45 = l_Lake_buildLeanO(x_22, x_7, x_25, x_6, x_43, x_8, x_9, x_10, x_11, x_44, x_13); if (lean_obj_tag(x_45) == 0) { @@ -54723,7 +65769,7 @@ x_13 = 1; x_14 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; lean_inc(x_12); x_15 = l_Lean_Name_toString(x_12, x_13, x_14); -x_16 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_16 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_17 = lean_string_append(x_16, x_15); lean_dec(x_15); x_18 = l_Lake_Module_recBuildLeanCToOExport___closed__1; @@ -55133,7 +66179,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_coExportFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -55227,7 +66273,7 @@ if (x_33 == 0) lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_dec(x_16); x_56 = lean_box(0); -x_57 = l_Lake_Module_recParseImports___closed__3; +x_57 = l_Lake_Module_recFetchInput___closed__3; x_58 = l_Lake_buildLeanO(x_21, x_3, x_27, x_55, x_56, x_4, x_5, x_6, x_7, x_57, x_9); if (lean_obj_tag(x_58) == 0) { @@ -55304,7 +66350,7 @@ if (x_33 == 0) lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_dec(x_16); x_73 = lean_box(0); -x_74 = l_Lake_Module_recParseImports___closed__3; +x_74 = l_Lake_Module_recFetchInput___closed__3; x_75 = l_Lake_buildLeanO(x_21, x_3, x_27, x_72, x_73, x_4, x_5, x_6, x_7, x_74, x_9); if (lean_obj_tag(x_75) == 0) { @@ -55374,7 +66420,7 @@ x_35 = l_Lake_Module_recBuildLeanCToOExport___lambda__1___closed__2; x_36 = l_Lake_joinRelative(x_16, x_35); x_37 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_37, 0, x_36); -x_38 = l_Lake_Module_recParseImports___closed__3; +x_38 = l_Lake_Module_recFetchInput___closed__3; x_39 = l_Lake_buildLeanO(x_21, x_3, x_27, x_34, x_37, x_4, x_5, x_6, x_7, x_38, x_9); if (lean_obj_tag(x_39) == 0) { @@ -55457,7 +66503,7 @@ x_13 = 1; x_14 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; lean_inc(x_12); x_15 = l_Lean_Name_toString(x_12, x_13, x_14); -x_16 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_16 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_17 = lean_string_append(x_16, x_15); lean_dec(x_15); x_18 = l_Lake_Module_recBuildLeanCToOExport___closed__1; @@ -55805,7 +66851,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_coNoExportFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -55881,7 +66927,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_coFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = 0; x_7 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_7, 0, x_1); @@ -55970,7 +67016,7 @@ x_36 = l_Array_append___rarg(x_35, x_31); lean_dec(x_31); x_37 = l_Array_append___rarg(x_36, x_32); lean_dec(x_32); -x_38 = l_Lake_Module_recParseImports___closed__3; +x_38 = l_Lake_Module_recFetchInput___closed__3; x_39 = l_Lake_buildLeanO(x_21, x_3, x_27, x_37, x_33, x_4, x_5, x_6, x_7, x_38, x_9); if (lean_obj_tag(x_39) == 0) { @@ -56036,7 +67082,7 @@ x_52 = l_Array_append___rarg(x_51, x_31); lean_dec(x_31); x_53 = l_Array_append___rarg(x_52, x_32); lean_dec(x_32); -x_54 = l_Lake_Module_recParseImports___closed__3; +x_54 = l_Lake_Module_recFetchInput___closed__3; x_55 = l_Lake_buildLeanO(x_21, x_3, x_27, x_53, x_33, x_4, x_5, x_6, x_7, x_54, x_9); if (lean_obj_tag(x_55) == 0) { @@ -56113,7 +67159,7 @@ x_9 = 1; x_10 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; lean_inc(x_8); x_11 = l_Lean_Name_toString(x_8, x_9, x_10); -x_12 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_12 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_13 = lean_string_append(x_12, x_11); lean_dec(x_11); x_14 = l_Lake_Module_recBuildLeanBcToO___closed__1; @@ -56439,7 +67485,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_bcoFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_2); @@ -56537,7 +67583,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_oExportFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = 0; x_7 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_7, 0, x_1); @@ -56658,7 +67704,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_oNoExportFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = 0; x_7 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_7, 0, x_1); @@ -56757,7 +67803,7 @@ x_1 = l_Lake_Module_keyword; x_2 = l_Lake_Module_oFacetConfig___closed__1; x_3 = l_Lake_instDataKindFilePath; x_4 = 1; -x_5 = l_Lake_Module_oleanFacetConfig___closed__2; +x_5 = l_Lake_Module_leanFacetConfig___closed__2; x_6 = 0; x_7 = lean_alloc_ctor(0, 4, 2); lean_ctor_set(x_7, 0, x_1); @@ -57164,7 +68210,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_15 = l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3(x_14, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3(x_14, x_13, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; @@ -58439,7 +69485,7 @@ LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_Module_recBuildDy _start: { lean_object* x_9; lean_object* x_10; -x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1; +x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; x_10 = lean_st_mk_ref(x_9, x_8); if (lean_obj_tag(x_10) == 0) { @@ -58503,7 +69549,7 @@ if (x_29 == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_28); -x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_31 = l_panic___at_Lean_Name_getString_x21___spec__1(x_30); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); @@ -58541,7 +69587,7 @@ if (x_38 == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_dec(x_37); -x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_40 = l_panic___at_Lean_Name_getString_x21___spec__1(x_39); x_41 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_41, 0, x_40); @@ -58627,7 +69673,7 @@ if (x_57 == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_dec(x_56); -x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_59 = l_panic___at_Lean_Name_getString_x21___spec__1(x_58); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_59); @@ -58825,7 +69871,7 @@ if (x_99 == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_dec(x_98); -x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_101 = l_panic___at_Lean_Name_getString_x21___spec__1(x_100); x_102 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_102, 0, x_101); @@ -58863,7 +69909,7 @@ if (x_108 == 0) { lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_107); -x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_110 = l_panic___at_Lean_Name_getString_x21___spec__1(x_109); x_111 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_111, 0, x_110); @@ -58949,7 +69995,7 @@ if (x_127 == 0) { lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_dec(x_126); -x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5; +x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; x_129 = l_panic___at_Lean_Name_getString_x21___spec__1(x_128); x_130 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_130, 0, x_129); @@ -59206,10 +70252,10 @@ x_104 = lean_string_utf8_extract(x_97, x_102, x_103); lean_dec(x_103); lean_dec(x_102); lean_dec(x_97); -x_105 = l_Lake_Module_recParseImports___lambda__4___closed__1; +x_105 = l_Lake_Module_recFetchInput___lambda__4___closed__1; x_106 = lean_string_append(x_105, x_104); lean_dec(x_104); -x_107 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_107 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_108 = lean_string_append(x_106, x_107); x_109 = 1; x_110 = lean_alloc_ctor(0, 1, 1); @@ -59217,7 +70263,7 @@ lean_ctor_set(x_110, 0, x_108); lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_109); x_111 = lean_array_push(x_96, x_110); x_112 = lean_box(0); -x_113 = l_Lake_Module_recParseImports___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); +x_113 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -59237,7 +70283,7 @@ lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_99); lean_dec(x_97); x_116 = lean_box(0); -x_117 = l_Lake_Module_recParseImports___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); +x_117 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -59479,7 +70525,7 @@ x_62 = l_Array_extract___rarg(x_58, x_8, x_61); lean_dec(x_61); lean_dec(x_58); x_63 = 0; -x_64 = l_Lake_Module_recParseImports___closed__3; +x_64 = l_Lake_Module_recFetchInput___closed__3; x_65 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_65, 0, x_62); lean_ctor_set(x_65, 1, x_64); @@ -59489,7 +70535,7 @@ lean_ctor_set(x_9, 1, x_65); lean_ctor_set(x_9, 0, x_66); x_67 = lean_task_pure(x_9); x_68 = l_Lake_instDataKindDynlib; -x_69 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_69 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_70 = 0; x_71 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_71, 0, x_67); @@ -59517,7 +70563,7 @@ x_77 = l_Array_extract___rarg(x_74, x_8, x_76); lean_dec(x_76); lean_dec(x_74); x_78 = 0; -x_79 = l_Lake_Module_recParseImports___closed__3; +x_79 = l_Lake_Module_recFetchInput___closed__3; x_80 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_80, 0, x_77); lean_ctor_set(x_80, 1, x_79); @@ -59528,7 +70574,7 @@ lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); x_83 = lean_task_pure(x_82); x_84 = l_Lake_instDataKindDynlib; -x_85 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_85 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_86 = 0; x_87 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_87, 0, x_83); @@ -59963,7 +71009,7 @@ if (x_285 == 0) lean_object* x_286; uint8_t x_287; lean_object* x_288; lean_object* x_289; x_286 = lean_ctor_get(x_283, 1); x_287 = 0; -x_288 = l_Lake_Module_recParseImports___closed__3; +x_288 = l_Lake_Module_recFetchInput___closed__3; x_289 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_289, 0, x_286); lean_ctor_set(x_289, 1, x_288); @@ -59982,7 +71028,7 @@ lean_inc(x_291); lean_inc(x_290); lean_dec(x_283); x_292 = 0; -x_293 = l_Lake_Module_recParseImports___closed__3; +x_293 = l_Lake_Module_recFetchInput___closed__3; x_294 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_294, 0, x_291); lean_ctor_set(x_294, 1, x_293); @@ -60004,7 +71050,7 @@ if (x_296 == 0) lean_object* x_297; uint8_t x_298; lean_object* x_299; lean_object* x_300; x_297 = lean_ctor_get(x_283, 1); x_298 = 0; -x_299 = l_Lake_Module_recParseImports___closed__3; +x_299 = l_Lake_Module_recFetchInput___closed__3; x_300 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_300, 0, x_297); lean_ctor_set(x_300, 1, x_299); @@ -60023,7 +71069,7 @@ lean_inc(x_302); lean_inc(x_301); lean_dec(x_283); x_303 = 0; -x_304 = l_Lake_Module_recParseImports___closed__3; +x_304 = l_Lake_Module_recFetchInput___closed__3; x_305 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_305, 0, x_302); lean_ctor_set(x_305, 1, x_304); @@ -60147,7 +71193,7 @@ if (x_16 == 0) lean_object* 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; 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; uint8_t x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; x_17 = lean_ctor_get(x_14, 0); x_18 = lean_ctor_get(x_14, 1); -x_19 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_19 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_20 = lean_name_mangle(x_1, x_19); x_21 = lean_ctor_get(x_2, 0); lean_inc(x_21); @@ -60190,7 +71236,7 @@ x_43 = lean_ctor_get(x_39, 8); x_44 = l_Array_append___rarg(x_42, x_43); x_45 = 1; x_46 = l_System_Platform_isWindows; -x_47 = l_Lake_Module_recParseImports___closed__3; +x_47 = l_Lake_Module_recFetchInput___closed__3; x_48 = l_Lake_buildLeanSharedLib(x_20, x_36, x_6, x_17, x_41, x_44, x_45, x_46, x_7, x_8, x_9, x_10, x_47, x_15); if (lean_obj_tag(x_48) == 0) { @@ -60252,7 +71298,7 @@ x_59 = lean_ctor_get(x_14, 1); lean_inc(x_59); lean_inc(x_58); lean_dec(x_14); -x_60 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_60 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_61 = lean_name_mangle(x_1, x_60); x_62 = lean_ctor_get(x_2, 0); lean_inc(x_62); @@ -60295,7 +71341,7 @@ x_84 = lean_ctor_get(x_80, 8); x_85 = l_Array_append___rarg(x_83, x_84); x_86 = 1; x_87 = l_System_Platform_isWindows; -x_88 = l_Lake_Module_recParseImports___closed__3; +x_88 = l_Lake_Module_recFetchInput___closed__3; x_89 = l_Lake_buildLeanSharedLib(x_61, x_77, x_6, x_58, x_82, x_85, x_86, x_87, x_7, x_8, x_9, x_10, x_88, x_15); if (lean_obj_tag(x_89) == 0) { @@ -61218,7 +72264,7 @@ x_9 = 1; x_10 = l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1; lean_inc(x_8); x_11 = l_Lean_Name_toString(x_8, x_9, x_10); -x_12 = l_Lake_Module_recParseImports___lambda__4___closed__2; +x_12 = l_Lake_Module_recFetchInput___lambda__2___closed__1; x_13 = lean_string_append(x_12, x_11); lean_dec(x_11); x_14 = l_Lake_Module_recBuildDynlib___closed__1; @@ -64076,60 +75122,78 @@ return x_7; static lean_object* _init_l_Lake_Module_initFacetConfigs() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* 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; 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_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* 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; 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; x_1 = lean_box(0); -x_2 = l_Lake_Module_importsFacet; -x_3 = l_Lake_Module_importsFacetConfig; +x_2 = l_Lake_Module_inputFacet; +x_3 = l_Lake_Module_inputFacetConfig; x_4 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_1, x_2, x_3); -x_5 = l_Lake_Module_transImportsFacet; -x_6 = l_Lake_Module_transImportsFacetConfig; +x_5 = l_Lake_Module_leanFacet; +x_6 = l_Lake_Module_leanFacetConfig; x_7 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_4, x_5, x_6); -x_8 = l_Lake_Module_precompileImportsFacet; -x_9 = l_Lake_Module_precompileImportsFacetConfig; +x_8 = l_Lake_Module_headerFacet; +x_9 = l_Lake_Module_headerFacetConfig; x_10 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_7, x_8, x_9); -x_11 = l_Lake_Module_depsFacet; -x_12 = l_Lake_Module_depsFacetConfig; +x_11 = l_Lake_Module_importsFacet; +x_12 = l_Lake_Module_importsFacetConfig; x_13 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_10, x_11, x_12); -x_14 = l_Lake_Module_leanArtsFacet; -x_15 = l_Lake_Module_leanArtsFacetConfig; +x_14 = l_Lake_Module_transImportsFacet; +x_15 = l_Lake_Module_transImportsFacetConfig; x_16 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_13, x_14, x_15); -x_17 = l_Lake_Module_oleanFacet; -x_18 = l_Lake_Module_oleanFacetConfig; +x_17 = l_Lake_Module_precompileImportsFacet; +x_18 = l_Lake_Module_precompileImportsFacetConfig; x_19 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_16, x_17, x_18); -x_20 = l_Lake_Module_ileanFacet; -x_21 = l_Lake_Module_ileanFacetConfig; +x_20 = l_Lake_Module_setupFacet; +x_21 = l_Lake_Module_setupFacetConfig; x_22 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_19, x_20, x_21); -x_23 = l_Lake_Module_cFacet; -x_24 = l_Lake_Module_cFacetConfig; +x_23 = l_Lake_Module_depsFacet; +x_24 = l_Lake_Module_depsFacetConfig; x_25 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_22, x_23, x_24); -x_26 = l_Lake_Module_bcFacet; -x_27 = l_Lake_Module_bcFacetConfig; +x_26 = l_Lake_Module_leanArtsFacet; +x_27 = l_Lake_Module_leanArtsFacetConfig; x_28 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_25, x_26, x_27); -x_29 = l_Lake_Module_coFacet; -x_30 = l_Lake_Module_coFacetConfig; +x_29 = l_Lake_Module_oleanFacet; +x_30 = l_Lake_Module_oleanFacetConfig; x_31 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_28, x_29, x_30); -x_32 = l_Lake_Module_coExportFacet; -x_33 = l_Lake_Module_coExportFacetConfig; +x_32 = l_Lake_Module_oleanServerFacet; +x_33 = l_Lake_Module_oleanServerFacetConfig; x_34 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_31, x_32, x_33); -x_35 = l_Lake_Module_coNoExportFacet; -x_36 = l_Lake_Module_coNoExportFacetConfig; +x_35 = l_Lake_Module_oleanPrivateFacet; +x_36 = l_Lake_Module_oleanPrivateFacetConfig; x_37 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_34, x_35, x_36); -x_38 = l_Lake_Module_bcoFacet; -x_39 = l_Lake_Module_bcoFacetConfig; +x_38 = l_Lake_Module_ileanFacet; +x_39 = l_Lake_Module_ileanFacetConfig; x_40 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_37, x_38, x_39); -x_41 = l_Lake_Module_oFacet; -x_42 = l_Lake_Module_oFacetConfig; +x_41 = l_Lake_Module_cFacet; +x_42 = l_Lake_Module_cFacetConfig; x_43 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_40, x_41, x_42); -x_44 = l_Lake_Module_oExportFacet; -x_45 = l_Lake_Module_oExportFacetConfig; +x_44 = l_Lake_Module_bcFacet; +x_45 = l_Lake_Module_bcFacetConfig; x_46 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_43, x_44, x_45); -x_47 = l_Lake_Module_oNoExportFacet; -x_48 = l_Lake_Module_oNoExportFacetConfig; +x_47 = l_Lake_Module_coFacet; +x_48 = l_Lake_Module_coFacetConfig; x_49 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_46, x_47, x_48); -x_50 = l_Lake_Module_dynlibFacet; -x_51 = l_Lake_Module_dynlibFacetConfig; +x_50 = l_Lake_Module_coExportFacet; +x_51 = l_Lake_Module_coExportFacetConfig; x_52 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_49, x_50, x_51); -return x_52; +x_53 = l_Lake_Module_coNoExportFacet; +x_54 = l_Lake_Module_coNoExportFacetConfig; +x_55 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_52, x_53, x_54); +x_56 = l_Lake_Module_bcoFacet; +x_57 = l_Lake_Module_bcoFacetConfig; +x_58 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_55, x_56, x_57); +x_59 = l_Lake_Module_oFacet; +x_60 = l_Lake_Module_oFacetConfig; +x_61 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_58, x_59, x_60); +x_62 = l_Lake_Module_oExportFacet; +x_63 = l_Lake_Module_oExportFacetConfig; +x_64 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_61, x_62, x_63); +x_65 = l_Lake_Module_oNoExportFacet; +x_66 = l_Lake_Module_oNoExportFacetConfig; +x_67 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_64, x_65, x_66); +x_68 = l_Lake_Module_dynlibFacet; +x_69 = l_Lake_Module_dynlibFacetConfig; +x_70 = l_Lean_RBNode_insert___at_Lake_Module_initFacetConfigs___spec__1(x_67, x_68, x_69); +return x_70; } } static lean_object* _init_l_Lake_initModuleFacetConfigs() { @@ -64311,7 +75375,103 @@ x_3 = lean_alloc_closure((void*)(l_Lake_EquipT_map___at_Lake_buildImportsAndDeps return x_3; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__2(size_t x_1, size_t 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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__3(lean_object* x_1, size_t x_2, size_t 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) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_eq(x_2, x_3); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_array_uget(x_1, x_2); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_8, 1); +x_15 = l_Lake_Workspace_findModule_x3f(x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ +size_t x_16; size_t x_17; +x_16 = 1; +x_17 = lean_usize_add(x_2, x_16); +x_2 = x_17; +goto _start; +} +else +{ +lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; +x_19 = lean_ctor_get(x_15, 0); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_array_push(x_4, x_19); +x_21 = 1; +x_22 = lean_usize_add(x_2, x_21); +x_2 = x_22; +x_4 = x_20; +goto _start; +} +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_4); +lean_ctor_set(x_24, 1, x_9); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +} +} +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lake_buildImportsAndDeps___spec__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) { +_start: +{ +uint8_t x_10; +x_10 = lean_nat_dec_lt(x_2, x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +else +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_array_get_size(x_1); +x_15 = lean_nat_dec_le(x_3, x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_8); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_9); +return x_18; +} +else +{ +size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_usize_of_nat(x_2); +x_20 = lean_usize_of_nat(x_3); +x_21 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_22 = l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__3(x_1, x_19, x_20, x_21, x_4, x_5, x_6, x_7, x_8, x_9); +return x_22; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__4(size_t x_1, size_t 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) { _start: { uint8_t x_10; @@ -64474,384 +75634,9526 @@ return x_45; } } } -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lake_buildImportsAndDeps___spec__4(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__7(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) { _start: { -if (lean_obj_tag(x_2) == 0) +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) { -uint8_t x_3; -x_3 = 0; -return x_3; -} -else +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_1, 0); -x_8 = lean_name_eq(x_6, x_7); -if (x_8 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_10; -x_10 = 1; -return x_10; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lake_buildImportsAndDeps___spec__7(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_array_get_size(x_1); -x_7 = lean_ctor_get(x_4, 0); -lean_inc(x_7); -x_8 = l_Lean_Name_hash___override(x_7); -lean_dec(x_7); -x_9 = 32; -x_10 = lean_uint64_shift_right(x_8, x_9); -x_11 = lean_uint64_xor(x_8, x_10); -x_12 = 16; -x_13 = lean_uint64_shift_right(x_11, x_12); -x_14 = lean_uint64_xor(x_11, x_13); -x_15 = lean_uint64_to_usize(x_14); -x_16 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_17 = 1; -x_18 = lean_usize_sub(x_16, x_17); -x_19 = lean_usize_land(x_15, x_18); -x_20 = lean_array_uget(x_1, x_19); -lean_ctor_set(x_2, 2, x_20); -x_21 = lean_array_uset(x_1, x_19, x_2); -x_1 = x_21; -x_2 = x_5; -goto _start; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; size_t x_35; size_t x_36; size_t x_37; size_t x_38; size_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_23 = lean_ctor_get(x_2, 0); -x_24 = lean_ctor_get(x_2, 1); -x_25 = lean_ctor_get(x_2, 2); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_2); -x_26 = lean_array_get_size(x_1); -x_27 = lean_ctor_get(x_23, 0); -lean_inc(x_27); -x_28 = l_Lean_Name_hash___override(x_27); -lean_dec(x_27); -x_29 = 32; -x_30 = lean_uint64_shift_right(x_28, x_29); -x_31 = lean_uint64_xor(x_28, x_30); -x_32 = 16; -x_33 = lean_uint64_shift_right(x_31, x_32); -x_34 = lean_uint64_xor(x_31, x_33); -x_35 = lean_uint64_to_usize(x_34); -x_36 = lean_usize_of_nat(x_26); -lean_dec(x_26); -x_37 = 1; -x_38 = lean_usize_sub(x_36, x_37); -x_39 = lean_usize_land(x_35, x_38); -x_40 = lean_array_uget(x_1, x_39); -x_41 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_41, 0, x_23); -lean_ctor_set(x_41, 1, x_24); -lean_ctor_set(x_41, 2, x_40); -x_42 = lean_array_uset(x_1, x_39, x_41); -x_1 = x_42; -x_2 = x_25; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lake_buildImportsAndDeps___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_1, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_box(0); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_Std_DHashMap_Internal_AssocList_foldlM___at_Lake_buildImportsAndDeps___spec__7(x_3, x_6); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_1, x_10); -lean_dec(x_1); -x_1 = x_11; -x_2 = x_8; -x_3 = x_9; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_buildImportsAndDeps___spec__5(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_2 = lean_array_get_size(x_1); -x_3 = lean_unsigned_to_nat(2u); -x_4 = lean_nat_mul(x_2, x_3); -lean_dec(x_2); -x_5 = lean_box(0); -x_6 = lean_mk_array(x_4, x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lake_buildImportsAndDeps___spec__6(x_7, x_1, x_6); -return x_8; -} -} -static lean_object* _init_l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_instHashablePackage___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_instBEqPackage___boxed), 2, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; lean_object* x_21; uint8_t x_22; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_ctor_get(x_3, 1); -x_7 = lean_array_get_size(x_6); -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); -x_9 = l_Lean_Name_hash___override(x_8); -lean_dec(x_8); -x_10 = 32; -x_11 = lean_uint64_shift_right(x_9, x_10); -x_12 = lean_uint64_xor(x_9, x_11); -x_13 = 16; -x_14 = lean_uint64_shift_right(x_12, x_13); -x_15 = lean_uint64_xor(x_12, x_14); -x_16 = lean_uint64_to_usize(x_15); -x_17 = lean_usize_of_nat(x_7); -lean_dec(x_7); -x_18 = 1; -x_19 = lean_usize_sub(x_17, x_18); -x_20 = lean_usize_land(x_16, x_19); -x_21 = lean_array_uget(x_6, x_20); -x_22 = l_Std_DHashMap_Internal_AssocList_contains___at_Lake_buildImportsAndDeps___spec__4(x_2, x_21); -if (x_22 == 0) -{ -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; uint8_t x_35; -x_23 = lean_ctor_get(x_1, 1); -lean_inc(x_23); -lean_dec(x_1); -lean_inc(x_2); -x_24 = lean_array_push(x_23, x_2); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_5, x_25); -lean_dec(x_5); -x_27 = lean_box(0); -x_28 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_28, 0, x_2); -lean_ctor_set(x_28, 1, x_27); -lean_ctor_set(x_28, 2, x_21); -x_29 = lean_array_uset(x_6, x_20, x_28); -x_30 = lean_unsigned_to_nat(4u); -x_31 = lean_nat_mul(x_26, x_30); -x_32 = lean_unsigned_to_nat(3u); -x_33 = lean_nat_div(x_31, x_32); -lean_dec(x_31); -x_34 = lean_array_get_size(x_29); -x_35 = lean_nat_dec_le(x_33, x_34); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); lean_dec(x_34); -lean_dec(x_33); -if (x_35 == 0) +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) { -lean_object* x_36; lean_object* x_37; -x_36 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_buildImportsAndDeps___spec__5(x_29); -lean_ctor_set(x_3, 1, x_36); -lean_ctor_set(x_3, 0, x_26); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_3); -lean_ctor_set(x_37, 1, x_24); return x_37; } else { -lean_object* x_38; -lean_ctor_set(x_3, 1, x_29); -lean_ctor_set(x_3, 0, x_26); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_3); -lean_ctor_set(x_38, 1, x_24); -return x_38; +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} } } else { -lean_dec(x_21); -lean_free_object(x_3); +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_2); -return x_1; -} -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint64_t x_43; uint64_t x_44; uint64_t x_45; uint64_t x_46; uint64_t x_47; uint64_t x_48; uint64_t x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; size_t x_54; lean_object* x_55; uint8_t x_56; -x_39 = lean_ctor_get(x_3, 0); -x_40 = lean_ctor_get(x_3, 1); -lean_inc(x_40); -lean_inc(x_39); +lean_dec(x_4); lean_dec(x_3); -x_41 = lean_array_get_size(x_40); -x_42 = lean_ctor_get(x_2, 0); -lean_inc(x_42); -x_43 = l_Lean_Name_hash___override(x_42); -lean_dec(x_42); -x_44 = 32; -x_45 = lean_uint64_shift_right(x_43, x_44); -x_46 = lean_uint64_xor(x_43, x_45); -x_47 = 16; -x_48 = lean_uint64_shift_right(x_46, x_47); -x_49 = lean_uint64_xor(x_46, x_48); -x_50 = lean_uint64_to_usize(x_49); -x_51 = lean_usize_of_nat(x_41); -lean_dec(x_41); -x_52 = 1; -x_53 = lean_usize_sub(x_51, x_52); -x_54 = lean_usize_land(x_50, x_53); -x_55 = lean_array_uget(x_40, x_54); -x_56 = l_Std_DHashMap_Internal_AssocList_contains___at_Lake_buildImportsAndDeps___spec__4(x_2, x_55); -if (x_56 == 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; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_57 = lean_ctor_get(x_1, 1); -lean_inc(x_57); -lean_dec(x_1); -lean_inc(x_2); -x_58 = lean_array_push(x_57, x_2); -x_59 = lean_unsigned_to_nat(1u); -x_60 = lean_nat_add(x_39, x_59); -lean_dec(x_39); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_62, 0, x_2); -lean_ctor_set(x_62, 1, x_61); -lean_ctor_set(x_62, 2, x_55); -x_63 = lean_array_uset(x_40, x_54, x_62); -x_64 = lean_unsigned_to_nat(4u); -x_65 = lean_nat_mul(x_60, x_64); -x_66 = lean_unsigned_to_nat(3u); -x_67 = lean_nat_div(x_65, x_66); -lean_dec(x_65); -x_68 = lean_array_get_size(x_63); -x_69 = lean_nat_dec_le(x_67, x_68); -lean_dec(x_68); -lean_dec(x_67); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lake_buildImportsAndDeps___spec__5(x_63); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_60); -lean_ctor_set(x_71, 1, 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_58); -return x_72; -} -else -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_60); -lean_ctor_set(x_73, 1, x_63); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_58); -return x_74; -} -} -else -{ -lean_dec(x_55); -lean_dec(x_40); -lean_dec(x_39); lean_dec(x_2); -return x_1; +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stdout(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stdout(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; } } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +} +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__8(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) { _start: { -uint8_t x_5; -x_5 = lean_usize_dec_eq(x_2, x_3); -if (x_5 == 0) +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; -x_6 = lean_array_uget(x_1, x_2); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); lean_dec(x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); lean_dec(x_7); -x_9 = l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3(x_4, x_8); -x_10 = 1; -x_11 = lean_usize_add(x_2, x_10); -x_2 = x_11; -x_4 = x_9; +x_130 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stdin(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stdin(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__9(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stderr(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stderr(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__6(lean_object* x_1, uint8_t 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) { +_start: +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_13 = lean_st_mk_ref(x_12, x_8); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_mk_ref(x_12, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_IO_FS_Stream_ofBuffer(x_14); +lean_inc(x_17); +x_20 = l_IO_FS_Stream_ofBuffer(x_17); +if (x_2 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__7), 8, 2); +lean_closure_set(x_21, 0, x_20); +lean_closure_set(x_21, 1, x_1); +x_22 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__8(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +x_32 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_string_validate_utf8(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_35); +x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_38 = l_panic___at_Lean_Name_getString_x21___spec__1(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_27); +lean_ctor_set(x_23, 0, x_39); +lean_ctor_set(x_32, 0, x_23); +return x_32; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_string_from_utf8_unchecked(x_35); +lean_dec(x_35); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_27); +lean_ctor_set(x_23, 0, x_41); +lean_ctor_set(x_32, 0, x_23); +return x_32; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_32, 0); +x_43 = lean_ctor_get(x_32, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_32); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_string_validate_utf8(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_44); +x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_47 = l_panic___at_Lean_Name_getString_x21___spec__1(x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_27); +lean_ctor_set(x_23, 0, x_48); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_23); +lean_ctor_set(x_49, 1, x_43); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_string_from_utf8_unchecked(x_44); +lean_dec(x_44); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_27); +lean_ctor_set(x_23, 0, x_51); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_23); +lean_ctor_set(x_52, 1, x_43); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_free_object(x_24); +lean_dec(x_31); +lean_dec(x_30); +lean_free_object(x_23); +lean_dec(x_27); +x_53 = !lean_is_exclusive(x_32); +if (x_53 == 0) +{ +return x_32; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_32, 0); +x_55 = lean_ctor_get(x_32, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_32); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +else +{ +lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_24, 0); +x_58 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +x_59 = lean_ctor_get(x_24, 1); +lean_inc(x_59); +lean_inc(x_57); +lean_dec(x_24); +x_60 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_63 = x_60; +} else { + lean_dec_ref(x_60); + x_63 = lean_box(0); +} +x_64 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_64, 0, x_57); +lean_ctor_set(x_64, 1, x_59); +lean_ctor_set_uint8(x_64, sizeof(void*)*2, x_58); +x_65 = lean_ctor_get(x_61, 0); +lean_inc(x_65); +lean_dec(x_61); +x_66 = lean_string_validate_utf8(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_65); +x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_68 = l_panic___at_Lean_Name_getString_x21___spec__1(x_67); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_27); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_69); +if (lean_is_scalar(x_63)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_63; +} +lean_ctor_set(x_70, 0, x_23); +lean_ctor_set(x_70, 1, x_62); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_string_from_utf8_unchecked(x_65); +lean_dec(x_65); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_27); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_72); +if (lean_is_scalar(x_63)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_63; +} +lean_ctor_set(x_73, 0, x_23); +lean_ctor_set(x_73, 1, x_62); +return x_73; +} +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_59); +lean_dec(x_57); +lean_free_object(x_23); +lean_dec(x_27); +x_74 = lean_ctor_get(x_60, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_60, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_76 = x_60; +} else { + lean_dec_ref(x_60); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_78 = lean_ctor_get(x_23, 0); +lean_inc(x_78); +lean_dec(x_23); +x_79 = lean_ctor_get(x_24, 0); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +x_81 = lean_ctor_get(x_24, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_82 = x_24; +} else { + lean_dec_ref(x_24); + x_82 = lean_box(0); +} +x_83 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_86 = x_83; +} else { + lean_dec_ref(x_83); + x_86 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_87 = lean_alloc_ctor(0, 2, 1); +} else { + x_87 = x_82; +} +lean_ctor_set(x_87, 0, x_79); +lean_ctor_set(x_87, 1, x_81); +lean_ctor_set_uint8(x_87, sizeof(void*)*2, x_80); +x_88 = lean_ctor_get(x_84, 0); +lean_inc(x_88); +lean_dec(x_84); +x_89 = lean_string_validate_utf8(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_88); +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_91 = l_panic___at_Lean_Name_getString_x21___spec__1(x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_78); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_87); +if (lean_is_scalar(x_86)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_86; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_85); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_95 = lean_string_from_utf8_unchecked(x_88); +lean_dec(x_88); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_78); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_87); +if (lean_is_scalar(x_86)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_86; +} +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_85); +return x_98; +} +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_78); +x_99 = lean_ctor_get(x_83, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_83, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_101 = x_83; +} else { + lean_dec_ref(x_83); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; +} +} +} +else +{ +uint8_t x_103; +lean_dec(x_17); +x_103 = !lean_is_exclusive(x_22); +if (x_103 == 0) +{ +lean_object* x_104; uint8_t x_105; +x_104 = lean_ctor_get(x_22, 0); +lean_dec(x_104); +x_105 = !lean_is_exclusive(x_23); +if (x_105 == 0) +{ +return x_22; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_23, 0); +x_107 = lean_ctor_get(x_23, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_23); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_22, 0, x_108); +return x_22; +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_109 = lean_ctor_get(x_22, 1); +lean_inc(x_109); +lean_dec(x_22); +x_110 = lean_ctor_get(x_23, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_23, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_112 = x_23; +} else { + lean_dec_ref(x_23); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_109); +return x_114; +} +} +} +else +{ +uint8_t x_115; +lean_dec(x_17); +x_115 = !lean_is_exclusive(x_22); +if (x_115 == 0) +{ +return x_22; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_22, 0); +x_117 = lean_ctor_get(x_22, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_22); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_inc(x_20); +x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__9), 8, 2); +lean_closure_set(x_119, 0, x_20); +lean_closure_set(x_119, 1, x_1); +x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__7), 8, 2); +lean_closure_set(x_120, 0, x_20); +lean_closure_set(x_120, 1, x_119); +x_121 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__8(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_121, 1); +lean_inc(x_124); +lean_dec(x_121); +x_125 = !lean_is_exclusive(x_122); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_126 = lean_ctor_get(x_122, 0); +x_127 = lean_ctor_get(x_122, 1); +lean_dec(x_127); +x_128 = !lean_is_exclusive(x_123); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_123, 0); +x_130 = lean_ctor_get(x_123, 1); +x_131 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_131) == 0) +{ +uint8_t x_132; +x_132 = !lean_is_exclusive(x_131); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_133 = lean_ctor_get(x_131, 0); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_string_validate_utf8(x_134); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_134); +x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_137 = l_panic___at_Lean_Name_getString_x21___spec__1(x_136); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_126); +lean_ctor_set(x_122, 0, x_138); +lean_ctor_set(x_131, 0, x_122); +return x_131; +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_string_from_utf8_unchecked(x_134); +lean_dec(x_134); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_126); +lean_ctor_set(x_122, 0, x_140); +lean_ctor_set(x_131, 0, x_122); +return x_131; +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; +x_141 = lean_ctor_get(x_131, 0); +x_142 = lean_ctor_get(x_131, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_131); +x_143 = lean_ctor_get(x_141, 0); +lean_inc(x_143); +lean_dec(x_141); +x_144 = lean_string_validate_utf8(x_143); +if (x_144 == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_143); +x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_146 = l_panic___at_Lean_Name_getString_x21___spec__1(x_145); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_126); +lean_ctor_set(x_122, 0, x_147); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_122); +lean_ctor_set(x_148, 1, x_142); +return x_148; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_string_from_utf8_unchecked(x_143); +lean_dec(x_143); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_126); +lean_ctor_set(x_122, 0, x_150); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_122); +lean_ctor_set(x_151, 1, x_142); +return x_151; +} +} +} +else +{ +uint8_t x_152; +lean_free_object(x_123); +lean_dec(x_130); +lean_dec(x_129); +lean_free_object(x_122); +lean_dec(x_126); +x_152 = !lean_is_exclusive(x_131); +if (x_152 == 0) +{ +return x_131; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_131, 0); +x_154 = lean_ctor_get(x_131, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_131); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +} +else +{ +lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; +x_156 = lean_ctor_get(x_123, 0); +x_157 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_158 = lean_ctor_get(x_123, 1); +lean_inc(x_158); +lean_inc(x_156); +lean_dec(x_123); +x_159 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_159) == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_162 = x_159; +} else { + lean_dec_ref(x_159); + x_162 = lean_box(0); +} +x_163 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_163, 0, x_156); +lean_ctor_set(x_163, 1, x_158); +lean_ctor_set_uint8(x_163, sizeof(void*)*2, x_157); +x_164 = lean_ctor_get(x_160, 0); +lean_inc(x_164); +lean_dec(x_160); +x_165 = lean_string_validate_utf8(x_164); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_164); +x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_167 = l_panic___at_Lean_Name_getString_x21___spec__1(x_166); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_126); +lean_ctor_set(x_122, 1, x_163); +lean_ctor_set(x_122, 0, x_168); +if (lean_is_scalar(x_162)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_162; +} +lean_ctor_set(x_169, 0, x_122); +lean_ctor_set(x_169, 1, x_161); +return x_169; +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_string_from_utf8_unchecked(x_164); +lean_dec(x_164); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_126); +lean_ctor_set(x_122, 1, x_163); +lean_ctor_set(x_122, 0, x_171); +if (lean_is_scalar(x_162)) { + x_172 = lean_alloc_ctor(0, 2, 0); +} else { + x_172 = x_162; +} +lean_ctor_set(x_172, 0, x_122); +lean_ctor_set(x_172, 1, x_161); +return x_172; +} +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_158); +lean_dec(x_156); +lean_free_object(x_122); +lean_dec(x_126); +x_173 = lean_ctor_get(x_159, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_159, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_175 = x_159; +} else { + lean_dec_ref(x_159); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(1, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +} +} +else +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_177 = lean_ctor_get(x_122, 0); +lean_inc(x_177); +lean_dec(x_122); +x_178 = lean_ctor_get(x_123, 0); +lean_inc(x_178); +x_179 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_180 = lean_ctor_get(x_123, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_181 = x_123; +} else { + lean_dec_ref(x_123); + x_181 = lean_box(0); +} +x_182 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_185 = x_182; +} else { + lean_dec_ref(x_182); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_186 = lean_alloc_ctor(0, 2, 1); +} else { + x_186 = x_181; +} +lean_ctor_set(x_186, 0, x_178); +lean_ctor_set(x_186, 1, x_180); +lean_ctor_set_uint8(x_186, sizeof(void*)*2, x_179); +x_187 = lean_ctor_get(x_183, 0); +lean_inc(x_187); +lean_dec(x_183); +x_188 = lean_string_validate_utf8(x_187); +if (x_188 == 0) +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_dec(x_187); +x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_190 = l_panic___at_Lean_Name_getString_x21___spec__1(x_189); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_177); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_186); +if (lean_is_scalar(x_185)) { + x_193 = lean_alloc_ctor(0, 2, 0); +} else { + x_193 = x_185; +} +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_184); +return x_193; +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_194 = lean_string_from_utf8_unchecked(x_187); +lean_dec(x_187); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_177); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_186); +if (lean_is_scalar(x_185)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_185; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_184); +return x_197; +} +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +lean_dec(x_181); +lean_dec(x_180); +lean_dec(x_178); +lean_dec(x_177); +x_198 = lean_ctor_get(x_182, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_182, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_200 = x_182; +} else { + lean_dec_ref(x_182); + x_200 = lean_box(0); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(1, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_198); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +} +} +else +{ +uint8_t x_202; +lean_dec(x_17); +x_202 = !lean_is_exclusive(x_121); +if (x_202 == 0) +{ +lean_object* x_203; uint8_t x_204; +x_203 = lean_ctor_get(x_121, 0); +lean_dec(x_203); +x_204 = !lean_is_exclusive(x_122); +if (x_204 == 0) +{ +return x_121; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_122, 0); +x_206 = lean_ctor_get(x_122, 1); +lean_inc(x_206); +lean_inc(x_205); +lean_dec(x_122); +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_205); +lean_ctor_set(x_207, 1, x_206); +lean_ctor_set(x_121, 0, x_207); +return x_121; +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_208 = lean_ctor_get(x_121, 1); +lean_inc(x_208); +lean_dec(x_121); +x_209 = lean_ctor_get(x_122, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_122, 1); +lean_inc(x_210); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_211 = x_122; +} else { + lean_dec_ref(x_122); + x_211 = lean_box(0); +} +if (lean_is_scalar(x_211)) { + x_212 = lean_alloc_ctor(1, 2, 0); +} else { + x_212 = x_211; +} +lean_ctor_set(x_212, 0, x_209); +lean_ctor_set(x_212, 1, x_210); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_208); +return x_213; +} +} +} +else +{ +uint8_t x_214; +lean_dec(x_17); +x_214 = !lean_is_exclusive(x_121); +if (x_214 == 0) +{ +return x_121; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_121, 0); +x_216 = lean_ctor_get(x_121, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_121); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; +} +} +} +} +else +{ +uint8_t x_218; +lean_dec(x_14); +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_218 = !lean_is_exclusive(x_16); +if (x_218 == 0) +{ +return x_16; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_16, 0); +x_220 = lean_ctor_get(x_16, 1); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_16); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +return x_221; +} +} +} +else +{ +uint8_t x_222; +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_222 = !lean_is_exclusive(x_13); +if (x_222 == 0) +{ +return x_13; +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_13, 0); +x_224 = lean_ctor_get(x_13, 1); +lean_inc(x_224); +lean_inc(x_223); +lean_dec(x_13); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; +} +} +} +else +{ +lean_object* x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_226 = lean_ctor_get(x_7, 0); +x_227 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_228 = lean_ctor_get(x_7, 1); +lean_inc(x_228); +lean_inc(x_226); +lean_dec(x_7); +x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_230 = lean_st_mk_ref(x_229, x_8); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); +lean_inc(x_232); +lean_dec(x_230); +x_233 = lean_st_mk_ref(x_229, x_232); +if (lean_obj_tag(x_233) == 0) +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); +x_236 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_236, 0, x_226); +lean_ctor_set(x_236, 1, x_228); +lean_ctor_set_uint8(x_236, sizeof(void*)*2, x_227); +x_237 = l_IO_FS_Stream_ofBuffer(x_231); +lean_inc(x_234); +x_238 = l_IO_FS_Stream_ofBuffer(x_234); +if (x_2 == 0) +{ +lean_object* x_239; lean_object* x_240; +x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__7), 8, 2); +lean_closure_set(x_239, 0, x_238); +lean_closure_set(x_239, 1, x_1); +x_240 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__8(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +x_243 = lean_ctor_get(x_240, 1); +lean_inc(x_243); +lean_dec(x_240); +x_244 = lean_ctor_get(x_241, 0); +lean_inc(x_244); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_245 = x_241; +} else { + lean_dec_ref(x_241); + x_245 = lean_box(0); +} +x_246 = lean_ctor_get(x_242, 0); +lean_inc(x_246); +x_247 = lean_ctor_get_uint8(x_242, sizeof(void*)*2); +x_248 = lean_ctor_get(x_242, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_249 = x_242; +} else { + lean_dec_ref(x_242); + x_249 = lean_box(0); +} +x_250 = lean_st_ref_get(x_234, x_243); +lean_dec(x_234); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_250, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_253 = x_250; +} else { + lean_dec_ref(x_250); + x_253 = lean_box(0); +} +if (lean_is_scalar(x_249)) { + x_254 = lean_alloc_ctor(0, 2, 1); +} else { + x_254 = x_249; +} +lean_ctor_set(x_254, 0, x_246); +lean_ctor_set(x_254, 1, x_248); +lean_ctor_set_uint8(x_254, sizeof(void*)*2, x_247); +x_255 = lean_ctor_get(x_251, 0); +lean_inc(x_255); +lean_dec(x_251); +x_256 = lean_string_validate_utf8(x_255); +if (x_256 == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_dec(x_255); +x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_258 = l_panic___at_Lean_Name_getString_x21___spec__1(x_257); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_244); +if (lean_is_scalar(x_245)) { + x_260 = lean_alloc_ctor(0, 2, 0); +} else { + x_260 = x_245; +} +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_254); +if (lean_is_scalar(x_253)) { + x_261 = lean_alloc_ctor(0, 2, 0); +} else { + x_261 = x_253; +} +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_252); +return x_261; +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_262 = lean_string_from_utf8_unchecked(x_255); +lean_dec(x_255); +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_244); +if (lean_is_scalar(x_245)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_245; +} +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_254); +if (lean_is_scalar(x_253)) { + x_265 = lean_alloc_ctor(0, 2, 0); +} else { + x_265 = x_253; +} +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_252); +return x_265; +} +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_dec(x_249); +lean_dec(x_248); +lean_dec(x_246); +lean_dec(x_245); +lean_dec(x_244); +x_266 = lean_ctor_get(x_250, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_250, 1); +lean_inc(x_267); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_268 = x_250; +} else { + lean_dec_ref(x_250); + x_268 = lean_box(0); +} +if (lean_is_scalar(x_268)) { + x_269 = lean_alloc_ctor(1, 2, 0); +} else { + x_269 = x_268; +} +lean_ctor_set(x_269, 0, x_266); +lean_ctor_set(x_269, 1, x_267); +return x_269; +} +} +else +{ +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_dec(x_234); +x_270 = lean_ctor_get(x_240, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_271 = x_240; +} else { + lean_dec_ref(x_240); + x_271 = lean_box(0); +} +x_272 = lean_ctor_get(x_241, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_241, 1); +lean_inc(x_273); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_274 = x_241; +} else { + lean_dec_ref(x_241); + x_274 = lean_box(0); +} +if (lean_is_scalar(x_274)) { + x_275 = lean_alloc_ctor(1, 2, 0); +} else { + x_275 = x_274; +} +lean_ctor_set(x_275, 0, x_272); +lean_ctor_set(x_275, 1, x_273); +if (lean_is_scalar(x_271)) { + x_276 = lean_alloc_ctor(0, 2, 0); +} else { + x_276 = x_271; +} +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_270); +return x_276; +} +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +lean_dec(x_234); +x_277 = lean_ctor_get(x_240, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_240, 1); +lean_inc(x_278); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_279 = x_240; +} else { + lean_dec_ref(x_240); + x_279 = lean_box(0); +} +if (lean_is_scalar(x_279)) { + x_280 = lean_alloc_ctor(1, 2, 0); +} else { + x_280 = x_279; +} +lean_ctor_set(x_280, 0, x_277); +lean_ctor_set(x_280, 1, x_278); +return x_280; +} +} +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; +lean_inc(x_238); +x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__9), 8, 2); +lean_closure_set(x_281, 0, x_238); +lean_closure_set(x_281, 1, x_1); +x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__7), 8, 2); +lean_closure_set(x_282, 0, x_238); +lean_closure_set(x_282, 1, x_281); +x_283 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__8(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); +if (lean_obj_tag(x_283) == 0) +{ +lean_object* x_284; +x_284 = lean_ctor_get(x_283, 0); +lean_inc(x_284); +if (lean_obj_tag(x_284) == 0) +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +x_286 = lean_ctor_get(x_283, 1); +lean_inc(x_286); +lean_dec(x_283); +x_287 = lean_ctor_get(x_284, 0); +lean_inc(x_287); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_288 = x_284; +} else { + lean_dec_ref(x_284); + x_288 = lean_box(0); +} +x_289 = lean_ctor_get(x_285, 0); +lean_inc(x_289); +x_290 = lean_ctor_get_uint8(x_285, sizeof(void*)*2); +x_291 = lean_ctor_get(x_285, 1); +lean_inc(x_291); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_292 = x_285; +} else { + lean_dec_ref(x_285); + x_292 = lean_box(0); +} +x_293 = lean_st_ref_get(x_234, x_286); +lean_dec(x_234); +if (lean_obj_tag(x_293) == 0) +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_296 = x_293; +} else { + lean_dec_ref(x_293); + x_296 = lean_box(0); +} +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(0, 2, 1); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_289); +lean_ctor_set(x_297, 1, x_291); +lean_ctor_set_uint8(x_297, sizeof(void*)*2, x_290); +x_298 = lean_ctor_get(x_294, 0); +lean_inc(x_298); +lean_dec(x_294); +x_299 = lean_string_validate_utf8(x_298); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_dec(x_298); +x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_301 = l_panic___at_Lean_Name_getString_x21___spec__1(x_300); +x_302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_302, 0, x_301); +lean_ctor_set(x_302, 1, x_287); +if (lean_is_scalar(x_288)) { + x_303 = lean_alloc_ctor(0, 2, 0); +} else { + x_303 = x_288; +} +lean_ctor_set(x_303, 0, x_302); +lean_ctor_set(x_303, 1, x_297); +if (lean_is_scalar(x_296)) { + x_304 = lean_alloc_ctor(0, 2, 0); +} else { + x_304 = x_296; +} +lean_ctor_set(x_304, 0, x_303); +lean_ctor_set(x_304, 1, x_295); +return x_304; +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_305 = lean_string_from_utf8_unchecked(x_298); +lean_dec(x_298); +x_306 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_306, 0, x_305); +lean_ctor_set(x_306, 1, x_287); +if (lean_is_scalar(x_288)) { + x_307 = lean_alloc_ctor(0, 2, 0); +} else { + x_307 = x_288; +} +lean_ctor_set(x_307, 0, x_306); +lean_ctor_set(x_307, 1, x_297); +if (lean_is_scalar(x_296)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_296; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_295); +return x_308; +} +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_292); +lean_dec(x_291); +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_287); +x_309 = lean_ctor_get(x_293, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_293, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_311 = x_293; +} else { + lean_dec_ref(x_293); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 2, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +return x_312; +} +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_234); +x_313 = lean_ctor_get(x_283, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_314 = x_283; +} else { + lean_dec_ref(x_283); + x_314 = lean_box(0); +} +x_315 = lean_ctor_get(x_284, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_284, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_317 = x_284; +} else { + lean_dec_ref(x_284); + x_317 = lean_box(0); +} +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(1, 2, 0); +} else { + x_318 = x_317; +} +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +if (lean_is_scalar(x_314)) { + x_319 = lean_alloc_ctor(0, 2, 0); +} else { + x_319 = x_314; +} +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_313); +return x_319; +} +} +else +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_234); +x_320 = lean_ctor_get(x_283, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_283, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_322 = x_283; +} else { + lean_dec_ref(x_283); + x_322 = lean_box(0); +} +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 2, 0); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_320); +lean_ctor_set(x_323, 1, x_321); +return x_323; +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_dec(x_231); +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_324 = lean_ctor_get(x_233, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_233, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_326 = x_233; +} else { + lean_dec_ref(x_233); + x_326 = lean_box(0); +} +if (lean_is_scalar(x_326)) { + x_327 = lean_alloc_ctor(1, 2, 0); +} else { + x_327 = x_326; +} +lean_ctor_set(x_327, 0, x_324); +lean_ctor_set(x_327, 1, x_325); +return x_327; +} +} +else +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_328 = lean_ctor_get(x_230, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_230, 1); +lean_inc(x_329); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_330 = x_230; +} else { + lean_dec_ref(x_230); + x_330 = lean_box(0); +} +if (lean_is_scalar(x_330)) { + x_331 = lean_alloc_ctor(1, 2, 0); +} else { + x_331 = x_330; +} +lean_ctor_set(x_331, 0, x_328); +lean_ctor_set(x_331, 1, x_329); +return x_331; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5___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) { +_start: +{ +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec(x_7); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_9, 1); +x_13 = l_Lake_BuildTrace_mix(x_1, x_12); +x_14 = lean_apply_1(x_2, x_10); +lean_ctor_set(x_9, 1, x_13); +x_15 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_16 = l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__6(x_14, x_15, x_3, x_4, x_5, x_6, x_9, x_8); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +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; uint8_t x_25; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_string_utf8_byte_size(x_21); +x_24 = lean_unsigned_to_nat(0u); +x_25 = lean_nat_dec_eq(x_23, x_24); +if (x_25 == 0) +{ +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; uint8_t x_33; lean_object* x_34; uint8_t x_35; +x_26 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_21, x_23, x_24); +x_27 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_21, x_26, x_23); +x_28 = lean_string_utf8_extract(x_21, x_26, x_27); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_21); +x_29 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_30 = lean_string_append(x_29, x_28); +lean_dec(x_28); +x_31 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_32 = lean_string_append(x_30, x_31); +x_33 = 1; +x_34 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_33); +x_35 = !lean_is_exclusive(x_20); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_20, 0); +x_37 = lean_array_push(x_36, x_34); +lean_ctor_set(x_20, 0, x_37); +x_38 = lean_box(0); +x_39 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_38, x_3, x_4, x_5, x_6, x_20, x_19); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_39; +} +else +{ +lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_40 = lean_ctor_get(x_20, 0); +x_41 = lean_ctor_get_uint8(x_20, sizeof(void*)*2); +x_42 = lean_ctor_get(x_20, 1); +lean_inc(x_42); +lean_inc(x_40); +lean_dec(x_20); +x_43 = lean_array_push(x_40, x_34); +x_44 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_41); +x_45 = lean_box(0); +x_46 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_45, x_3, x_4, x_5, x_6, x_44, x_19); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_23); +lean_dec(x_21); +x_47 = lean_box(0); +x_48 = l_Lake_Module_recFetchInput___lambda__3(x_22, x_47, x_3, x_4, x_5, x_6, x_20, x_19); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_48; +} +} +else +{ +uint8_t x_49; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_49 = !lean_is_exclusive(x_16); +if (x_49 == 0) +{ +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_16, 0); +lean_dec(x_50); +x_51 = !lean_is_exclusive(x_17); +if (x_51 == 0) +{ +return x_16; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_17, 0); +x_53 = lean_ctor_get(x_17, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_17); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_16, 0, x_54); +return x_16; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_55 = lean_ctor_get(x_16, 1); +lean_inc(x_55); +lean_dec(x_16); +x_56 = lean_ctor_get(x_17, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_17, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_58 = x_17; +} else { + lean_dec_ref(x_17); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); +} else { + x_59 = x_58; +} +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_55); +return x_60; +} +} +} +else +{ +uint8_t x_61; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_61 = !lean_is_exclusive(x_16); +if (x_61 == 0) +{ +return x_16; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_16, 0); +x_63 = lean_ctor_get(x_16, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_16); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +else +{ +lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; +x_65 = lean_ctor_get(x_9, 0); +x_66 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); +x_67 = lean_ctor_get(x_9, 1); +lean_inc(x_67); +lean_inc(x_65); +lean_dec(x_9); +x_68 = l_Lake_BuildTrace_mix(x_1, x_67); +x_69 = lean_apply_1(x_2, x_10); +x_70 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_70, 0, x_65); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set_uint8(x_70, sizeof(void*)*2, x_66); +x_71 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_72 = l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__6(x_69, x_71, x_3, x_4, x_5, x_6, x_70, x_8); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +if (lean_obj_tag(x_73) == 0) +{ +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; uint8_t x_81; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_72, 1); +lean_inc(x_75); +lean_dec(x_72); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +x_77 = lean_ctor_get(x_74, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_74, 1); +lean_inc(x_78); +lean_dec(x_74); +x_79 = lean_string_utf8_byte_size(x_77); +x_80 = lean_unsigned_to_nat(0u); +x_81 = lean_nat_dec_eq(x_79, x_80); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_82 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_77, x_79, x_80); +x_83 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_77, x_82, x_79); +x_84 = lean_string_utf8_extract(x_77, x_82, x_83); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_77); +x_85 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_86 = lean_string_append(x_85, x_84); +lean_dec(x_84); +x_87 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_88 = lean_string_append(x_86, x_87); +x_89 = 1; +x_90 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set_uint8(x_90, sizeof(void*)*1, x_89); +x_91 = lean_ctor_get(x_76, 0); +lean_inc(x_91); +x_92 = lean_ctor_get_uint8(x_76, sizeof(void*)*2); +x_93 = lean_ctor_get(x_76, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_94 = x_76; +} else { + lean_dec_ref(x_76); + x_94 = lean_box(0); +} +x_95 = lean_array_push(x_91, x_90); +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(0, 2, 1); +} else { + x_96 = x_94; +} +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_93); +lean_ctor_set_uint8(x_96, sizeof(void*)*2, x_92); +x_97 = lean_box(0); +x_98 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_97, x_3, x_4, x_5, x_6, x_96, x_75); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_98; +} +else +{ +lean_object* x_99; lean_object* x_100; +lean_dec(x_79); +lean_dec(x_77); +x_99 = lean_box(0); +x_100 = l_Lake_Module_recFetchInput___lambda__3(x_78, x_99, x_3, x_4, x_5, x_6, x_76, x_75); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_100; +} +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_101 = lean_ctor_get(x_72, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_102 = x_72; +} else { + lean_dec_ref(x_72); + x_102 = lean_box(0); +} +x_103 = lean_ctor_get(x_73, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_73, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_105 = x_73; +} else { + lean_dec_ref(x_73); + x_105 = lean_box(0); +} +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_105; +} +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +if (lean_is_scalar(x_102)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_102; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_101); +return x_107; +} +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_108 = lean_ctor_get(x_72, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_72, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_110 = x_72; +} else { + lean_dec_ref(x_72); + x_110 = lean_box(0); +} +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); +} else { + x_111 = x_110; +} +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +return x_111; +} +} +} +else +{ +uint8_t x_112; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_112 = !lean_is_exclusive(x_7); +if (x_112 == 0) +{ +lean_object* x_113; +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_7); +lean_ctor_set(x_113, 1, x_8); +return x_113; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_7, 0); +x_115 = lean_ctor_get(x_7, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_7); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_8); +return x_117; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { +_start: +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 1); +lean_dec(x_14); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5___lambda__1), 8, 6); +lean_closure_set(x_15, 0, x_9); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_5); +lean_closure_set(x_15, 3, x_6); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_8); +x_16 = lean_io_map_task(x_15, x_12, x_3, x_4, x_10); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_box(0); +lean_ctor_set(x_1, 1, x_19); +lean_ctor_set(x_1, 0, x_18); +lean_ctor_set(x_16, 0, x_1); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_box(0); +lean_ctor_set(x_1, 1, x_22); +lean_ctor_set(x_1, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_free_object(x_1); +lean_dec(x_13); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_16); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_1, 0); +x_29 = lean_ctor_get(x_1, 2); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_1); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5___lambda__1), 8, 6); +lean_closure_set(x_31, 0, x_9); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_5); +lean_closure_set(x_31, 3, x_6); +lean_closure_set(x_31, 4, x_7); +lean_closure_set(x_31, 5, x_8); +x_32 = lean_io_map_task(x_31, x_28, x_3, x_4, x_10); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_30); +if (lean_is_scalar(x_35)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_35; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_29); +x_39 = lean_ctor_get(x_32, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_41 = x_32; +} else { + lean_dec_ref(x_32); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__12(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stdout(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stdout(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stdout(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stdout(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__13(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stdin(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stdin(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stdin(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stdin(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__14(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_31; +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_7, 0); +x_33 = lean_ctor_get(x_7, 1); +x_34 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_38, 0, x_50); +x_9 = x_38; +x_10 = x_48; +goto block_30; +} +else +{ +uint8_t x_51; +lean_free_object(x_39); +lean_dec(x_46); +lean_dec(x_45); +lean_free_object(x_38); +lean_dec(x_42); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +return x_47; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 0); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_47); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_57 = lean_ctor_get(x_39, 1); +lean_inc(x_57); +lean_inc(x_55); +lean_dec(x_39); +x_58 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_38, 1, x_60); +lean_ctor_set(x_38, 0, x_62); +x_9 = x_38; +x_10 = x_59; +goto block_30; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_57); +lean_dec(x_55); +lean_free_object(x_38); +lean_dec(x_42); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +lean_dec(x_38); +x_68 = lean_ctor_get(x_39, 0); +lean_inc(x_68); +x_69 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_70 = lean_ctor_get(x_39, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_71 = x_39; +} else { + lean_dec_ref(x_39); + x_71 = lean_box(0); +} +x_72 = lean_get_set_stderr(x_35, x_40); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 1); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*2, x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_74); +x_9 = x_77; +x_10 = x_73; +goto block_30; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_38, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_37, 1); +lean_inc(x_83); +lean_dec(x_37); +x_84 = !lean_is_exclusive(x_38); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_38, 0); +x_86 = lean_ctor_get(x_38, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +x_90 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_9 = x_38; +x_10 = x_91; +goto block_30; +} +else +{ +uint8_t x_92; +lean_free_object(x_82); +lean_dec(x_89); +lean_dec(x_88); +lean_free_object(x_38); +lean_dec(x_85); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +lean_inc(x_96); +lean_dec(x_82); +x_99 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_101, 0, x_96); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*2, x_97); +lean_ctor_set(x_38, 1, x_101); +x_9 = x_38; +x_10 = x_100; +goto block_30; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_96); +lean_free_object(x_38); +lean_dec(x_85); +x_102 = lean_ctor_get(x_99, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_99, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_104 = x_99; +} else { + lean_dec_ref(x_99); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_38, 0); +lean_inc(x_106); +lean_dec(x_38); +x_107 = lean_ctor_get(x_82, 0); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_109 = lean_ctor_get(x_82, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_110 = x_82; +} else { + lean_dec_ref(x_82); + x_110 = lean_box(0); +} +x_111 = lean_get_set_stderr(x_35, x_83); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 1); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_106); +lean_ctor_set(x_114, 1, x_113); +x_9 = x_114; +x_10 = x_112; +goto block_30; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +lean_dec(x_106); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_117 = x_111; +} else { + lean_dec_ref(x_111); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_35); +x_119 = !lean_is_exclusive(x_37); +if (x_119 == 0) +{ +return x_37; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_37, 0); +x_121 = lean_ctor_get(x_37, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_37); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_free_object(x_7); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_34); +if (x_123 == 0) +{ +return x_34; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_34, 0); +x_125 = lean_ctor_get(x_34, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_34); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_7, 0); +x_128 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_129 = lean_ctor_get(x_7, 1); +lean_inc(x_129); +lean_inc(x_127); +lean_dec(x_7); +x_130 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_128); +x_134 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_133, x_132); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_139 = x_135; +} else { + lean_dec_ref(x_135); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_142 = lean_ctor_get(x_136, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_143 = x_136; +} else { + lean_dec_ref(x_136); + x_143 = lean_box(0); +} +x_144 = lean_get_set_stderr(x_131, x_137); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 1); +} else { + x_146 = x_143; +} +lean_ctor_set(x_146, 0, x_140); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set_uint8(x_146, sizeof(void*)*2, x_141); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_138); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_139)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_139; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +x_9 = x_149; +x_10 = x_145; +goto block_30; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_143); +lean_dec(x_142); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_152 = x_144; +} else { + lean_dec_ref(x_144); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_154 = lean_ctor_get(x_135, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_134, 1); +lean_inc(x_155); +lean_dec(x_134); +x_156 = lean_ctor_get(x_135, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_157 = x_135; +} else { + lean_dec_ref(x_135); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +x_162 = lean_get_set_stderr(x_131, x_155); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(0, 2, 1); +} else { + x_164 = x_161; +} +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_160); +lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_159); +if (lean_is_scalar(x_157)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_157; +} +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +x_9 = x_165; +x_10 = x_163; +goto block_30; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; +} else { + lean_dec_ref(x_162); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +x_170 = lean_ctor_get(x_134, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_134, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_172 = x_134; +} else { + lean_dec_ref(x_134); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_129); +lean_dec(x_127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_174 = lean_ctor_get(x_130, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_130, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_176 = x_130; +} else { + lean_dec_ref(x_130); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__11(lean_object* x_1, uint8_t 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) { +_start: +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +x_12 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_13 = lean_st_mk_ref(x_12, x_8); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_mk_ref(x_12, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_IO_FS_Stream_ofBuffer(x_14); +lean_inc(x_17); +x_20 = l_IO_FS_Stream_ofBuffer(x_17); +if (x_2 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__12), 8, 2); +lean_closure_set(x_21, 0, x_20); +lean_closure_set(x_21, 1, x_1); +x_22 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__13(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +x_32 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_string_validate_utf8(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_35); +x_37 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_38 = l_panic___at_Lean_Name_getString_x21___spec__1(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_27); +lean_ctor_set(x_23, 0, x_39); +lean_ctor_set(x_32, 0, x_23); +return x_32; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_string_from_utf8_unchecked(x_35); +lean_dec(x_35); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_27); +lean_ctor_set(x_23, 0, x_41); +lean_ctor_set(x_32, 0, x_23); +return x_32; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_32, 0); +x_43 = lean_ctor_get(x_32, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_32); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_string_validate_utf8(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_44); +x_46 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_47 = l_panic___at_Lean_Name_getString_x21___spec__1(x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_27); +lean_ctor_set(x_23, 0, x_48); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_23); +lean_ctor_set(x_49, 1, x_43); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_string_from_utf8_unchecked(x_44); +lean_dec(x_44); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_27); +lean_ctor_set(x_23, 0, x_51); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_23); +lean_ctor_set(x_52, 1, x_43); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_free_object(x_24); +lean_dec(x_31); +lean_dec(x_30); +lean_free_object(x_23); +lean_dec(x_27); +x_53 = !lean_is_exclusive(x_32); +if (x_53 == 0) +{ +return x_32; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_32, 0); +x_55 = lean_ctor_get(x_32, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_32); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +else +{ +lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_24, 0); +x_58 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +x_59 = lean_ctor_get(x_24, 1); +lean_inc(x_59); +lean_inc(x_57); +lean_dec(x_24); +x_60 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_63 = x_60; +} else { + lean_dec_ref(x_60); + x_63 = lean_box(0); +} +x_64 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_64, 0, x_57); +lean_ctor_set(x_64, 1, x_59); +lean_ctor_set_uint8(x_64, sizeof(void*)*2, x_58); +x_65 = lean_ctor_get(x_61, 0); +lean_inc(x_65); +lean_dec(x_61); +x_66 = lean_string_validate_utf8(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_65); +x_67 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_68 = l_panic___at_Lean_Name_getString_x21___spec__1(x_67); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_27); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_69); +if (lean_is_scalar(x_63)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_63; +} +lean_ctor_set(x_70, 0, x_23); +lean_ctor_set(x_70, 1, x_62); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_string_from_utf8_unchecked(x_65); +lean_dec(x_65); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_27); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_72); +if (lean_is_scalar(x_63)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_63; +} +lean_ctor_set(x_73, 0, x_23); +lean_ctor_set(x_73, 1, x_62); +return x_73; +} +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_59); +lean_dec(x_57); +lean_free_object(x_23); +lean_dec(x_27); +x_74 = lean_ctor_get(x_60, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_60, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_76 = x_60; +} else { + lean_dec_ref(x_60); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_78 = lean_ctor_get(x_23, 0); +lean_inc(x_78); +lean_dec(x_23); +x_79 = lean_ctor_get(x_24, 0); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +x_81 = lean_ctor_get(x_24, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_82 = x_24; +} else { + lean_dec_ref(x_24); + x_82 = lean_box(0); +} +x_83 = lean_st_ref_get(x_17, x_25); +lean_dec(x_17); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_86 = x_83; +} else { + lean_dec_ref(x_83); + x_86 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_87 = lean_alloc_ctor(0, 2, 1); +} else { + x_87 = x_82; +} +lean_ctor_set(x_87, 0, x_79); +lean_ctor_set(x_87, 1, x_81); +lean_ctor_set_uint8(x_87, sizeof(void*)*2, x_80); +x_88 = lean_ctor_get(x_84, 0); +lean_inc(x_88); +lean_dec(x_84); +x_89 = lean_string_validate_utf8(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_88); +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_91 = l_panic___at_Lean_Name_getString_x21___spec__1(x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_78); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_87); +if (lean_is_scalar(x_86)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_86; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_85); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_95 = lean_string_from_utf8_unchecked(x_88); +lean_dec(x_88); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_78); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_87); +if (lean_is_scalar(x_86)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_86; +} +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_85); +return x_98; +} +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_78); +x_99 = lean_ctor_get(x_83, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_83, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_101 = x_83; +} else { + lean_dec_ref(x_83); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; +} +} +} +else +{ +uint8_t x_103; +lean_dec(x_17); +x_103 = !lean_is_exclusive(x_22); +if (x_103 == 0) +{ +lean_object* x_104; uint8_t x_105; +x_104 = lean_ctor_get(x_22, 0); +lean_dec(x_104); +x_105 = !lean_is_exclusive(x_23); +if (x_105 == 0) +{ +return x_22; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_23, 0); +x_107 = lean_ctor_get(x_23, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_23); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_22, 0, x_108); +return x_22; +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_109 = lean_ctor_get(x_22, 1); +lean_inc(x_109); +lean_dec(x_22); +x_110 = lean_ctor_get(x_23, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_23, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_112 = x_23; +} else { + lean_dec_ref(x_23); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_109); +return x_114; +} +} +} +else +{ +uint8_t x_115; +lean_dec(x_17); +x_115 = !lean_is_exclusive(x_22); +if (x_115 == 0) +{ +return x_22; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_22, 0); +x_117 = lean_ctor_get(x_22, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_22); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_inc(x_20); +x_119 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__14), 8, 2); +lean_closure_set(x_119, 0, x_20); +lean_closure_set(x_119, 1, x_1); +x_120 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__12), 8, 2); +lean_closure_set(x_120, 0, x_20); +lean_closure_set(x_120, 1, x_119); +x_121 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__13(x_19, x_120, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_121, 1); +lean_inc(x_124); +lean_dec(x_121); +x_125 = !lean_is_exclusive(x_122); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_126 = lean_ctor_get(x_122, 0); +x_127 = lean_ctor_get(x_122, 1); +lean_dec(x_127); +x_128 = !lean_is_exclusive(x_123); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_123, 0); +x_130 = lean_ctor_get(x_123, 1); +x_131 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_131) == 0) +{ +uint8_t x_132; +x_132 = !lean_is_exclusive(x_131); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_133 = lean_ctor_get(x_131, 0); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_string_validate_utf8(x_134); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_134); +x_136 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_137 = l_panic___at_Lean_Name_getString_x21___spec__1(x_136); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_126); +lean_ctor_set(x_122, 0, x_138); +lean_ctor_set(x_131, 0, x_122); +return x_131; +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_string_from_utf8_unchecked(x_134); +lean_dec(x_134); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_126); +lean_ctor_set(x_122, 0, x_140); +lean_ctor_set(x_131, 0, x_122); +return x_131; +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; +x_141 = lean_ctor_get(x_131, 0); +x_142 = lean_ctor_get(x_131, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_131); +x_143 = lean_ctor_get(x_141, 0); +lean_inc(x_143); +lean_dec(x_141); +x_144 = lean_string_validate_utf8(x_143); +if (x_144 == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_143); +x_145 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_146 = l_panic___at_Lean_Name_getString_x21___spec__1(x_145); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_126); +lean_ctor_set(x_122, 0, x_147); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_122); +lean_ctor_set(x_148, 1, x_142); +return x_148; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_string_from_utf8_unchecked(x_143); +lean_dec(x_143); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_126); +lean_ctor_set(x_122, 0, x_150); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_122); +lean_ctor_set(x_151, 1, x_142); +return x_151; +} +} +} +else +{ +uint8_t x_152; +lean_free_object(x_123); +lean_dec(x_130); +lean_dec(x_129); +lean_free_object(x_122); +lean_dec(x_126); +x_152 = !lean_is_exclusive(x_131); +if (x_152 == 0) +{ +return x_131; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_131, 0); +x_154 = lean_ctor_get(x_131, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_131); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +} +else +{ +lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; +x_156 = lean_ctor_get(x_123, 0); +x_157 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_158 = lean_ctor_get(x_123, 1); +lean_inc(x_158); +lean_inc(x_156); +lean_dec(x_123); +x_159 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_159) == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_162 = x_159; +} else { + lean_dec_ref(x_159); + x_162 = lean_box(0); +} +x_163 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_163, 0, x_156); +lean_ctor_set(x_163, 1, x_158); +lean_ctor_set_uint8(x_163, sizeof(void*)*2, x_157); +x_164 = lean_ctor_get(x_160, 0); +lean_inc(x_164); +lean_dec(x_160); +x_165 = lean_string_validate_utf8(x_164); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_164); +x_166 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_167 = l_panic___at_Lean_Name_getString_x21___spec__1(x_166); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_126); +lean_ctor_set(x_122, 1, x_163); +lean_ctor_set(x_122, 0, x_168); +if (lean_is_scalar(x_162)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_162; +} +lean_ctor_set(x_169, 0, x_122); +lean_ctor_set(x_169, 1, x_161); +return x_169; +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_string_from_utf8_unchecked(x_164); +lean_dec(x_164); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_126); +lean_ctor_set(x_122, 1, x_163); +lean_ctor_set(x_122, 0, x_171); +if (lean_is_scalar(x_162)) { + x_172 = lean_alloc_ctor(0, 2, 0); +} else { + x_172 = x_162; +} +lean_ctor_set(x_172, 0, x_122); +lean_ctor_set(x_172, 1, x_161); +return x_172; +} +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_158); +lean_dec(x_156); +lean_free_object(x_122); +lean_dec(x_126); +x_173 = lean_ctor_get(x_159, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_159, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_175 = x_159; +} else { + lean_dec_ref(x_159); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(1, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +} +} +else +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_177 = lean_ctor_get(x_122, 0); +lean_inc(x_177); +lean_dec(x_122); +x_178 = lean_ctor_get(x_123, 0); +lean_inc(x_178); +x_179 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_180 = lean_ctor_get(x_123, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_181 = x_123; +} else { + lean_dec_ref(x_123); + x_181 = lean_box(0); +} +x_182 = lean_st_ref_get(x_17, x_124); +lean_dec(x_17); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_185 = x_182; +} else { + lean_dec_ref(x_182); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_186 = lean_alloc_ctor(0, 2, 1); +} else { + x_186 = x_181; +} +lean_ctor_set(x_186, 0, x_178); +lean_ctor_set(x_186, 1, x_180); +lean_ctor_set_uint8(x_186, sizeof(void*)*2, x_179); +x_187 = lean_ctor_get(x_183, 0); +lean_inc(x_187); +lean_dec(x_183); +x_188 = lean_string_validate_utf8(x_187); +if (x_188 == 0) +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_dec(x_187); +x_189 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_190 = l_panic___at_Lean_Name_getString_x21___spec__1(x_189); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_177); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_186); +if (lean_is_scalar(x_185)) { + x_193 = lean_alloc_ctor(0, 2, 0); +} else { + x_193 = x_185; +} +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_184); +return x_193; +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_194 = lean_string_from_utf8_unchecked(x_187); +lean_dec(x_187); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_177); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_186); +if (lean_is_scalar(x_185)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_185; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_184); +return x_197; +} +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +lean_dec(x_181); +lean_dec(x_180); +lean_dec(x_178); +lean_dec(x_177); +x_198 = lean_ctor_get(x_182, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_182, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_200 = x_182; +} else { + lean_dec_ref(x_182); + x_200 = lean_box(0); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(1, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_198); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +} +} +else +{ +uint8_t x_202; +lean_dec(x_17); +x_202 = !lean_is_exclusive(x_121); +if (x_202 == 0) +{ +lean_object* x_203; uint8_t x_204; +x_203 = lean_ctor_get(x_121, 0); +lean_dec(x_203); +x_204 = !lean_is_exclusive(x_122); +if (x_204 == 0) +{ +return x_121; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_122, 0); +x_206 = lean_ctor_get(x_122, 1); +lean_inc(x_206); +lean_inc(x_205); +lean_dec(x_122); +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_205); +lean_ctor_set(x_207, 1, x_206); +lean_ctor_set(x_121, 0, x_207); +return x_121; +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_208 = lean_ctor_get(x_121, 1); +lean_inc(x_208); +lean_dec(x_121); +x_209 = lean_ctor_get(x_122, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_122, 1); +lean_inc(x_210); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_211 = x_122; +} else { + lean_dec_ref(x_122); + x_211 = lean_box(0); +} +if (lean_is_scalar(x_211)) { + x_212 = lean_alloc_ctor(1, 2, 0); +} else { + x_212 = x_211; +} +lean_ctor_set(x_212, 0, x_209); +lean_ctor_set(x_212, 1, x_210); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_208); +return x_213; +} +} +} +else +{ +uint8_t x_214; +lean_dec(x_17); +x_214 = !lean_is_exclusive(x_121); +if (x_214 == 0) +{ +return x_121; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_121, 0); +x_216 = lean_ctor_get(x_121, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_121); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; +} +} +} +} +else +{ +uint8_t x_218; +lean_dec(x_14); +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_218 = !lean_is_exclusive(x_16); +if (x_218 == 0) +{ +return x_16; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_16, 0); +x_220 = lean_ctor_get(x_16, 1); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_16); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +return x_221; +} +} +} +else +{ +uint8_t x_222; +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_222 = !lean_is_exclusive(x_13); +if (x_222 == 0) +{ +return x_13; +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_13, 0); +x_224 = lean_ctor_get(x_13, 1); +lean_inc(x_224); +lean_inc(x_223); +lean_dec(x_13); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; +} +} +} +else +{ +lean_object* x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_226 = lean_ctor_get(x_7, 0); +x_227 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +x_228 = lean_ctor_get(x_7, 1); +lean_inc(x_228); +lean_inc(x_226); +lean_dec(x_7); +x_229 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_230 = lean_st_mk_ref(x_229, x_8); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); +lean_inc(x_232); +lean_dec(x_230); +x_233 = lean_st_mk_ref(x_229, x_232); +if (lean_obj_tag(x_233) == 0) +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); +x_236 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_236, 0, x_226); +lean_ctor_set(x_236, 1, x_228); +lean_ctor_set_uint8(x_236, sizeof(void*)*2, x_227); +x_237 = l_IO_FS_Stream_ofBuffer(x_231); +lean_inc(x_234); +x_238 = l_IO_FS_Stream_ofBuffer(x_234); +if (x_2 == 0) +{ +lean_object* x_239; lean_object* x_240; +x_239 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__12), 8, 2); +lean_closure_set(x_239, 0, x_238); +lean_closure_set(x_239, 1, x_1); +x_240 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__13(x_237, x_239, x_3, x_4, x_5, x_6, x_236, x_235); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +x_243 = lean_ctor_get(x_240, 1); +lean_inc(x_243); +lean_dec(x_240); +x_244 = lean_ctor_get(x_241, 0); +lean_inc(x_244); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_245 = x_241; +} else { + lean_dec_ref(x_241); + x_245 = lean_box(0); +} +x_246 = lean_ctor_get(x_242, 0); +lean_inc(x_246); +x_247 = lean_ctor_get_uint8(x_242, sizeof(void*)*2); +x_248 = lean_ctor_get(x_242, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_249 = x_242; +} else { + lean_dec_ref(x_242); + x_249 = lean_box(0); +} +x_250 = lean_st_ref_get(x_234, x_243); +lean_dec(x_234); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_250, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_253 = x_250; +} else { + lean_dec_ref(x_250); + x_253 = lean_box(0); +} +if (lean_is_scalar(x_249)) { + x_254 = lean_alloc_ctor(0, 2, 1); +} else { + x_254 = x_249; +} +lean_ctor_set(x_254, 0, x_246); +lean_ctor_set(x_254, 1, x_248); +lean_ctor_set_uint8(x_254, sizeof(void*)*2, x_247); +x_255 = lean_ctor_get(x_251, 0); +lean_inc(x_255); +lean_dec(x_251); +x_256 = lean_string_validate_utf8(x_255); +if (x_256 == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_dec(x_255); +x_257 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_258 = l_panic___at_Lean_Name_getString_x21___spec__1(x_257); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_244); +if (lean_is_scalar(x_245)) { + x_260 = lean_alloc_ctor(0, 2, 0); +} else { + x_260 = x_245; +} +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_254); +if (lean_is_scalar(x_253)) { + x_261 = lean_alloc_ctor(0, 2, 0); +} else { + x_261 = x_253; +} +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_252); +return x_261; +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_262 = lean_string_from_utf8_unchecked(x_255); +lean_dec(x_255); +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_244); +if (lean_is_scalar(x_245)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_245; +} +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_254); +if (lean_is_scalar(x_253)) { + x_265 = lean_alloc_ctor(0, 2, 0); +} else { + x_265 = x_253; +} +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_252); +return x_265; +} +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_dec(x_249); +lean_dec(x_248); +lean_dec(x_246); +lean_dec(x_245); +lean_dec(x_244); +x_266 = lean_ctor_get(x_250, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_250, 1); +lean_inc(x_267); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_268 = x_250; +} else { + lean_dec_ref(x_250); + x_268 = lean_box(0); +} +if (lean_is_scalar(x_268)) { + x_269 = lean_alloc_ctor(1, 2, 0); +} else { + x_269 = x_268; +} +lean_ctor_set(x_269, 0, x_266); +lean_ctor_set(x_269, 1, x_267); +return x_269; +} +} +else +{ +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_dec(x_234); +x_270 = lean_ctor_get(x_240, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_271 = x_240; +} else { + lean_dec_ref(x_240); + x_271 = lean_box(0); +} +x_272 = lean_ctor_get(x_241, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_241, 1); +lean_inc(x_273); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_274 = x_241; +} else { + lean_dec_ref(x_241); + x_274 = lean_box(0); +} +if (lean_is_scalar(x_274)) { + x_275 = lean_alloc_ctor(1, 2, 0); +} else { + x_275 = x_274; +} +lean_ctor_set(x_275, 0, x_272); +lean_ctor_set(x_275, 1, x_273); +if (lean_is_scalar(x_271)) { + x_276 = lean_alloc_ctor(0, 2, 0); +} else { + x_276 = x_271; +} +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_270); +return x_276; +} +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +lean_dec(x_234); +x_277 = lean_ctor_get(x_240, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_240, 1); +lean_inc(x_278); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_279 = x_240; +} else { + lean_dec_ref(x_240); + x_279 = lean_box(0); +} +if (lean_is_scalar(x_279)) { + x_280 = lean_alloc_ctor(1, 2, 0); +} else { + x_280 = x_279; +} +lean_ctor_set(x_280, 0, x_277); +lean_ctor_set(x_280, 1, x_278); +return x_280; +} +} +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; +lean_inc(x_238); +x_281 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__14), 8, 2); +lean_closure_set(x_281, 0, x_238); +lean_closure_set(x_281, 1, x_1); +x_282 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__12), 8, 2); +lean_closure_set(x_282, 0, x_238); +lean_closure_set(x_282, 1, x_281); +x_283 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__13(x_237, x_282, x_3, x_4, x_5, x_6, x_236, x_235); +if (lean_obj_tag(x_283) == 0) +{ +lean_object* x_284; +x_284 = lean_ctor_get(x_283, 0); +lean_inc(x_284); +if (lean_obj_tag(x_284) == 0) +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +x_286 = lean_ctor_get(x_283, 1); +lean_inc(x_286); +lean_dec(x_283); +x_287 = lean_ctor_get(x_284, 0); +lean_inc(x_287); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_288 = x_284; +} else { + lean_dec_ref(x_284); + x_288 = lean_box(0); +} +x_289 = lean_ctor_get(x_285, 0); +lean_inc(x_289); +x_290 = lean_ctor_get_uint8(x_285, sizeof(void*)*2); +x_291 = lean_ctor_get(x_285, 1); +lean_inc(x_291); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_292 = x_285; +} else { + lean_dec_ref(x_285); + x_292 = lean_box(0); +} +x_293 = lean_st_ref_get(x_234, x_286); +lean_dec(x_234); +if (lean_obj_tag(x_293) == 0) +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_296 = x_293; +} else { + lean_dec_ref(x_293); + x_296 = lean_box(0); +} +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(0, 2, 1); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_289); +lean_ctor_set(x_297, 1, x_291); +lean_ctor_set_uint8(x_297, sizeof(void*)*2, x_290); +x_298 = lean_ctor_get(x_294, 0); +lean_inc(x_298); +lean_dec(x_294); +x_299 = lean_string_validate_utf8(x_298); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_dec(x_298); +x_300 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_301 = l_panic___at_Lean_Name_getString_x21___spec__1(x_300); +x_302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_302, 0, x_301); +lean_ctor_set(x_302, 1, x_287); +if (lean_is_scalar(x_288)) { + x_303 = lean_alloc_ctor(0, 2, 0); +} else { + x_303 = x_288; +} +lean_ctor_set(x_303, 0, x_302); +lean_ctor_set(x_303, 1, x_297); +if (lean_is_scalar(x_296)) { + x_304 = lean_alloc_ctor(0, 2, 0); +} else { + x_304 = x_296; +} +lean_ctor_set(x_304, 0, x_303); +lean_ctor_set(x_304, 1, x_295); +return x_304; +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_305 = lean_string_from_utf8_unchecked(x_298); +lean_dec(x_298); +x_306 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_306, 0, x_305); +lean_ctor_set(x_306, 1, x_287); +if (lean_is_scalar(x_288)) { + x_307 = lean_alloc_ctor(0, 2, 0); +} else { + x_307 = x_288; +} +lean_ctor_set(x_307, 0, x_306); +lean_ctor_set(x_307, 1, x_297); +if (lean_is_scalar(x_296)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_296; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_295); +return x_308; +} +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_292); +lean_dec(x_291); +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_287); +x_309 = lean_ctor_get(x_293, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_293, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_311 = x_293; +} else { + lean_dec_ref(x_293); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 2, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +return x_312; +} +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_234); +x_313 = lean_ctor_get(x_283, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_314 = x_283; +} else { + lean_dec_ref(x_283); + x_314 = lean_box(0); +} +x_315 = lean_ctor_get(x_284, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_284, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_317 = x_284; +} else { + lean_dec_ref(x_284); + x_317 = lean_box(0); +} +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(1, 2, 0); +} else { + x_318 = x_317; +} +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +if (lean_is_scalar(x_314)) { + x_319 = lean_alloc_ctor(0, 2, 0); +} else { + x_319 = x_314; +} +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_313); +return x_319; +} +} +else +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_234); +x_320 = lean_ctor_get(x_283, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_283, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_283)) { + lean_ctor_release(x_283, 0); + lean_ctor_release(x_283, 1); + x_322 = x_283; +} else { + lean_dec_ref(x_283); + x_322 = lean_box(0); +} +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 2, 0); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_320); +lean_ctor_set(x_323, 1, x_321); +return x_323; +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_dec(x_231); +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_324 = lean_ctor_get(x_233, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_233, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_326 = x_233; +} else { + lean_dec_ref(x_233); + x_326 = lean_box(0); +} +if (lean_is_scalar(x_326)) { + x_327 = lean_alloc_ctor(1, 2, 0); +} else { + x_327 = x_326; +} +lean_ctor_set(x_327, 0, x_324); +lean_ctor_set(x_327, 1, x_325); +return x_327; +} +} +else +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_228); +lean_dec(x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_328 = lean_ctor_get(x_230, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_230, 1); +lean_inc(x_329); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_330 = x_230; +} else { + lean_dec_ref(x_230); + x_330 = lean_box(0); +} +if (lean_is_scalar(x_330)) { + x_331 = lean_alloc_ctor(1, 2, 0); +} else { + x_331 = x_330; +} +lean_ctor_set(x_331, 0, x_328); +lean_ctor_set(x_331, 1, x_329); +return x_331; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_8, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_8, 0); +lean_inc(x_29); +lean_dec(x_8); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_28, 1); +x_32 = l_Lake_BuildTrace_mix(x_1, x_31); +x_33 = lean_apply_1(x_2, x_29); +lean_ctor_set(x_28, 1, x_32); +x_34 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_35 = l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__11(x_33, x_34, x_3, x_4, x_5, x_6, x_28, x_9); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) +{ +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; uint8_t x_44; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_ctor_get(x_37, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_37, 1); +lean_inc(x_41); +lean_dec(x_37); +x_42 = lean_string_utf8_byte_size(x_40); +x_43 = lean_unsigned_to_nat(0u); +x_44 = lean_nat_dec_eq(x_42, x_43); +if (x_44 == 0) +{ +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; uint8_t x_52; lean_object* x_53; uint8_t x_54; +x_45 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_40, x_42, x_43); +x_46 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_40, x_45, x_42); +x_47 = lean_string_utf8_extract(x_40, x_45, x_46); +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_40); +x_48 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_49 = lean_string_append(x_48, x_47); +lean_dec(x_47); +x_50 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_51 = lean_string_append(x_49, x_50); +x_52 = 1; +x_53 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_52); +x_54 = !lean_is_exclusive(x_39); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_55 = lean_ctor_get(x_39, 0); +x_56 = lean_array_push(x_55, x_53); +lean_ctor_set(x_39, 0, x_56); +x_57 = lean_box(0); +x_58 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_57, x_3, x_4, x_5, x_6, x_39, x_38); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_10 = x_59; +x_11 = x_60; +goto block_27; +} +else +{ +lean_object* x_61; uint8_t 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; +x_61 = lean_ctor_get(x_39, 0); +x_62 = lean_ctor_get_uint8(x_39, sizeof(void*)*2); +x_63 = lean_ctor_get(x_39, 1); +lean_inc(x_63); +lean_inc(x_61); +lean_dec(x_39); +x_64 = lean_array_push(x_61, x_53); +x_65 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_62); +x_66 = lean_box(0); +x_67 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_66, x_3, x_4, x_5, x_6, x_65, x_38); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_10 = x_68; +x_11 = x_69; +goto block_27; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_42); +lean_dec(x_40); +x_70 = lean_box(0); +x_71 = l_Lake_Module_recFetchInput___lambda__3(x_41, x_70, x_3, x_4, x_5, x_6, x_39, x_38); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_10 = x_72; +x_11 = x_73; +goto block_27; +} +} +else +{ +lean_object* x_74; uint8_t x_75; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_74 = lean_ctor_get(x_35, 1); +lean_inc(x_74); +lean_dec(x_35); +x_75 = !lean_is_exclusive(x_36); +if (x_75 == 0) +{ +x_10 = x_36; +x_11 = x_74; +goto block_27; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_36, 0); +x_77 = lean_ctor_get(x_36, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_36); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +x_10 = x_78; +x_11 = x_74; +goto block_27; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_79 = !lean_is_exclusive(x_35); +if (x_79 == 0) +{ +return x_35; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_35, 0); +x_81 = lean_ctor_get(x_35, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_35); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; +x_83 = lean_ctor_get(x_28, 0); +x_84 = lean_ctor_get_uint8(x_28, sizeof(void*)*2); +x_85 = lean_ctor_get(x_28, 1); +lean_inc(x_85); +lean_inc(x_83); +lean_dec(x_28); +x_86 = l_Lake_BuildTrace_mix(x_1, x_85); +x_87 = lean_apply_1(x_2, x_29); +x_88 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_88, 0, x_83); +lean_ctor_set(x_88, 1, x_86); +lean_ctor_set_uint8(x_88, sizeof(void*)*2, x_84); +x_89 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_90 = l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__11(x_87, x_89, x_3, x_4, x_5, x_6, x_88, x_9); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +lean_dec(x_90); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +lean_dec(x_91); +x_95 = lean_ctor_get(x_92, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_92, 1); +lean_inc(x_96); +lean_dec(x_92); +x_97 = lean_string_utf8_byte_size(x_95); +x_98 = lean_unsigned_to_nat(0u); +x_99 = lean_nat_dec_eq(x_97, x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; uint8_t 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; lean_object* x_117; lean_object* x_118; +x_100 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_95, x_97, x_98); +x_101 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_95, x_100, x_97); +x_102 = lean_string_utf8_extract(x_95, x_100, x_101); +lean_dec(x_101); +lean_dec(x_100); +lean_dec(x_95); +x_103 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_104 = lean_string_append(x_103, x_102); +lean_dec(x_102); +x_105 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_106 = lean_string_append(x_104, x_105); +x_107 = 1; +x_108 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set_uint8(x_108, sizeof(void*)*1, x_107); +x_109 = lean_ctor_get(x_94, 0); +lean_inc(x_109); +x_110 = lean_ctor_get_uint8(x_94, sizeof(void*)*2); +x_111 = lean_ctor_get(x_94, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_112 = x_94; +} else { + lean_dec_ref(x_94); + x_112 = lean_box(0); +} +x_113 = lean_array_push(x_109, x_108); +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 2, 1); +} else { + x_114 = x_112; +} +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_111); +lean_ctor_set_uint8(x_114, sizeof(void*)*2, x_110); +x_115 = lean_box(0); +x_116 = l_Lake_Module_recFetchInput___lambda__3(x_96, x_115, x_3, x_4, x_5, x_6, x_114, x_93); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +lean_dec(x_116); +x_10 = x_117; +x_11 = x_118; +goto block_27; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_97); +lean_dec(x_95); +x_119 = lean_box(0); +x_120 = l_Lake_Module_recFetchInput___lambda__3(x_96, x_119, x_3, x_4, x_5, x_6, x_94, x_93); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +x_10 = x_121; +x_11 = x_122; +goto block_27; +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_123 = lean_ctor_get(x_90, 1); +lean_inc(x_123); +lean_dec(x_90); +x_124 = lean_ctor_get(x_91, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_91, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_126 = x_91; +} else { + lean_dec_ref(x_91); + x_126 = lean_box(0); +} +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); +} else { + x_127 = x_126; +} +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +x_10 = x_127; +x_11 = x_123; +goto block_27; +} +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_128 = lean_ctor_get(x_90, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_90, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_130 = x_90; +} else { + lean_dec_ref(x_90); + x_130 = lean_box(0); +} +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(1, 2, 0); +} else { + x_131 = x_130; +} +lean_ctor_set(x_131, 0, x_128); +lean_ctor_set(x_131, 1, x_129); +return x_131; +} +} +} +else +{ +uint8_t x_132; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_132 = !lean_is_exclusive(x_8); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; +x_133 = lean_task_pure(x_8); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_9); +return x_134; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_135 = lean_ctor_get(x_8, 0); +x_136 = lean_ctor_get(x_8, 1); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_8); +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = lean_task_pure(x_137); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_9); +return x_139; +} +} +block_27: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_Module_recFetchSetup___spec__11___lambda__1), 2, 1); +lean_closure_set(x_14, 0, x_13); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +x_16 = 1; +x_17 = lean_task_map(x_14, x_15, x_7, x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_11); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_7); +x_19 = !lean_is_exclusive(x_10); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_task_pure(x_10); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_11); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_10, 0); +x_23 = lean_ctor_get(x_10, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_10); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_task_pure(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_11); +return x_26; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { +_start: +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 1); +lean_dec(x_14); +lean_inc(x_3); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10___lambda__1), 9, 7); +lean_closure_set(x_15, 0, x_9); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_5); +lean_closure_set(x_15, 3, x_6); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_8); +lean_closure_set(x_15, 6, x_3); +x_16 = lean_io_bind_task(x_12, x_15, x_3, x_4, x_10); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_box(0); +lean_ctor_set(x_1, 1, x_19); +lean_ctor_set(x_1, 0, x_18); +lean_ctor_set(x_16, 0, x_1); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_box(0); +lean_ctor_set(x_1, 1, x_22); +lean_ctor_set(x_1, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_free_object(x_1); +lean_dec(x_13); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_16); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_1, 0); +x_29 = lean_ctor_get(x_1, 2); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_1); +lean_inc(x_3); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10___lambda__1), 9, 7); +lean_closure_set(x_31, 0, x_9); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_5); +lean_closure_set(x_31, 3, x_6); +lean_closure_set(x_31, 4, x_7); +lean_closure_set(x_31, 5, x_8); +lean_closure_set(x_31, 6, x_3); +x_32 = lean_io_bind_task(x_28, x_31, x_3, x_4, x_10); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_30); +if (lean_is_scalar(x_35)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_35; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_29); +x_39 = lean_ctor_get(x_32, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_41 = x_32; +} else { + lean_dec_ref(x_32); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { +_start: +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 1); +lean_dec(x_14); +lean_inc(x_3); +x_15 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10___lambda__1), 9, 7); +lean_closure_set(x_15, 0, x_9); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_5); +lean_closure_set(x_15, 3, x_6); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_8); +lean_closure_set(x_15, 6, x_3); +x_16 = lean_io_bind_task(x_12, x_15, x_3, x_4, x_10); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_box(0); +lean_ctor_set(x_1, 1, x_19); +lean_ctor_set(x_1, 0, x_18); +lean_ctor_set(x_16, 0, x_1); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_box(0); +lean_ctor_set(x_1, 1, x_22); +lean_ctor_set(x_1, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_free_object(x_1); +lean_dec(x_13); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_16, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_16); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_1, 0); +x_29 = lean_ctor_get(x_1, 2); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_1); +lean_inc(x_3); +x_31 = lean_alloc_closure((void*)(l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10___lambda__1), 9, 7); +lean_closure_set(x_31, 0, x_9); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_5); +lean_closure_set(x_31, 3, x_6); +lean_closure_set(x_31, 4, x_7); +lean_closure_set(x_31, 5, x_8); +lean_closure_set(x_31, 6, x_3); +x_32 = lean_io_bind_task(x_28, x_31, x_3, x_4, x_10); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_30); +if (lean_is_scalar(x_35)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_35; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_29); +x_39 = lean_ctor_get(x_32, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_41 = x_32; +} else { + lean_dec_ref(x_32); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__16(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_usize_dec_eq(x_3, x_4); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_7 = lean_array_uget(x_2, x_3); +x_8 = 1; +x_9 = lean_usize_add(x_3, x_8); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_7, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_7, 3); +lean_inc(x_12); +lean_dec(x_7); +x_13 = l_Lake_ExternLib_keyword; +x_14 = lean_name_eq(x_11, x_13); +lean_dec(x_11); +if (x_14 == 0) +{ +lean_dec(x_12); +lean_dec(x_10); +x_3 = x_9; goto _start; } else { -return x_4; +lean_object* x_16; lean_object* x_17; +lean_inc(x_1); +x_16 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_10); +lean_ctor_set(x_16, 2, x_12); +x_17 = lean_array_push(x_5, x_16); +x_3 = x_9; +x_5 = x_17; +goto _start; +} +} +else +{ +lean_dec(x_1); +return x_5; } } } -LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__9___rarg(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_EXPORT lean_object* l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__17___rarg(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) { _start: { lean_object* x_9; @@ -65014,14 +85316,2257 @@ return x_42; } } } -LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__9(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__17(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__9___rarg), 8, 0); +x_3 = lean_alloc_closure((void*)(l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__17___rarg), 8, 0); return x_3; } } +LEAN_EXPORT lean_object* l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__20(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_31; +x_31 = lean_get_set_stdout(x_1, x_8); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_35, 0); +x_39 = lean_ctor_get(x_35, 1); +x_40 = lean_get_set_stdout(x_32, x_36); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_38); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_35, 0, x_43); +x_9 = x_35; +x_10 = x_41; +goto block_30; +} +else +{ +uint8_t x_44; +lean_free_object(x_35); +lean_dec(x_39); +lean_dec(x_38); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) +{ +return x_40; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_40); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_35, 0); +x_49 = lean_ctor_get(x_35, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_35); +x_50 = lean_get_set_stdout(x_32, x_36); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_48); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_49); +x_9 = x_54; +x_10 = x_51; +goto block_30; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_49); +lean_dec(x_48); +x_55 = lean_ctor_get(x_50, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_50, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_57 = x_50; +} else { + lean_dec_ref(x_50); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_34, 1); +lean_inc(x_59); +lean_dec(x_34); +x_60 = !lean_is_exclusive(x_35); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_35, 0); +x_62 = lean_ctor_get(x_35, 1); +x_63 = lean_get_set_stdout(x_32, x_59); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_9 = x_35; +x_10 = x_64; +goto block_30; +} +else +{ +uint8_t x_65; +lean_free_object(x_35); +lean_dec(x_62); +lean_dec(x_61); +x_65 = !lean_is_exclusive(x_63); +if (x_65 == 0) +{ +return x_63; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_63, 0); +x_67 = lean_ctor_get(x_63, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_63); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_35, 0); +x_70 = lean_ctor_get(x_35, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_35); +x_71 = lean_get_set_stdout(x_32, x_59); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_69); +lean_ctor_set(x_73, 1, x_70); +x_9 = x_73; +x_10 = x_72; +goto block_30; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_70); +lean_dec(x_69); +x_74 = lean_ctor_get(x_71, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_71, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_76 = x_71; +} else { + lean_dec_ref(x_71); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_32); +x_78 = !lean_is_exclusive(x_34); +if (x_78 == 0) +{ +return x_34; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_34, 0); +x_80 = lean_ctor_get(x_34, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_34); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +uint8_t x_82; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_82 = !lean_is_exclusive(x_31); +if (x_82 == 0) +{ +return x_31; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_31, 0); +x_84 = lean_ctor_get(x_31, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_31); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__21(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_31; +x_31 = lean_get_set_stdin(x_1, x_8); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_35, 0); +x_39 = lean_ctor_get(x_35, 1); +x_40 = lean_get_set_stdin(x_32, x_36); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_38); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_35, 0, x_43); +x_9 = x_35; +x_10 = x_41; +goto block_30; +} +else +{ +uint8_t x_44; +lean_free_object(x_35); +lean_dec(x_39); +lean_dec(x_38); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) +{ +return x_40; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_40); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_35, 0); +x_49 = lean_ctor_get(x_35, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_35); +x_50 = lean_get_set_stdin(x_32, x_36); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_48); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_49); +x_9 = x_54; +x_10 = x_51; +goto block_30; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_49); +lean_dec(x_48); +x_55 = lean_ctor_get(x_50, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_50, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_57 = x_50; +} else { + lean_dec_ref(x_50); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_34, 1); +lean_inc(x_59); +lean_dec(x_34); +x_60 = !lean_is_exclusive(x_35); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_35, 0); +x_62 = lean_ctor_get(x_35, 1); +x_63 = lean_get_set_stdin(x_32, x_59); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_9 = x_35; +x_10 = x_64; +goto block_30; +} +else +{ +uint8_t x_65; +lean_free_object(x_35); +lean_dec(x_62); +lean_dec(x_61); +x_65 = !lean_is_exclusive(x_63); +if (x_65 == 0) +{ +return x_63; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_63, 0); +x_67 = lean_ctor_get(x_63, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_63); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_35, 0); +x_70 = lean_ctor_get(x_35, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_35); +x_71 = lean_get_set_stdin(x_32, x_59); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_69); +lean_ctor_set(x_73, 1, x_70); +x_9 = x_73; +x_10 = x_72; +goto block_30; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_70); +lean_dec(x_69); +x_74 = lean_ctor_get(x_71, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_71, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_76 = x_71; +} else { + lean_dec_ref(x_71); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_32); +x_78 = !lean_is_exclusive(x_34); +if (x_78 == 0) +{ +return x_34; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_34, 0); +x_80 = lean_ctor_get(x_34, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_34); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +uint8_t x_82; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_82 = !lean_is_exclusive(x_31); +if (x_82 == 0) +{ +return x_31; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_31, 0); +x_84 = lean_ctor_get(x_31, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_31); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__22(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_31; +x_31 = lean_get_set_stderr(x_1, x_8); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_35, 0); +x_39 = lean_ctor_get(x_35, 1); +x_40 = lean_get_set_stderr(x_32, x_36); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_38); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_35, 0, x_43); +x_9 = x_35; +x_10 = x_41; +goto block_30; +} +else +{ +uint8_t x_44; +lean_free_object(x_35); +lean_dec(x_39); +lean_dec(x_38); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) +{ +return x_40; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_40); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_35, 0); +x_49 = lean_ctor_get(x_35, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_35); +x_50 = lean_get_set_stderr(x_32, x_36); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_48); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_49); +x_9 = x_54; +x_10 = x_51; +goto block_30; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_49); +lean_dec(x_48); +x_55 = lean_ctor_get(x_50, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_50, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_57 = x_50; +} else { + lean_dec_ref(x_50); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_34, 1); +lean_inc(x_59); +lean_dec(x_34); +x_60 = !lean_is_exclusive(x_35); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_35, 0); +x_62 = lean_ctor_get(x_35, 1); +x_63 = lean_get_set_stderr(x_32, x_59); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_9 = x_35; +x_10 = x_64; +goto block_30; +} +else +{ +uint8_t x_65; +lean_free_object(x_35); +lean_dec(x_62); +lean_dec(x_61); +x_65 = !lean_is_exclusive(x_63); +if (x_65 == 0) +{ +return x_63; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_63, 0); +x_67 = lean_ctor_get(x_63, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_63); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_35, 0); +x_70 = lean_ctor_get(x_35, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_35); +x_71 = lean_get_set_stderr(x_32, x_59); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_69); +lean_ctor_set(x_73, 1, x_70); +x_9 = x_73; +x_10 = x_72; +goto block_30; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_70); +lean_dec(x_69); +x_74 = lean_ctor_get(x_71, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_71, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_76 = x_71; +} else { + lean_dec_ref(x_71); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_32); +x_78 = !lean_is_exclusive(x_34); +if (x_78 == 0) +{ +return x_34; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_34, 0); +x_80 = lean_ctor_get(x_34, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_34); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +uint8_t x_82; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_82 = !lean_is_exclusive(x_31); +if (x_82 == 0) +{ +return x_31; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_31, 0); +x_84 = lean_ctor_get(x_31, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_31); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +block_30: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_14); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_12, 0, x_9); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +lean_dec(x_12); +lean_ctor_set(x_9, 0, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_19); +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_9); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_10); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__19(lean_object* x_1, uint8_t 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) { +_start: +{ +lean_object* x_9; lean_object* x_10; +x_9 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1; +x_10 = lean_st_mk_ref(x_9, x_8); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_st_mk_ref(x_9, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_IO_FS_Stream_ofBuffer(x_11); +lean_inc(x_14); +x_17 = l_IO_FS_Stream_ofBuffer(x_14); +if (x_2 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__20), 8, 2); +lean_closure_set(x_18, 0, x_17); +lean_closure_set(x_18, 1, x_1); +x_19 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__21(x_16, x_18, x_3, x_4, x_5, x_6, x_7, x_15); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_20, 0); +x_24 = lean_ctor_get(x_20, 1); +x_25 = lean_st_ref_get(x_14, x_21); +lean_dec(x_14); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_string_validate_utf8(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_28); +x_30 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_31 = l_panic___at_Lean_Name_getString_x21___spec__1(x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_23); +lean_ctor_set(x_20, 0, x_32); +lean_ctor_set(x_25, 0, x_20); +return x_25; +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_string_from_utf8_unchecked(x_28); +lean_dec(x_28); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_23); +lean_ctor_set(x_20, 0, x_34); +lean_ctor_set(x_25, 0, x_20); +return x_25; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_35 = lean_ctor_get(x_25, 0); +x_36 = lean_ctor_get(x_25, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_25); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_string_validate_utf8(x_37); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_37); +x_39 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_40 = l_panic___at_Lean_Name_getString_x21___spec__1(x_39); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_23); +lean_ctor_set(x_20, 0, x_41); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_20); +lean_ctor_set(x_42, 1, x_36); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_string_from_utf8_unchecked(x_37); +lean_dec(x_37); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_23); +lean_ctor_set(x_20, 0, x_44); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_20); +lean_ctor_set(x_45, 1, x_36); +return x_45; +} +} +} +else +{ +uint8_t x_46; +lean_free_object(x_20); +lean_dec(x_24); +lean_dec(x_23); +x_46 = !lean_is_exclusive(x_25); +if (x_46 == 0) +{ +return x_25; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_25, 0); +x_48 = lean_ctor_get(x_25, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_25); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_20, 0); +x_51 = lean_ctor_get(x_20, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_20); +x_52 = lean_st_ref_get(x_14, x_21); +lean_dec(x_14); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_55 = x_52; +} else { + lean_dec_ref(x_52); + x_55 = lean_box(0); +} +x_56 = lean_ctor_get(x_53, 0); +lean_inc(x_56); +lean_dec(x_53); +x_57 = lean_string_validate_utf8(x_56); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_56); +x_58 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_59 = l_panic___at_Lean_Name_getString_x21___spec__1(x_58); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_50); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_51); +if (lean_is_scalar(x_55)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_55; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_54); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_string_from_utf8_unchecked(x_56); +lean_dec(x_56); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_50); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_51); +if (lean_is_scalar(x_55)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_55; +} +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_54); +return x_66; +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_51); +lean_dec(x_50); +x_67 = lean_ctor_get(x_52, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_52, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_69 = x_52; +} else { + lean_dec_ref(x_52); + x_69 = lean_box(0); +} +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +return x_70; +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_14); +x_71 = !lean_is_exclusive(x_19); +if (x_71 == 0) +{ +lean_object* x_72; uint8_t x_73; +x_72 = lean_ctor_get(x_19, 0); +lean_dec(x_72); +x_73 = !lean_is_exclusive(x_20); +if (x_73 == 0) +{ +return x_19; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_20, 0); +x_75 = lean_ctor_get(x_20, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_20); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +lean_ctor_set(x_19, 0, x_76); +return x_19; +} +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_77 = lean_ctor_get(x_19, 1); +lean_inc(x_77); +lean_dec(x_19); +x_78 = lean_ctor_get(x_20, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_20, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_80 = x_20; +} else { + lean_dec_ref(x_20); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_77); +return x_82; +} +} +} +else +{ +uint8_t x_83; +lean_dec(x_14); +x_83 = !lean_is_exclusive(x_19); +if (x_83 == 0) +{ +return x_19; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_19, 0); +x_85 = lean_ctor_get(x_19, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_19); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_inc(x_17); +x_87 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lake_buildImportsAndDeps___spec__22), 8, 2); +lean_closure_set(x_87, 0, x_17); +lean_closure_set(x_87, 1, x_1); +x_88 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lake_buildImportsAndDeps___spec__20), 8, 2); +lean_closure_set(x_88, 0, x_17); +lean_closure_set(x_88, 1, x_87); +x_89 = l_IO_withStdin___at_Lake_buildImportsAndDeps___spec__21(x_16, x_88, x_3, x_4, x_5, x_6, x_7, x_15); +if (lean_obj_tag(x_89) == 0) +{ +lean_object* x_90; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; uint8_t x_92; +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_90, 1); +x_95 = lean_st_ref_get(x_14, x_91); +lean_dec(x_14); +if (lean_obj_tag(x_95) == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_97 = lean_ctor_get(x_95, 0); +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +lean_dec(x_97); +x_99 = lean_string_validate_utf8(x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_98); +x_100 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_101 = l_panic___at_Lean_Name_getString_x21___spec__1(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_93); +lean_ctor_set(x_90, 0, x_102); +lean_ctor_set(x_95, 0, x_90); +return x_95; +} +else +{ +lean_object* x_103; lean_object* x_104; +x_103 = lean_string_from_utf8_unchecked(x_98); +lean_dec(x_98); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_93); +lean_ctor_set(x_90, 0, x_104); +lean_ctor_set(x_95, 0, x_90); +return x_95; +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_105 = lean_ctor_get(x_95, 0); +x_106 = lean_ctor_get(x_95, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_95); +x_107 = lean_ctor_get(x_105, 0); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_string_validate_utf8(x_107); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_107); +x_109 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_110 = l_panic___at_Lean_Name_getString_x21___spec__1(x_109); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_93); +lean_ctor_set(x_90, 0, x_111); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_90); +lean_ctor_set(x_112, 1, x_106); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_string_from_utf8_unchecked(x_107); +lean_dec(x_107); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_93); +lean_ctor_set(x_90, 0, x_114); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_90); +lean_ctor_set(x_115, 1, x_106); +return x_115; +} +} +} +else +{ +uint8_t x_116; +lean_free_object(x_90); +lean_dec(x_94); +lean_dec(x_93); +x_116 = !lean_is_exclusive(x_95); +if (x_116 == 0) +{ +return x_95; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_95, 0); +x_118 = lean_ctor_get(x_95, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_95); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_90, 0); +x_121 = lean_ctor_get(x_90, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_90); +x_122 = lean_st_ref_get(x_14, x_91); +lean_dec(x_14); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_125 = x_122; +} else { + lean_dec_ref(x_122); + x_125 = lean_box(0); +} +x_126 = lean_ctor_get(x_123, 0); +lean_inc(x_126); +lean_dec(x_123); +x_127 = lean_string_validate_utf8(x_126); +if (x_127 == 0) +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_126); +x_128 = l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5; +x_129 = l_panic___at_Lean_Name_getString_x21___spec__1(x_128); +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_120); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_121); +if (lean_is_scalar(x_125)) { + x_132 = lean_alloc_ctor(0, 2, 0); +} else { + x_132 = x_125; +} +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_124); +return x_132; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_133 = lean_string_from_utf8_unchecked(x_126); +lean_dec(x_126); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_120); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_121); +if (lean_is_scalar(x_125)) { + x_136 = lean_alloc_ctor(0, 2, 0); +} else { + x_136 = x_125; +} +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_124); +return x_136; +} +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_121); +lean_dec(x_120); +x_137 = lean_ctor_get(x_122, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_122, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_139 = x_122; +} else { + lean_dec_ref(x_122); + x_139 = lean_box(0); +} +if (lean_is_scalar(x_139)) { + x_140 = lean_alloc_ctor(1, 2, 0); +} else { + x_140 = x_139; +} +lean_ctor_set(x_140, 0, x_137); +lean_ctor_set(x_140, 1, x_138); +return x_140; +} +} +} +else +{ +uint8_t x_141; +lean_dec(x_14); +x_141 = !lean_is_exclusive(x_89); +if (x_141 == 0) +{ +lean_object* x_142; uint8_t x_143; +x_142 = lean_ctor_get(x_89, 0); +lean_dec(x_142); +x_143 = !lean_is_exclusive(x_90); +if (x_143 == 0) +{ +return x_89; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_90, 0); +x_145 = lean_ctor_get(x_90, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_90); +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +lean_ctor_set(x_89, 0, x_146); +return x_89; +} +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_147 = lean_ctor_get(x_89, 1); +lean_inc(x_147); +lean_dec(x_89); +x_148 = lean_ctor_get(x_90, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_90, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_150 = x_90; +} else { + lean_dec_ref(x_90); + x_150 = lean_box(0); +} +if (lean_is_scalar(x_150)) { + x_151 = lean_alloc_ctor(1, 2, 0); +} else { + x_151 = x_150; +} +lean_ctor_set(x_151, 0, x_148); +lean_ctor_set(x_151, 1, x_149); +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_147); +return x_152; +} +} +} +else +{ +uint8_t x_153; +lean_dec(x_14); +x_153 = !lean_is_exclusive(x_89); +if (x_153 == 0) +{ +return x_89; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_89, 0); +x_155 = lean_ctor_get(x_89, 1); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_89); +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_155); +return x_156; +} +} +} +} +else +{ +uint8_t x_157; +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_157 = !lean_is_exclusive(x_13); +if (x_157 == 0) +{ +return x_13; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_ctor_get(x_13, 0); +x_159 = lean_ctor_get(x_13, 1); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_13); +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_158); +lean_ctor_set(x_160, 1, x_159); +return x_160; +} +} +} +else +{ +uint8_t x_161; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_161 = !lean_is_exclusive(x_10); +if (x_161 == 0) +{ +return x_10; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_10, 0); +x_163 = lean_ctor_get(x_10, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_10); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_ensureJob___at_Lake_buildImportsAndDeps___spec__18(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; uint8_t x_91; lean_object* x_92; +x_8 = lean_array_get_size(x_6); +x_91 = 1; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_92 = l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__19(x_1, x_91, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +lean_dec(x_92); +x_96 = lean_ctor_get(x_93, 1); +lean_inc(x_96); +lean_dec(x_93); +x_97 = lean_ctor_get(x_94, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_94, 1); +lean_inc(x_98); +lean_dec(x_94); +x_99 = lean_string_utf8_byte_size(x_97); +x_100 = lean_unsigned_to_nat(0u); +x_101 = lean_nat_dec_eq(x_99, x_100); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_102 = l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(x_97, x_99, x_100); +x_103 = l_Substring_takeRightWhileAux___at_Substring_trimRight___spec__1(x_97, x_102, x_99); +x_104 = lean_string_utf8_extract(x_97, x_102, x_103); +lean_dec(x_103); +lean_dec(x_102); +lean_dec(x_97); +x_105 = l_Lake_Module_recFetchInput___lambda__4___closed__1; +x_106 = lean_string_append(x_105, x_104); +lean_dec(x_104); +x_107 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_108 = lean_string_append(x_106, x_107); +x_109 = 1; +x_110 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_109); +x_111 = lean_array_push(x_96, x_110); +x_112 = lean_box(0); +x_113 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_112, x_2, x_3, x_4, x_5, x_111, x_95); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_9 = x_114; +x_10 = x_115; +goto block_90; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_99); +lean_dec(x_97); +x_116 = lean_box(0); +x_117 = l_Lake_Module_recFetchInput___lambda__3(x_98, x_116, x_2, x_3, x_4, x_5, x_96, x_95); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_9 = x_118; +x_10 = x_119; +goto block_90; +} +} +else +{ +lean_object* x_120; uint8_t x_121; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_120 = lean_ctor_get(x_92, 1); +lean_inc(x_120); +lean_dec(x_92); +x_121 = !lean_is_exclusive(x_93); +if (x_121 == 0) +{ +x_9 = x_93; +x_10 = x_120; +goto block_90; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_93, 0); +x_123 = lean_ctor_get(x_93, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_93); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +x_9 = x_124; +x_10 = x_120; +goto block_90; +} +} +} +else +{ +uint8_t x_125; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_125 = !lean_is_exclusive(x_92); +if (x_125 == 0) +{ +return x_92; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_92, 0); +x_127 = lean_ctor_get(x_92, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_92); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; +} +} +block_90: +{ +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get(x_9, 1); +x_14 = lean_array_get_size(x_13); +x_15 = lean_nat_dec_lt(x_8, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_14); +lean_dec(x_8); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_10); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_inc(x_13); +x_17 = l_Array_shrink___rarg(x_13, x_8); +x_18 = l_Array_extract___rarg(x_13, x_8, x_14); +lean_dec(x_14); +lean_dec(x_13); +x_19 = lean_alloc_closure((void*)(l_Lake_JobResult_prependLog___rarg), 2, 1); +lean_closure_set(x_19, 0, x_18); +x_20 = !lean_is_exclusive(x_12); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_21 = lean_ctor_get(x_12, 0); +x_22 = lean_ctor_get(x_12, 1); +lean_dec(x_22); +x_23 = l_Task_Priority_default; +x_24 = 1; +x_25 = lean_task_map(x_19, x_21, x_23, x_24); +x_26 = lean_box(0); +lean_ctor_set(x_12, 1, x_26); +lean_ctor_set(x_12, 0, x_25); +lean_ctor_set(x_9, 1, x_17); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_9); +lean_ctor_set(x_27, 1, x_10); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_28 = lean_ctor_get(x_12, 0); +x_29 = lean_ctor_get(x_12, 2); +x_30 = lean_ctor_get_uint8(x_12, sizeof(void*)*3); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_12); +x_31 = l_Task_Priority_default; +x_32 = 1; +x_33 = lean_task_map(x_19, x_28, x_31, x_32); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set_uint8(x_35, sizeof(void*)*3, x_30); +lean_ctor_set(x_9, 1, x_17); +lean_ctor_set(x_9, 0, x_35); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_9); +lean_ctor_set(x_36, 1, x_10); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_37 = lean_ctor_get(x_9, 0); +x_38 = lean_ctor_get(x_9, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_9); +x_39 = lean_array_get_size(x_38); +x_40 = lean_nat_dec_lt(x_8, x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_39); +lean_dec(x_8); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_10); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_inc(x_38); +x_43 = l_Array_shrink___rarg(x_38, x_8); +x_44 = l_Array_extract___rarg(x_38, x_8, x_39); +lean_dec(x_39); +lean_dec(x_38); +x_45 = lean_alloc_closure((void*)(l_Lake_JobResult_prependLog___rarg), 2, 1); +lean_closure_set(x_45, 0, x_44); +x_46 = lean_ctor_get(x_37, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_37, 2); +lean_inc(x_47); +x_48 = lean_ctor_get_uint8(x_37, sizeof(void*)*3); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + lean_ctor_release(x_37, 2); + x_49 = x_37; +} else { + lean_dec_ref(x_37); + x_49 = lean_box(0); +} +x_50 = l_Task_Priority_default; +x_51 = 1; +x_52 = lean_task_map(x_45, x_46, x_50, x_51); +x_53 = lean_box(0); +if (lean_is_scalar(x_49)) { + x_54 = lean_alloc_ctor(0, 3, 1); +} else { + x_54 = x_49; +} +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_54, 2, x_47); +lean_ctor_set_uint8(x_54, sizeof(void*)*3, x_48); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_43); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_10); +return x_56; +} +} +} +else +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_9); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t 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; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_58 = lean_ctor_get(x_9, 1); +x_59 = lean_ctor_get(x_9, 0); +lean_dec(x_59); +lean_inc(x_58); +x_60 = l_Array_shrink___rarg(x_58, x_8); +x_61 = lean_array_get_size(x_58); +x_62 = l_Array_extract___rarg(x_58, x_8, x_61); +lean_dec(x_61); +lean_dec(x_58); +x_63 = 0; +x_64 = l_Lake_Module_recFetchInput___closed__3; +x_65 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_64); +lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_63); +x_66 = lean_unsigned_to_nat(0u); +lean_ctor_set(x_9, 1, x_65); +lean_ctor_set(x_9, 0, x_66); +x_67 = lean_task_pure(x_9); +x_68 = lean_box(0); +x_69 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_70 = 0; +x_71 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_71, 0, x_67); +lean_ctor_set(x_71, 1, x_68); +lean_ctor_set(x_71, 2, x_69); +lean_ctor_set_uint8(x_71, sizeof(void*)*3, 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_60); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_10); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t 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; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_74 = lean_ctor_get(x_9, 1); +lean_inc(x_74); +lean_dec(x_9); +lean_inc(x_74); +x_75 = l_Array_shrink___rarg(x_74, x_8); +x_76 = lean_array_get_size(x_74); +x_77 = l_Array_extract___rarg(x_74, x_8, x_76); +lean_dec(x_76); +lean_dec(x_74); +x_78 = 0; +x_79 = l_Lake_Module_recFetchInput___closed__3; +x_80 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_79); +lean_ctor_set_uint8(x_80, sizeof(void*)*2, x_78); +x_81 = lean_unsigned_to_nat(0u); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_80); +x_83 = lean_task_pure(x_82); +x_84 = lean_box(0); +x_85 = l_Lake_Module_recFetchInput___lambda__2___closed__1; +x_86 = 0; +x_87 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_87, 0, x_83); +lean_ctor_set(x_87, 1, x_84); +lean_ctor_set(x_87, 2, x_85); +lean_ctor_set_uint8(x_87, sizeof(void*)*3, x_86); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_75); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_10); +return x_89; +} +} +} +} +} LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__1(lean_object* x_1) { _start: { @@ -65055,7 +87600,7 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_9, 0); -x_13 = l_Lake_computeModuleDeps(x_1, x_4, x_2, x_3, x_5, x_6, x_7, x_8, x_12, x_10); +x_13 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(x_1, x_4, x_2, x_3, x_5, x_6, x_7, x_8, x_12, x_10); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); if (lean_obj_tag(x_14) == 0) @@ -65200,7 +87745,7 @@ x_43 = lean_ctor_get(x_9, 1); lean_inc(x_43); lean_inc(x_41); lean_dec(x_9); -x_44 = l_Lake_computeModuleDeps(x_1, x_4, x_2, x_3, x_5, x_6, x_7, x_8, x_41, x_10); +x_44 = l___private_Lake_Build_Module_0__Lake_computeModuleDeps(x_1, x_4, x_2, x_3, x_5, x_6, x_7, x_8, x_41, x_10); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); if (lean_obj_tag(x_45) == 0) @@ -65308,7 +87853,7 @@ x_12 = lean_ctor_get(x_9, 1); lean_inc(x_12); x_13 = l_Task_Priority_default; x_14 = 0; -x_15 = l_Lake_Job_mapM___at_Lake_Module_recBuildDeps___spec__5(x_3, x_11, x_13, x_14, x_5, x_6, x_7, x_8, x_12, x_10); +x_15 = l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5(x_3, x_11, x_13, x_14, x_5, x_6, x_7, x_8, x_12, x_10); if (lean_obj_tag(x_15) == 0) { uint8_t x_16; @@ -65377,7 +87922,7 @@ x_12 = lean_ctor_get(x_9, 1); lean_inc(x_12); x_13 = l_Task_Priority_default; x_14 = 1; -x_15 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(x_3, x_11, x_13, x_14, x_5, x_6, x_7, x_8, x_12, x_10); +x_15 = l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10(x_3, x_11, x_13, x_14, x_5, x_6, x_7, x_8, x_12, x_10); if (lean_obj_tag(x_15) == 0) { uint8_t x_16; @@ -65446,7 +87991,7 @@ x_12 = lean_ctor_get(x_9, 1); lean_inc(x_12); x_13 = l_Task_Priority_default; x_14 = 1; -x_15 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(x_3, x_11, x_13, x_14, x_5, x_6, x_7, x_8, x_12, x_10); +x_15 = l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10(x_3, x_11, x_13, x_14, x_5, x_6, x_7, x_8, x_12, x_10); if (lean_obj_tag(x_15) == 0) { uint8_t x_16; @@ -65515,7 +88060,7 @@ x_13 = lean_ctor_get(x_10, 1); lean_inc(x_13); x_14 = l_Task_Priority_default; x_15 = 1; -x_16 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__10(x_4, x_12, x_14, x_15, x_6, x_7, x_8, x_9, x_13, x_11); +x_16 = l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10(x_4, x_12, x_14, x_15, x_6, x_7, x_8, x_9, x_13, x_11); if (lean_obj_tag(x_16) == 0) { uint8_t x_17; @@ -65656,7 +88201,7 @@ static lean_object* _init_l_Lake_buildImportsAndDeps___lambda__10___closed__1() _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 9, 9); +x_1 = lean_mk_string_unchecked("", 12, 12); return x_1; } } @@ -65664,6 +88209,24 @@ static lean_object* _init_l_Lake_buildImportsAndDeps___lambda__10___closed__2() _start: { lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lake_buildImportsAndDeps___lambda__10___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +x_2 = l_Lake_buildImportsAndDeps___lambda__10___closed__1; +x_3 = l_Lake_Job_collectArray___rarg(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lake_buildImportsAndDeps___lambda__10___closed__4() { +_start: +{ +lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps___lambda__9), 1, 0); return x_1; } @@ -65675,677 +88238,625 @@ uint8_t x_10; x_10 = l_Array_isEmpty___rarg(x_1); if (x_10 == 0) { -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_array_size(x_1); -x_12 = 0; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_13 = l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__2(x_11, x_12, x_1, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +x_11 = lean_array_get_size(x_1); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Array_filterMapM___at_Lake_buildImportsAndDeps___spec__2(x_1, x_12, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_11); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* 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_164; lean_object* x_165; lean_object* x_181; x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - lean_ctor_release(x_13, 1); - x_16 = x_13; -} else { - lean_dec_ref(x_13); - x_16 = lean_box(0); -} -x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_14, 1); -lean_inc(x_18); lean_dec(x_14); -x_19 = l_Lake_fetchExternLibs___closed__1; -x_20 = l_Lake_Job_mixArray___rarg(x_17, x_19); -lean_dec(x_17); +x_18 = lean_array_size(x_16); +x_19 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_181 = l_Lake_computePrecompileImportsAux(x_2, x_1, x_4, x_5, x_6, x_7, x_18, x_15); -if (lean_obj_tag(x_181) == 0) -{ -lean_object* x_182; -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -if (lean_obj_tag(x_182) == 0) -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_211; lean_object* x_212; -x_183 = lean_ctor_get(x_181, 1); -lean_inc(x_183); -lean_dec(x_181); -x_184 = lean_ctor_get(x_182, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_182, 1); -lean_inc(x_185); -lean_dec(x_182); -x_211 = lean_ctor_get(x_184, 0); -lean_inc(x_211); -lean_dec(x_184); -x_212 = lean_io_wait(x_211, x_183); -if (lean_obj_tag(x_212) == 0) -{ -lean_object* x_213; -x_213 = lean_ctor_get(x_212, 0); -lean_inc(x_213); -if (lean_obj_tag(x_213) == 0) -{ -lean_object* x_214; lean_object* x_215; uint8_t x_216; -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -x_215 = lean_ctor_get(x_212, 1); -lean_inc(x_215); -lean_dec(x_212); -x_216 = !lean_is_exclusive(x_213); -if (x_216 == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; -x_217 = lean_ctor_get(x_213, 0); -x_218 = lean_ctor_get(x_213, 1); -lean_dec(x_218); -x_219 = lean_ctor_get(x_214, 0); -lean_inc(x_219); -lean_dec(x_214); -x_220 = lean_array_get_size(x_219); -x_221 = lean_unsigned_to_nat(0u); -x_222 = lean_nat_dec_lt(x_221, x_220); -if (x_222 == 0) -{ -lean_dec(x_220); -lean_dec(x_219); -lean_ctor_set(x_213, 1, x_185); -x_186 = x_213; -x_187 = x_215; -goto block_210; -} -else -{ -uint8_t x_223; -x_223 = lean_nat_dec_le(x_220, x_220); -if (x_223 == 0) -{ -lean_dec(x_220); -lean_dec(x_219); -lean_ctor_set(x_213, 1, x_185); -x_186 = x_213; -x_187 = x_215; -goto block_210; -} -else -{ -size_t x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_229; -lean_free_object(x_213); -x_224 = lean_usize_of_nat(x_220); -lean_dec(x_220); -x_225 = lean_box(0); -x_226 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_219, x_12, x_224, x_225, x_185, x_215); -lean_dec(x_219); -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); -x_228 = lean_ctor_get(x_226, 1); -lean_inc(x_228); -lean_dec(x_226); -x_229 = !lean_is_exclusive(x_227); -if (x_229 == 0) -{ -lean_object* x_230; -x_230 = lean_ctor_get(x_227, 0); -lean_dec(x_230); -lean_ctor_set(x_227, 0, x_217); -x_186 = x_227; -x_187 = x_228; -goto block_210; -} -else -{ -lean_object* x_231; lean_object* x_232; -x_231 = lean_ctor_get(x_227, 1); -lean_inc(x_231); -lean_dec(x_227); -x_232 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_232, 0, x_217); -lean_ctor_set(x_232, 1, x_231); -x_186 = x_232; -x_187 = x_228; -goto block_210; -} -} -} -} -else -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; uint8_t x_237; -x_233 = lean_ctor_get(x_213, 0); -lean_inc(x_233); -lean_dec(x_213); -x_234 = lean_ctor_get(x_214, 0); -lean_inc(x_234); -lean_dec(x_214); -x_235 = lean_array_get_size(x_234); -x_236 = lean_unsigned_to_nat(0u); -x_237 = lean_nat_dec_lt(x_236, x_235); -if (x_237 == 0) -{ -lean_object* x_238; -lean_dec(x_235); -lean_dec(x_234); -x_238 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_238, 0, x_233); -lean_ctor_set(x_238, 1, x_185); -x_186 = x_238; -x_187 = x_215; -goto block_210; -} -else -{ -uint8_t x_239; -x_239 = lean_nat_dec_le(x_235, x_235); -if (x_239 == 0) -{ -lean_object* x_240; -lean_dec(x_235); -lean_dec(x_234); -x_240 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_240, 0, x_233); -lean_ctor_set(x_240, 1, x_185); -x_186 = x_240; -x_187 = x_215; -goto block_210; -} -else -{ -size_t 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; lean_object* x_248; -x_241 = lean_usize_of_nat(x_235); -lean_dec(x_235); -x_242 = lean_box(0); -x_243 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_234, x_12, x_241, x_242, x_185, x_215); -lean_dec(x_234); -x_244 = lean_ctor_get(x_243, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_243, 1); -lean_inc(x_245); -lean_dec(x_243); -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); -} -if (lean_is_scalar(x_247)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_247; -} -lean_ctor_set(x_248, 0, x_233); -lean_ctor_set(x_248, 1, x_246); -x_186 = x_248; -x_187 = x_245; -goto block_210; -} -} -} -} -else -{ -lean_object* x_249; lean_object* x_250; uint8_t x_251; -x_249 = lean_ctor_get(x_213, 1); -lean_inc(x_249); -x_250 = lean_ctor_get(x_212, 1); -lean_inc(x_250); -lean_dec(x_212); -x_251 = !lean_is_exclusive(x_213); -if (x_251 == 0) -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; -x_252 = lean_ctor_get(x_213, 0); -x_253 = lean_ctor_get(x_213, 1); -lean_dec(x_253); -x_254 = lean_ctor_get(x_249, 0); -lean_inc(x_254); -lean_dec(x_249); -x_255 = lean_array_get_size(x_254); -x_256 = lean_unsigned_to_nat(0u); -x_257 = lean_nat_dec_lt(x_256, x_255); -if (x_257 == 0) -{ -lean_dec(x_255); -lean_dec(x_254); -lean_ctor_set(x_213, 1, x_185); -x_186 = x_213; -x_187 = x_250; -goto block_210; -} -else -{ -uint8_t x_258; -x_258 = lean_nat_dec_le(x_255, x_255); -if (x_258 == 0) -{ -lean_dec(x_255); -lean_dec(x_254); -lean_ctor_set(x_213, 1, x_185); -x_186 = x_213; -x_187 = x_250; -goto block_210; -} -else -{ -size_t x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; -lean_free_object(x_213); -x_259 = lean_usize_of_nat(x_255); -lean_dec(x_255); -x_260 = lean_box(0); -x_261 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_254, x_12, x_259, x_260, x_185, x_250); -lean_dec(x_254); -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -lean_dec(x_261); -x_264 = !lean_is_exclusive(x_262); -if (x_264 == 0) -{ -lean_object* x_265; -x_265 = lean_ctor_get(x_262, 0); -lean_dec(x_265); -lean_ctor_set_tag(x_262, 1); -lean_ctor_set(x_262, 0, x_252); -x_186 = x_262; -x_187 = x_263; -goto block_210; -} -else -{ -lean_object* x_266; lean_object* x_267; -x_266 = lean_ctor_get(x_262, 1); -lean_inc(x_266); -lean_dec(x_262); -x_267 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_267, 0, x_252); -lean_ctor_set(x_267, 1, x_266); -x_186 = x_267; -x_187 = x_263; -goto block_210; -} -} -} -} -else -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; -x_268 = lean_ctor_get(x_213, 0); -lean_inc(x_268); -lean_dec(x_213); -x_269 = lean_ctor_get(x_249, 0); -lean_inc(x_269); -lean_dec(x_249); -x_270 = lean_array_get_size(x_269); -x_271 = lean_unsigned_to_nat(0u); -x_272 = lean_nat_dec_lt(x_271, x_270); -if (x_272 == 0) -{ -lean_object* x_273; -lean_dec(x_270); -lean_dec(x_269); -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_268); -lean_ctor_set(x_273, 1, x_185); -x_186 = x_273; -x_187 = x_250; -goto block_210; -} -else -{ -uint8_t x_274; -x_274 = lean_nat_dec_le(x_270, x_270); -if (x_274 == 0) -{ -lean_object* x_275; -lean_dec(x_270); -lean_dec(x_269); -x_275 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_275, 0, x_268); -lean_ctor_set(x_275, 1, x_185); -x_186 = x_275; -x_187 = x_250; -goto block_210; -} -else -{ -size_t 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; -x_276 = lean_usize_of_nat(x_270); -lean_dec(x_270); -x_277 = lean_box(0); -x_278 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_269, x_12, x_276, x_277, x_185, x_250); -lean_dec(x_269); -x_279 = lean_ctor_get(x_278, 0); -lean_inc(x_279); -x_280 = lean_ctor_get(x_278, 1); -lean_inc(x_280); -lean_dec(x_278); -x_281 = lean_ctor_get(x_279, 1); -lean_inc(x_281); -if (lean_is_exclusive(x_279)) { - lean_ctor_release(x_279, 0); - lean_ctor_release(x_279, 1); - x_282 = x_279; -} else { - lean_dec_ref(x_279); - x_282 = lean_box(0); -} -if (lean_is_scalar(x_282)) { - x_283 = lean_alloc_ctor(1, 2, 0); -} else { - x_283 = x_282; - lean_ctor_set_tag(x_283, 1); -} -lean_ctor_set(x_283, 0, x_268); -lean_ctor_set(x_283, 1, x_281); -x_186 = x_283; -x_187 = x_280; -goto block_210; -} -} -} -} -} -else -{ -uint8_t x_284; -lean_dec(x_185); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_284 = !lean_is_exclusive(x_212); -if (x_284 == 0) -{ -return x_212; -} -else -{ -lean_object* x_285; lean_object* x_286; lean_object* x_287; -x_285 = lean_ctor_get(x_212, 0); -x_286 = lean_ctor_get(x_212, 1); -lean_inc(x_286); -lean_inc(x_285); -lean_dec(x_212); -x_287 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_287, 0, x_285); -lean_ctor_set(x_287, 1, x_286); -return x_287; -} -} -block_210: -{ -if (lean_obj_tag(x_186) == 0) -{ -uint8_t x_188; -x_188 = !lean_is_exclusive(x_186); -if (x_188 == 0) -{ -lean_object* x_189; uint8_t x_190; lean_object* x_191; lean_object* x_192; -x_189 = lean_ctor_get(x_186, 1); -x_190 = 0; -x_191 = l_Lake_Module_recParseImports___closed__3; -x_192 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_192, 0, x_189); -lean_ctor_set(x_192, 1, x_191); -lean_ctor_set_uint8(x_192, sizeof(void*)*2, x_190); -lean_ctor_set(x_186, 1, x_192); -x_164 = x_186; -x_165 = x_187; -goto block_180; -} -else -{ -lean_object* x_193; lean_object* x_194; uint8_t x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_193 = lean_ctor_get(x_186, 0); -x_194 = lean_ctor_get(x_186, 1); -lean_inc(x_194); -lean_inc(x_193); -lean_dec(x_186); -x_195 = 0; -x_196 = l_Lake_Module_recParseImports___closed__3; -x_197 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_197, 0, x_194); -lean_ctor_set(x_197, 1, x_196); -lean_ctor_set_uint8(x_197, sizeof(void*)*2, x_195); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_193); -lean_ctor_set(x_198, 1, x_197); -x_164 = x_198; -x_165 = x_187; -goto block_180; -} -} -else -{ -uint8_t x_199; -x_199 = !lean_is_exclusive(x_186); -if (x_199 == 0) -{ -lean_object* x_200; uint8_t x_201; lean_object* x_202; lean_object* x_203; -x_200 = lean_ctor_get(x_186, 1); -x_201 = 0; -x_202 = l_Lake_Module_recParseImports___closed__3; -x_203 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_203, 0, x_200); -lean_ctor_set(x_203, 1, x_202); -lean_ctor_set_uint8(x_203, sizeof(void*)*2, x_201); -lean_ctor_set(x_186, 1, x_203); -x_164 = x_186; -x_165 = x_187; -goto block_180; -} -else -{ -lean_object* x_204; lean_object* x_205; uint8_t x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_204 = lean_ctor_get(x_186, 0); -x_205 = lean_ctor_get(x_186, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_186); -x_206 = 0; -x_207 = l_Lake_Module_recParseImports___closed__3; -x_208 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_208, 0, x_205); -lean_ctor_set(x_208, 1, x_207); -lean_ctor_set_uint8(x_208, sizeof(void*)*2, x_206); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_204); -lean_ctor_set(x_209, 1, x_208); -x_164 = x_209; -x_165 = x_187; -goto block_180; -} -} -} -} -else -{ -uint8_t x_288; -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_288 = !lean_is_exclusive(x_181); -if (x_288 == 0) -{ -lean_object* x_289; uint8_t x_290; -x_289 = lean_ctor_get(x_181, 0); -lean_dec(x_289); -x_290 = !lean_is_exclusive(x_182); -if (x_290 == 0) -{ -return x_181; -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_291 = lean_ctor_get(x_182, 0); -x_292 = lean_ctor_get(x_182, 1); -lean_inc(x_292); -lean_inc(x_291); -lean_dec(x_182); -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); -lean_ctor_set(x_181, 0, x_293); -return x_181; -} -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; -x_294 = lean_ctor_get(x_181, 1); -lean_inc(x_294); -lean_dec(x_181); -x_295 = lean_ctor_get(x_182, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_182, 1); -lean_inc(x_296); -if (lean_is_exclusive(x_182)) { - lean_ctor_release(x_182, 0); - lean_ctor_release(x_182, 1); - x_297 = x_182; -} else { - lean_dec_ref(x_182); - x_297 = lean_box(0); -} -if (lean_is_scalar(x_297)) { - x_298 = lean_alloc_ctor(1, 2, 0); -} else { - x_298 = x_297; -} -lean_ctor_set(x_298, 0, x_295); -lean_ctor_set(x_298, 1, x_296); -x_299 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_299, 0, x_298); -lean_ctor_set(x_299, 1, x_294); -return x_299; -} -} -} -else -{ -uint8_t x_300; -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_300 = !lean_is_exclusive(x_181); -if (x_300 == 0) -{ -return x_181; -} -else -{ -lean_object* x_301; lean_object* x_302; lean_object* x_303; -x_301 = lean_ctor_get(x_181, 0); -x_302 = lean_ctor_get(x_181, 1); -lean_inc(x_302); -lean_inc(x_301); -lean_dec(x_181); -x_303 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_303, 0, x_301); -lean_ctor_set(x_303, 1, x_302); -return x_303; -} -} -block_163: +lean_inc(x_16); +x_20 = l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__4(x_18, x_19, x_16, x_4, x_5, x_6, x_7, x_17, x_15); +if (lean_obj_tag(x_20) == 0) { +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_148; lean_object* x_149; uint8_t x_150; -lean_dec(x_16); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_21, 1); +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_228; lean_object* x_229; lean_object* x_245; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_23 = x_20; +} else { + lean_dec_ref(x_20); + x_23 = lean_box(0); +} +x_24 = lean_ctor_get(x_21, 0); lean_inc(x_24); +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); lean_dec(x_21); -x_148 = lean_array_get_size(x_23); -x_149 = lean_unsigned_to_nat(0u); -x_150 = lean_nat_dec_lt(x_149, x_148); -if (x_150 == 0) -{ -lean_object* x_151; -lean_dec(x_148); -x_151 = l_Lake_OrdHashSet_empty___at_Lake_OrdPackageSet_empty___spec__1; -x_25 = x_151; -goto block_147; -} -else -{ -uint8_t x_152; -x_152 = lean_nat_dec_le(x_148, x_148); -if (x_152 == 0) -{ -lean_object* x_153; -lean_dec(x_148); -x_153 = l_Lake_OrdHashSet_empty___at_Lake_OrdPackageSet_empty___spec__1; -x_25 = x_153; -goto block_147; -} -else -{ -size_t x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_usize_of_nat(x_148); -lean_dec(x_148); -x_155 = l_Lake_OrdHashSet_empty___at_Lake_OrdPackageSet_empty___spec__1; -x_156 = l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__8(x_23, x_12, x_154, x_155); -x_25 = x_156; -goto block_147; -} -} -block_147: -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); +x_26 = l_Lake_buildImportsAndDeps___lambda__10___closed__1; +x_27 = l_Lake_Job_mixArray___rarg(x_24, x_26); +lean_dec(x_24); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_27 = l_Lake_fetchExternLibs(x_26, x_4, x_5, x_6, x_7, x_24, x_22); -lean_dec(x_26); -if (lean_obj_tag(x_27) == 0) +x_245 = l_Lake_computePrecompileImportsAux(x_2, x_16, x_4, x_5, x_6, x_7, x_25, x_22); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +if (lean_obj_tag(x_246) == 0) +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_275; lean_object* x_276; +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); +lean_dec(x_245); +x_248 = lean_ctor_get(x_246, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_246, 1); +lean_inc(x_249); +lean_dec(x_246); +x_275 = lean_ctor_get(x_248, 0); +lean_inc(x_275); +lean_dec(x_248); +x_276 = lean_io_wait(x_275, x_247); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; +x_277 = lean_ctor_get(x_276, 0); +lean_inc(x_277); +if (lean_obj_tag(x_277) == 0) +{ +lean_object* x_278; lean_object* x_279; uint8_t x_280; +x_278 = lean_ctor_get(x_277, 1); +lean_inc(x_278); +x_279 = lean_ctor_get(x_276, 1); +lean_inc(x_279); +lean_dec(x_276); +x_280 = !lean_is_exclusive(x_277); +if (x_280 == 0) +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; +x_281 = lean_ctor_get(x_277, 0); +x_282 = lean_ctor_get(x_277, 1); +lean_dec(x_282); +x_283 = lean_ctor_get(x_278, 0); +lean_inc(x_283); +lean_dec(x_278); +x_284 = lean_array_get_size(x_283); +x_285 = lean_nat_dec_lt(x_12, x_284); +if (x_285 == 0) +{ +lean_dec(x_284); +lean_dec(x_283); +lean_ctor_set(x_277, 1, x_249); +x_250 = x_277; +x_251 = x_279; +goto block_274; +} +else +{ +uint8_t x_286; +x_286 = lean_nat_dec_le(x_284, x_284); +if (x_286 == 0) +{ +lean_dec(x_284); +lean_dec(x_283); +lean_ctor_set(x_277, 1, x_249); +x_250 = x_277; +x_251 = x_279; +goto block_274; +} +else +{ +size_t x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; +lean_free_object(x_277); +x_287 = lean_usize_of_nat(x_284); +lean_dec(x_284); +x_288 = lean_box(0); +x_289 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_283, x_19, x_287, x_288, x_249, x_279); +lean_dec(x_283); +x_290 = lean_ctor_get(x_289, 0); +lean_inc(x_290); +x_291 = lean_ctor_get(x_289, 1); +lean_inc(x_291); +lean_dec(x_289); +x_292 = !lean_is_exclusive(x_290); +if (x_292 == 0) +{ +lean_object* x_293; +x_293 = lean_ctor_get(x_290, 0); +lean_dec(x_293); +lean_ctor_set(x_290, 0, x_281); +x_250 = x_290; +x_251 = x_291; +goto block_274; +} +else +{ +lean_object* x_294; lean_object* x_295; +x_294 = lean_ctor_get(x_290, 1); +lean_inc(x_294); +lean_dec(x_290); +x_295 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_295, 0, x_281); +lean_ctor_set(x_295, 1, x_294); +x_250 = x_295; +x_251 = x_291; +goto block_274; +} +} +} +} +else +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; +x_296 = lean_ctor_get(x_277, 0); +lean_inc(x_296); +lean_dec(x_277); +x_297 = lean_ctor_get(x_278, 0); +lean_inc(x_297); +lean_dec(x_278); +x_298 = lean_array_get_size(x_297); +x_299 = lean_nat_dec_lt(x_12, x_298); +if (x_299 == 0) +{ +lean_object* x_300; +lean_dec(x_298); +lean_dec(x_297); +x_300 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_300, 0, x_296); +lean_ctor_set(x_300, 1, x_249); +x_250 = x_300; +x_251 = x_279; +goto block_274; +} +else +{ +uint8_t x_301; +x_301 = lean_nat_dec_le(x_298, x_298); +if (x_301 == 0) +{ +lean_object* x_302; +lean_dec(x_298); +lean_dec(x_297); +x_302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_302, 0, x_296); +lean_ctor_set(x_302, 1, x_249); +x_250 = x_302; +x_251 = x_279; +goto block_274; +} +else +{ +size_t 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; +x_303 = lean_usize_of_nat(x_298); +lean_dec(x_298); +x_304 = lean_box(0); +x_305 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_297, x_19, x_303, x_304, x_249, x_279); +lean_dec(x_297); +x_306 = lean_ctor_get(x_305, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_305, 1); +lean_inc(x_307); +lean_dec(x_305); +x_308 = lean_ctor_get(x_306, 1); +lean_inc(x_308); +if (lean_is_exclusive(x_306)) { + lean_ctor_release(x_306, 0); + lean_ctor_release(x_306, 1); + x_309 = x_306; +} else { + lean_dec_ref(x_306); + x_309 = lean_box(0); +} +if (lean_is_scalar(x_309)) { + x_310 = lean_alloc_ctor(0, 2, 0); +} else { + x_310 = x_309; +} +lean_ctor_set(x_310, 0, x_296); +lean_ctor_set(x_310, 1, x_308); +x_250 = x_310; +x_251 = x_307; +goto block_274; +} +} +} +} +else +{ +lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_311 = lean_ctor_get(x_277, 1); +lean_inc(x_311); +x_312 = lean_ctor_get(x_276, 1); +lean_inc(x_312); +lean_dec(x_276); +x_313 = !lean_is_exclusive(x_277); +if (x_313 == 0) +{ +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; uint8_t x_318; +x_314 = lean_ctor_get(x_277, 0); +x_315 = lean_ctor_get(x_277, 1); +lean_dec(x_315); +x_316 = lean_ctor_get(x_311, 0); +lean_inc(x_316); +lean_dec(x_311); +x_317 = lean_array_get_size(x_316); +x_318 = lean_nat_dec_lt(x_12, x_317); +if (x_318 == 0) +{ +lean_dec(x_317); +lean_dec(x_316); +lean_ctor_set(x_277, 1, x_249); +x_250 = x_277; +x_251 = x_312; +goto block_274; +} +else +{ +uint8_t x_319; +x_319 = lean_nat_dec_le(x_317, x_317); +if (x_319 == 0) +{ +lean_dec(x_317); +lean_dec(x_316); +lean_ctor_set(x_277, 1, x_249); +x_250 = x_277; +x_251 = x_312; +goto block_274; +} +else +{ +size_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; uint8_t x_325; +lean_free_object(x_277); +x_320 = lean_usize_of_nat(x_317); +lean_dec(x_317); +x_321 = lean_box(0); +x_322 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_316, x_19, x_320, x_321, x_249, x_312); +lean_dec(x_316); +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_322, 1); +lean_inc(x_324); +lean_dec(x_322); +x_325 = !lean_is_exclusive(x_323); +if (x_325 == 0) +{ +lean_object* x_326; +x_326 = lean_ctor_get(x_323, 0); +lean_dec(x_326); +lean_ctor_set_tag(x_323, 1); +lean_ctor_set(x_323, 0, x_314); +x_250 = x_323; +x_251 = x_324; +goto block_274; +} +else +{ +lean_object* x_327; lean_object* x_328; +x_327 = lean_ctor_get(x_323, 1); +lean_inc(x_327); +lean_dec(x_323); +x_328 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_328, 0, x_314); +lean_ctor_set(x_328, 1, x_327); +x_250 = x_328; +x_251 = x_324; +goto block_274; +} +} +} +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; +x_329 = lean_ctor_get(x_277, 0); +lean_inc(x_329); +lean_dec(x_277); +x_330 = lean_ctor_get(x_311, 0); +lean_inc(x_330); +lean_dec(x_311); +x_331 = lean_array_get_size(x_330); +x_332 = lean_nat_dec_lt(x_12, x_331); +if (x_332 == 0) +{ +lean_object* x_333; +lean_dec(x_331); +lean_dec(x_330); +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_329); +lean_ctor_set(x_333, 1, x_249); +x_250 = x_333; +x_251 = x_312; +goto block_274; +} +else +{ +uint8_t x_334; +x_334 = lean_nat_dec_le(x_331, x_331); +if (x_334 == 0) +{ +lean_object* x_335; +lean_dec(x_331); +lean_dec(x_330); +x_335 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_335, 0, x_329); +lean_ctor_set(x_335, 1, x_249); +x_250 = x_335; +x_251 = x_312; +goto block_274; +} +else +{ +size_t x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_336 = lean_usize_of_nat(x_331); +lean_dec(x_331); +x_337 = lean_box(0); +x_338 = l_Array_foldlMUnsafe_fold___at_Lake_Job_await___spec__1(x_330, x_19, x_336, x_337, x_249, x_312); +lean_dec(x_330); +x_339 = lean_ctor_get(x_338, 0); +lean_inc(x_339); +x_340 = lean_ctor_get(x_338, 1); +lean_inc(x_340); +lean_dec(x_338); +x_341 = lean_ctor_get(x_339, 1); +lean_inc(x_341); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_342 = x_339; +} else { + lean_dec_ref(x_339); + x_342 = lean_box(0); +} +if (lean_is_scalar(x_342)) { + x_343 = lean_alloc_ctor(1, 2, 0); +} else { + x_343 = x_342; + lean_ctor_set_tag(x_343, 1); +} +lean_ctor_set(x_343, 0, x_329); +lean_ctor_set(x_343, 1, x_341); +x_250 = x_343; +x_251 = x_340; +goto block_274; +} +} +} +} +} +else +{ +uint8_t x_344; +lean_dec(x_249); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_344 = !lean_is_exclusive(x_276); +if (x_344 == 0) +{ +return x_276; +} +else +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; +x_345 = lean_ctor_get(x_276, 0); +x_346 = lean_ctor_get(x_276, 1); +lean_inc(x_346); +lean_inc(x_345); +lean_dec(x_276); +x_347 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_347, 0, x_345); +lean_ctor_set(x_347, 1, x_346); +return x_347; +} +} +block_274: +{ +if (lean_obj_tag(x_250) == 0) +{ +uint8_t x_252; +x_252 = !lean_is_exclusive(x_250); +if (x_252 == 0) +{ +lean_object* x_253; uint8_t x_254; lean_object* x_255; lean_object* x_256; +x_253 = lean_ctor_get(x_250, 1); +x_254 = 0; +x_255 = l_Lake_Module_recFetchInput___closed__3; +x_256 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_256, 0, x_253); +lean_ctor_set(x_256, 1, x_255); +lean_ctor_set_uint8(x_256, sizeof(void*)*2, x_254); +lean_ctor_set(x_250, 1, x_256); +x_228 = x_250; +x_229 = x_251; +goto block_244; +} +else +{ +lean_object* x_257; lean_object* x_258; uint8_t x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_257 = lean_ctor_get(x_250, 0); +x_258 = lean_ctor_get(x_250, 1); +lean_inc(x_258); +lean_inc(x_257); +lean_dec(x_250); +x_259 = 0; +x_260 = l_Lake_Module_recFetchInput___closed__3; +x_261 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_261, 0, x_258); +lean_ctor_set(x_261, 1, x_260); +lean_ctor_set_uint8(x_261, sizeof(void*)*2, x_259); +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_257); +lean_ctor_set(x_262, 1, x_261); +x_228 = x_262; +x_229 = x_251; +goto block_244; +} +} +else +{ +uint8_t x_263; +x_263 = !lean_is_exclusive(x_250); +if (x_263 == 0) +{ +lean_object* x_264; uint8_t x_265; lean_object* x_266; lean_object* x_267; +x_264 = lean_ctor_get(x_250, 1); +x_265 = 0; +x_266 = l_Lake_Module_recFetchInput___closed__3; +x_267 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_267, 0, x_264); +lean_ctor_set(x_267, 1, x_266); +lean_ctor_set_uint8(x_267, sizeof(void*)*2, x_265); +lean_ctor_set(x_250, 1, x_267); +x_228 = x_250; +x_229 = x_251; +goto block_244; +} +else +{ +lean_object* x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_268 = lean_ctor_get(x_250, 0); +x_269 = lean_ctor_get(x_250, 1); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_250); +x_270 = 0; +x_271 = l_Lake_Module_recFetchInput___closed__3; +x_272 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_272, 0, x_269); +lean_ctor_set(x_272, 1, x_271); +lean_ctor_set_uint8(x_272, sizeof(void*)*2, x_270); +x_273 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_273, 0, x_268); +lean_ctor_set(x_273, 1, x_272); +x_228 = x_273; +x_229 = x_251; +goto block_244; +} +} +} +} +else +{ +uint8_t x_348; +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_348 = !lean_is_exclusive(x_245); +if (x_348 == 0) +{ +lean_object* x_349; uint8_t x_350; +x_349 = lean_ctor_get(x_245, 0); +lean_dec(x_349); +x_350 = !lean_is_exclusive(x_246); +if (x_350 == 0) +{ +return x_245; +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; +x_351 = lean_ctor_get(x_246, 0); +x_352 = lean_ctor_get(x_246, 1); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_246); +x_353 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_353, 0, x_351); +lean_ctor_set(x_353, 1, x_352); +lean_ctor_set(x_245, 0, x_353); +return x_245; +} +} +else +{ +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; +x_354 = lean_ctor_get(x_245, 1); +lean_inc(x_354); +lean_dec(x_245); +x_355 = lean_ctor_get(x_246, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_246, 1); +lean_inc(x_356); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_357 = x_246; +} else { + lean_dec_ref(x_246); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 2, 0); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_355); +lean_ctor_set(x_358, 1, x_356); +x_359 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_359, 0, x_358); +lean_ctor_set(x_359, 1, x_354); +return x_359; +} +} +} +else +{ +uint8_t x_360; +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_360 = !lean_is_exclusive(x_245); +if (x_360 == 0) +{ +return x_245; +} +else +{ +lean_object* x_361; lean_object* x_362; lean_object* x_363; +x_361 = lean_ctor_get(x_245, 0); +x_362 = lean_ctor_get(x_245, 1); +lean_inc(x_362); +lean_inc(x_361); +lean_dec(x_245); +x_363 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_363, 0, x_361); +lean_ctor_set(x_363, 1, x_362); +return x_363; +} +} +block_227: { -lean_object* x_28; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); if (lean_obj_tag(x_28) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_23); x_30 = lean_ctor_get(x_28, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_28, 1); @@ -66355,8 +88866,8 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_32 = l_Lake_fetchImportLibs(x_23, x_4, x_5, x_6, x_7, x_31, x_29); -lean_dec(x_23); +x_32 = l_Lake_fetchImportLibs(x_30, x_4, x_5, x_6, x_7, x_31, x_29); +lean_dec(x_30); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; @@ -66364,53 +88875,72 @@ x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); if (lean_obj_tag(x_33) == 0) { -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_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_128; uint8_t x_129; uint8_t x_130; x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_ctor_get(x_33, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_33, 1); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +x_36 = lean_ctor_get(x_33, 0); lean_inc(x_36); -lean_dec(x_33); -x_37 = lean_ctor_get(x_3, 3); +x_37 = lean_ctor_get(x_33, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_ctor_get(x_38, 11); -lean_inc(x_39); -x_40 = l_Lake_buildImportsAndDeps___lambda__10___closed__1; +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_38 = x_33; +} else { + lean_dec_ref(x_33); + x_38 = lean_box(0); +} +x_128 = lean_ctor_get(x_3, 3); +lean_inc(x_128); +x_129 = lean_ctor_get_uint8(x_128, sizeof(void*)*25 + 1); +lean_dec(x_128); +if (x_129 == 0) +{ +uint8_t x_203; +x_203 = 0; +x_130 = x_203; +goto block_202; +} +else +{ +uint8_t x_204; +x_204 = 1; +x_130 = x_204; +goto block_202; +} +block_127: +{ +if (lean_obj_tag(x_39) == 0) +{ +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_dec(x_35); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_ctor_get(x_3, 3); +lean_inc(x_43); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_ctor_get(x_44, 11); +lean_inc(x_45); +x_46 = l_Lake_buildImportsAndDeps___lambda__10___closed__2; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_41 = l_Lake_TargetArray_fetchIn___at_Lake_Module_recBuildDeps___spec__2(x_3, x_39, x_40, x_4, x_5, x_6, x_7, x_36, x_34); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_ctor_get(x_42, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_ctor_get(x_38, 12); -lean_inc(x_46); -lean_dec(x_38); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_47 = l_Lake_TargetArray_fetchIn___at_Lake_Module_recBuildDeps___spec__2(x_3, x_46, x_40, x_4, x_5, x_6, x_7, x_45, x_43); +x_47 = l_Lake_TargetArray_fetchIn___at_Lake_Module_recFetchSetup___spec__2(x_3, x_45, x_46, x_4, x_5, x_6, x_7, x_42, x_40); if (lean_obj_tag(x_47) == 0) { lean_object* x_48; @@ -66418,785 +88948,1130 @@ x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); if (lean_obj_tag(x_48) == 0) { -lean_object* x_49; uint8_t x_50; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); lean_dec(x_47); -x_50 = !lean_is_exclusive(x_48); -if (x_50 == 0) +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_dec(x_48); +x_52 = lean_ctor_get(x_44, 12); +lean_inc(x_52); +lean_dec(x_44); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_53 = l_Lake_TargetArray_fetchIn___at_Lake_Module_recFetchSetup___spec__2(x_3, x_52, x_46, x_4, x_5, x_6, x_7, x_51, x_49); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; -x_51 = lean_ctor_get(x_48, 0); -x_52 = lean_ctor_get(x_48, 1); -x_53 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps___lambda__7___boxed), 11, 4); -lean_closure_set(x_53, 0, x_30); -lean_closure_set(x_53, 1, x_51); -lean_closure_set(x_53, 2, x_44); -lean_closure_set(x_53, 3, x_35); -x_54 = l_Task_Priority_default; -x_55 = 1; -x_56 = l_Lake_Module_recParseImports___closed__3; -x_57 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15(x_20, x_53, x_54, x_55, x_4, x_5, x_6, x_7, x_56, x_49); -if (lean_obj_tag(x_57) == 0) +lean_object* x_54; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +if (lean_obj_tag(x_54) == 0) { -uint8_t x_58; -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) { -lean_object* x_59; -x_59 = lean_ctor_get(x_57, 0); -lean_ctor_set(x_48, 0, x_59); -lean_ctor_set(x_57, 0, x_48); -return x_57; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; +x_57 = lean_ctor_get(x_54, 0); +x_58 = lean_ctor_get(x_54, 1); +x_59 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps___lambda__7___boxed), 11, 4); +lean_closure_set(x_59, 0, x_41); +lean_closure_set(x_59, 1, x_57); +lean_closure_set(x_59, 2, x_50); +lean_closure_set(x_59, 3, x_36); +x_60 = l_Task_Priority_default; +x_61 = 1; +x_62 = l_Lake_Module_recFetchInput___closed__3; +x_63 = l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__15(x_27, x_59, x_60, x_61, x_4, x_5, x_6, x_7, x_62, x_55); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_63, 0); +lean_ctor_set(x_54, 0, x_65); +lean_ctor_set(x_63, 0, x_54); +return x_63; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_57, 0); -x_61 = lean_ctor_get(x_57, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_57); -lean_ctor_set(x_48, 0, x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_48); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} -else -{ -uint8_t x_63; -lean_free_object(x_48); -lean_dec(x_52); -x_63 = !lean_is_exclusive(x_57); -if (x_63 == 0) -{ -return x_57; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_57, 0); -x_65 = lean_ctor_get(x_57, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_57); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; -x_67 = lean_ctor_get(x_48, 0); -x_68 = lean_ctor_get(x_48, 1); -lean_inc(x_68); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_63, 0); +x_67 = lean_ctor_get(x_63, 1); lean_inc(x_67); -lean_dec(x_48); -x_69 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps___lambda__7___boxed), 11, 4); -lean_closure_set(x_69, 0, x_30); -lean_closure_set(x_69, 1, x_67); -lean_closure_set(x_69, 2, x_44); -lean_closure_set(x_69, 3, x_35); -x_70 = l_Task_Priority_default; -x_71 = 1; -x_72 = l_Lake_Module_recParseImports___closed__3; -x_73 = l_Lake_Job_bindM___at_Lake_Module_recBuildDeps___spec__15(x_20, x_69, x_70, x_71, x_4, x_5, x_6, x_7, x_72, x_49); -if (lean_obj_tag(x_73) == 0) +lean_inc(x_66); +lean_dec(x_63); +lean_ctor_set(x_54, 0, x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_54); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_74 = lean_ctor_get(x_73, 0); +uint8_t x_69; +lean_free_object(x_54); +lean_dec(x_58); +x_69 = !lean_is_exclusive(x_63); +if (x_69 == 0) +{ +return x_63; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_63, 0); +x_71 = lean_ctor_get(x_63, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_63); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; +x_73 = lean_ctor_get(x_54, 0); +x_74 = lean_ctor_get(x_54, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_76 = x_73; -} else { - lean_dec_ref(x_73); - x_76 = lean_box(0); -} -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_68); -if (lean_is_scalar(x_76)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_76; -} -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_75); -return x_78; -} -else +lean_inc(x_73); +lean_dec(x_54); +x_75 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps___lambda__7___boxed), 11, 4); +lean_closure_set(x_75, 0, x_41); +lean_closure_set(x_75, 1, x_73); +lean_closure_set(x_75, 2, x_50); +lean_closure_set(x_75, 3, x_36); +x_76 = l_Task_Priority_default; +x_77 = 1; +x_78 = l_Lake_Module_recFetchInput___closed__3; +x_79 = l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__15(x_27, x_75, x_76, x_77, x_4, x_5, x_6, x_7, x_78, x_55); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_68); -x_79 = lean_ctor_get(x_73, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_73, 1); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_81 = x_73; +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_82 = x_79; } else { - lean_dec_ref(x_73); - x_81 = lean_box(0); + lean_dec_ref(x_79); + x_82 = lean_box(0); } -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(1, 2, 0); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_74); +if (lean_is_scalar(x_82)) { + x_84 = lean_alloc_ctor(0, 2, 0); } else { - x_82 = x_81; -} -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -return x_82; -} + x_84 = x_82; } +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_81); +return x_84; } else { -uint8_t x_83; -lean_dec(x_44); -lean_dec(x_35); -lean_dec(x_30); -lean_dec(x_20); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_83 = !lean_is_exclusive(x_47); -if (x_83 == 0) -{ -lean_object* x_84; uint8_t x_85; -x_84 = lean_ctor_get(x_47, 0); -lean_dec(x_84); -x_85 = !lean_is_exclusive(x_48); -if (x_85 == 0) -{ -return x_47; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_48, 0); -x_87 = lean_ctor_get(x_48, 1); -lean_inc(x_87); +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_74); +x_85 = lean_ctor_get(x_79, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_79, 1); lean_inc(x_86); -lean_dec(x_48); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -lean_ctor_set(x_47, 0, x_88); -return x_47; -} -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_89 = lean_ctor_get(x_47, 1); -lean_inc(x_89); -lean_dec(x_47); -x_90 = lean_ctor_get(x_48, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_48, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_92 = x_48; +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_87 = x_79; } else { - lean_dec_ref(x_48); - x_92 = lean_box(0); + lean_dec_ref(x_79); + x_87 = lean_box(0); } -if (lean_is_scalar(x_92)) { - x_93 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(1, 2, 0); } else { - x_93 = x_92; + x_88 = x_87; } -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_91); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_89); -return x_94; +lean_ctor_set(x_88, 0, x_85); +lean_ctor_set(x_88, 1, x_86); +return x_88; } } } else { -uint8_t x_95; -lean_dec(x_44); -lean_dec(x_35); -lean_dec(x_30); -lean_dec(x_20); +uint8_t x_89; +lean_dec(x_50); +lean_dec(x_41); +lean_dec(x_36); +lean_dec(x_27); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_95 = !lean_is_exclusive(x_47); -if (x_95 == 0) +x_89 = !lean_is_exclusive(x_53); +if (x_89 == 0) { -return x_47; +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_53, 0); +lean_dec(x_90); +x_91 = !lean_is_exclusive(x_54); +if (x_91 == 0) +{ +return x_53; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_47, 0); -x_97 = lean_ctor_get(x_47, 1); -lean_inc(x_97); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_54, 0); +x_93 = lean_ctor_get(x_54, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_54); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +lean_ctor_set(x_53, 0, x_94); +return x_53; +} +} +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; +x_95 = lean_ctor_get(x_53, 1); +lean_inc(x_95); +lean_dec(x_53); +x_96 = lean_ctor_get(x_54, 0); lean_inc(x_96); -lean_dec(x_47); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; +x_97 = lean_ctor_get(x_54, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_98 = x_54; +} else { + lean_dec_ref(x_54); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_95); +return x_100; } } } else { -uint8_t x_99; -lean_dec(x_38); -lean_dec(x_35); -lean_dec(x_30); -lean_dec(x_20); +uint8_t x_101; +lean_dec(x_50); +lean_dec(x_41); +lean_dec(x_36); +lean_dec(x_27); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_99 = !lean_is_exclusive(x_41); -if (x_99 == 0) -{ -lean_object* x_100; uint8_t x_101; -x_100 = lean_ctor_get(x_41, 0); -lean_dec(x_100); -x_101 = !lean_is_exclusive(x_42); +x_101 = !lean_is_exclusive(x_53); if (x_101 == 0) { -return x_41; +return x_53; } else { lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_42, 0); -x_103 = lean_ctor_get(x_42, 1); +x_102 = lean_ctor_get(x_53, 0); +x_103 = lean_ctor_get(x_53, 1); lean_inc(x_103); lean_inc(x_102); -lean_dec(x_42); +lean_dec(x_53); x_104 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_104, 0, x_102); lean_ctor_set(x_104, 1, x_103); -lean_ctor_set(x_41, 0, x_104); -return x_41; +return x_104; +} } } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_105 = lean_ctor_get(x_41, 1); -lean_inc(x_105); +uint8_t x_105; +lean_dec(x_44); lean_dec(x_41); -x_106 = lean_ctor_get(x_42, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_42, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_108 = x_42; -} else { - lean_dec_ref(x_42); - x_108 = lean_box(0); -} -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); -} else { - x_109 = x_108; -} -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_107); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_105); -return x_110; -} -} -} -else -{ -uint8_t x_111; -lean_dec(x_38); -lean_dec(x_35); -lean_dec(x_30); -lean_dec(x_20); +lean_dec(x_36); +lean_dec(x_27); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_111 = !lean_is_exclusive(x_41); -if (x_111 == 0) +x_105 = !lean_is_exclusive(x_47); +if (x_105 == 0) { -return x_41; +lean_object* x_106; uint8_t x_107; +x_106 = lean_ctor_get(x_47, 0); +lean_dec(x_106); +x_107 = !lean_is_exclusive(x_48); +if (x_107 == 0) +{ +return x_47; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_41, 0); -x_113 = lean_ctor_get(x_41, 1); -lean_inc(x_113); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_48, 0); +x_109 = lean_ctor_get(x_48, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_48); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +lean_ctor_set(x_47, 0, x_110); +return x_47; +} +} +else +{ +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_111 = lean_ctor_get(x_47, 1); +lean_inc(x_111); +lean_dec(x_47); +x_112 = lean_ctor_get(x_48, 0); lean_inc(x_112); -lean_dec(x_41); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -return x_114; +x_113 = lean_ctor_get(x_48, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_114 = x_48; +} else { + lean_dec_ref(x_48); + x_114 = lean_box(0); +} +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); +} else { + x_115 = x_114; +} +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_111); +return x_116; } } } else { -uint8_t x_115; -lean_dec(x_30); -lean_dec(x_20); +uint8_t x_117; +lean_dec(x_44); +lean_dec(x_41); +lean_dec(x_36); +lean_dec(x_27); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_115 = !lean_is_exclusive(x_32); -if (x_115 == 0) -{ -lean_object* x_116; uint8_t x_117; -x_116 = lean_ctor_get(x_32, 0); -lean_dec(x_116); -x_117 = !lean_is_exclusive(x_33); +x_117 = !lean_is_exclusive(x_47); if (x_117 == 0) { -return x_32; +return x_47; } else { lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_33, 0); -x_119 = lean_ctor_get(x_33, 1); +x_118 = lean_ctor_get(x_47, 0); +x_119 = lean_ctor_get(x_47, 1); lean_inc(x_119); lean_inc(x_118); -lean_dec(x_33); +lean_dec(x_47); x_120 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_120, 0, x_118); lean_ctor_set(x_120, 1, x_119); -lean_ctor_set(x_32, 0, x_120); -return x_32; +return x_120; +} } } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_121 = lean_ctor_get(x_32, 1); -lean_inc(x_121); -lean_dec(x_32); -x_122 = lean_ctor_get(x_33, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_33, 1); +uint8_t x_121; +lean_dec(x_36); +lean_dec(x_27); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_121 = !lean_is_exclusive(x_39); +if (x_121 == 0) +{ +lean_object* x_122; +if (lean_is_scalar(x_35)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_35; +} +lean_ctor_set(x_122, 0, x_39); +lean_ctor_set(x_122, 1, x_40); +return x_122; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_123 = lean_ctor_get(x_39, 0); +x_124 = lean_ctor_get(x_39, 1); +lean_inc(x_124); lean_inc(x_123); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_124 = x_33; +lean_dec(x_39); +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +if (lean_is_scalar(x_35)) { + x_126 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_33); - x_124 = lean_box(0); + x_126 = x_35; } -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(1, 2, 0); -} else { - x_125 = x_124; -} -lean_ctor_set(x_125, 0, x_122); -lean_ctor_set(x_125, 1, x_123); -x_126 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_121); +lean_ctor_set(x_126, 1, x_40); return x_126; } } } -else +block_202: { -uint8_t x_127; -lean_dec(x_30); -lean_dec(x_20); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_127 = !lean_is_exclusive(x_32); -if (x_127 == 0) +if (x_130 == 0) { -return x_32; +lean_object* x_131; lean_object* x_132; +x_131 = l_Lake_buildImportsAndDeps___lambda__10___closed__3; +if (lean_is_scalar(x_38)) { + x_132 = lean_alloc_ctor(0, 2, 0); +} else { + x_132 = x_38; +} +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_37); +x_39 = x_132; +x_40 = x_34; +goto block_127; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_32, 0); -x_129 = lean_ctor_get(x_32, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_32); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; -} -} -} -else +lean_object* x_133; lean_object* x_134; uint8_t x_135; +lean_dec(x_38); +x_133 = lean_ctor_get(x_3, 10); +lean_inc(x_133); +x_134 = lean_array_get_size(x_133); +x_135 = lean_nat_dec_lt(x_12, x_134); +if (x_135 == 0) { -uint8_t x_131; -lean_dec(x_23); -lean_dec(x_20); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_131 = !lean_is_exclusive(x_27); -if (x_131 == 0) +size_t x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_134); +lean_dec(x_133); +x_136 = l_Lake_Module_recFetchSetup___lambda__9___closed__5; +x_137 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_138 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_136, x_19, x_137, x_4, x_5, x_6, x_7, x_37, x_34); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_132; uint8_t x_133; -x_132 = lean_ctor_get(x_27, 0); -lean_dec(x_132); -x_133 = !lean_is_exclusive(x_28); -if (x_133 == 0) -{ -return x_27; -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_28, 0); -x_135 = lean_ctor_get(x_28, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_28); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -lean_ctor_set(x_27, 0, x_136); -return x_27; -} -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_137 = lean_ctor_get(x_27, 1); -lean_inc(x_137); -lean_dec(x_27); -x_138 = lean_ctor_get(x_28, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_28, 1); +lean_object* x_139; +x_139 = lean_ctor_get(x_138, 0); lean_inc(x_139); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - lean_ctor_release(x_28, 1); - x_140 = x_28; -} else { - lean_dec_ref(x_28); - x_140 = lean_box(0); -} -if (lean_is_scalar(x_140)) { - x_141 = lean_alloc_ctor(1, 2, 0); -} else { - x_141 = x_140; -} -lean_ctor_set(x_141, 0, x_138); -lean_ctor_set(x_141, 1, x_139); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_137); -return x_142; -} -} +if (lean_obj_tag(x_139) == 0) +{ +lean_object* x_140; uint8_t x_141; +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_141 = !lean_is_exclusive(x_139); +if (x_141 == 0) +{ +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_139, 0); +x_143 = l_Lake_Job_collectArray___rarg(x_142, x_26); +lean_dec(x_142); +lean_ctor_set(x_139, 0, x_143); +x_39 = x_139; +x_40 = x_140; +goto block_127; } else { -uint8_t x_143; -lean_dec(x_23); -lean_dec(x_20); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_143 = !lean_is_exclusive(x_27); -if (x_143 == 0) -{ -return x_27; -} -else -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_27, 0); -x_145 = lean_ctor_get(x_27, 1); +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_144 = lean_ctor_get(x_139, 0); +x_145 = lean_ctor_get(x_139, 1); lean_inc(x_145); lean_inc(x_144); -lean_dec(x_27); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -return x_146; +lean_dec(x_139); +x_146 = l_Lake_Job_collectArray___rarg(x_144, x_26); +lean_dec(x_144); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_145); +x_39 = x_147; +x_40 = x_140; +goto block_127; } } +else +{ +lean_object* x_148; uint8_t x_149; +x_148 = lean_ctor_get(x_138, 1); +lean_inc(x_148); +lean_dec(x_138); +x_149 = !lean_is_exclusive(x_139); +if (x_149 == 0) +{ +x_39 = x_139; +x_40 = x_148; +goto block_127; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_139, 0); +x_151 = lean_ctor_get(x_139, 1); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_139); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +x_39 = x_152; +x_40 = x_148; +goto block_127; +} +} +} +else +{ +uint8_t x_153; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_153 = !lean_is_exclusive(x_138); +if (x_153 == 0) +{ +return x_138; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_138, 0); +x_155 = lean_ctor_get(x_138, 1); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_138); +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_155); +return x_156; +} } } else { uint8_t x_157; -lean_dec(x_20); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_157 = !lean_is_exclusive(x_21); +x_157 = lean_nat_dec_le(x_134, x_134); if (x_157 == 0) { -lean_object* x_158; -if (lean_is_scalar(x_16)) { - x_158 = lean_alloc_ctor(0, 2, 0); -} else { - x_158 = x_16; -} -lean_ctor_set(x_158, 0, x_21); -lean_ctor_set(x_158, 1, x_22); -return x_158; -} -else +size_t x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_134); +lean_dec(x_133); +x_158 = l_Lake_Module_recFetchSetup___lambda__9___closed__5; +x_159 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_160 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_158, x_19, x_159, x_4, x_5, x_6, x_7, x_37, x_34); +if (lean_obj_tag(x_160) == 0) { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_159 = lean_ctor_get(x_21, 0); -x_160 = lean_ctor_get(x_21, 1); -lean_inc(x_160); -lean_inc(x_159); -lean_dec(x_21); -x_161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_161, 0, x_159); -lean_ctor_set(x_161, 1, x_160); -if (lean_is_scalar(x_16)) { - x_162 = lean_alloc_ctor(0, 2, 0); -} else { - x_162 = x_16; -} -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_22); -return x_162; -} -} -} -block_180: +lean_object* x_161; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +if (lean_obj_tag(x_161) == 0) { -if (lean_obj_tag(x_164) == 0) +lean_object* x_162; uint8_t x_163; +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_163 = !lean_is_exclusive(x_161); +if (x_163 == 0) { -uint8_t x_166; -x_166 = !lean_is_exclusive(x_164); -if (x_166 == 0) -{ -lean_object* x_167; lean_object* x_168; -x_167 = lean_ctor_get(x_164, 1); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -lean_dec(x_167); -lean_ctor_set(x_164, 1, x_168); -x_21 = x_164; -x_22 = x_165; -goto block_163; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_169 = lean_ctor_get(x_164, 0); -x_170 = lean_ctor_get(x_164, 1); -lean_inc(x_170); -lean_inc(x_169); +lean_object* x_164; lean_object* x_165; +x_164 = lean_ctor_get(x_161, 0); +x_165 = l_Lake_Job_collectArray___rarg(x_164, x_26); lean_dec(x_164); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -lean_dec(x_170); -x_172 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_172, 0, x_169); -lean_ctor_set(x_172, 1, x_171); -x_21 = x_172; -x_22 = x_165; -goto block_163; +lean_ctor_set(x_161, 0, x_165); +x_39 = x_161; +x_40 = x_162; +goto block_127; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_166 = lean_ctor_get(x_161, 0); +x_167 = lean_ctor_get(x_161, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_161); +x_168 = l_Lake_Job_collectArray___rarg(x_166, x_26); +lean_dec(x_166); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_167); +x_39 = x_169; +x_40 = x_162; +goto block_127; } } else { -uint8_t x_173; -x_173 = !lean_is_exclusive(x_164); -if (x_173 == 0) +lean_object* x_170; uint8_t x_171; +x_170 = lean_ctor_get(x_160, 1); +lean_inc(x_170); +lean_dec(x_160); +x_171 = !lean_is_exclusive(x_161); +if (x_171 == 0) { -lean_object* x_174; lean_object* x_175; -x_174 = lean_ctor_get(x_164, 1); -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -lean_dec(x_174); -lean_ctor_set(x_164, 1, x_175); -x_21 = x_164; -x_22 = x_165; -goto block_163; +x_39 = x_161; +x_40 = x_170; +goto block_127; } else { -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_176 = lean_ctor_get(x_164, 0); -x_177 = lean_ctor_get(x_164, 1); +lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_161, 0); +x_173 = lean_ctor_get(x_161, 1); +lean_inc(x_173); +lean_inc(x_172); +lean_dec(x_161); +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_172); +lean_ctor_set(x_174, 1, x_173); +x_39 = x_174; +x_40 = x_170; +goto block_127; +} +} +} +else +{ +uint8_t x_175; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_175 = !lean_is_exclusive(x_160); +if (x_175 == 0) +{ +return x_160; +} +else +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_176 = lean_ctor_get(x_160, 0); +x_177 = lean_ctor_get(x_160, 1); lean_inc(x_177); lean_inc(x_176); -lean_dec(x_164); -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -lean_dec(x_177); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_176); -lean_ctor_set(x_179, 1, x_178); -x_21 = x_179; -x_22 = x_165; -goto block_163; +lean_dec(x_160); +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_176); +lean_ctor_set(x_178, 1, x_177); +return x_178; +} +} +} +else +{ +size_t x_179; lean_object* x_180; lean_object* x_181; size_t x_182; lean_object* x_183; +x_179 = lean_usize_of_nat(x_134); +lean_dec(x_134); +x_180 = l_Array_forIn_x27Unsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___lambda__1___closed__1; +lean_inc(x_3); +x_181 = l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__16(x_3, x_133, x_19, x_179, x_180); +lean_dec(x_133); +x_182 = lean_array_size(x_181); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_183 = l_Array_mapMUnsafe_map___at_Lake_recBuildExternDynlibs___spec__1(x_182, x_19, x_181, x_4, x_5, x_6, x_7, x_37, x_34); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +if (lean_obj_tag(x_184) == 0) +{ +lean_object* x_185; uint8_t x_186; +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +lean_dec(x_183); +x_186 = !lean_is_exclusive(x_184); +if (x_186 == 0) +{ +lean_object* x_187; lean_object* x_188; +x_187 = lean_ctor_get(x_184, 0); +x_188 = l_Lake_Job_collectArray___rarg(x_187, x_26); +lean_dec(x_187); +lean_ctor_set(x_184, 0, x_188); +x_39 = x_184; +x_40 = x_185; +goto block_127; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_189 = lean_ctor_get(x_184, 0); +x_190 = lean_ctor_get(x_184, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_184); +x_191 = l_Lake_Job_collectArray___rarg(x_189, x_26); +lean_dec(x_189); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_190); +x_39 = x_192; +x_40 = x_185; +goto block_127; +} +} +else +{ +lean_object* x_193; uint8_t x_194; +x_193 = lean_ctor_get(x_183, 1); +lean_inc(x_193); +lean_dec(x_183); +x_194 = !lean_is_exclusive(x_184); +if (x_194 == 0) +{ +x_39 = x_184; +x_40 = x_193; +goto block_127; +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_184, 0); +x_196 = lean_ctor_get(x_184, 1); +lean_inc(x_196); +lean_inc(x_195); +lean_dec(x_184); +x_197 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_197, 0, x_195); +lean_ctor_set(x_197, 1, x_196); +x_39 = x_197; +x_40 = x_193; +goto block_127; +} +} +} +else +{ +uint8_t x_198; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_198 = !lean_is_exclusive(x_183); +if (x_198 == 0) +{ +return x_183; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = lean_ctor_get(x_183, 0); +x_200 = lean_ctor_get(x_183, 1); +lean_inc(x_200); +lean_inc(x_199); +lean_dec(x_183); +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_200); +return x_201; +} +} +} } } } } else { -uint8_t x_304; +uint8_t x_205; +lean_dec(x_27); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_205 = !lean_is_exclusive(x_32); +if (x_205 == 0) +{ +lean_object* x_206; uint8_t x_207; +x_206 = lean_ctor_get(x_32, 0); +lean_dec(x_206); +x_207 = !lean_is_exclusive(x_33); +if (x_207 == 0) +{ +return x_32; +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_208 = lean_ctor_get(x_33, 0); +x_209 = lean_ctor_get(x_33, 1); +lean_inc(x_209); +lean_inc(x_208); +lean_dec(x_33); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_208); +lean_ctor_set(x_210, 1, x_209); +lean_ctor_set(x_32, 0, x_210); +return x_32; +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_211 = lean_ctor_get(x_32, 1); +lean_inc(x_211); +lean_dec(x_32); +x_212 = lean_ctor_get(x_33, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_33, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_214 = x_33; +} else { + lean_dec_ref(x_33); + x_214 = lean_box(0); +} +if (lean_is_scalar(x_214)) { + x_215 = lean_alloc_ctor(1, 2, 0); +} else { + x_215 = x_214; +} +lean_ctor_set(x_215, 0, x_212); +lean_ctor_set(x_215, 1, x_213); +x_216 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_211); +return x_216; +} +} +} +else +{ +uint8_t x_217; +lean_dec(x_27); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_217 = !lean_is_exclusive(x_32); +if (x_217 == 0) +{ +return x_32; +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_32, 0); +x_219 = lean_ctor_get(x_32, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_32); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +return x_220; +} +} +} +else +{ +uint8_t x_221; +lean_dec(x_27); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_221 = !lean_is_exclusive(x_28); +if (x_221 == 0) +{ +lean_object* x_222; +if (lean_is_scalar(x_23)) { + x_222 = lean_alloc_ctor(0, 2, 0); +} else { + x_222 = x_23; +} +lean_ctor_set(x_222, 0, x_28); +lean_ctor_set(x_222, 1, x_29); +return x_222; +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_223 = lean_ctor_get(x_28, 0); +x_224 = lean_ctor_get(x_28, 1); +lean_inc(x_224); +lean_inc(x_223); +lean_dec(x_28); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +if (lean_is_scalar(x_23)) { + x_226 = lean_alloc_ctor(0, 2, 0); +} else { + x_226 = x_23; +} +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_29); +return x_226; +} +} +} +block_244: +{ +if (lean_obj_tag(x_228) == 0) +{ +uint8_t x_230; +x_230 = !lean_is_exclusive(x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_ctor_get(x_228, 1); +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +lean_dec(x_231); +lean_ctor_set(x_228, 1, x_232); +x_28 = x_228; +x_29 = x_229; +goto block_227; +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_233 = lean_ctor_get(x_228, 0); +x_234 = lean_ctor_get(x_228, 1); +lean_inc(x_234); +lean_inc(x_233); +lean_dec(x_228); +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +lean_dec(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_233); +lean_ctor_set(x_236, 1, x_235); +x_28 = x_236; +x_29 = x_229; +goto block_227; +} +} +else +{ +uint8_t x_237; +x_237 = !lean_is_exclusive(x_228); +if (x_237 == 0) +{ +lean_object* x_238; lean_object* x_239; +x_238 = lean_ctor_get(x_228, 1); +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +lean_dec(x_238); +lean_ctor_set(x_228, 1, x_239); +x_28 = x_228; +x_29 = x_229; +goto block_227; +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_240 = lean_ctor_get(x_228, 0); +x_241 = lean_ctor_get(x_228, 1); +lean_inc(x_241); +lean_inc(x_240); +lean_dec(x_228); +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +lean_dec(x_241); +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_240); +lean_ctor_set(x_243, 1, x_242); +x_28 = x_243; +x_29 = x_229; +goto block_227; +} +} +} +} +else +{ +uint8_t x_364; +lean_dec(x_16); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_304 = !lean_is_exclusive(x_13); -if (x_304 == 0) +x_364 = !lean_is_exclusive(x_20); +if (x_364 == 0) { -lean_object* x_305; uint8_t x_306; -x_305 = lean_ctor_get(x_13, 0); -lean_dec(x_305); -x_306 = !lean_is_exclusive(x_14); -if (x_306 == 0) +lean_object* x_365; uint8_t x_366; +x_365 = lean_ctor_get(x_20, 0); +lean_dec(x_365); +x_366 = !lean_is_exclusive(x_21); +if (x_366 == 0) { -return x_13; +return x_20; } else { -lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_307 = lean_ctor_get(x_14, 0); -x_308 = lean_ctor_get(x_14, 1); -lean_inc(x_308); -lean_inc(x_307); -lean_dec(x_14); -x_309 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_309, 0, x_307); -lean_ctor_set(x_309, 1, x_308); -lean_ctor_set(x_13, 0, x_309); -return x_13; +lean_object* x_367; lean_object* x_368; lean_object* x_369; +x_367 = lean_ctor_get(x_21, 0); +x_368 = lean_ctor_get(x_21, 1); +lean_inc(x_368); +lean_inc(x_367); +lean_dec(x_21); +x_369 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_369, 0, x_367); +lean_ctor_set(x_369, 1, x_368); +lean_ctor_set(x_20, 0, x_369); +return x_20; } } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_310 = lean_ctor_get(x_13, 1); -lean_inc(x_310); -lean_dec(x_13); -x_311 = lean_ctor_get(x_14, 0); -lean_inc(x_311); -x_312 = lean_ctor_get(x_14, 1); -lean_inc(x_312); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - x_313 = x_14; +lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; +x_370 = lean_ctor_get(x_20, 1); +lean_inc(x_370); +lean_dec(x_20); +x_371 = lean_ctor_get(x_21, 0); +lean_inc(x_371); +x_372 = lean_ctor_get(x_21, 1); +lean_inc(x_372); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + x_373 = x_21; } else { - lean_dec_ref(x_14); - x_313 = lean_box(0); + lean_dec_ref(x_21); + x_373 = lean_box(0); } -if (lean_is_scalar(x_313)) { - x_314 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_373)) { + x_374 = lean_alloc_ctor(1, 2, 0); } else { - x_314 = x_313; + x_374 = x_373; } -lean_ctor_set(x_314, 0, x_311); -lean_ctor_set(x_314, 1, x_312); -x_315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_315, 0, x_314); -lean_ctor_set(x_315, 1, x_310); -return x_315; +lean_ctor_set(x_374, 0, x_371); +lean_ctor_set(x_374, 1, x_372); +x_375 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_375, 0, x_374); +lean_ctor_set(x_375, 1, x_370); +return x_375; } } } else { -uint8_t x_316; +uint8_t x_376; +lean_dec(x_16); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_316 = !lean_is_exclusive(x_13); -if (x_316 == 0) +x_376 = !lean_is_exclusive(x_20); +if (x_376 == 0) { -return x_13; +return x_20; } else { -lean_object* x_317; lean_object* x_318; lean_object* x_319; -x_317 = lean_ctor_get(x_13, 0); -x_318 = lean_ctor_get(x_13, 1); -lean_inc(x_318); -lean_inc(x_317); -lean_dec(x_13); -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_317); -lean_ctor_set(x_319, 1, x_318); -return x_319; +lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_377 = lean_ctor_get(x_20, 0); +x_378 = lean_ctor_get(x_20, 1); +lean_inc(x_378); +lean_inc(x_377); +lean_dec(x_20); +x_379 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_379, 0, x_377); +lean_ctor_set(x_379, 1, x_378); +return x_379; } } } else { -lean_object* x_320; lean_object* x_321; 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_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_dec(x_2); -lean_dec(x_1); -x_320 = lean_ctor_get(x_3, 0); -lean_inc(x_320); -x_321 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_321, 0, x_320); -x_322 = l_Lake_Package_keyword; -x_323 = l_Lake_Package_extraDepFacet; -x_324 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_324, 0, x_321); -lean_ctor_set(x_324, 1, x_322); -lean_ctor_set(x_324, 2, x_3); -lean_ctor_set(x_324, 3, x_323); -x_325 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); -lean_closure_set(x_325, 0, x_324); -lean_closure_set(x_325, 1, lean_box(0)); -x_326 = l_Lake_buildImportsAndDeps___lambda__10___closed__2; -x_327 = l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__9___rarg(x_325, x_326, x_4, x_5, x_6, x_7, x_8, x_9); -return x_327; +x_380 = lean_ctor_get(x_3, 0); +lean_inc(x_380); +x_381 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_381, 0, x_380); +x_382 = l_Lake_Package_keyword; +x_383 = l_Lake_Package_extraDepFacet; +x_384 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_384, 0, x_381); +lean_ctor_set(x_384, 1, x_382); +lean_ctor_set(x_384, 2, x_3); +lean_ctor_set(x_384, 3, x_383); +x_385 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); +lean_closure_set(x_385, 0, x_384); +lean_closure_set(x_385, 1, lean_box(0)); +x_386 = l_Lake_buildImportsAndDeps___lambda__10___closed__4; +x_387 = l_Functor_mapRev___at_Lake_buildImportsAndDeps___spec__17___rarg(x_385, x_386, x_4, x_5, x_6, x_7, x_8, x_9); +return x_387; } } } @@ -67249,14 +90124,14 @@ x_16 = l_Lake_buildImportsAndDeps___closed__4; x_17 = lean_alloc_closure((void*)(l_Lake_EquipT_map___at_Lake_buildImportsAndDeps___spec__1___rarg), 8, 2); lean_closure_set(x_17, 0, x_16); lean_closure_set(x_17, 1, x_15); -x_18 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps___lambda__10), 9, 2); +x_18 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps___lambda__10___boxed), 9, 2); lean_closure_set(x_18, 0, x_2); lean_closure_set(x_18, 1, x_1); x_19 = lean_alloc_closure((void*)(l_Lake_EquipT_bind___at_Lake_Module_recComputeTransImports___spec__3___rarg), 8, 2); lean_closure_set(x_19, 0, x_17); lean_closure_set(x_19, 1, x_18); lean_inc(x_6); -x_20 = l_Lake_ensureJob___at_Lake_Module_recBuildDeps___spec__17(x_19, x_3, x_4, x_5, x_6, x_7, x_8); +x_20 = l_Lake_ensureJob___at_Lake_buildImportsAndDeps___spec__18(x_19, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; @@ -67530,7 +90405,39 @@ return x_90; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_12 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_13 = l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__3(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lake_buildImportsAndDeps___spec__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) { +_start: +{ +lean_object* x_10; +x_10 = l_Array_filterMapM___at_Lake_buildImportsAndDeps___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__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, lean_object* x_8, lean_object* x_9) { _start: { size_t x_10; size_t x_11; lean_object* x_12; @@ -67538,32 +90445,81 @@ x_10 = lean_unbox_usize(x_1); lean_dec(x_1); x_11 = lean_unbox_usize(x_2); lean_dec(x_2); -x_12 = l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__2(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Array_mapMUnsafe_map___at_Lake_buildImportsAndDeps___spec__4(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_12; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at_Lake_buildImportsAndDeps___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__6___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) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_DHashMap_Internal_AssocList_contains___at_Lake_buildImportsAndDeps___spec__4(x_1, x_2); +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__6(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -size_t x_5; size_t x_6; lean_object* x_7; -x_5 = lean_unbox_usize(x_2); +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lake_Job_mapM___at_Lake_buildImportsAndDeps___spec__5(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__11___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); lean_dec(x_2); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__11(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10___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) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__10(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__15___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) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_Lake_Job_bindM___at_Lake_buildImportsAndDeps___spec__15(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; lean_object* x_8; x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__8(x_1, x_5, x_6, x_4); -lean_dec(x_1); -return x_7; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_foldlMUnsafe_fold___at_Lake_buildImportsAndDeps___spec__16(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__19___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = l_IO_FS_withIsolatedStreams___at_Lake_buildImportsAndDeps___spec__19(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; } } LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__1___boxed(lean_object* x_1) { @@ -67618,6 +90574,15 @@ lean_dec(x_1); return x_2; } } +LEAN_EXPORT lean_object* l_Lake_buildImportsAndDeps___lambda__10___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lake_buildImportsAndDeps___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_1); +return x_10; +} +} lean_object* initialize_Lake_Util_OrdHashSet(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Util_List(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_ParseImportsFast(uint8_t builtin, lean_object*); @@ -67657,6 +90622,58 @@ l_Lake_recBuildExternDynlibs___closed__5 = _init_l_Lake_recBuildExternDynlibs___ lean_mark_persistent(l_Lake_recBuildExternDynlibs___closed__5); l_Lake_recBuildExternDynlibs___closed__6 = _init_l_Lake_recBuildExternDynlibs___closed__6(); lean_mark_persistent(l_Lake_recBuildExternDynlibs___closed__6); +l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1(); +lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__1); +l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__2 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__2(); +lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__2); +l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__3 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__3(); +lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__3); +l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__4 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__4(); +lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__4); +l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5(); +lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recFetchInput___spec__1___closed__5); +l_Lake_Module_recFetchInput___lambda__2___closed__1 = _init_l_Lake_Module_recFetchInput___lambda__2___closed__1(); +lean_mark_persistent(l_Lake_Module_recFetchInput___lambda__2___closed__1); +l_Lake_Module_recFetchInput___lambda__4___closed__1 = _init_l_Lake_Module_recFetchInput___lambda__4___closed__1(); +lean_mark_persistent(l_Lake_Module_recFetchInput___lambda__4___closed__1); +l_Lake_Module_recFetchInput___closed__1 = _init_l_Lake_Module_recFetchInput___closed__1(); +lean_mark_persistent(l_Lake_Module_recFetchInput___closed__1); +l_Lake_Module_recFetchInput___closed__2 = _init_l_Lake_Module_recFetchInput___closed__2(); +lean_mark_persistent(l_Lake_Module_recFetchInput___closed__2); +l_Lake_Module_recFetchInput___closed__3 = _init_l_Lake_Module_recFetchInput___closed__3(); +lean_mark_persistent(l_Lake_Module_recFetchInput___closed__3); +l_Lake_Module_recFetchInput___closed__4 = _init_l_Lake_Module_recFetchInput___closed__4(); +lean_mark_persistent(l_Lake_Module_recFetchInput___closed__4); +l_Lake_Module_inputFacetConfig___closed__1 = _init_l_Lake_Module_inputFacetConfig___closed__1(); +lean_mark_persistent(l_Lake_Module_inputFacetConfig___closed__1); +l_Lake_Module_inputFacetConfig___closed__2 = _init_l_Lake_Module_inputFacetConfig___closed__2(); +lean_mark_persistent(l_Lake_Module_inputFacetConfig___closed__2); +l_Lake_Module_inputFacetConfig___closed__3 = _init_l_Lake_Module_inputFacetConfig___closed__3(); +lean_mark_persistent(l_Lake_Module_inputFacetConfig___closed__3); +l_Lake_Module_inputFacetConfig = _init_l_Lake_Module_inputFacetConfig(); +lean_mark_persistent(l_Lake_Module_inputFacetConfig); +l_Lake_Module_leanFacetConfig___lambda__2___closed__1 = _init_l_Lake_Module_leanFacetConfig___lambda__2___closed__1(); +lean_mark_persistent(l_Lake_Module_leanFacetConfig___lambda__2___closed__1); +l_Lake_Module_leanFacetConfig___lambda__2___closed__2 = _init_l_Lake_Module_leanFacetConfig___lambda__2___closed__2(); +lean_mark_persistent(l_Lake_Module_leanFacetConfig___lambda__2___closed__2); +l_Lake_Module_leanFacetConfig___closed__1 = _init_l_Lake_Module_leanFacetConfig___closed__1(); +lean_mark_persistent(l_Lake_Module_leanFacetConfig___closed__1); +l_Lake_Module_leanFacetConfig___closed__2 = _init_l_Lake_Module_leanFacetConfig___closed__2(); +lean_mark_persistent(l_Lake_Module_leanFacetConfig___closed__2); +l_Lake_Module_leanFacetConfig___closed__3 = _init_l_Lake_Module_leanFacetConfig___closed__3(); +lean_mark_persistent(l_Lake_Module_leanFacetConfig___closed__3); +l_Lake_Module_leanFacetConfig = _init_l_Lake_Module_leanFacetConfig(); +lean_mark_persistent(l_Lake_Module_leanFacetConfig); +l_Lake_Module_headerFacetConfig___lambda__2___closed__1 = _init_l_Lake_Module_headerFacetConfig___lambda__2___closed__1(); +lean_mark_persistent(l_Lake_Module_headerFacetConfig___lambda__2___closed__1); +l_Lake_Module_headerFacetConfig___lambda__2___closed__2 = _init_l_Lake_Module_headerFacetConfig___lambda__2___closed__2(); +lean_mark_persistent(l_Lake_Module_headerFacetConfig___lambda__2___closed__2); +l_Lake_Module_headerFacetConfig___closed__1 = _init_l_Lake_Module_headerFacetConfig___closed__1(); +lean_mark_persistent(l_Lake_Module_headerFacetConfig___closed__1); +l_Lake_Module_headerFacetConfig___closed__2 = _init_l_Lake_Module_headerFacetConfig___closed__2(); +lean_mark_persistent(l_Lake_Module_headerFacetConfig___closed__2); +l_Lake_Module_headerFacetConfig = _init_l_Lake_Module_headerFacetConfig(); +lean_mark_persistent(l_Lake_Module_headerFacetConfig); l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__1 = _init_l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__1(); lean_mark_persistent(l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__1); l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__2 = _init_l_Lake_OrdHashSet_insert___at_Lake_Module_recParseImports___spec__1___closed__2(); @@ -67667,30 +90684,10 @@ l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__2 lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__2); l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__3 = _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__3(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__7___closed__3); -l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1(); -lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__1); -l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__2 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__2(); -lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__2); -l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__3 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__3(); -lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__3); -l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__4 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__4(); -lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__4); -l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5 = _init_l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5(); -lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lake_Module_recParseImports___spec__8___closed__5); -l_Lake_Module_recParseImports___lambda__2___closed__1 = _init_l_Lake_Module_recParseImports___lambda__2___closed__1(); -lean_mark_persistent(l_Lake_Module_recParseImports___lambda__2___closed__1); -l_Lake_Module_recParseImports___lambda__4___closed__1 = _init_l_Lake_Module_recParseImports___lambda__4___closed__1(); -lean_mark_persistent(l_Lake_Module_recParseImports___lambda__4___closed__1); -l_Lake_Module_recParseImports___lambda__4___closed__2 = _init_l_Lake_Module_recParseImports___lambda__4___closed__2(); -lean_mark_persistent(l_Lake_Module_recParseImports___lambda__4___closed__2); +l_Lake_Module_recParseImports___lambda__1___closed__1 = _init_l_Lake_Module_recParseImports___lambda__1___closed__1(); +lean_mark_persistent(l_Lake_Module_recParseImports___lambda__1___closed__1); l_Lake_Module_recParseImports___closed__1 = _init_l_Lake_Module_recParseImports___closed__1(); lean_mark_persistent(l_Lake_Module_recParseImports___closed__1); -l_Lake_Module_recParseImports___closed__2 = _init_l_Lake_Module_recParseImports___closed__2(); -lean_mark_persistent(l_Lake_Module_recParseImports___closed__2); -l_Lake_Module_recParseImports___closed__3 = _init_l_Lake_Module_recParseImports___closed__3(); -lean_mark_persistent(l_Lake_Module_recParseImports___closed__3); -l_Lake_Module_recParseImports___closed__4 = _init_l_Lake_Module_recParseImports___closed__4(); -lean_mark_persistent(l_Lake_Module_recParseImports___closed__4); l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1 = _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__1); l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__2 = _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_importsFacetConfig___spec__2___closed__2(); @@ -67741,11 +90738,6 @@ l_Lake_Module_precompileImportsFacetConfig___closed__2 = _init_l_Lake_Module_pre lean_mark_persistent(l_Lake_Module_precompileImportsFacetConfig___closed__2); l_Lake_Module_precompileImportsFacetConfig = _init_l_Lake_Module_precompileImportsFacetConfig(); lean_mark_persistent(l_Lake_Module_precompileImportsFacetConfig); -l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___closed__1 = _init_l_Array_foldlMUnsafe_fold___at_Lake_fetchExternLibs___spec__2___closed__1(); -l_Lake_fetchExternLibs___closed__1 = _init_l_Lake_fetchExternLibs___closed__1(); -lean_mark_persistent(l_Lake_fetchExternLibs___closed__1); -l_Lake_fetchExternLibs___closed__2 = _init_l_Lake_fetchExternLibs___closed__2(); -lean_mark_persistent(l_Lake_fetchExternLibs___closed__2); l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1___closed__1 = _init_l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1___closed__1(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1___closed__1); l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1___closed__2 = _init_l_Array_foldlMUnsafe_fold___at___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___spec__1___closed__2(); @@ -67760,42 +90752,51 @@ l___private_Lake_Build_Module_0__Lake_mkLoadOrder___closed__1 = _init_l___privat lean_mark_persistent(l___private_Lake_Build_Module_0__Lake_mkLoadOrder___closed__1); l___private_Lake_Build_Module_0__Lake_mkLoadOrder___closed__2 = _init_l___private_Lake_Build_Module_0__Lake_mkLoadOrder___closed__2(); lean_mark_persistent(l___private_Lake_Build_Module_0__Lake_mkLoadOrder___closed__2); -l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___closed__1); -l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__1 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__1(); -lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__1); -l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__2 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__2(); -lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__2); -l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__3 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__3(); -lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__3); -l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__4 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__4(); -lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__4); -l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__5 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__5(); -lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recBuildDeps___spec__3___closed__5); -l_Lake_Module_recBuildDeps___lambda__2___closed__1 = _init_l_Lake_Module_recBuildDeps___lambda__2___closed__1(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__2___closed__1); -l_Lake_Module_recBuildDeps___lambda__2___closed__2 = _init_l_Lake_Module_recBuildDeps___lambda__2___closed__2(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__2___closed__2); -l_Lake_Module_recBuildDeps___lambda__2___closed__3 = _init_l_Lake_Module_recBuildDeps___lambda__2___closed__3(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__2___closed__3); -l_Lake_Module_recBuildDeps___lambda__2___boxed__const__1 = _init_l_Lake_Module_recBuildDeps___lambda__2___boxed__const__1(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__2___boxed__const__1); -l_Lake_Module_recBuildDeps___lambda__8___closed__1 = _init_l_Lake_Module_recBuildDeps___lambda__8___closed__1(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__8___closed__1); -l_Lake_Module_recBuildDeps___lambda__8___closed__2 = _init_l_Lake_Module_recBuildDeps___lambda__8___closed__2(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__8___closed__2); -l_Lake_Module_recBuildDeps___lambda__8___closed__3 = _init_l_Lake_Module_recBuildDeps___lambda__8___closed__3(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__8___closed__3); -l_Lake_Module_recBuildDeps___lambda__8___closed__4 = _init_l_Lake_Module_recBuildDeps___lambda__8___closed__4(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__8___closed__4); -l_Lake_Module_recBuildDeps___lambda__9___closed__1 = _init_l_Lake_Module_recBuildDeps___lambda__9___closed__1(); -lean_mark_persistent(l_Lake_Module_recBuildDeps___lambda__9___closed__1); +l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__1___closed__1); +l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__1 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__1(); +lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__1); +l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__2 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__2(); +lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__2); +l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__3 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__3(); +lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__3); +l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__4 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__4(); +lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__4); +l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__5 = _init_l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__5(); +lean_mark_persistent(l_Lake_Target_fetchIn___at_Lake_Module_recFetchSetup___spec__3___closed__5); +l_Lake_Module_recFetchSetup___lambda__1___closed__1 = _init_l_Lake_Module_recFetchSetup___lambda__1___closed__1(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__1___closed__1); +l_Lake_Module_recFetchSetup___lambda__1___closed__2 = _init_l_Lake_Module_recFetchSetup___lambda__1___closed__2(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__1___closed__2); +l_Lake_Module_recFetchSetup___lambda__2___closed__1 = _init_l_Lake_Module_recFetchSetup___lambda__2___closed__1(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__2___closed__1); +l_Lake_Module_recFetchSetup___lambda__2___closed__2 = _init_l_Lake_Module_recFetchSetup___lambda__2___closed__2(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__2___closed__2); +l_Lake_Module_recFetchSetup___lambda__2___closed__3 = _init_l_Lake_Module_recFetchSetup___lambda__2___closed__3(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__2___closed__3); +l_Lake_Module_recFetchSetup___lambda__2___boxed__const__1 = _init_l_Lake_Module_recFetchSetup___lambda__2___boxed__const__1(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__2___boxed__const__1); +l_Lake_Module_recFetchSetup___lambda__9___closed__1 = _init_l_Lake_Module_recFetchSetup___lambda__9___closed__1(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__9___closed__1); +l_Lake_Module_recFetchSetup___lambda__9___closed__2 = _init_l_Lake_Module_recFetchSetup___lambda__9___closed__2(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__9___closed__2); +l_Lake_Module_recFetchSetup___lambda__9___closed__3 = _init_l_Lake_Module_recFetchSetup___lambda__9___closed__3(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__9___closed__3); +l_Lake_Module_recFetchSetup___lambda__9___closed__4 = _init_l_Lake_Module_recFetchSetup___lambda__9___closed__4(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__9___closed__4); +l_Lake_Module_recFetchSetup___lambda__9___closed__5 = _init_l_Lake_Module_recFetchSetup___lambda__9___closed__5(); +l_Lake_Module_recFetchSetup___lambda__10___closed__1 = _init_l_Lake_Module_recFetchSetup___lambda__10___closed__1(); +lean_mark_persistent(l_Lake_Module_recFetchSetup___lambda__10___closed__1); +l_Lake_Module_setupFacetConfig___closed__1 = _init_l_Lake_Module_setupFacetConfig___closed__1(); +lean_mark_persistent(l_Lake_Module_setupFacetConfig___closed__1); +l_Lake_Module_setupFacetConfig___closed__2 = _init_l_Lake_Module_setupFacetConfig___closed__2(); +lean_mark_persistent(l_Lake_Module_setupFacetConfig___closed__2); +l_Lake_Module_setupFacetConfig = _init_l_Lake_Module_setupFacetConfig(); +lean_mark_persistent(l_Lake_Module_setupFacetConfig); l_Lake_Module_depsFacetConfig___closed__1 = _init_l_Lake_Module_depsFacetConfig___closed__1(); lean_mark_persistent(l_Lake_Module_depsFacetConfig___closed__1); l_Lake_Module_depsFacetConfig___closed__2 = _init_l_Lake_Module_depsFacetConfig___closed__2(); lean_mark_persistent(l_Lake_Module_depsFacetConfig___closed__2); -l_Lake_Module_depsFacetConfig___closed__3 = _init_l_Lake_Module_depsFacetConfig___closed__3(); -lean_mark_persistent(l_Lake_Module_depsFacetConfig___closed__3); l_Lake_Module_depsFacetConfig = _init_l_Lake_Module_depsFacetConfig(); lean_mark_persistent(l_Lake_Module_depsFacetConfig); l_Lake_Module_clearOutputHashes___closed__1 = _init_l_Lake_Module_clearOutputHashes___closed__1(); @@ -67805,16 +90806,26 @@ lean_mark_persistent(l_Lake_Module_clearOutputHashes___closed__2); l_Lake_Module_clearOutputHashes___closed__3 = _init_l_Lake_Module_clearOutputHashes___closed__3(); lean_mark_persistent(l_Lake_Module_clearOutputHashes___closed__3); l_Lake_Module_clearOutputHashes___closed__4 = _init_l_Lake_Module_clearOutputHashes___closed__4(); +lean_mark_persistent(l_Lake_Module_clearOutputHashes___closed__4); l_Lake_Module_clearOutputHashes___closed__5 = _init_l_Lake_Module_clearOutputHashes___closed__5(); lean_mark_persistent(l_Lake_Module_clearOutputHashes___closed__5); +l_Lake_Module_clearOutputHashes___closed__6 = _init_l_Lake_Module_clearOutputHashes___closed__6(); +lean_mark_persistent(l_Lake_Module_clearOutputHashes___closed__6); +l_Lake_Module_cacheOutputHashes___lambda__1___closed__1 = _init_l_Lake_Module_cacheOutputHashes___lambda__1___closed__1(); +l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__1 = _init_l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__1(); +lean_mark_persistent(l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__1); +l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__2 = _init_l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__2(); +lean_mark_persistent(l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__2); +l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__3 = _init_l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__3(); +lean_mark_persistent(l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__3); +l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__4 = _init_l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__4(); +lean_mark_persistent(l_Lean_RBNode_fold___at___private_Lake_Build_Module_0__Lake_traceOptions___spec__1___closed__4); +l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___closed__1 = _init_l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___lambda__1___closed__1); l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__1 = _init_l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__1(); lean_mark_persistent(l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__1); l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__2 = _init_l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__2(); lean_mark_persistent(l_Lake_buildUnlessUpToDate_x3f___at_Lake_Module_recBuildLean___spec__1___closed__2); -l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1 = _init_l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1(); -lean_mark_persistent(l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__1); -l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2 = _init_l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2(); -lean_mark_persistent(l_Lean_RBNode_fold___at_Lake_Module_recBuildLean___spec__4___closed__2); l_Lake_Module_recBuildLean___lambda__1___closed__1 = _init_l_Lake_Module_recBuildLean___lambda__1___closed__1(); lean_mark_persistent(l_Lake_Module_recBuildLean___lambda__1___closed__1); l_Lake_Module_recBuildLean___lambda__1___closed__2 = _init_l_Lake_Module_recBuildLean___lambda__1___closed__2(); @@ -67831,30 +90842,50 @@ l_Lake_Module_recBuildLean___lambda__1___closed__7 = _init_l_Lake_Module_recBuil lean_mark_persistent(l_Lake_Module_recBuildLean___lambda__1___closed__7); l_Lake_Module_recBuildLean___lambda__1___closed__8 = _init_l_Lake_Module_recBuildLean___lambda__1___closed__8(); lean_mark_persistent(l_Lake_Module_recBuildLean___lambda__1___closed__8); -l_Lake_Module_recBuildLean___lambda__1___closed__9 = _init_l_Lake_Module_recBuildLean___lambda__1___closed__9(); -lean_mark_persistent(l_Lake_Module_recBuildLean___lambda__1___closed__9); -l_Lake_Module_recBuildLean___lambda__1___closed__10 = _init_l_Lake_Module_recBuildLean___lambda__1___closed__10(); -lean_mark_persistent(l_Lake_Module_recBuildLean___lambda__1___closed__10); -l_Lake_Module_recBuildLean___lambda__1___closed__11 = _init_l_Lake_Module_recBuildLean___lambda__1___closed__11(); -lean_mark_persistent(l_Lake_Module_recBuildLean___lambda__1___closed__11); l_Lake_Module_leanArtsFacetConfig___closed__1 = _init_l_Lake_Module_leanArtsFacetConfig___closed__1(); lean_mark_persistent(l_Lake_Module_leanArtsFacetConfig___closed__1); l_Lake_Module_leanArtsFacetConfig___closed__2 = _init_l_Lake_Module_leanArtsFacetConfig___closed__2(); lean_mark_persistent(l_Lake_Module_leanArtsFacetConfig___closed__2); l_Lake_Module_leanArtsFacetConfig = _init_l_Lake_Module_leanArtsFacetConfig(); lean_mark_persistent(l_Lake_Module_leanArtsFacetConfig); -l_Lake_Module_oleanFacetConfig___lambda__1___closed__1 = _init_l_Lake_Module_oleanFacetConfig___lambda__1___closed__1(); -lean_mark_persistent(l_Lake_Module_oleanFacetConfig___lambda__1___closed__1); +l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lambda__1___closed__1 = _init_l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lake_Build_Module_0__Lake_Module_fetchOLeanCore___lambda__1___closed__1); l_Lake_Module_oleanFacetConfig___closed__1 = _init_l_Lake_Module_oleanFacetConfig___closed__1(); lean_mark_persistent(l_Lake_Module_oleanFacetConfig___closed__1); l_Lake_Module_oleanFacetConfig___closed__2 = _init_l_Lake_Module_oleanFacetConfig___closed__2(); lean_mark_persistent(l_Lake_Module_oleanFacetConfig___closed__2); l_Lake_Module_oleanFacetConfig___closed__3 = _init_l_Lake_Module_oleanFacetConfig___closed__3(); lean_mark_persistent(l_Lake_Module_oleanFacetConfig___closed__3); +l_Lake_Module_oleanFacetConfig___closed__4 = _init_l_Lake_Module_oleanFacetConfig___closed__4(); +lean_mark_persistent(l_Lake_Module_oleanFacetConfig___closed__4); l_Lake_Module_oleanFacetConfig = _init_l_Lake_Module_oleanFacetConfig(); lean_mark_persistent(l_Lake_Module_oleanFacetConfig); +l_Lake_Module_oleanServerFacetConfig___closed__1 = _init_l_Lake_Module_oleanServerFacetConfig___closed__1(); +lean_mark_persistent(l_Lake_Module_oleanServerFacetConfig___closed__1); +l_Lake_Module_oleanServerFacetConfig___closed__2 = _init_l_Lake_Module_oleanServerFacetConfig___closed__2(); +lean_mark_persistent(l_Lake_Module_oleanServerFacetConfig___closed__2); +l_Lake_Module_oleanServerFacetConfig___closed__3 = _init_l_Lake_Module_oleanServerFacetConfig___closed__3(); +lean_mark_persistent(l_Lake_Module_oleanServerFacetConfig___closed__3); +l_Lake_Module_oleanServerFacetConfig___closed__4 = _init_l_Lake_Module_oleanServerFacetConfig___closed__4(); +lean_mark_persistent(l_Lake_Module_oleanServerFacetConfig___closed__4); +l_Lake_Module_oleanServerFacetConfig = _init_l_Lake_Module_oleanServerFacetConfig(); +lean_mark_persistent(l_Lake_Module_oleanServerFacetConfig); +l_Lake_Module_oleanPrivateFacetConfig___closed__1 = _init_l_Lake_Module_oleanPrivateFacetConfig___closed__1(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFacetConfig___closed__1); +l_Lake_Module_oleanPrivateFacetConfig___closed__2 = _init_l_Lake_Module_oleanPrivateFacetConfig___closed__2(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFacetConfig___closed__2); +l_Lake_Module_oleanPrivateFacetConfig___closed__3 = _init_l_Lake_Module_oleanPrivateFacetConfig___closed__3(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFacetConfig___closed__3); +l_Lake_Module_oleanPrivateFacetConfig___closed__4 = _init_l_Lake_Module_oleanPrivateFacetConfig___closed__4(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFacetConfig___closed__4); +l_Lake_Module_oleanPrivateFacetConfig = _init_l_Lake_Module_oleanPrivateFacetConfig(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFacetConfig); l_Lake_Module_ileanFacetConfig___lambda__1___closed__1 = _init_l_Lake_Module_ileanFacetConfig___lambda__1___closed__1(); lean_mark_persistent(l_Lake_Module_ileanFacetConfig___lambda__1___closed__1); +l_Lake_Module_ileanFacetConfig___lambda__1___closed__2 = _init_l_Lake_Module_ileanFacetConfig___lambda__1___closed__2(); +lean_mark_persistent(l_Lake_Module_ileanFacetConfig___lambda__1___closed__2); +l_Lake_Module_ileanFacetConfig___lambda__1___closed__3 = _init_l_Lake_Module_ileanFacetConfig___lambda__1___closed__3(); +lean_mark_persistent(l_Lake_Module_ileanFacetConfig___lambda__1___closed__3); l_Lake_Module_ileanFacetConfig___closed__1 = _init_l_Lake_Module_ileanFacetConfig___closed__1(); lean_mark_persistent(l_Lake_Module_ileanFacetConfig___closed__1); l_Lake_Module_ileanFacetConfig___closed__2 = _init_l_Lake_Module_ileanFacetConfig___closed__2(); @@ -67863,6 +90894,10 @@ l_Lake_Module_ileanFacetConfig = _init_l_Lake_Module_ileanFacetConfig(); lean_mark_persistent(l_Lake_Module_ileanFacetConfig); l_Lake_Module_cFacetConfig___lambda__1___closed__1 = _init_l_Lake_Module_cFacetConfig___lambda__1___closed__1(); lean_mark_persistent(l_Lake_Module_cFacetConfig___lambda__1___closed__1); +l_Lake_Module_cFacetConfig___lambda__1___closed__2 = _init_l_Lake_Module_cFacetConfig___lambda__1___closed__2(); +lean_mark_persistent(l_Lake_Module_cFacetConfig___lambda__1___closed__2); +l_Lake_Module_cFacetConfig___lambda__1___closed__3 = _init_l_Lake_Module_cFacetConfig___lambda__1___closed__3(); +lean_mark_persistent(l_Lake_Module_cFacetConfig___lambda__1___closed__3); l_Lake_Module_cFacetConfig___closed__1 = _init_l_Lake_Module_cFacetConfig___closed__1(); lean_mark_persistent(l_Lake_Module_cFacetConfig___closed__1); l_Lake_Module_cFacetConfig___closed__2 = _init_l_Lake_Module_cFacetConfig___closed__2(); @@ -67871,6 +90906,10 @@ l_Lake_Module_cFacetConfig = _init_l_Lake_Module_cFacetConfig(); lean_mark_persistent(l_Lake_Module_cFacetConfig); l_Lake_Module_bcFacetConfig___lambda__1___closed__1 = _init_l_Lake_Module_bcFacetConfig___lambda__1___closed__1(); lean_mark_persistent(l_Lake_Module_bcFacetConfig___lambda__1___closed__1); +l_Lake_Module_bcFacetConfig___lambda__1___closed__2 = _init_l_Lake_Module_bcFacetConfig___lambda__1___closed__2(); +lean_mark_persistent(l_Lake_Module_bcFacetConfig___lambda__1___closed__2); +l_Lake_Module_bcFacetConfig___lambda__1___closed__3 = _init_l_Lake_Module_bcFacetConfig___lambda__1___closed__3(); +lean_mark_persistent(l_Lake_Module_bcFacetConfig___lambda__1___closed__3); l_Lake_Module_bcFacetConfig___closed__1 = _init_l_Lake_Module_bcFacetConfig___closed__1(); lean_mark_persistent(l_Lake_Module_bcFacetConfig___closed__1); l_Lake_Module_bcFacetConfig___closed__2 = _init_l_Lake_Module_bcFacetConfig___closed__2(); @@ -67963,10 +91002,6 @@ l_Lake_Module_initFacetConfigs = _init_l_Lake_Module_initFacetConfigs(); lean_mark_persistent(l_Lake_Module_initFacetConfigs); l_Lake_initModuleFacetConfigs = _init_l_Lake_initModuleFacetConfigs(); lean_mark_persistent(l_Lake_initModuleFacetConfigs); -l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__1 = _init_l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__1(); -lean_mark_persistent(l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__1); -l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__2 = _init_l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__2(); -lean_mark_persistent(l_Lake_OrdHashSet_insert___at_Lake_buildImportsAndDeps___spec__3___closed__2); l_Lake_buildImportsAndDeps___lambda__8___closed__1 = _init_l_Lake_buildImportsAndDeps___lambda__8___closed__1(); lean_mark_persistent(l_Lake_buildImportsAndDeps___lambda__8___closed__1); l_Lake_buildImportsAndDeps___lambda__9___closed__1 = _init_l_Lake_buildImportsAndDeps___lambda__9___closed__1(); @@ -67977,6 +91012,10 @@ l_Lake_buildImportsAndDeps___lambda__10___closed__1 = _init_l_Lake_buildImportsA lean_mark_persistent(l_Lake_buildImportsAndDeps___lambda__10___closed__1); l_Lake_buildImportsAndDeps___lambda__10___closed__2 = _init_l_Lake_buildImportsAndDeps___lambda__10___closed__2(); lean_mark_persistent(l_Lake_buildImportsAndDeps___lambda__10___closed__2); +l_Lake_buildImportsAndDeps___lambda__10___closed__3 = _init_l_Lake_buildImportsAndDeps___lambda__10___closed__3(); +lean_mark_persistent(l_Lake_buildImportsAndDeps___lambda__10___closed__3); +l_Lake_buildImportsAndDeps___lambda__10___closed__4 = _init_l_Lake_buildImportsAndDeps___lambda__10___closed__4(); +lean_mark_persistent(l_Lake_buildImportsAndDeps___lambda__10___closed__4); l_Lake_buildImportsAndDeps___closed__1 = _init_l_Lake_buildImportsAndDeps___closed__1(); lean_mark_persistent(l_Lake_buildImportsAndDeps___closed__1); l_Lake_buildImportsAndDeps___closed__2 = _init_l_Lake_buildImportsAndDeps___closed__2(); diff --git a/stage0/stdlib/Lake/Build/Trace.c b/stage0/stdlib/Lake/Build/Trace.c index 39aec16474..88b1d2ba24 100644 --- a/stage0/stdlib/Lake/Build/Trace.c +++ b/stage0/stdlib/Lake/Build/Trace.c @@ -18,18 +18,14 @@ LEAN_EXPORT lean_object* l_Lake_MTime_instOrd; static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__11; LEAN_EXPORT lean_object* l_Lake_computeHash___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Hash_instToString; -LEAN_EXPORT lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instToStringTextFilePath(lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_checkAgainstHash(lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeHashArrayOfMonad___rarg(lean_object*, lean_object*); uint8_t l_String_anyAux___at_String_isNat___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__7; -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__11; LEAN_EXPORT lean_object* l_Lake_Hash_instToJson; LEAN_EXPORT lean_object* l_Lake_computeListTrace___at_Lake_instComputeTraceListOfMonad___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeHashFilePathIO; -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__4; -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__2; LEAN_EXPORT lean_object* l_Lake_instComputeTraceIOMTimeOfGetMTime___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_ofHash___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_mixTraceList___rarg(lean_object*, lean_object*, lean_object*); @@ -42,8 +38,11 @@ LEAN_EXPORT lean_object* l_Lake_BuildTrace_withCaption(lean_object*, lean_object LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_instComputeTraceListOfMonad___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint64_t l_Lake_Hash_ofNat(lean_object*); static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__13; +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__3; +static lean_object* l_Lake_Hash_ofText___closed__1; uint64_t lean_byte_array_hash(lean_object*); LEAN_EXPORT uint64_t l_Lake_Hash_ofBool(uint8_t); +LEAN_EXPORT lean_object* l_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lake_computeHash(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint64_t l_Lake_Hash_mix(uint64_t, uint64_t); lean_object* l_String_quote(lean_object*); @@ -51,6 +50,7 @@ static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed_ LEAN_EXPORT lean_object* l_Lake_computeListTrace(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_instBEq; lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__11; LEAN_EXPORT lean_object* l_Lake_computeTextFileHash(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_decEqHash____x40_Lake_Build_Trace___hyg_544____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_instComputeTraceIOOfToStringOfComputeHashOfMonadLiftTOfGetMTime___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -63,7 +63,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_mixTraceArray___spe LEAN_EXPORT lean_object* l_Lake_instComputeTraceListOfMonad(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Hash_ofBool___boxed(lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_computeListTrace___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__1; LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeTraceArrayOfMonad(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Hash_toJson___boxed(lean_object*); @@ -78,8 +77,8 @@ LEAN_EXPORT lean_object* l_Lake_Hash_toJson(uint64_t); LEAN_EXPORT lean_object* l_Lake_computeFileHash(lean_object*, uint8_t, lean_object*); static lean_object* l_Lake_Hash_instToString___closed__1; LEAN_EXPORT lean_object* l_Lake_Hash_ofString_x3f(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Hash_ofText___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayTrace___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__11; LEAN_EXPORT lean_object* l_Lake_Hash_toString___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeTraceHashOfComputeHash(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instBEqHash; @@ -87,10 +86,10 @@ LEAN_EXPORT lean_object* l_Lake_MTime_instMin(lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_mix(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__1; LEAN_EXPORT lean_object* l_Lake_BuildTrace_compute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_checkAgainstHash___rarg(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*); lean_object* l_List_foldl___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__6; lean_object* l_Nat_reprFast(lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeTraceArrayOfMonad___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -98,6 +97,8 @@ static lean_object* l_Lake_instReprBuildTrace___closed__1; LEAN_EXPORT lean_object* l_Lake_inhabitedOfNilTrace___rarg___boxed(lean_object*); LEAN_EXPORT uint8_t l_Lake_decEqHash____x40_Lake_Build_Trace___hyg_544_(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lake_instComputeTraceHashOfComputeHash___rarg___boxed(lean_object*); +LEAN_EXPORT lean_object* l_List_foldl___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__4(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__4; lean_object* l_UInt64_fromJson_x3f(lean_object*); static lean_object* l_Lake_MTime_instOfNat___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayTrace___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -108,34 +109,31 @@ LEAN_EXPORT lean_object* l_Lake_instReprHash; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayTrace___spec__1___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_instNilTrace; LEAN_EXPORT lean_object* l_Lake_BuildTrace_instCoeMTime___boxed__const__1; -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__9; -static lean_object* l_Lake_computeTextFileHash___closed__1; +LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instToStringTextFilePath___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_computeArrayTrace___at_Lake_instComputeTraceArrayOfMonad___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_checkAgainstTime___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_BuildTrace_instCoeHash___closed__1; +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__8; LEAN_EXPORT lean_object* l_Lake_Hash_ofString_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeTraceIOMTimeOfGetMTime___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeHashBoolId; -LEAN_EXPORT lean_object* l_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__2(lean_object*); +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__6; LEAN_EXPORT lean_object* l_Lake_Hash_instFromJson; -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__7; +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__9; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayHash___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_uint64_to_nat(uint64_t); LEAN_EXPORT lean_object* l_Lake_instCheckExistsFilePath; LEAN_EXPORT lean_object* l_Lake_BuildTrace_instNilTrace; lean_object* l_String_crlfToLf_go(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__3; LEAN_EXPORT lean_object* l_Lake_inhabitedOfNilTrace(lean_object*); static lean_object* l_Lake_instGetMTimeFilePath___closed__1; -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__12; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_mixTraceArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_String_foldlAux___at_String_toNat_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_ofMTime___boxed__const__1; lean_object* lean_array_to_list(lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_ofMTime(lean_object*, lean_object*); -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__5; -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__10; +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__10; LEAN_EXPORT lean_object* l_Lake_Hash_toString(uint64_t); extern lean_object* l_IO_FS_instBEqSystemTime; LEAN_EXPORT uint64_t l_Lake_Hash_ofString(lean_object*); @@ -146,19 +144,21 @@ LEAN_EXPORT lean_object* l_Lake_instComputeHashStringId; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayHash___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeHashTextFilePathIO(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_inhabitedOfNilTrace___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1(lean_object*); +LEAN_EXPORT uint64_t l_Lake_Hash_ofText(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayHash___spec__1___rarg___lambda__2(size_t, lean_object*, lean_object*, lean_object*, size_t, uint64_t); +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__7; LEAN_EXPORT lean_object* l_Lake_computeArrayHash(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_instMixTrace; LEAN_EXPORT lean_object* l_Lake_BuildTrace_nil(lean_object*); LEAN_EXPORT lean_object* l_Lake_computeFileHash___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instComputeHashFilePathIO___closed__1; -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__1; LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_instComputeTraceListOfMonad___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_computeListTrace___at_Lake_instComputeTraceListOfMonad___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__13; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayTrace___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_checkAgainstHash___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instReprHash___closed__1; -LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_instComputeTraceIOOfToStringOfComputeHashOfMonadLiftTOfGetMTime(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeTraceIOMTimeOfGetMTime(lean_object*); LEAN_EXPORT uint8_t l_Lake_instDecidableEqHash(uint64_t, uint64_t); @@ -170,52 +170,53 @@ LEAN_EXPORT lean_object* l_Lake_MTime_instOfNat; LEAN_EXPORT lean_object* l_Lake_pureHash___rarg(lean_object*, lean_object*); lean_object* l_IO_FS_readFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instGetMTimeFilePath; +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__10; +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_instComputeTraceArrayOfMonad___spec__2(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_foldl___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__4(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__3; static lean_object* l_Lake_Hash_instToJson___closed__1; static lean_object* l_Lake_MTime_instOfNat___closed__1; LEAN_EXPORT lean_object* l_Lake_Hash_load_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeTraceHashOfComputeHash___rarg(lean_object*); -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__2; -LEAN_EXPORT lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_ofHash(uint64_t, lean_object*); -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__3; LEAN_EXPORT lean_object* l_Lake_mixTraceArray___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_instMax(lean_object*, lean_object*); -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__8; LEAN_EXPORT lean_object* l_Lake_MTime_instRepr; +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__2; LEAN_EXPORT lean_object* l_Lake_Hash_load_x3f___boxed(lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); LEAN_EXPORT lean_object* l_Lake_getFileMTime(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_compute(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_instComputeTraceListOfMonad___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__6; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_instComputeTraceArrayOfMonad___spec__2___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_mixTraceList(lean_object*); static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__1; -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__5; +LEAN_EXPORT lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); uint8_t l_IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3217_(lean_object*, lean_object*); LEAN_EXPORT uint64_t l_Lake_Hash_nil; static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__2; +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__1; LEAN_EXPORT lean_object* l_Lake_instComputeHashArrayOfMonad(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instReprBuildTrace; LEAN_EXPORT lean_object* l_Lake_MTime_instMax___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_instComputeTraceArrayOfMonad___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__9; LEAN_EXPORT uint64_t l_Lake_Hash_instNilTrace; static lean_object* l_Lake_instCheckExistsFilePath___closed__1; +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__2; static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__8; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_instComputeTraceArrayOfMonad___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_instMin___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_computeTextFileHash___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_computeTrace(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__10; LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_computeListTrace___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_instMixTrace___boxed(lean_object*, lean_object*); static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__5; LEAN_EXPORT lean_object* l_Lake_Hash_ofByteArray___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeTraceListOfMonad___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__13; static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__12; LEAN_EXPORT lean_object* l_Lake_BuildTrace_instCoeMTime(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_instComputeTraceArrayOfMonad___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -223,14 +224,14 @@ lean_object* l_Lean_bignumToJson(lean_object*); static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__6; uint8_t lean_uint64_dec_eq(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lake_beqHash____x40_Lake_Build_Trace___hyg_486____boxed(lean_object*, lean_object*); -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__6; +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__14; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayHash___spec__1(lean_object*, lean_object*); lean_object* lean_array_mk(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayHash___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634_(uint64_t, lean_object*); size_t lean_usize_add(size_t, size_t); -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_mixTraceArray___spec__1___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__7; LEAN_EXPORT lean_object* l_Lake_pureHash(lean_object*); LEAN_EXPORT lean_object* l_Lake_MTime_instLT; lean_object* lean_array_uget(lean_object*, size_t); @@ -244,35 +245,36 @@ LEAN_EXPORT lean_object* l_Lake_BuildTrace_checkAgainstTime___rarg___boxed(lean_ static lean_object* l_Lake_BuildTrace_instNilTrace___closed__1; static lean_object* l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__4; LEAN_EXPORT lean_object* l_Lake_BuildTrace_withoutInputs(lean_object*); -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__14; LEAN_EXPORT lean_object* l_Lake_computeBinFileHash(lean_object*, lean_object*); static lean_object* l_Lake_BuildTrace_instCoeMTime___closed__1; +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__12; LEAN_EXPORT lean_object* l_Lake_computeListTrace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__5; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lake_computeArrayHash___rarg___boxed__const__1; static lean_object* l_Lake_BuildTrace_instMixTrace___closed__1; lean_object* l_System_FilePath_pathExists___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__11; +LEAN_EXPORT lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381_(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lake_beqHash____x40_Lake_Build_Trace___hyg_486_(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lake_mixTraceArray___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_BuildTrace_withoutInputs___closed__1; LEAN_EXPORT lean_object* l_Lake_instDecidableEqHash___boxed(lean_object*, lean_object*); -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__9; -static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__7; lean_object* l_IO_FS_readBinFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instComputeHashTextFilePathIO___boxed(lean_object*, lean_object*); static lean_object* l_Lake_Hash_instFromJson___closed__1; static lean_object* l_Lake_BuildTrace_instNilTrace___closed__2; -LEAN_EXPORT lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instCoeTextFilePathFilePath___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Hash_instMixTrace; -static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__8; LEAN_EXPORT lean_object* l_Lake_Hash_ofString___boxed(lean_object*); LEAN_EXPORT uint64_t l_Lake_Hash_ofByteArray(lean_object*); LEAN_EXPORT lean_object* l_Lake_instCoeTextFilePathFilePath(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_computeArrayTrace___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__8; LEAN_EXPORT lean_object* l_Lake_Hash_fromJson_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lake_computeArrayHash___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__5; static lean_object* l_Lake_instBEqHash___closed__1; LEAN_EXPORT lean_object* l_List_foldlM___at_Lake_computeListTrace___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_computeArrayTrace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1494,6 +1496,38 @@ x_3 = lean_box_uint64(x_2); return x_3; } } +static lean_object* _init_l_Lake_Hash_ofText___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +LEAN_EXPORT uint64_t l_Lake_Hash_ofText(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; uint64_t x_5; uint64_t x_6; uint64_t x_7; +x_2 = l_Lake_Hash_ofText___closed__1; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_String_crlfToLf_go(x_1, x_2, x_3, x_3); +x_5 = lean_string_hash(x_4); +lean_dec(x_4); +x_6 = 1723; +x_7 = lean_uint64_mix_hash(x_6, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lake_Hash_ofText___boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l_Lake_Hash_ofText(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} LEAN_EXPORT uint64_t l_Lake_Hash_ofByteArray(lean_object* x_1) { _start: { @@ -1810,14 +1844,6 @@ x_1 = l_Lake_instComputeHashFilePathIO___closed__1; return x_1; } } -static lean_object* _init_l_Lake_computeTextFileHash___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lake_computeTextFileHash(lean_object* x_1, lean_object* x_2) { _start: { @@ -1831,7 +1857,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; lean_object* x_12; x_5 = lean_ctor_get(x_3, 0); -x_6 = l_Lake_computeTextFileHash___closed__1; +x_6 = l_Lake_Hash_ofText___closed__1; x_7 = lean_unsigned_to_nat(0u); x_8 = l_String_crlfToLf_go(x_5, x_6, x_7, x_7); lean_dec(x_5); @@ -1851,7 +1877,7 @@ x_14 = lean_ctor_get(x_3, 1); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_15 = l_Lake_computeTextFileHash___closed__1; +x_15 = l_Lake_Hash_ofText___closed__1; x_16 = lean_unsigned_to_nat(0u); x_17 = l_String_crlfToLf_go(x_13, x_15, x_16, x_16); lean_dec(x_13); @@ -2647,16 +2673,16 @@ lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__2(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398_(x_1, x_2); +x_3 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381_(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_List_foldl___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_List_foldl___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2678,7 +2704,7 @@ lean_ctor_set_tag(x_3, 5); lean_ctor_set(x_3, 1, x_1); lean_ctor_set(x_3, 0, x_2); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398_(x_5, x_7); +x_8 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381_(x_5, x_7); x_9 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_9, 0, x_3); lean_ctor_set(x_9, 1, x_8); @@ -2699,7 +2725,7 @@ x_13 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_13, 0, x_2); lean_ctor_set(x_13, 1, x_1); x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398_(x_11, x_14); +x_15 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381_(x_11, x_14); x_16 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_16, 0, x_13); lean_ctor_set(x_16, 1, x_15); @@ -2710,7 +2736,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__3(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2733,7 +2759,7 @@ x_5 = lean_ctor_get(x_1, 0); lean_inc(x_5); lean_dec(x_1); x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398_(x_5, x_6); +x_7 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381_(x_5, x_6); return x_7; } else @@ -2743,14 +2769,14 @@ x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398_(x_8, x_9); -x_11 = l_List_foldl___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__4(x_2, x_10, x_4); +x_10 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381_(x_8, x_9); +x_11 = l_List_foldl___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__4(x_2, x_10, x_4); return x_11; } } } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__1() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__1() { _start: { lean_object* x_1; @@ -2758,21 +2784,21 @@ x_1 = lean_mk_string_unchecked(",", 1, 1); return x_1; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__2() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__1; +x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__1; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__3() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__2; +x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__2; x_2 = lean_box(1); x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2780,7 +2806,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__4() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__4() { _start: { lean_object* x_1; @@ -2788,35 +2814,35 @@ x_1 = lean_mk_string_unchecked("#[", 2, 2); return x_1; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__5() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__4; +x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__4; x_2 = lean_string_length(x_1); return x_2; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__6() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__5; +x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__5; x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__7() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__4; +x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__4; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__8() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__8() { _start: { lean_object* x_1; @@ -2824,17 +2850,17 @@ x_1 = lean_mk_string_unchecked("]", 1, 1); return x_1; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__9() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__8; +x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__8; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__10() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__10() { _start: { lean_object* x_1; @@ -2842,17 +2868,17 @@ x_1 = lean_mk_string_unchecked("#[]", 3, 3); return x_1; } } -static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__11() { +static lean_object* _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__10; +x_1 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__10; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -2864,17 +2890,17 @@ if (x_4 == 0) { 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; uint8_t x_14; lean_object* x_15; x_5 = lean_array_to_list(x_1); -x_6 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__3; -x_7 = l_Std_Format_joinSep___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__3(x_5, x_6); -x_8 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__7; +x_6 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__3; +x_7 = l_Std_Format_joinSep___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__3(x_5, x_6); +x_8 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__7; x_9 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_7); -x_10 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__9; +x_10 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__9; x_11 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); -x_12 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__6; +x_12 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__6; x_13 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); @@ -2888,12 +2914,12 @@ else { lean_object* x_16; lean_dec(x_1); -x_16 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__11; +x_16 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__11; return x_16; } } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__1() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__1() { _start: { lean_object* x_1; @@ -2901,33 +2927,33 @@ x_1 = lean_mk_string_unchecked("caption", 7, 7); return x_1; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__2() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__1; +x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__1; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__3() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__2; +x_2 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__2; x_3 = lean_alloc_ctor(5, 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_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__4() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__3; +x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__3; x_2 = l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634____closed__5; x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2935,7 +2961,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__5() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -2944,7 +2970,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__6() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__6() { _start: { lean_object* x_1; @@ -2952,17 +2978,17 @@ x_1 = lean_mk_string_unchecked("inputs", 6, 6); return x_1; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__7() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__6; +x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__6; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__8() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__8() { _start: { lean_object* x_1; lean_object* x_2; @@ -2971,7 +2997,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__9() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__9() { _start: { lean_object* x_1; @@ -2979,17 +3005,17 @@ x_1 = lean_mk_string_unchecked("hash", 4, 4); return x_1; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__10() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__9; +x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__9; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__11() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__11() { _start: { lean_object* x_1; lean_object* x_2; @@ -2998,7 +3024,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__12() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__12() { _start: { lean_object* x_1; @@ -3006,17 +3032,17 @@ x_1 = lean_mk_string_unchecked("mtime", 5, 5); return x_1; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__13() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__12; +x_1 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__12; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__14() { +static lean_object* _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__14() { _start: { lean_object* x_1; lean_object* x_2; @@ -3025,7 +3051,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* 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; lean_object* x_32; uint64_t 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; @@ -3035,7 +3061,7 @@ x_4 = l_String_quote(x_3); lean_dec(x_3); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_4); -x_6 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__5; +x_6 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__5; x_7 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -3043,11 +3069,11 @@ x_8 = 0; x_9 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_9, 0, x_7); lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_8); -x_10 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__4; +x_10 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__4; x_11 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); -x_12 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__2; +x_12 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__2; x_13 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -3055,7 +3081,7 @@ x_14 = lean_box(1); x_15 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__7; +x_16 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__7; x_17 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -3065,8 +3091,8 @@ lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); x_20 = lean_ctor_get(x_1, 1); lean_inc(x_20); -x_21 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1(x_20); -x_22 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__8; +x_21 = l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1(x_20); +x_22 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__8; x_23 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); @@ -3082,7 +3108,7 @@ lean_ctor_set(x_26, 1, x_12); x_27 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_14); -x_28 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__10; +x_28 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__10; x_29 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -3095,7 +3121,7 @@ x_32 = lean_unsigned_to_nat(0u); x_33 = lean_unbox_uint64(x_31); lean_dec(x_31); x_34 = l_Lake_reprHash____x40_Lake_Build_Trace___hyg_634_(x_33, x_32); -x_35 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__11; +x_35 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__11; x_36 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); @@ -3111,7 +3137,7 @@ lean_ctor_set(x_39, 1, x_12); x_40 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_40, 0, x_39); lean_ctor_set(x_40, 1, x_14); -x_41 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__13; +x_41 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__13; x_42 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_42, 0, x_40); lean_ctor_set(x_42, 1, x_41); @@ -3123,7 +3149,7 @@ lean_inc(x_44); lean_dec(x_1); x_45 = l_IO_FS_reprSystemTime____x40_Init_System_IO___hyg_3085_(x_44, x_32); lean_dec(x_44); -x_46 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__14; +x_46 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__14; x_47 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_45); @@ -3151,11 +3177,11 @@ lean_ctor_set_uint8(x_56, sizeof(void*)*1, x_8); return x_56; } } -LEAN_EXPORT lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398_(x_1, x_2); +x_3 = l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381_(x_1, x_2); lean_dec(x_2); return x_3; } @@ -3164,7 +3190,7 @@ static lean_object* _init_l_Lake_instReprBuildTrace___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____boxed), 2, 0); return x_1; } } @@ -3799,6 +3825,8 @@ l_Lake_Hash_instToString___closed__1 = _init_l_Lake_Hash_instToString___closed__ lean_mark_persistent(l_Lake_Hash_instToString___closed__1); l_Lake_Hash_instToString = _init_l_Lake_Hash_instToString(); lean_mark_persistent(l_Lake_Hash_instToString); +l_Lake_Hash_ofText___closed__1 = _init_l_Lake_Hash_ofText___closed__1(); +lean_mark_persistent(l_Lake_Hash_ofText___closed__1); l_Lake_Hash_instToJson___closed__1 = _init_l_Lake_Hash_instToJson___closed__1(); lean_mark_persistent(l_Lake_Hash_instToJson___closed__1); l_Lake_Hash_instToJson = _init_l_Lake_Hash_instToJson(); @@ -3819,8 +3847,6 @@ l_Lake_instComputeHashFilePathIO___closed__1 = _init_l_Lake_instComputeHashFileP lean_mark_persistent(l_Lake_instComputeHashFilePathIO___closed__1); l_Lake_instComputeHashFilePathIO = _init_l_Lake_instComputeHashFilePathIO(); lean_mark_persistent(l_Lake_instComputeHashFilePathIO); -l_Lake_computeTextFileHash___closed__1 = _init_l_Lake_computeTextFileHash___closed__1(); -lean_mark_persistent(l_Lake_computeTextFileHash___closed__1); l_Lake_computeArrayHash___rarg___boxed__const__1 = _init_l_Lake_computeArrayHash___rarg___boxed__const__1(); lean_mark_persistent(l_Lake_computeArrayHash___rarg___boxed__const__1); l_Lake_MTime_instOfNat___closed__1 = _init_l_Lake_MTime_instOfNat___closed__1(); @@ -3845,56 +3871,56 @@ l_Lake_instGetMTimeFilePath___closed__1 = _init_l_Lake_instGetMTimeFilePath___cl lean_mark_persistent(l_Lake_instGetMTimeFilePath___closed__1); l_Lake_instGetMTimeFilePath = _init_l_Lake_instGetMTimeFilePath(); lean_mark_persistent(l_Lake_instGetMTimeFilePath); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__1 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__1(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__1); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__2 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__2(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__2); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__3 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__3(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__3); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__4 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__4(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__4); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__5 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__5(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__5); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__6 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__6(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__6); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__7 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__7(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__7); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__8 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__8(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__8); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__9 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__9(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__9); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__10 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__10(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__10); -l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__11 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__11(); -lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____spec__1___closed__11); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__1 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__1(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__1); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__2 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__2(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__2); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__3 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__3(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__3); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__4 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__4(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__4); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__5 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__5(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__5); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__6 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__6(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__6); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__7 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__7(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__7); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__8 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__8(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__8); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__9 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__9(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__9); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__10 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__10(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__10); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__11 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__11(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__11); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__12 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__12(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__12); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__13 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__13(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__13); -l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__14 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__14(); -lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1398____closed__14); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__1 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__1(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__1); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__2 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__2(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__2); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__3 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__3(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__3); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__4 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__4(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__4); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__5 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__5(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__5); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__6 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__6(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__6); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__7 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__7(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__7); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__8 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__8(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__8); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__9 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__9(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__9); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__10 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__10(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__10); +l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__11 = _init_l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__11(); +lean_mark_persistent(l_Array_Array_repr___at_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____spec__1___closed__11); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__1 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__1(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__1); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__2 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__2(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__2); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__3 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__3(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__3); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__4 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__4(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__4); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__5 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__5(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__5); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__6 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__6(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__6); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__7 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__7(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__7); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__8 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__8(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__8); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__9 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__9(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__9); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__10 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__10(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__10); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__11 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__11(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__11); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__12 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__12(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__12); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__13 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__13(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__13); +l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__14 = _init_l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__14(); +lean_mark_persistent(l_Lake_reprBuildTrace____x40_Lake_Build_Trace___hyg_1381____closed__14); l_Lake_instReprBuildTrace___closed__1 = _init_l_Lake_instReprBuildTrace___closed__1(); lean_mark_persistent(l_Lake_instReprBuildTrace___closed__1); l_Lake_instReprBuildTrace = _init_l_Lake_instReprBuildTrace(); diff --git a/stage0/stdlib/Lake/CLI/Main.c b/stage0/stdlib/Lake/CLI/Main.c index 227cd0fb55..e8978e29c7 100644 --- a/stage0/stdlib/Lake/CLI/Main.c +++ b/stage0/stdlib/Lake/CLI/Main.c @@ -15,7 +15,6 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lake_lake_translateConfig___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_translateConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__1; LEAN_EXPORT lean_object* l_liftM___at_Lake_lake_new___spec__1(lean_object*); lean_object* l_Lake_Env_vars(lean_object*); static lean_object* l_Lake_lake_init___closed__1; @@ -32,21 +31,23 @@ LEAN_EXPORT lean_object* l_Lake_takeOptArg_x27___rarg(lean_object*, lean_object* LEAN_EXPORT lean_object* l_Lake_lake_init___lambda__1___boxed__const__1; static lean_object* l_Lake_lakeLongOption___closed__24; static lean_object* l_Lake_lake_ReservoirConfig_currentSchemaVersion___closed__2; +lean_object* l_Lean_Json_compress(lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_queryKind___spec__5___boxed__const__1; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__10; LEAN_EXPORT lean_object* l_Lake_lake_upload___lambda__1___boxed__const__1; -LEAN_EXPORT lean_object* l_List_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__1(lean_object*); static lean_object* l_Lake_lakeCli___closed__27; LEAN_EXPORT lean_object* l_Lake_CliStateM_runLoggerIO___rarg___boxed__const__1; lean_object* l_Lake_Workspace_findModuleBySrc_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lakeOption(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__5; +lean_object* lean_io_prim_handle_put_str(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_githash; LEAN_EXPORT lean_object* l_Lake_lake_script(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeLongOption___closed__10; LEAN_EXPORT lean_object* l_Lake_CliStateM_runLogIO___rarg___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lake_lakeCli___closed__31; static lean_object* l_Lake_lake_translateConfig___lambda__2___closed__1; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_updateManifest(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lake_lake_clean___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_verifyInstall___closed__3; @@ -58,13 +59,11 @@ lean_object* l_Lean_Json_mkObj(lean_object*); lean_object* l_System_FilePath_normalize(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_lake_reservoirConfig___spec__5(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lake_lake_checkTest___closed__2; -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_script_list___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_unpack(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LeanOptions_ofArray(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_checkTest___boxed__const__1; static lean_object* l_Lake_lakeCli___closed__30; -static lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1; static lean_object* l_Lake_lake_instToJsonReservoirConfig___closed__1; lean_object* l_Lake_help(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_script_run___boxed__const__2; @@ -76,9 +75,8 @@ static lean_object* l_Lake_lake_pack___closed__1; LEAN_EXPORT lean_object* l_Lake_lakeLongOption___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); lean_object* l_Lake_BuildInfo_key(lean_object*); -lean_object* l_Lean_LeanOptionValue_asCliFlagValue(lean_object*); +lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_loadPackage(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__6; lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_query(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_new___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -86,7 +84,6 @@ LEAN_EXPORT lean_object* l_Lake_lake_lint___lambda__1(lean_object*, lean_object* LEAN_EXPORT lean_object* l_Lake_verifyLeanVersion(lean_object*); static lean_object* l_Lake_parseScriptSpec___closed__1; lean_object* l_Lake_parseTargetSpecs(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toJson___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1540____spec__2(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Lake_verifyInstall___closed__2; @@ -94,14 +91,11 @@ lean_object* lean_io_rename(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lake_build___closed__1; LEAN_EXPORT lean_object* l_Lake_takeOptArg_x27___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instMonadLiftLoggerIOCliStateM(lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lake_instMonadLiftLogIOLoggerIO___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lake_parseLangSpec(lean_object*); static lean_object* l_Lake_lakeCli___closed__13; lean_object* l_Lake_Package_clean(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CliM_run___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_translateConfig___lambda__2___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_script_doc___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_parseTemplateLangSpec___closed__2; @@ -117,14 +111,12 @@ lean_object* l_Lake_Package_lint(lean_object*, lean_object*, lean_object*, lean_ LEAN_EXPORT lean_object* l_Lake_LakeOptions_getInstall(lean_object*); lean_object* l_Lake_Job_renew___rarg(lean_object*); lean_object* l___private_Lake_Build_Target_Fetch_0__Lake_PartialBuildKey_fetchInCoreAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(lean_object*); static lean_object* l_Lake_lake_script___closed__1; LEAN_EXPORT lean_object* l_Lake_lakeLongOption___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_test___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lake_instMonadLiftLogIOCliStateM(lean_object*); LEAN_EXPORT lean_object* l_Lake_LakeOptions_getLeanInstall(lean_object*); LEAN_EXPORT lean_object* l_Option_repr___at_Lake_verifyInstall___spec__3___boxed(lean_object*, lean_object*); -extern lean_object* l_Lake_Module_depsFacet; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lake_lake_versionTags___spec__1___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_script_list___lambda__1___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_reservoirConfig___lambda__2(lean_object*, lean_object*, lean_object*); @@ -132,13 +124,10 @@ lean_object* l_Lake_querySpecs___boxed(lean_object*, lean_object*, lean_object*, LEAN_EXPORT lean_object* l_StateT_pure___at_Lake_lake_test___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_toJson___at_Lake_InputDir_defaultFacetConfig___spec__3(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_resolveDeps___lambda__1___boxed__const__1; -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lake_lake_reservoirConfig___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeLongOption___closed__8; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___closed__1; static lean_object* l_Lake_lakeCli___closed__15; LEAN_EXPORT lean_object* l_Lake_lakeShortOption(uint32_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_LeanOptions_append___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeCli___closed__32; uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_LakeOptions_computeEnv(lean_object*, lean_object*); @@ -172,6 +161,8 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_query___spec__ static lean_object* l_Lake_parseTemplateLangSpec___closed__3; LEAN_EXPORT lean_object* l_Lake_lake_resolveDeps___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_setupFile(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__3; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_lean(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeCli___closed__23; LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lake_lake_reservoirConfig___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); @@ -183,19 +174,18 @@ lean_object* l_Lake_Workspace_augmentedEnvVars(lean_object*); static lean_object* l_Lake_lake_versionTags___closed__1; LEAN_EXPORT lean_object* l_Lake_lake_translateConfig___lambda__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lake_lake_new___spec__2___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__6; +LEAN_EXPORT lean_object* l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_test___lambda__3(uint32_t, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__7; static lean_object* l_Lake_lake_serve___closed__1; LEAN_EXPORT lean_object* l_Lake_lake_reservoirConfig___lambda__1___boxed__const__1; +extern lean_object* l_Lake_Module_setupFacet; lean_object* l_Lake_Package_mkConfigString(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_repr___at_Lake_verifyInstall___spec__2___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__10; LEAN_EXPORT lean_object* l_Option_repr___at_Lake_verifyInstall___spec__3(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lake_resolvePath(lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_query___spec__1___boxed__const__1; -lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Env_compute(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_init___lambda__2(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_usage; @@ -205,6 +195,7 @@ static lean_object* l_Lake_lakeLongOption___closed__1; static lean_object* l_Lake_lakeCli___closed__16; LEAN_EXPORT lean_object* l_Lake_lake_clean(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_helpScript(lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__4; LEAN_EXPORT lean_object* l_Lake_lake_script_doc___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_reservoirConfig___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeCli___closed__25; @@ -213,6 +204,7 @@ static lean_object* l_Lake_verifyInstall___closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lake_captureProc_x3f(lean_object*, lean_object*); static lean_object* l_Lake_lakeLongOption___closed__26; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_next(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_script_list___lambda__2___boxed(lean_object*, lean_object*, lean_object*); @@ -232,12 +224,10 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at_Lake_lake_script_list___spec__ LEAN_EXPORT lean_object* l_Lake_lake_init___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_translateConfig(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lake_reservoirConfig___lambda__1___closed__1; -lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_test___lambda__2___boxed__const__1; static lean_object* l_Lake_lakeCli___closed__8; static lean_object* l_Lake_lakeCli___closed__24; static lean_object* l_Lake_lakeShortOption___closed__5; -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__6(lean_object*, lean_object*); static lean_object* l_Lake_lake_scriptCli___closed__2; LEAN_EXPORT lean_object* l_Lake_lake_checkBuild(lean_object*, lean_object*, lean_object*); lean_object* l_String_mapAux___at_String_toLower___spec__1(lean_object*, lean_object*); @@ -266,8 +256,6 @@ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lake_lake_versionTags___spec uint8_t l_Lake_Verbosity_minLogLv(uint8_t); static lean_object* l_Lake_lake_scriptCli___closed__3; lean_object* l_Lake_Package_unpack(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lake_Workspace_findModule_x3f(lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__8; static lean_object* l_Lake_lake_checkTest___closed__1; LEAN_EXPORT lean_object* l_IO_ofExcept___at_Lake_lake_queryKind___spec__1(lean_object*, lean_object*); lean_object* l_Lake_Package_pack(lean_object*, lean_object*, lean_object*, lean_object*); @@ -276,13 +264,14 @@ uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lake_lake_setupFile___closed__1; LEAN_EXPORT lean_object* l_Lake_CliStateM_runLogIO___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_CliError_toString(lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__12; static lean_object* l_Lake_lakeLongOption___closed__18; lean_object* l_Lake_PartialBuildKey_toString(lean_object*); lean_object* lean_array_to_list(lean_object*); +lean_object* l___private_Lean_Setup_0__Lean_toJsonModuleSetup____x40_Lean_Setup___hyg_1598_(lean_object*); lean_object* l_Lake_ConfigLang_ofString_x3f(lean_object*); lean_object* l_List_flatMapTR_go___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_226____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_test___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___closed__1; LEAN_EXPORT lean_object* l_Lake_lake_upload___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_loadWorkspace(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_reprLakeInstall____x40_Lake_Config_InstallPath___hyg_1160_(lean_object*, lean_object*); @@ -310,36 +299,34 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_reservoirConfi LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_reservoirConfig___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2; LEAN_EXPORT lean_object* l_Lake_LakeOptions_mkLoadConfig(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_reprElanInstall____x40_Lake_Config_InstallPath___hyg_123_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_translateConfig___lambda__1___boxed__const__1; lean_object* l_IO_print___at_IO_println___spec__1(lean_object*, lean_object*); lean_object* l_Lake_Workspace_clean(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_queryKind(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_script_help(lean_object*, lean_object*, lean_object*); -lean_object* l_Lake_setupFile(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lake_setupFile(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_OutStream_logEntry(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); -lean_object* l_Lake_BuildType_leanOptions(uint8_t); LEAN_EXPORT lean_object* l_List_foldl___at_Lake_lake_update___spec__1(lean_object*, lean_object*); uint8_t l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(uint8_t, uint8_t); static lean_object* l_Lake_lake_checkTest___closed__5; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__5; LEAN_EXPORT lean_object* l_Lake_lake_test___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_setConfigOpt(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_env___spec__1___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_exe___boxed__const__1; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3; static lean_object* l_Lake_lakeLongOption___closed__19; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; LEAN_EXPORT lean_object* l_Lake_lake_upload(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_env(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lake_build___closed__2; static lean_object* l_Lake_lakeLongOption___closed__5; lean_object* l_Lake_Package_test(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_translateConfig___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_io_create_tempfile(lean_object*); LEAN_EXPORT lean_object* l_Lake_CliStateM_runLogIO(lean_object*); static lean_object* l_Lake_lakeCli___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_build___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_test(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_pack___lambda__2___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_versionTags(lean_object*, lean_object*, lean_object*); @@ -348,9 +335,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_queryKind___sp uint8_t l_Lake_BuildConfig_showProgress(lean_object*); static lean_object* l_Lake_lakeLongOption___closed__6; LEAN_EXPORT lean_object* l_Lake_lake_script_doc___lambda__1___boxed__const__1; -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_checkTest___closed__4___boxed__const__1; -lean_object* l_Lake_buildImportsAndDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeCli___closed__17; LEAN_EXPORT lean_object* l_Lake_instMonadLiftLogIOCliStateM___rarg___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_checkLint(lean_object*, lean_object*, lean_object*); @@ -371,7 +356,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_lake_queryKind___spec_ static lean_object* l_Lake_lake_reservoirConfig___lambda__2___closed__2; lean_object* l_Array_append___rarg(lean_object*, lean_object*); static lean_object* l_Lake_lake_new___closed__3; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__3; static lean_object* l_Lake_lakeLongOption___lambda__2___closed__3; static lean_object* l_Lake_lakeCli___closed__1; static lean_object* l_Lake_lake_help___closed__1; @@ -384,12 +368,12 @@ lean_object* l_Lake_PartialBuildKey_parse(lean_object*); lean_object* l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_cli___boxed__const__1; static lean_object* l_Lake_lake_scriptCli___closed__4; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__6; lean_object* l_IO_FS_readFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lake_lake_reservoirConfig___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Substring_nextn(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CliM_run(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(lean_object*); lean_object* l_Lake_ConfigLang_fileExtension(uint8_t); LEAN_EXPORT lean_object* l_Lake_lake_unpack___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_BuildType_leanArgs(uint8_t); @@ -403,6 +387,7 @@ LEAN_EXPORT lean_object* l_List_forM___at_Lake_lake_clean___spec__2(lean_object* static lean_object* l_Lake_lake_test___closed__2; LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___at_Lake_lake_script_run___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_LakeOptions_mkLoadConfig___closed__1; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__11; static lean_object* l_Lake_lakeShortOption___closed__6; lean_object* l_Lake_Package_uploadRelease(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeShortOption___closed__1; @@ -415,10 +400,8 @@ extern lean_object* l_Lean_NameSet_empty; LEAN_EXPORT lean_object* l_Lake_lake_translateConfig___lambda__4___boxed__const__1; LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lake_lake_reservoirConfig___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_script_run(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_exe(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lakeShortOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__2; lean_object* lean_string_length(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_checkLint___boxed__const__1; lean_object* l_IO_println___at_Lean_Environment_displayStats___spec__3(lean_object*, lean_object*); @@ -428,13 +411,13 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lake_reprLeanInstall____x40_Lake_Config_InstallPath___hyg_567_(lean_object*, lean_object*); lean_object* l_Lake_new(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_scriptCli(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lake_lakeLongOption___lambda__1___closed__4; static lean_object* l_Lake_lake_script_help___closed__1; static lean_object* l_Lake_lakeLongOption___closed__20; lean_object* l_Lake_LeanExe_fetch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_selfCheck(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__1; LEAN_EXPORT lean_object* l_Lake_lake_env(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeShortOption___closed__7; LEAN_EXPORT lean_object* l_Lake_lake_help(lean_object*, lean_object*, lean_object*); @@ -448,21 +431,21 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_lake_reservoirConfig__ LEAN_EXPORT lean_object* l_Lake_collectArgs___at_Lake_lake_script_list___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Option_toJson___at___private_Lake_Load_Manifest_0__Lake_toJsonPackageEntryV6____x40_Lake_Load_Manifest___hyg_472____spec__4(lean_object*); static lean_object* l_Option_repr___at_Lake_verifyInstall___spec__1___closed__3; +LEAN_EXPORT lean_object* l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__2(lean_object*); static lean_object* l_Lake_lakeCli___closed__12; static lean_object* l_Lake_lakeLongOption___closed__2; -lean_object* l_Lean_LeanOptions_appendArray(lean_object*, lean_object*); -lean_object* l_Lean_parseImports_x27(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Script_run(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lake_mkModuleSetup(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_script_list___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lake_reservoirConfig___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lake_LakeOptions_getLakeInstall(lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__4(lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lake_lakeLongOption(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Manifest_loadEntries(lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; static lean_object* l_Lake_lakeLongOption___closed__17; lean_object* l_String_toName(lean_object*); lean_object* l_Lake_Workspace_runFetchM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__7; lean_object* l_Repr_addAppParen(lean_object*, lean_object*); static lean_object* l_Lake_LakeOptions_getLakeInstall___closed__1; LEAN_EXPORT lean_object* l_Lake_lake(lean_object*, lean_object*, lean_object*); @@ -473,12 +456,12 @@ LEAN_EXPORT lean_object* l_StateT_get___at_Lake_lake_pack___spec__1(lean_object* LEAN_EXPORT lean_object* l_Lake_lake_new(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CliM_run___rarg___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_queryKind___boxed__const__2; +LEAN_EXPORT lean_object* l_List_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_new___lambda__3___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_serve___lambda__1___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_reservoirConfig(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_lake_env___spec__1___closed__1; static lean_object* l_Lake_lake___closed__1; -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftM___at_Lake_lake_new___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lake_parsePackageSpec(lean_object*, lean_object*); static lean_object* l_Lake_lakeLongOption___lambda__1___closed__2; @@ -487,19 +470,17 @@ LEAN_EXPORT lean_object* l_Lake_lake_lean___lambda__2___boxed(lean_object*, lean LEAN_EXPORT lean_object* l_Lake_lake_serve___lambda__2(uint32_t); LEAN_EXPORT lean_object* l_Lake_noArgsRem(lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lake_lake_reservoirConfig___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__8(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_checkTest___closed__1___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_lean___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeLongOption___closed__3; LEAN_EXPORT lean_object* l_Lake_lake_build___boxed__const__1; -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Option_repr___at_Lake_verifyInstall___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lake_lake_script_run___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake_test___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_lake___boxed__const__1; static lean_object* l_Lake_lake_selfCheck___closed__1; static lean_object* l_Lake_parseLangSpec___closed__1; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lake_init(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_reservoirConfig___boxed__const__1; @@ -513,12 +494,14 @@ static lean_object* l_Lake_lake_init___closed__2; LEAN_EXPORT lean_object* l_Lake_lake_unpack___lambda__2___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_CliStateM_runLoggerIO(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_instToJsonReservoirConfig; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeLongOption___closed__12; static lean_object* l_Lake_lakeCli___closed__22; uint8_t l_Substring_beq(lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_lake_reservoirConfig___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_EStateM_map___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__8; LEAN_EXPORT lean_object* l_Lake_lake_translateConfig___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_checkBuild___boxed__const__2; LEAN_EXPORT lean_object* l_List_forM___at_Lake_lake_clean___spec__2___boxed__const__1; @@ -546,8 +529,8 @@ static lean_object* l_Lake_parseTemplateSpec___closed__1; LEAN_EXPORT lean_object* l_Lake_cli___boxed__const__2; static lean_object* l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__2; LEAN_EXPORT lean_object* l_Lake_lake_new___lambda__3(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_env___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_takeOptArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lakeLongOption___lambda__2___closed__2; @@ -561,6 +544,7 @@ LEAN_EXPORT lean_object* l_Lake_lake_init___lambda__2___boxed__const__1; LEAN_EXPORT lean_object* l_IO_println___at_Lake_lake_queryKind___spec__4___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_verifyInstall(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_StateT_map___at_Lake_lake_test___spec__2(lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__12; lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lake_lakeLongOption___closed__13; LEAN_EXPORT uint8_t l_Lake_LakeOptions_outLv(lean_object*); @@ -574,12 +558,10 @@ static lean_object* l_List_forIn_x27_loop___at_Lake_lake_versionTags___spec__1__ static lean_object* l_Lake_verifyLeanVersion___closed__1; lean_object* l_Lake_findInstall_x3f(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_LogLevel_ofString_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lake_cli(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_IO_println___at_Lake_lake_queryKind___spec__4___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lake_lakeCli(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_lean___lambda__2___boxed__const__1; uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* l_Lean_RBNode_find___at_Lean_NameMap_find_x3f___spec__1___rarg(lean_object*, lean_object*); @@ -592,12 +574,12 @@ lean_object* l_Lake_configFileExists(lean_object*, lean_object*); lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CliStateM_runLogIO___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_lake_script_help___boxed__const__1; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__9; lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); static lean_object* l_Lake_lakeCli___closed__11; LEAN_EXPORT lean_object* l_Lake_CliStateM_runLogIO___rarg___boxed__const__1; LEAN_EXPORT lean_object* l_Option_repr___at_Lake_verifyInstall___spec__1(lean_object*, lean_object*); static lean_object* l_Lake_lakeLongOption___closed__9; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lake_takeOptArg_x27(lean_object*); static lean_object* l_Lake_lakeCli___closed__28; static lean_object* l_Lake_lake_new___closed__1; @@ -605,15 +587,13 @@ static lean_object* l_Lake_CliM_run___rarg___closed__1; LEAN_EXPORT lean_object* l_Lake_lake_update(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_lake_exe___closed__1; LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lake_lake_reservoirConfig___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_lake_reservoirConfig___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lake_lake_env___lambda__1___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); extern lean_object* l_Lean_Options_empty; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__11; LEAN_EXPORT lean_object* l_Lake_lake_update___boxed__const__1; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__9; static lean_object* l_Lake_lakeLongOption___closed__15; -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lake_lake_ReservoirConfig_currentSchemaVersion; static lean_object* l_Lake_LakeOptions_mkLoadConfig___closed__2; extern lean_object* l_Lake_uiVersionString; @@ -39436,204 +39416,204 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_lake_setupFile(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = l_Lake_lake_script_list___closed__2; -x_207 = l_Lake_CliM_run___rarg___closed__1; -x_208 = l_Lake_collectArgs___at_Lake_lake_script_list___spec__4(x_206, x_207, x_1, x_2, x_3); -if (lean_obj_tag(x_208) == 0) +lean_object* x_4; lean_object* x_5; lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_201 = l_Lake_lake_script_list___closed__2; +x_202 = l_Lake_CliM_run___rarg___closed__1; +x_203 = l_Lake_collectArgs___at_Lake_lake_script_list___spec__4(x_201, x_202, x_1, x_2, x_3); +if (lean_obj_tag(x_203) == 0) { -lean_object* x_209; -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -if (lean_obj_tag(x_209) == 0) +lean_object* x_204; +x_204 = lean_ctor_get(x_203, 0); +lean_inc(x_204); +if (lean_obj_tag(x_204) == 0) { -lean_object* x_210; uint8_t x_211; -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -lean_dec(x_208); -x_211 = !lean_is_exclusive(x_209); -if (x_211 == 0) +lean_object* x_205; uint8_t x_206; +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +x_206 = !lean_is_exclusive(x_204); +if (x_206 == 0) { -x_4 = x_209; -x_5 = x_210; -goto block_205; +x_4 = x_204; +x_5 = x_205; +goto block_200; } else { -lean_object* x_212; lean_object* x_213; -x_212 = lean_ctor_get(x_209, 0); +lean_object* x_207; lean_object* x_208; +x_207 = lean_ctor_get(x_204, 0); +lean_inc(x_207); +lean_dec(x_204); +x_208 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_208, 0, x_207); +x_4 = x_208; +x_5 = x_205; +goto block_200; +} +} +else +{ +uint8_t x_209; +x_209 = !lean_is_exclusive(x_204); +if (x_209 == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_210 = lean_ctor_get(x_204, 0); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_203, 1); lean_inc(x_212); -lean_dec(x_209); -x_213 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_213, 0, x_212); -x_4 = x_213; -x_5 = x_210; -goto block_205; +lean_dec(x_203); +x_213 = !lean_is_exclusive(x_210); +if (x_213 == 0) +{ +lean_object* x_214; uint8_t x_215; +x_214 = lean_ctor_get(x_210, 0); +lean_dec(x_214); +x_215 = !lean_is_exclusive(x_211); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_216 = lean_ctor_get(x_211, 0); +x_217 = lean_ctor_get(x_211, 1); +lean_dec(x_217); +x_218 = lean_array_to_list(x_216); +x_219 = lean_box(0); +lean_ctor_set(x_211, 1, x_218); +lean_ctor_set(x_211, 0, x_219); +x_4 = x_204; +x_5 = x_212; +goto block_200; +} +else +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_220 = lean_ctor_get(x_211, 0); +lean_inc(x_220); +lean_dec(x_211); +x_221 = lean_array_to_list(x_220); +x_222 = lean_box(0); +x_223 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_223, 0, x_222); +lean_ctor_set(x_223, 1, x_221); +lean_ctor_set(x_210, 0, x_223); +x_4 = x_204; +x_5 = x_212; +goto block_200; } } else { -uint8_t x_214; -x_214 = !lean_is_exclusive(x_209); -if (x_214 == 0) -{ -lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; -x_215 = lean_ctor_get(x_209, 0); -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_208, 1); -lean_inc(x_217); -lean_dec(x_208); -x_218 = !lean_is_exclusive(x_215); -if (x_218 == 0) -{ -lean_object* x_219; uint8_t x_220; -x_219 = lean_ctor_get(x_215, 0); -lean_dec(x_219); -x_220 = !lean_is_exclusive(x_216); -if (x_220 == 0) -{ -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_221 = lean_ctor_get(x_216, 0); -x_222 = lean_ctor_get(x_216, 1); -lean_dec(x_222); -x_223 = lean_array_to_list(x_221); -x_224 = lean_box(0); -lean_ctor_set(x_216, 1, x_223); -lean_ctor_set(x_216, 0, x_224); -x_4 = x_209; -x_5 = x_217; -goto block_205; -} -else -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_225 = lean_ctor_get(x_216, 0); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_224 = lean_ctor_get(x_210, 1); +lean_inc(x_224); +lean_dec(x_210); +x_225 = lean_ctor_get(x_211, 0); lean_inc(x_225); -lean_dec(x_216); -x_226 = lean_array_to_list(x_225); -x_227 = lean_box(0); -x_228 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_226); -lean_ctor_set(x_215, 0, x_228); -x_4 = x_209; -x_5 = x_217; -goto block_205; +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_226 = x_211; +} else { + lean_dec_ref(x_211); + x_226 = lean_box(0); +} +x_227 = lean_array_to_list(x_225); +x_228 = lean_box(0); +if (lean_is_scalar(x_226)) { + x_229 = lean_alloc_ctor(0, 2, 0); +} else { + x_229 = x_226; +} +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_227); +x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_224); +lean_ctor_set(x_204, 0, x_230); +x_4 = x_204; +x_5 = x_212; +goto block_200; } } else { -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_229 = lean_ctor_get(x_215, 1); -lean_inc(x_229); -lean_dec(x_215); -x_230 = lean_ctor_get(x_216, 0); -lean_inc(x_230); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_231 = x_216; +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_231 = lean_ctor_get(x_204, 0); +lean_inc(x_231); +lean_dec(x_204); +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_203, 1); +lean_inc(x_233); +lean_dec(x_203); +x_234 = lean_ctor_get(x_231, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_235 = x_231; } else { - lean_dec_ref(x_216); - x_231 = lean_box(0); + lean_dec_ref(x_231); + x_235 = lean_box(0); } -x_232 = lean_array_to_list(x_230); -x_233 = lean_box(0); -if (lean_is_scalar(x_231)) { - x_234 = lean_alloc_ctor(0, 2, 0); -} else { - x_234 = x_231; -} -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, 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_229); -lean_ctor_set(x_209, 0, x_235); -x_4 = x_209; -x_5 = x_217; -goto block_205; -} -} -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; -x_236 = lean_ctor_get(x_209, 0); +x_236 = lean_ctor_get(x_232, 0); lean_inc(x_236); -lean_dec(x_209); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_208, 1); -lean_inc(x_238); -lean_dec(x_208); -x_239 = lean_ctor_get(x_236, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_240 = x_236; +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_237 = x_232; } else { - lean_dec_ref(x_236); - x_240 = lean_box(0); + lean_dec_ref(x_232); + x_237 = lean_box(0); } -x_241 = lean_ctor_get(x_237, 0); -lean_inc(x_241); -if (lean_is_exclusive(x_237)) { - lean_ctor_release(x_237, 0); - lean_ctor_release(x_237, 1); - x_242 = x_237; +x_238 = lean_array_to_list(x_236); +x_239 = lean_box(0); +if (lean_is_scalar(x_237)) { + x_240 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_237); - x_242 = lean_box(0); + x_240 = x_237; } -x_243 = lean_array_to_list(x_241); -x_244 = lean_box(0); -if (lean_is_scalar(x_242)) { - x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_238); +if (lean_is_scalar(x_235)) { + x_241 = lean_alloc_ctor(0, 2, 0); } else { - x_245 = x_242; + x_241 = x_235; } -lean_ctor_set(x_245, 0, x_244); -lean_ctor_set(x_245, 1, x_243); -if (lean_is_scalar(x_240)) { - x_246 = lean_alloc_ctor(0, 2, 0); -} else { - x_246 = x_240; -} -lean_ctor_set(x_246, 0, x_245); -lean_ctor_set(x_246, 1, x_239); -x_247 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_247, 0, x_246); -x_4 = x_247; -x_5 = x_238; -goto block_205; +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_234); +x_242 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_242, 0, x_241); +x_4 = x_242; +x_5 = x_233; +goto block_200; } } } else { -uint8_t x_248; -x_248 = !lean_is_exclusive(x_208); -if (x_248 == 0) +uint8_t x_243; +x_243 = !lean_is_exclusive(x_203); +if (x_243 == 0) { -return x_208; +return x_203; } else { -lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_249 = lean_ctor_get(x_208, 0); -x_250 = lean_ctor_get(x_208, 1); -lean_inc(x_250); -lean_inc(x_249); -lean_dec(x_208); -x_251 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_251, 0, x_249); -lean_ctor_set(x_251, 1, x_250); -return x_251; +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_203, 0); +x_245 = lean_ctor_get(x_203, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_203); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; } } -block_205: +block_200: { if (lean_obj_tag(x_4) == 0) { @@ -39667,7 +39647,7 @@ uint8_t x_11; x_11 = !lean_is_exclusive(x_4); if (x_11 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_117; lean_object* x_118; lean_object* x_131; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_113; lean_object* x_114; lean_object* x_127; x_12 = lean_ctor_get(x_4, 0); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -39692,35 +39672,35 @@ if (lean_is_exclusive(x_13)) { x_17 = lean_box(0); } lean_inc(x_14); -x_131 = l_Lake_LakeOptions_mkLoadConfig(x_14, x_5); -if (lean_obj_tag(x_131) == 0) +x_127 = l_Lake_LakeOptions_mkLoadConfig(x_14, x_5); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_132; lean_object* x_133; -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); -lean_dec(x_131); -lean_ctor_set(x_4, 0, x_132); -x_117 = x_4; -x_118 = x_133; -goto block_130; +lean_object* x_128; lean_object* x_129; +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +lean_ctor_set(x_4, 0, x_128); +x_113 = x_4; +x_114 = x_129; +goto block_126; } else { -lean_object* x_134; lean_object* x_135; -x_134 = lean_ctor_get(x_131, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_131, 1); -lean_inc(x_135); -lean_dec(x_131); +lean_object* x_130; lean_object* x_131; +x_130 = lean_ctor_get(x_127, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_127, 1); +lean_inc(x_131); +lean_dec(x_127); lean_ctor_set_tag(x_4, 0); -lean_ctor_set(x_4, 0, x_134); -x_117 = x_4; -x_118 = x_135; -goto block_130; +lean_ctor_set(x_4, 0, x_130); +x_113 = x_4; +x_114 = x_131; +goto block_126; } -block_116: +block_112: { if (lean_obj_tag(x_18) == 0) { @@ -39850,735 +39830,733 @@ lean_dec(x_51); x_52 = !lean_is_exclusive(x_47); if (x_52 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_object* x_53; lean_object* x_54; lean_object* x_55; x_53 = lean_ctor_get(x_47, 0); x_54 = lean_ctor_get(x_47, 1); -x_55 = lean_box(0); -x_56 = l_Lake_setupFile(x_28, x_53, x_54, x_31, x_48); -if (lean_obj_tag(x_56) == 0) +x_55 = l_Lake_setupFile(x_28, x_53, x_31, x_48); +if (lean_obj_tag(x_55) == 0) { -uint8_t x_57; -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +uint8_t x_56; +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) { -lean_object* x_58; -x_58 = lean_ctor_get(x_56, 0); -lean_ctor_set(x_47, 1, x_55); -lean_ctor_set(x_47, 0, x_58); -lean_ctor_set(x_56, 0, x_34); -return x_56; +lean_object* x_57; +x_57 = lean_ctor_get(x_55, 0); +lean_ctor_set(x_47, 0, x_57); +lean_ctor_set(x_55, 0, x_34); +return x_55; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_56, 0); -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_55, 0); +x_59 = lean_ctor_get(x_55, 1); lean_inc(x_59); -lean_dec(x_56); -lean_ctor_set(x_47, 1, x_55); -lean_ctor_set(x_47, 0, x_59); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_34); -lean_ctor_set(x_61, 1, x_60); -return x_61; +lean_inc(x_58); +lean_dec(x_55); +lean_ctor_set(x_47, 0, x_58); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_34); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } else { -uint8_t x_62; +uint8_t x_61; lean_free_object(x_47); +lean_dec(x_54); lean_free_object(x_46); lean_dec(x_50); lean_free_object(x_34); -x_62 = !lean_is_exclusive(x_56); -if (x_62 == 0) +x_61 = !lean_is_exclusive(x_55); +if (x_61 == 0) { -return x_56; +return x_55; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_56, 0); -x_64 = lean_ctor_get(x_56, 1); -lean_inc(x_64); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_55, 0); +x_63 = lean_ctor_get(x_55, 1); lean_inc(x_63); -lean_dec(x_56); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; +lean_inc(x_62); +lean_dec(x_55); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; } } } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_66 = lean_ctor_get(x_47, 0); -x_67 = lean_ctor_get(x_47, 1); -lean_inc(x_67); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_47, 0); +x_66 = lean_ctor_get(x_47, 1); lean_inc(x_66); +lean_inc(x_65); lean_dec(x_47); -x_68 = lean_box(0); -x_69 = l_Lake_setupFile(x_28, x_66, x_67, x_31, x_48); -if (lean_obj_tag(x_69) == 0) +x_67 = l_Lake_setupFile(x_28, x_65, x_31, x_48); +if (lean_obj_tag(x_67) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_72 = x_69; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_70 = x_67; } else { - lean_dec_ref(x_69); - x_72 = lean_box(0); + lean_dec_ref(x_67); + x_70 = lean_box(0); } -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_68); -lean_ctor_set(x_46, 0, x_73); -if (lean_is_scalar(x_72)) { - x_74 = lean_alloc_ctor(0, 2, 0); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_66); +lean_ctor_set(x_46, 0, x_71); +if (lean_is_scalar(x_70)) { + x_72 = lean_alloc_ctor(0, 2, 0); } else { - x_74 = x_72; + x_72 = x_70; } -lean_ctor_set(x_74, 0, x_34); -lean_ctor_set(x_74, 1, x_71); -return x_74; +lean_ctor_set(x_72, 0, x_34); +lean_ctor_set(x_72, 1, x_69); +return x_72; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_66); lean_free_object(x_46); lean_dec(x_50); lean_free_object(x_34); -x_75 = lean_ctor_get(x_69, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_69, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_77 = x_69; +x_73 = lean_ctor_get(x_67, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_67, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_75 = x_67; } else { - lean_dec_ref(x_69); - x_77 = lean_box(0); + lean_dec_ref(x_67); + x_75 = lean_box(0); } -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); } else { - x_78 = x_77; + x_76 = x_75; } -lean_ctor_set(x_78, 0, x_75); -lean_ctor_set(x_78, 1, x_76); -return x_78; +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +return x_76; } } } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_79 = lean_ctor_get(x_46, 1); -lean_inc(x_79); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_77 = lean_ctor_get(x_46, 1); +lean_inc(x_77); lean_dec(x_46); -x_80 = lean_ctor_get(x_47, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_47, 1); -lean_inc(x_81); +x_78 = lean_ctor_get(x_47, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_47, 1); +lean_inc(x_79); if (lean_is_exclusive(x_47)) { lean_ctor_release(x_47, 0); lean_ctor_release(x_47, 1); - x_82 = x_47; + x_80 = x_47; } else { lean_dec_ref(x_47); - x_82 = lean_box(0); + x_80 = lean_box(0); } -x_83 = lean_box(0); -x_84 = l_Lake_setupFile(x_28, x_80, x_81, x_31, x_48); -if (lean_obj_tag(x_84) == 0) +x_81 = l_Lake_setupFile(x_28, x_78, x_31, x_48); +if (lean_obj_tag(x_81) == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_84 = x_81; +} else { + lean_dec_ref(x_81); + x_84 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_80; +} +lean_ctor_set(x_85, 0, x_82); +lean_ctor_set(x_85, 1, x_79); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_77); +lean_ctor_set(x_34, 0, x_86); +if (lean_is_scalar(x_84)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { x_87 = x_84; -} else { - lean_dec_ref(x_84); - x_87 = lean_box(0); } -if (lean_is_scalar(x_82)) { - x_88 = lean_alloc_ctor(0, 2, 0); -} else { - x_88 = x_82; -} -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_83); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_79); -lean_ctor_set(x_34, 0, x_89); -if (lean_is_scalar(x_87)) { - x_90 = lean_alloc_ctor(0, 2, 0); -} else { - x_90 = x_87; -} -lean_ctor_set(x_90, 0, x_34); -lean_ctor_set(x_90, 1, x_86); -return x_90; +lean_ctor_set(x_87, 0, x_34); +lean_ctor_set(x_87, 1, x_83); +return x_87; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_82); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_80); lean_dec(x_79); +lean_dec(x_77); lean_free_object(x_34); -x_91 = lean_ctor_get(x_84, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_84, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_93 = x_84; +x_88 = lean_ctor_get(x_81, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_81, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_90 = x_81; } else { - lean_dec_ref(x_84); - x_93 = lean_box(0); + lean_dec_ref(x_81); + x_90 = lean_box(0); } -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); } else { - x_94 = x_93; + x_91 = x_90; } -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); -return x_94; +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; } } } 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_object* x_104; -x_95 = lean_ctor_get(x_34, 0); -lean_inc(x_95); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_92 = lean_ctor_get(x_34, 0); +lean_inc(x_92); lean_dec(x_34); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_33, 1); -lean_inc(x_97); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_33, 1); +lean_inc(x_94); lean_dec(x_33); -x_98 = lean_ctor_get(x_95, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_99 = x_95; +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_96 = x_92; } else { - lean_dec_ref(x_95); + lean_dec_ref(x_92); + x_96 = lean_box(0); +} +x_97 = lean_ctor_get(x_93, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_93, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_99 = x_93; +} else { + lean_dec_ref(x_93); x_99 = lean_box(0); } -x_100 = lean_ctor_get(x_96, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_96, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_102 = x_96; -} else { - lean_dec_ref(x_96); - x_102 = lean_box(0); -} -x_103 = lean_box(0); -x_104 = l_Lake_setupFile(x_28, x_100, x_101, x_31, x_97); -if (lean_obj_tag(x_104) == 0) +x_100 = l_Lake_setupFile(x_28, x_97, x_31, x_94); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_107 = x_104; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_103 = x_100; } else { - lean_dec_ref(x_104); - x_107 = lean_box(0); + lean_dec_ref(x_100); + x_103 = lean_box(0); } -if (lean_is_scalar(x_102)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_102; -} -lean_ctor_set(x_108, 0, x_105); -lean_ctor_set(x_108, 1, x_103); if (lean_is_scalar(x_99)) { - x_109 = lean_alloc_ctor(0, 2, 0); + x_104 = lean_alloc_ctor(0, 2, 0); } else { - x_109 = x_99; + x_104 = x_99; } -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_98); -x_110 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_110, 0, x_109); -if (lean_is_scalar(x_107)) { - x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_98); +if (lean_is_scalar(x_96)) { + x_105 = lean_alloc_ctor(0, 2, 0); } else { - x_111 = x_107; + x_105 = x_96; } -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_106); -return x_111; +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_95); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_105); +if (lean_is_scalar(x_103)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_103; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_102); +return x_107; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_102); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_dec(x_99); lean_dec(x_98); -x_112 = lean_ctor_get(x_104, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_104, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_114 = x_104; +lean_dec(x_96); +lean_dec(x_95); +x_108 = lean_ctor_get(x_100, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_100, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_110 = x_100; } else { - lean_dec_ref(x_104); - x_114 = lean_box(0); + lean_dec_ref(x_100); + x_110 = lean_box(0); } -if (lean_is_scalar(x_114)) { - x_115 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); } else { - x_115 = x_114; + x_111 = x_110; } -lean_ctor_set(x_115, 0, x_112); -lean_ctor_set(x_115, 1, x_113); -return x_115; +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +return x_111; } } } } } -block_130: +block_126: { -if (lean_obj_tag(x_117) == 0) +if (lean_obj_tag(x_113) == 0) { -uint8_t x_119; +uint8_t x_115; lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); -x_119 = !lean_is_exclusive(x_117); -if (x_119 == 0) +x_115 = !lean_is_exclusive(x_113); +if (x_115 == 0) { +x_18 = x_113; +x_19 = x_114; +goto block_112; +} +else +{ +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_113, 0); +lean_inc(x_116); +lean_dec(x_113); +x_117 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_117, 0, x_116); x_18 = x_117; -x_19 = x_118; -goto block_116; -} -else -{ -lean_object* x_120; lean_object* x_121; -x_120 = lean_ctor_get(x_117, 0); -lean_inc(x_120); -lean_dec(x_117); -x_121 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_121, 0, x_120); -x_18 = x_121; -x_19 = x_118; -goto block_116; +x_19 = x_114; +goto block_112; } } else { -uint8_t x_122; -x_122 = !lean_is_exclusive(x_117); -if (x_122 == 0) +uint8_t x_118; +x_118 = !lean_is_exclusive(x_113); +if (x_118 == 0) { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_117, 0); +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_113, 0); if (lean_is_scalar(x_17)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_17; +} +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_16); +lean_inc(x_14); +if (lean_is_scalar(x_15)) { + x_121 = lean_alloc_ctor(0, 2, 0); +} else { + x_121 = x_15; +} +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_14); +lean_ctor_set(x_113, 0, x_121); +x_18 = x_113; +x_19 = x_114; +goto block_112; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_122 = lean_ctor_get(x_113, 0); +lean_inc(x_122); +lean_dec(x_113); +if (lean_is_scalar(x_17)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_17; +} +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_16); +lean_inc(x_14); +if (lean_is_scalar(x_15)) { x_124 = lean_alloc_ctor(0, 2, 0); } else { - x_124 = x_17; + x_124 = x_15; } lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_16); -lean_inc(x_14); -if (lean_is_scalar(x_15)) { - x_125 = lean_alloc_ctor(0, 2, 0); -} else { - x_125 = x_15; -} +lean_ctor_set(x_124, 1, x_14); +x_125 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_14); -lean_ctor_set(x_117, 0, x_125); -x_18 = x_117; -x_19 = x_118; -goto block_116; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_126 = lean_ctor_get(x_117, 0); -lean_inc(x_126); -lean_dec(x_117); -if (lean_is_scalar(x_17)) { - x_127 = lean_alloc_ctor(0, 2, 0); -} else { - x_127 = x_17; -} -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_16); -lean_inc(x_14); -if (lean_is_scalar(x_15)) { - x_128 = lean_alloc_ctor(0, 2, 0); -} else { - x_128 = x_15; -} -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_14); -x_129 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_129, 0, x_128); -x_18 = x_129; -x_19 = x_118; -goto block_116; +x_18 = x_125; +x_19 = x_114; +goto block_112; } } } } else { -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_187; lean_object* x_188; lean_object* x_198; -x_136 = lean_ctor_get(x_4, 0); -lean_inc(x_136); +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_182; lean_object* x_183; lean_object* x_193; +x_132 = lean_ctor_get(x_4, 0); +lean_inc(x_132); lean_dec(x_4); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_139 = x_136; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_135 = x_132; } else { - lean_dec_ref(x_136); - x_139 = lean_box(0); + lean_dec_ref(x_132); + x_135 = lean_box(0); } -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_141 = x_137; +x_136 = lean_ctor_get(x_133, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_137 = x_133; } else { - lean_dec_ref(x_137); + lean_dec_ref(x_133); + x_137 = lean_box(0); +} +lean_inc(x_134); +x_193 = l_Lake_LakeOptions_mkLoadConfig(x_134, x_5); +if (lean_obj_tag(x_193) == 0) +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 1); +lean_inc(x_195); +lean_dec(x_193); +x_196 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_196, 0, x_194); +x_182 = x_196; +x_183 = x_195; +goto block_192; +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_193, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_193, 1); +lean_inc(x_198); +lean_dec(x_193); +x_199 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_199, 0, x_197); +x_182 = x_199; +x_183 = x_198; +goto block_192; +} +block_181: +{ +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_134); +x_140 = lean_ctor_get(x_138, 0); +lean_inc(x_140); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + x_141 = x_138; +} else { + lean_dec_ref(x_138); x_141 = lean_box(0); } -lean_inc(x_138); -x_198 = l_Lake_LakeOptions_mkLoadConfig(x_138, x_5); -if (lean_obj_tag(x_198) == 0) -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); -lean_dec(x_198); -x_201 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_201, 0, x_199); -x_187 = x_201; -x_188 = x_200; -goto block_197; +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(0, 1, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_140); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_139); +return x_143; } else { -lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_202 = lean_ctor_get(x_198, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_198, 1); -lean_inc(x_203); -lean_dec(x_198); -x_204 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_204, 0, x_202); -x_187 = x_204; -x_188 = x_203; -goto block_197; -} -block_186: -{ -if (lean_obj_tag(x_142) == 0) -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_dec(x_138); -x_144 = lean_ctor_get(x_142, 0); +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; +x_144 = lean_ctor_get(x_138, 0); lean_inc(x_144); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - x_145 = x_142; +lean_dec(x_138); +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +lean_dec(x_144); +x_147 = lean_ctor_get(x_145, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_145, 1); +lean_inc(x_148); +lean_dec(x_145); +x_149 = lean_box(1); +x_150 = l_Lake_LakeOptions_mkBuildConfig(x_134, x_149); +lean_dec(x_134); +x_151 = l_Lake_lake_setupFile___closed__1; +x_152 = l_Lake_takeArg(x_151, x_148, x_146, x_139); +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +if (lean_obj_tag(x_153) == 0) +{ +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_dec(x_150); +lean_dec(x_147); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_155 = x_152; } else { - lean_dec_ref(x_142); - x_145 = lean_box(0); + lean_dec_ref(x_152); + x_155 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(0, 1, 0); +x_156 = lean_ctor_get(x_153, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + x_157 = x_153; } else { - x_146 = x_145; + lean_dec_ref(x_153); + x_157 = lean_box(0); } -lean_ctor_set(x_146, 0, x_144); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_143); -return x_147; +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(0, 1, 0); +} else { + x_158 = x_157; +} +lean_ctor_set(x_158, 0, x_156); +if (lean_is_scalar(x_155)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_155; +} +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_154); +return x_159; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_148 = lean_ctor_get(x_142, 0); -lean_inc(x_148); -lean_dec(x_142); -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_148, 1); -lean_inc(x_150); -lean_dec(x_148); -x_151 = lean_ctor_get(x_149, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_149, 1); -lean_inc(x_152); -lean_dec(x_149); -x_153 = lean_box(1); -x_154 = l_Lake_LakeOptions_mkBuildConfig(x_138, x_153); -lean_dec(x_138); -x_155 = l_Lake_lake_setupFile___closed__1; -x_156 = l_Lake_takeArg(x_155, x_152, x_150, x_143); -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -if (lean_obj_tag(x_157) == 0) -{ -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_dec(x_154); -lean_dec(x_151); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_159 = x_156; -} else { - lean_dec_ref(x_156); - x_159 = lean_box(0); -} -x_160 = lean_ctor_get(x_157, 0); +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_160 = lean_ctor_get(x_153, 0); lean_inc(x_160); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - x_161 = x_157; +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + x_161 = x_153; } else { - lean_dec_ref(x_157); + lean_dec_ref(x_153); x_161 = lean_box(0); } -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(0, 1, 0); -} else { - x_162 = x_161; -} -lean_ctor_set(x_162, 0, x_160); -if (lean_is_scalar(x_159)) { - x_163 = lean_alloc_ctor(0, 2, 0); -} else { - x_163 = x_159; -} -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_158); -return x_163; -} -else -{ -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; -x_164 = lean_ctor_get(x_157, 0); +x_162 = lean_ctor_get(x_160, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_152, 1); +lean_inc(x_163); +lean_dec(x_152); +x_164 = lean_ctor_get(x_160, 1); lean_inc(x_164); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - x_165 = x_157; +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_165 = x_160; } else { - lean_dec_ref(x_157); + lean_dec_ref(x_160); x_165 = lean_box(0); } -x_166 = lean_ctor_get(x_164, 0); +x_166 = lean_ctor_get(x_162, 0); lean_inc(x_166); -x_167 = lean_ctor_get(x_156, 1); +x_167 = lean_ctor_get(x_162, 1); lean_inc(x_167); -lean_dec(x_156); -x_168 = lean_ctor_get(x_164, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_169 = x_164; +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_168 = x_162; } else { - lean_dec_ref(x_164); - x_169 = lean_box(0); + lean_dec_ref(x_162); + x_168 = lean_box(0); } -x_170 = lean_ctor_get(x_166, 0); +x_169 = l_Lake_setupFile(x_147, x_166, x_150, x_163); +if (lean_obj_tag(x_169) == 0) +{ +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; +x_170 = lean_ctor_get(x_169, 0); lean_inc(x_170); -x_171 = lean_ctor_get(x_166, 1); +x_171 = lean_ctor_get(x_169, 1); lean_inc(x_171); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_172 = x_166; +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + x_172 = x_169; } else { - lean_dec_ref(x_166); + lean_dec_ref(x_169); x_172 = lean_box(0); } -x_173 = lean_box(0); -x_174 = l_Lake_setupFile(x_151, x_170, x_171, x_154, x_167); -if (lean_obj_tag(x_174) == 0) -{ -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; -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_177 = x_174; +if (lean_is_scalar(x_168)) { + x_173 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_174); - x_177 = lean_box(0); + x_173 = x_168; } -if (lean_is_scalar(x_172)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_172; -} -lean_ctor_set(x_178, 0, x_175); -lean_ctor_set(x_178, 1, x_173); -if (lean_is_scalar(x_169)) { - x_179 = lean_alloc_ctor(0, 2, 0); -} else { - x_179 = x_169; -} -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_168); +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_167); if (lean_is_scalar(x_165)) { - x_180 = lean_alloc_ctor(1, 1, 0); + x_174 = lean_alloc_ctor(0, 2, 0); } else { - x_180 = x_165; + x_174 = x_165; } -lean_ctor_set(x_180, 0, x_179); -if (lean_is_scalar(x_177)) { - x_181 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_164); +if (lean_is_scalar(x_161)) { + x_175 = lean_alloc_ctor(1, 1, 0); } else { - x_181 = x_177; + x_175 = x_161; } -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_176); -return x_181; +lean_ctor_set(x_175, 0, x_174); +if (lean_is_scalar(x_172)) { + x_176 = lean_alloc_ctor(0, 2, 0); +} else { + x_176 = x_172; +} +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_171); +return x_176; } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -lean_dec(x_172); -lean_dec(x_169); +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_dec(x_168); +lean_dec(x_167); lean_dec(x_165); -x_182 = lean_ctor_get(x_174, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_174, 1); -lean_inc(x_183); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_184 = x_174; +lean_dec(x_164); +lean_dec(x_161); +x_177 = lean_ctor_get(x_169, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_169, 1); +lean_inc(x_178); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + x_179 = x_169; } else { - lean_dec_ref(x_174); - x_184 = lean_box(0); + lean_dec_ref(x_169); + x_179 = lean_box(0); } -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_179)) { + x_180 = lean_alloc_ctor(1, 2, 0); } else { - x_185 = x_184; + x_180 = x_179; } -lean_ctor_set(x_185, 0, x_182); -lean_ctor_set(x_185, 1, x_183); -return x_185; +lean_ctor_set(x_180, 0, x_177); +lean_ctor_set(x_180, 1, x_178); +return x_180; } } } } -block_197: +block_192: { -if (lean_obj_tag(x_187) == 0) +if (lean_obj_tag(x_182) == 0) { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_141); -lean_dec(x_140); -lean_dec(x_139); -x_189 = lean_ctor_get(x_187, 0); -lean_inc(x_189); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - x_190 = x_187; +lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_137); +lean_dec(x_136); +lean_dec(x_135); +x_184 = lean_ctor_get(x_182, 0); +lean_inc(x_184); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + x_185 = x_182; } else { - lean_dec_ref(x_187); - x_190 = lean_box(0); + lean_dec_ref(x_182); + x_185 = lean_box(0); } -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(0, 1, 0); +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(0, 1, 0); } else { - x_191 = x_190; + x_186 = x_185; } -lean_ctor_set(x_191, 0, x_189); -x_142 = x_191; -x_143 = x_188; -goto block_186; +lean_ctor_set(x_186, 0, x_184); +x_138 = x_186; +x_139 = x_183; +goto block_181; } else { -lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_192 = lean_ctor_get(x_187, 0); -lean_inc(x_192); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - x_193 = x_187; +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_187 = lean_ctor_get(x_182, 0); +lean_inc(x_187); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + x_188 = x_182; } else { - lean_dec_ref(x_187); - x_193 = lean_box(0); + lean_dec_ref(x_182); + x_188 = lean_box(0); } -if (lean_is_scalar(x_141)) { - x_194 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_137)) { + x_189 = lean_alloc_ctor(0, 2, 0); } else { - x_194 = x_141; + x_189 = x_137; } -lean_ctor_set(x_194, 0, x_192); -lean_ctor_set(x_194, 1, x_140); -lean_inc(x_138); -if (lean_is_scalar(x_139)) { - x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 1, x_136); +lean_inc(x_134); +if (lean_is_scalar(x_135)) { + x_190 = lean_alloc_ctor(0, 2, 0); } else { - x_195 = x_139; + x_190 = x_135; } -lean_ctor_set(x_195, 0, x_194); -lean_ctor_set(x_195, 1, x_138); -if (lean_is_scalar(x_193)) { - x_196 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_134); +if (lean_is_scalar(x_188)) { + x_191 = lean_alloc_ctor(1, 1, 0); } else { - x_196 = x_193; + x_191 = x_188; } -lean_ctor_set(x_196, 0, x_195); -x_142 = x_196; -x_143 = x_188; -goto block_186; +lean_ctor_set(x_191, 0, x_190); +x_138 = x_191; +x_139 = x_183; +goto block_181; } } } @@ -50828,130 +50806,391 @@ return x_18; } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1___closed__1() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--load-dynlib", 13, 13); +x_1 = lean_mk_string_unchecked("module setup: ", 14, 14); return x_1; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; -x_8 = lean_array_uget(x_3, x_5); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1___closed__1; -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = lean_array_mk(x_13); -x_15 = l_Array_append___rarg(x_6, x_14); -lean_dec(x_14); -x_16 = 1; -x_17 = lean_usize_add(x_5, x_16); -x_5 = x_17; -x_6 = x_15; -goto _start; -} -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2___closed__1() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--plugin", 8, 8); +x_1 = lean_mk_string_unchecked("--setup", 7, 7); return x_1; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) +lean_object* x_6; +x_6 = lean_io_create_tempfile(x_5); +if (lean_obj_tag(x_6) == 0) { -return x_6; +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +x_12 = l___private_Lean_Setup_0__Lean_toJsonModuleSetup____x40_Lean_Setup___hyg_1598_(x_1); +x_13 = l_Lean_Json_compress(x_12); +x_14 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__1; +x_15 = lean_string_append(x_14, x_13); +x_16 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_17 = lean_string_append(x_15, x_16); +x_18 = 0; +x_19 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set_uint8(x_19, sizeof(void*)*1, x_18); +lean_inc(x_4); +x_20 = lean_apply_2(x_4, x_19, x_8); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 1); +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +x_24 = lean_io_prim_handle_put_str(x_10, x_13, x_22); +lean_dec(x_13); +lean_dec(x_10); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +lean_dec(x_4); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +x_27 = lean_box(0); +lean_ctor_set_tag(x_20, 1); +lean_ctor_set(x_20, 1, x_27); +lean_ctor_set(x_20, 0, x_11); +x_28 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2; +lean_ctor_set_tag(x_7, 1); +lean_ctor_set(x_7, 1, x_20); +lean_ctor_set(x_7, 0, x_28); +x_29 = lean_array_mk(x_7); +x_30 = l_Array_append___rarg(x_2, x_29); +lean_dec(x_29); +lean_ctor_set(x_24, 0, x_30); +return x_24; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; -x_8 = lean_array_uget(x_3, x_5); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2___closed__1; -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = lean_array_mk(x_13); -x_15 = l_Array_append___rarg(x_6, x_14); -lean_dec(x_14); -x_16 = 1; -x_17 = lean_usize_add(x_5, x_16); -x_5 = x_17; -x_6 = x_15; -goto _start; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_dec(x_24); +x_32 = lean_box(0); +lean_ctor_set_tag(x_20, 1); +lean_ctor_set(x_20, 1, x_32); +lean_ctor_set(x_20, 0, x_11); +x_33 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2; +lean_ctor_set_tag(x_7, 1); +lean_ctor_set(x_7, 1, x_20); +lean_ctor_set(x_7, 0, x_33); +x_34 = lean_array_mk(x_7); +x_35 = l_Array_append___rarg(x_2, x_34); +lean_dec(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_31); +return x_36; } } -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: +else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; size_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; -x_6 = lean_ctor_get(x_1, 0); -x_7 = lean_ctor_get(x_1, 1); -x_8 = lean_box(0); -x_9 = lean_array_size(x_6); -x_10 = 0; -x_11 = l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1(x_6, x_8, x_6, x_9, x_10, x_4); -x_12 = lean_array_size(x_7); -x_13 = l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2(x_7, x_8, x_7, x_12, x_10, x_11); -x_14 = lean_ctor_get(x_2, 1); -lean_inc(x_14); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_ctor_get(x_15, 7); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Array_append___rarg(x_13, x_3); -x_18 = lean_box(0); -x_19 = l_Lake_Workspace_augmentedEnvVars(x_2); -x_20 = l_Lake_lake_env___lambda__1___closed__1; -x_21 = 1; -x_22 = 0; -x_23 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_16); -lean_ctor_set(x_23, 2, x_17); -lean_ctor_set(x_23, 3, x_18); -lean_ctor_set(x_23, 4, x_19); -lean_ctor_set_uint8(x_23, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_23, sizeof(void*)*5 + 1, x_22); -return x_23; +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +lean_free_object(x_20); +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_2); +x_37 = lean_ctor_get(x_24, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_24, 1); +lean_inc(x_38); +lean_dec(x_24); +x_39 = lean_io_error_to_string(x_37); +x_40 = 3; +x_41 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set_uint8(x_41, sizeof(void*)*1, x_40); +x_42 = lean_apply_2(x_4, x_41, x_38); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +x_45 = lean_box(0); +lean_ctor_set_tag(x_42, 1); +lean_ctor_set(x_42, 0, x_45); +return x_42; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_42, 1); +lean_inc(x_46); +lean_dec(x_42); +x_47 = lean_box(0); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___closed__1() { +} +else +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_20, 1); +lean_inc(x_49); +lean_dec(x_20); +x_50 = lean_io_prim_handle_put_str(x_10, x_13, x_49); +lean_dec(x_13); +lean_dec(x_10); +if (lean_obj_tag(x_50) == 0) +{ +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_dec(x_4); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_52 = x_50; +} else { + lean_dec_ref(x_50); + x_52 = lean_box(0); +} +x_53 = lean_box(0); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_11); +lean_ctor_set(x_54, 1, x_53); +x_55 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2; +lean_ctor_set_tag(x_7, 1); +lean_ctor_set(x_7, 1, x_54); +lean_ctor_set(x_7, 0, x_55); +x_56 = lean_array_mk(x_7); +x_57 = l_Array_append___rarg(x_2, x_56); +lean_dec(x_56); +if (lean_is_scalar(x_52)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_52; +} +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_51); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t 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_free_object(x_7); +lean_dec(x_11); +lean_dec(x_2); +x_59 = lean_ctor_get(x_50, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_50, 1); +lean_inc(x_60); +lean_dec(x_50); +x_61 = lean_io_error_to_string(x_59); +x_62 = 3; +x_63 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set_uint8(x_63, sizeof(void*)*1, x_62); +x_64 = lean_apply_2(x_4, x_63, x_60); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_66 = x_64; +} else { + lean_dec_ref(x_64); + x_66 = lean_box(0); +} +x_67 = lean_box(0); +if (lean_is_scalar(x_66)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_66; + lean_ctor_set_tag(x_68, 1); +} +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_65); +return x_68; +} +} +} +else +{ +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; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_69 = lean_ctor_get(x_7, 0); +x_70 = lean_ctor_get(x_7, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_7); +x_71 = l___private_Lean_Setup_0__Lean_toJsonModuleSetup____x40_Lean_Setup___hyg_1598_(x_1); +x_72 = l_Lean_Json_compress(x_71); +x_73 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__1; +x_74 = lean_string_append(x_73, x_72); +x_75 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_76 = lean_string_append(x_74, x_75); +x_77 = 0; +x_78 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set_uint8(x_78, sizeof(void*)*1, x_77); +lean_inc(x_4); +x_79 = lean_apply_2(x_4, x_78, x_8); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_81 = x_79; +} else { + lean_dec_ref(x_79); + x_81 = lean_box(0); +} +x_82 = lean_io_prim_handle_put_str(x_69, x_72, x_80); +lean_dec(x_72); +lean_dec(x_69); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_4); +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_84 = x_82; +} else { + lean_dec_ref(x_82); + x_84 = lean_box(0); +} +x_85 = lean_box(0); +if (lean_is_scalar(x_81)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_81; + lean_ctor_set_tag(x_86, 1); +} +lean_ctor_set(x_86, 0, x_70); +lean_ctor_set(x_86, 1, x_85); +x_87 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2; +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +x_89 = lean_array_mk(x_88); +x_90 = l_Array_append___rarg(x_2, x_89); +lean_dec(x_89); +if (lean_is_scalar(x_84)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_84; +} +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_83); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t 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_dec(x_81); +lean_dec(x_70); +lean_dec(x_2); +x_92 = lean_ctor_get(x_82, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_82, 1); +lean_inc(x_93); +lean_dec(x_82); +x_94 = lean_io_error_to_string(x_92); +x_95 = 3; +x_96 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set_uint8(x_96, sizeof(void*)*1, x_95); +x_97 = lean_apply_2(x_4, x_96, x_93); +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_99 = x_97; +} else { + lean_dec_ref(x_97); + x_99 = lean_box(0); +} +x_100 = lean_box(0); +if (lean_is_scalar(x_99)) { + x_101 = lean_alloc_ctor(1, 2, 0); +} else { + x_101 = x_99; + lean_ctor_set_tag(x_101, 1); +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +return x_101; +} +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; +lean_dec(x_2); +lean_dec(x_1); +x_102 = lean_ctor_get(x_6, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_6, 1); +lean_inc(x_103); +lean_dec(x_6); +x_104 = lean_io_error_to_string(x_102); +x_105 = 3; +x_106 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set_uint8(x_106, sizeof(void*)*1, x_105); +x_107 = lean_apply_2(x_4, x_106, x_103); +x_108 = !lean_is_exclusive(x_107); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; +x_109 = lean_ctor_get(x_107, 0); +lean_dec(x_109); +x_110 = lean_box(0); +lean_ctor_set_tag(x_107, 1); +lean_ctor_set(x_107, 0, x_110); +return x_107; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_107, 1); +lean_inc(x_111); +lean_dec(x_107); +x_112 = lean_box(0); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_111); +return x_113; +} +} +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___closed__1() { _start: { lean_object* x_1; @@ -50959,28 +51198,28 @@ x_1 = lean_mk_string_unchecked("-R", 2, 2); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(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_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(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 = lean_array_push(x_6, x_3); -if (lean_obj_tag(x_5) == 0) +x_7 = lean_array_push(x_4, x_1); +if (lean_obj_tag(x_3) == 0) { lean_object* x_8; lean_object* x_9; x_8 = lean_box(0); -x_9 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___lambda__1(x_4, x_2, x_1, x_7, x_8); +x_9 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1(x_2, x_7, x_8, x_5, x_6); return x_9; } else { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_10 = lean_ctor_get(x_5, 0); +x_10 = lean_ctor_get(x_3, 0); x_11 = lean_box(0); lean_inc(x_10); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); -x_13 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___closed__1; +x_13 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___closed__1; x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); @@ -50988,387 +51227,176 @@ x_15 = lean_array_mk(x_14); x_16 = l_Array_append___rarg(x_7, x_15); lean_dec(x_15); x_17 = lean_box(0); -x_18 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___lambda__1(x_4, x_2, x_1, x_16, x_17); +x_18 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1(x_2, x_16, x_17, x_5, x_6); return x_18; } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__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) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_9 = l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__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) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_9 = l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); +x_6 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); -lean_dec(x_1); return x_6; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___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_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___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___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); +x_7 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); return x_7; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_6; -x_6 = lean_usize_dec_eq(x_3, x_4); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; -x_7 = lean_array_uget(x_2, x_3); -x_8 = lean_ctor_get(x_7, 0); +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; uint8_t x_13; uint8_t x_14; lean_object* 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; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get(x_7, 7); lean_inc(x_8); lean_dec(x_7); -x_9 = l_Lake_Workspace_findModule_x3f(x_8, x_1); -x_10 = 1; -x_11 = lean_usize_add(x_3, x_10); -if (lean_obj_tag(x_9) == 0) -{ -x_3 = x_11; -goto _start; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_9, 0); -lean_inc(x_13); -lean_dec(x_9); -x_14 = lean_array_push(x_5, x_13); -x_3 = x_11; -x_5 = x_14; -goto _start; -} -} -else -{ -return x_5; -} -} -} -LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_nat_dec_lt(x_3, x_4); -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = l_Lake_CliM_run___rarg___closed__1; -return x_6; -} -else -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_le(x_4, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = l_Lake_CliM_run___rarg___closed__1; -return x_9; -} -else -{ -size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_usize_of_nat(x_3); -x_11 = lean_usize_of_nat(x_4); -x_12 = l_Lake_CliM_run___rarg___closed__1; -x_13 = l_Array_foldlMUnsafe_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__2(x_1, x_2, x_10, x_11, x_12); -return x_13; -} -} -} -} -static lean_object* _init_l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("-D", 2, 2); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); -return x_2; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_4 = lean_ctor_get(x_3, 0); +x_9 = l_Array_append___rarg(x_3, x_2); +x_10 = lean_box(0); +x_11 = l_Lake_Workspace_augmentedEnvVars(x_1); +x_12 = l_Lake_lake_env___lambda__1___closed__1; +x_13 = 1; +x_14 = 0; +x_15 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_8); +lean_ctor_set(x_15, 2, x_9); +lean_ctor_set(x_15, 3, x_10); +lean_ctor_set(x_15, 4, x_11); +lean_ctor_set_uint8(x_15, sizeof(void*)*5, x_13); +lean_ctor_set_uint8(x_15, sizeof(void*)*5 + 1, x_14); +lean_inc(x_15); +x_16 = l_Lake_mkCmdLog(x_15); +x_17 = 0; +x_18 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_17); lean_inc(x_4); -x_5 = lean_ctor_get(x_3, 1); -lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 2); -lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 3); -lean_inc(x_7); -lean_dec(x_3); -lean_inc(x_1); -x_8 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3(x_1, x_2, x_4); -x_9 = 1; -lean_inc(x_1); -x_10 = l_Lean_Name_toString(x_5, x_9, x_1); -x_11 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Array_foldlMUnsafe_fold___at_Lake_lake_env___spec__1___closed__1; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_6); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_8, x_18); -x_2 = x_19; -x_3 = x_7; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__4(lean_object* x_1, lean_object* x_2) { -_start: +x_19 = lean_apply_2(x_4, x_18, x_5); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_io_process_spawn(x_15, x_20); +if (lean_obj_tag(x_21) == 0) { -if (lean_obj_tag(x_2) == 0) +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_io_process_child_wait(x_12, x_22, x_23); +lean_dec(x_22); +if (lean_obj_tag(x_24) == 0) { -return x_1; +uint8_t x_25; +lean_dec(x_4); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +return x_24; } else { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 3); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__4(x_1, x_3); -x_8 = 1; -x_9 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; -x_10 = l_Lean_Name_toString(x_4, x_8, x_9); -x_11 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Array_foldlMUnsafe_fold___at_Lake_lake_env___spec__1___closed__1; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_5); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_7, x_18); -x_1 = x_19; -x_2 = x_6; -goto _start; +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; } } -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); -return x_2; -} else { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_3, 1); -lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 2); -lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 3); -lean_inc(x_7); -lean_dec(x_3); -lean_inc(x_1); -x_8 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5(x_1, x_2, x_4); -x_9 = 1; -lean_inc(x_1); -x_10 = l_Lean_Name_toString(x_5, x_9, x_1); -x_11 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Array_foldlMUnsafe_fold___at_Lake_lake_env___spec__1___closed__1; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_6); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_8, x_18); -x_2 = x_19; -x_3 = x_7; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__6(lean_object* x_1, lean_object* x_2) { -_start: +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_dec(x_24); +x_31 = lean_io_error_to_string(x_29); +x_32 = 3; +x_33 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set_uint8(x_33, sizeof(void*)*1, x_32); +x_34 = lean_apply_2(x_4, x_33, x_30); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -if (lean_obj_tag(x_2) == 0) -{ -return x_1; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +x_37 = lean_box(0); +lean_ctor_set_tag(x_34, 1); +lean_ctor_set(x_34, 0, x_37); +return x_34; } else { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 3); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__6(x_1, x_3); -x_8 = 1; -x_9 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; -x_10 = l_Lean_Name_toString(x_4, x_8, x_9); -x_11 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Array_foldlMUnsafe_fold___at_Lake_lake_env___spec__1___closed__1; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_5); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_7, x_18); -x_1 = x_19; -x_2 = x_6; -goto _start; +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_34, 1); +lean_inc(x_38); +lean_dec(x_34); +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } } -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); -return x_2; -} else { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_3, 1); -lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 2); -lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 3); -lean_inc(x_7); -lean_dec(x_3); -lean_inc(x_1); -x_8 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7(x_1, x_2, x_4); -x_9 = 1; -lean_inc(x_1); -x_10 = l_Lean_Name_toString(x_5, x_9, x_1); -x_11 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Array_foldlMUnsafe_fold___at_Lake_lake_env___spec__1___closed__1; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_6); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_8, x_18); -x_2 = x_19; -x_3 = x_7; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__8(lean_object* x_1, lean_object* x_2) { -_start: +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_41 = lean_ctor_get(x_21, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_21, 1); +lean_inc(x_42); +lean_dec(x_21); +x_43 = lean_io_error_to_string(x_41); +x_44 = 3; +x_45 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*1, x_44); +x_46 = lean_apply_2(x_4, x_45, x_42); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -if (lean_obj_tag(x_2) == 0) -{ -return x_1; +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 0); +lean_dec(x_48); +x_49 = lean_box(0); +lean_ctor_set_tag(x_46, 1); +lean_ctor_set(x_46, 0, x_49); +return x_46; } else { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 3); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__8(x_1, x_3); -x_8 = 1; -x_9 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; -x_10 = l_Lean_Name_toString(x_4, x_8, x_9); -x_11 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Array_foldlMUnsafe_fold___at_Lake_lake_env___spec__1___closed__1; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_5); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_7, x_18); -x_1 = x_19; -x_2 = x_6; -goto _start; +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_46, 1); +lean_inc(x_50); +lean_dec(x_46); +x_51 = lean_box(0); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} } } } @@ -51384,37 +51412,13 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("setup (", 7, 7); +x_1 = lean_mk_string_unchecked(":setup", 6, 6); return x_1; } } static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked(")", 1, 1); -return x_1; -} -} -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_LeanOptions_append___lambda__1___boxed), 3, 0); -return x_1; -} -} -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__6() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lake_CliM_run___rarg___closed__1; @@ -51427,75 +51431,75 @@ return x_3; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile(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; lean_object* x_20; lean_object* x_21; lean_object* x_61; lean_object* x_62; lean_object* x_507; lean_object* x_508; lean_object* x_521; uint8_t x_522; +lean_object* x_7; lean_object* x_8; lean_object* x_20; lean_object* x_21; lean_object* x_348; lean_object* x_349; lean_object* x_362; uint8_t x_363; lean_inc(x_2); -x_521 = l_Lake_resolvePath(x_2, x_6); -x_522 = !lean_is_exclusive(x_521); -if (x_522 == 0) +x_362 = l_Lake_resolvePath(x_2, x_6); +x_363 = !lean_is_exclusive(x_362); +if (x_363 == 0) { -lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; uint8_t x_527; -x_523 = lean_ctor_get(x_521, 0); -x_524 = lean_ctor_get(x_521, 1); -x_525 = lean_string_utf8_byte_size(x_523); -x_526 = lean_unsigned_to_nat(0u); -x_527 = lean_nat_dec_eq(x_525, x_526); -lean_dec(x_525); -if (x_527 == 0) +lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; uint8_t x_368; +x_364 = lean_ctor_get(x_362, 0); +x_365 = lean_ctor_get(x_362, 1); +x_366 = lean_string_utf8_byte_size(x_364); +x_367 = lean_unsigned_to_nat(0u); +x_368 = lean_nat_dec_eq(x_366, x_367); +lean_dec(x_366); +if (x_368 == 0) { -lean_object* x_528; lean_object* x_529; -x_528 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_528, 0, x_523); -x_529 = l_Lake_CliM_run___rarg___closed__1; -lean_ctor_set(x_521, 1, x_529); -lean_ctor_set(x_521, 0, x_528); -x_507 = x_521; -x_508 = x_524; -goto block_520; +lean_object* x_369; lean_object* x_370; +x_369 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_369, 0, x_364); +x_370 = l_Lake_CliM_run___rarg___closed__1; +lean_ctor_set(x_362, 1, x_370); +lean_ctor_set(x_362, 0, x_369); +x_348 = x_362; +x_349 = x_365; +goto block_361; } else { -lean_object* x_530; -lean_free_object(x_521); -lean_dec(x_523); -x_530 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__6; -x_507 = x_530; -x_508 = x_524; -goto block_520; +lean_object* x_371; +lean_free_object(x_362); +lean_dec(x_364); +x_371 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3; +x_348 = x_371; +x_349 = x_365; +goto block_361; } } else { -lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; uint8_t x_535; -x_531 = lean_ctor_get(x_521, 0); -x_532 = lean_ctor_get(x_521, 1); -lean_inc(x_532); -lean_inc(x_531); -lean_dec(x_521); -x_533 = lean_string_utf8_byte_size(x_531); -x_534 = lean_unsigned_to_nat(0u); -x_535 = lean_nat_dec_eq(x_533, x_534); -lean_dec(x_533); -if (x_535 == 0) +lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; uint8_t x_376; +x_372 = lean_ctor_get(x_362, 0); +x_373 = lean_ctor_get(x_362, 1); +lean_inc(x_373); +lean_inc(x_372); +lean_dec(x_362); +x_374 = lean_string_utf8_byte_size(x_372); +x_375 = lean_unsigned_to_nat(0u); +x_376 = lean_nat_dec_eq(x_374, x_375); +lean_dec(x_374); +if (x_376 == 0) { -lean_object* x_536; lean_object* x_537; lean_object* x_538; -x_536 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_536, 0, x_531); -x_537 = l_Lake_CliM_run___rarg___closed__1; -x_538 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_538, 0, x_536); -lean_ctor_set(x_538, 1, x_537); -x_507 = x_538; -x_508 = x_532; -goto block_520; +lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_377 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_377, 0, x_372); +x_378 = l_Lake_CliM_run___rarg___closed__1; +x_379 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_379, 0, x_377); +lean_ctor_set(x_379, 1, x_378); +x_348 = x_379; +x_349 = x_373; +goto block_361; } else { -lean_object* x_539; -lean_dec(x_531); -x_539 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__6; -x_507 = x_539; -x_508 = x_532; -goto block_520; +lean_object* x_380; +lean_dec(x_372); +x_380 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3; +x_348 = x_380; +x_349 = x_373; +goto block_361; } } block_19: @@ -51531,1563 +51535,1184 @@ lean_ctor_set(x_18, 1, x_16); return x_18; } } -block_60: +block_347: { -lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_inc(x_20); -x_22 = l_Lake_mkCmdLog(x_20); -x_23 = 0; -x_24 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set_uint8(x_24, sizeof(void*)*1, x_23); -lean_inc(x_5); -x_25 = lean_apply_2(x_5, x_24, x_21); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -lean_inc(x_20); -x_27 = lean_io_process_spawn(x_20, x_26); -if (lean_obj_tag(x_27) == 0) +if (lean_obj_tag(x_20) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_ctor_get(x_20, 0); -lean_inc(x_30); -lean_dec(x_20); -x_31 = lean_io_process_child_wait(x_30, x_28, x_29); -lean_dec(x_28); -lean_dec(x_30); -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; -lean_dec(x_5); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -return x_31; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_31, 0); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_31); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_36 = lean_ctor_get(x_31, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_31, 1); -lean_inc(x_37); -lean_dec(x_31); -x_38 = lean_io_error_to_string(x_36); -x_39 = 3; -x_40 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set_uint8(x_40, sizeof(void*)*1, x_39); -x_41 = lean_apply_2(x_5, x_40, x_37); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_41, 0); -lean_dec(x_43); -x_44 = lean_box(0); -lean_ctor_set_tag(x_41, 1); -lean_ctor_set(x_41, 0, x_44); -return x_41; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_41, 1); -lean_inc(x_45); -lean_dec(x_41); -x_46 = lean_box(0); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -lean_dec(x_20); -x_48 = lean_ctor_get(x_27, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_27, 1); -lean_inc(x_49); -lean_dec(x_27); -x_50 = lean_io_error_to_string(x_48); -x_51 = 3; -x_52 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set_uint8(x_52, sizeof(void*)*1, x_51); -x_53 = lean_apply_2(x_5, x_52, x_49); -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_53, 0); -lean_dec(x_55); -x_56 = lean_box(0); -lean_ctor_set_tag(x_53, 1); -lean_ctor_set(x_53, 0, x_56); -return x_53; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_53, 1); -lean_inc(x_57); -lean_dec(x_53); -x_58 = lean_box(0); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -return x_59; -} -} -} -block_506: -{ -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_dec(x_4); lean_dec(x_1); -x_63 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__1; -x_64 = lean_string_append(x_63, x_2); +x_22 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__1; +x_23 = lean_string_append(x_22, x_2); lean_dec(x_2); -x_65 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_66 = lean_string_append(x_64, x_65); -x_67 = 3; -x_68 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set_uint8(x_68, sizeof(void*)*1, x_67); -x_69 = lean_apply_2(x_5, x_68, x_62); -x_70 = !lean_is_exclusive(x_69); -if (x_70 == 0) +x_24 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_25 = lean_string_append(x_23, x_24); +x_26 = 3; +x_27 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*1, x_26); +x_28 = lean_apply_2(x_5, x_27, x_21); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_69, 0); -lean_dec(x_71); -x_72 = lean_box(0); -lean_ctor_set_tag(x_69, 1); -lean_ctor_set(x_69, 0, x_72); -return x_69; +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +x_31 = lean_box(0); +lean_ctor_set_tag(x_28, 1); +lean_ctor_set(x_28, 0, x_31); +return x_28; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_69, 1); -lean_inc(x_73); -lean_dec(x_69); -x_74 = lean_box(0); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_73); -return x_75; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } else { -uint8_t x_76; -x_76 = !lean_is_exclusive(x_61); -if (x_76 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_20); +if (x_35 == 0) { -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_61, 0); -lean_inc(x_77); -x_78 = l_Lake_Workspace_findModuleBySrc_x3f(x_77, x_1); -if (lean_obj_tag(x_78) == 0) +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_20, 0); +lean_inc(x_36); +x_37 = l_Lake_Workspace_findModuleBySrc_x3f(x_36, x_1); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_79; -lean_free_object(x_61); -x_79 = l_IO_FS_readFile(x_77, x_62); -if (lean_obj_tag(x_79) == 0) +lean_object* x_38; +lean_free_object(x_20); +x_38 = l_IO_FS_readFile(x_36, x_21); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_ctor_get(x_1, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_41, 3); +lean_inc(x_42); +lean_dec(x_41); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = l_Lean_LeanOptions_ofArray(x_44); +lean_dec(x_44); +lean_inc(x_1); +x_46 = l_Lake_mkModuleSetup(x_1, x_2, x_39, x_45, x_4, x_40); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = lean_box(0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); +lean_dec(x_43); +lean_inc(x_5); +x_51 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_36, x_47, x_49, x_50, x_5, x_48); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_3, x_52, x_5, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_5); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_51); +if (x_55 == 0) +{ +return x_51; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_51, 0); +x_57 = lean_ctor_get(x_51, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_51); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +lean_dec(x_43); +lean_dec(x_36); +lean_dec(x_1); +x_59 = lean_ctor_get(x_46, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_46, 1); +lean_inc(x_60); +lean_dec(x_46); +x_61 = lean_io_error_to_string(x_59); +x_62 = 3; +x_63 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set_uint8(x_63, sizeof(void*)*1, x_62); +x_64 = lean_apply_2(x_5, x_63, x_60); +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_64, 0); +lean_dec(x_66); +x_67 = lean_box(0); +lean_ctor_set_tag(x_64, 1); +lean_ctor_set(x_64, 0, x_67); +return x_64; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_64, 1); +lean_inc(x_68); +lean_dec(x_64); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +return x_70; +} +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +lean_dec(x_36); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_71 = lean_ctor_get(x_38, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_38, 1); +lean_inc(x_72); +lean_dec(x_38); +x_73 = lean_io_error_to_string(x_71); +x_74 = 3; +x_75 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set_uint8(x_75, sizeof(void*)*1, x_74); +x_76 = lean_apply_2(x_5, x_75, x_72); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; +x_78 = lean_ctor_get(x_76, 0); +lean_dec(x_78); +x_79 = lean_box(0); +lean_ctor_set_tag(x_76, 1); +lean_ctor_set(x_76, 0, x_79); +return x_76; +} +else { lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_79, 0); +x_80 = lean_ctor_get(x_76, 1); lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = l_Lean_parseImports_x27(x_80, x_2, x_81); -if (lean_obj_tag(x_82) == 0) +lean_dec(x_76); +x_81 = lean_box(0); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_80); +return x_82; +} +} +} +else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_85 = lean_ctor_get(x_83, 0); +uint8_t x_83; +lean_dec(x_2); +x_83 = !lean_is_exclusive(x_37); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_84 = lean_ctor_get(x_37, 0); +x_85 = lean_ctor_get(x_84, 1); lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_array_get_size(x_85); -x_87 = lean_unsigned_to_nat(0u); -x_88 = l_Array_filterMapM___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__1(x_1, x_85, x_87, x_86); -lean_dec(x_86); -lean_dec(x_85); -x_89 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps), 8, 2); -lean_closure_set(x_89, 0, x_2); -lean_closure_set(x_89, 1, x_88); -lean_inc(x_1); -x_90 = l_Lake_Workspace_runFetchM___rarg(x_1, x_89, x_4, x_84); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_ctor_get(x_91, 0); +x_86 = 1; +x_87 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; +x_88 = l_Lean_Name_toString(x_85, x_86, x_87); +x_89 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_90 = lean_string_append(x_89, x_88); +lean_dec(x_88); +x_91 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2; +x_92 = lean_string_append(x_90, x_91); +x_93 = lean_ctor_get(x_84, 2); lean_inc(x_93); -lean_dec(x_91); -x_94 = lean_io_wait(x_93, x_92); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -if (lean_obj_tag(x_95) == 0) +lean_ctor_set_tag(x_20, 0); +lean_ctor_set(x_20, 0, x_93); +x_94 = l_Lake_Module_keyword; +x_95 = l_Lake_Module_setupFacet; +lean_inc(x_84); +x_96 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_96, 0, x_20); +lean_ctor_set(x_96, 1, x_94); +lean_ctor_set(x_96, 2, x_84); +lean_ctor_set(x_96, 3, x_95); +x_97 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); +lean_closure_set(x_97, 0, x_96); +lean_closure_set(x_97, 1, lean_box(0)); +x_98 = 0; +x_99 = lean_box(x_98); +x_100 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__1___boxed), 9, 3); +lean_closure_set(x_100, 0, x_92); +lean_closure_set(x_100, 1, x_97); +lean_closure_set(x_100, 2, x_99); +lean_inc(x_1); +x_101 = l_Lake_Workspace_runFetchM___rarg(x_1, x_100, x_4, x_21); +if (lean_obj_tag(x_101) == 0) { -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_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = lean_ctor_get(x_95, 0); -lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_box(0); -x_99 = lean_ctor_get(x_1, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_99, 3); -lean_inc(x_100); -lean_dec(x_99); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -lean_dec(x_100); -x_102 = lean_ctor_get(x_101, 1); +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_102 = lean_ctor_get(x_101, 0); lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); lean_dec(x_101); -x_103 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_77, x_97, x_98, x_102); -lean_dec(x_97); -lean_inc(x_103); -x_104 = l_Lake_mkCmdLog(x_103); -x_105 = 0; -x_106 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set_uint8(x_106, sizeof(void*)*1, x_105); -lean_inc(x_5); -x_107 = lean_apply_2(x_5, x_106, x_96); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -lean_inc(x_103); -x_109 = lean_io_process_spawn(x_103, x_108); -if (lean_obj_tag(x_109) == 0) +x_104 = lean_ctor_get(x_102, 0); +lean_inc(x_104); +lean_dec(x_102); +x_105 = lean_io_wait(x_104, x_103); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +if (lean_obj_tag(x_106) == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; uint8_t x_124; lean_object* x_125; +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_ctor_get(x_106, 0); +lean_inc(x_108); +lean_dec(x_106); +x_109 = lean_ctor_get(x_84, 0); +lean_inc(x_109); +lean_dec(x_84); x_110 = lean_ctor_get(x_109, 0); lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); +x_111 = lean_ctor_get(x_110, 1); lean_inc(x_111); -lean_dec(x_109); -x_112 = lean_ctor_get(x_103, 0); +x_112 = lean_ctor_get(x_110, 3); lean_inc(x_112); -lean_dec(x_103); -x_113 = lean_io_process_child_wait(x_112, x_110, x_111); lean_dec(x_110); -lean_dec(x_112); -if (lean_obj_tag(x_113) == 0) -{ -uint8_t x_114; -lean_dec(x_5); -x_114 = !lean_is_exclusive(x_113); -if (x_114 == 0) -{ -return x_113; -} -else -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_113, 0); -x_116 = lean_ctor_get(x_113, 1); +x_113 = lean_ctor_get(x_112, 5); +lean_inc(x_113); +x_114 = l_System_FilePath_normalize(x_113); +x_115 = l_Lake_joinRelative(x_111, x_114); +lean_dec(x_114); +x_116 = lean_ctor_get(x_109, 2); lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_113); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; -} -} -else -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_118 = lean_ctor_get(x_113, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_113, 1); -lean_inc(x_119); -lean_dec(x_113); -x_120 = lean_io_error_to_string(x_118); -x_121 = 3; -x_122 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set_uint8(x_122, sizeof(void*)*1, x_121); -x_123 = lean_apply_2(x_5, x_122, x_119); -x_124 = !lean_is_exclusive(x_123); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_123, 0); -lean_dec(x_125); -x_126 = lean_box(0); -lean_ctor_set_tag(x_123, 1); -lean_ctor_set(x_123, 0, x_126); -return x_123; -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_123, 1); -lean_inc(x_127); -lean_dec(x_123); -x_128 = lean_box(0); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_127); -return x_129; -} -} -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -lean_dec(x_103); -x_130 = lean_ctor_get(x_109, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_109, 1); -lean_inc(x_131); lean_dec(x_109); -x_132 = lean_io_error_to_string(x_130); -x_133 = 3; -x_134 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set_uint8(x_134, sizeof(void*)*1, x_133); -x_135 = lean_apply_2(x_5, x_134, x_131); -x_136 = !lean_is_exclusive(x_135); -if (x_136 == 0) +x_117 = lean_ctor_get(x_116, 1); +lean_inc(x_117); +x_118 = l_System_FilePath_normalize(x_117); +x_119 = l_Lake_joinRelative(x_115, x_118); +lean_dec(x_118); +lean_ctor_set(x_37, 0, x_119); +x_120 = lean_ctor_get(x_112, 1); +lean_inc(x_120); +lean_dec(x_112); +x_121 = lean_ctor_get_uint8(x_120, sizeof(void*)*13); +x_122 = lean_ctor_get(x_116, 0); +lean_inc(x_122); +lean_dec(x_116); +x_123 = lean_ctor_get_uint8(x_122, sizeof(void*)*13); +x_124 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_121, x_123); +x_125 = lean_box(x_124); +if (lean_obj_tag(x_125) == 2) { -lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_135, 0); -lean_dec(x_137); -x_138 = lean_box(0); -lean_ctor_set_tag(x_135, 1); -lean_ctor_set(x_135, 0, x_138); -return x_135; +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_126 = lean_ctor_get(x_120, 1); +lean_inc(x_126); +lean_dec(x_120); +x_127 = lean_ctor_get(x_122, 1); +lean_inc(x_127); +lean_dec(x_122); +x_128 = l_Lake_BuildType_leanArgs(x_123); +x_129 = l_Array_append___rarg(x_128, x_126); +lean_dec(x_126); +x_130 = l_Array_append___rarg(x_129, x_127); +lean_dec(x_127); +lean_inc(x_5); +x_131 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_36, x_108, x_37, x_130, x_5, x_107); +lean_dec(x_37); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +x_134 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_3, x_132, x_5, x_133); +return x_134; } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_135, 1); +uint8_t x_135; +lean_dec(x_5); +lean_dec(x_1); +x_135 = !lean_is_exclusive(x_131); +if (x_135 == 0) +{ +return x_131; +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_131, 0); +x_137 = lean_ctor_get(x_131, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_131); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +return x_138; +} +} +} +else +{ +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_dec(x_125); +x_139 = lean_ctor_get(x_120, 1); lean_inc(x_139); -lean_dec(x_135); -x_140 = lean_box(0); -x_141 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_139); -return x_141; -} -} -} -else +lean_dec(x_120); +x_140 = lean_ctor_get(x_122, 1); +lean_inc(x_140); +lean_dec(x_122); +x_141 = l_Lake_BuildType_leanArgs(x_121); +x_142 = l_Array_append___rarg(x_141, x_139); +lean_dec(x_139); +x_143 = l_Array_append___rarg(x_142, x_140); +lean_dec(x_140); +lean_inc(x_5); +x_144 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_36, x_108, x_37, x_143, x_5, x_107); +lean_dec(x_37); +if (lean_obj_tag(x_144) == 0) { -lean_object* x_142; lean_object* x_143; -lean_dec(x_95); -lean_dec(x_77); -lean_dec(x_1); -x_142 = lean_ctor_get(x_94, 1); -lean_inc(x_142); -lean_dec(x_94); -x_143 = l_Lake_lake_build___closed__3; -x_7 = x_143; -x_8 = x_142; -goto block_19; -} -} -else -{ -lean_object* x_144; lean_object* x_145; -lean_dec(x_77); -lean_dec(x_1); -x_144 = lean_ctor_get(x_90, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_90, 1); +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_144, 0); lean_inc(x_145); -lean_dec(x_90); -x_7 = x_144; -x_8 = x_145; -goto block_19; -} +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +lean_dec(x_144); +x_147 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_3, x_145, x_5, x_146); +return x_147; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; -lean_dec(x_77); -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_148; +lean_dec(x_5); lean_dec(x_1); -x_146 = lean_ctor_get(x_82, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_82, 1); -lean_inc(x_147); -lean_dec(x_82); -x_148 = lean_io_error_to_string(x_146); -x_149 = 3; -x_150 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set_uint8(x_150, sizeof(void*)*1, x_149); -x_151 = lean_apply_2(x_5, x_150, x_147); -x_152 = !lean_is_exclusive(x_151); -if (x_152 == 0) +x_148 = !lean_is_exclusive(x_144); +if (x_148 == 0) { -lean_object* x_153; lean_object* x_154; -x_153 = lean_ctor_get(x_151, 0); -lean_dec(x_153); -x_154 = lean_box(0); -lean_ctor_set_tag(x_151, 1); -lean_ctor_set(x_151, 0, x_154); +return x_144; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_144, 0); +x_150 = lean_ctor_get(x_144, 1); +lean_inc(x_150); +lean_inc(x_149); +lean_dec(x_144); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); return x_151; } +} +} +} else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_155 = lean_ctor_get(x_151, 1); +lean_object* x_152; lean_object* x_153; +lean_dec(x_106); +lean_free_object(x_37); +lean_dec(x_84); +lean_dec(x_36); +lean_dec(x_1); +x_152 = lean_ctor_get(x_105, 1); +lean_inc(x_152); +lean_dec(x_105); +x_153 = l_Lake_lake_build___closed__3; +x_7 = x_153; +x_8 = x_152; +goto block_19; +} +} +else +{ +lean_object* x_154; lean_object* x_155; +lean_free_object(x_37); +lean_dec(x_84); +lean_dec(x_36); +lean_dec(x_1); +x_154 = lean_ctor_get(x_101, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_101, 1); lean_inc(x_155); -lean_dec(x_151); -x_156 = lean_box(0); -x_157 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_155); -return x_157; +lean_dec(x_101); +x_7 = x_154; +x_8 = x_155; +goto block_19; +} +} +else +{ +lean_object* x_156; lean_object* x_157; uint8_t 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; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_156 = lean_ctor_get(x_37, 0); +lean_inc(x_156); +lean_dec(x_37); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +x_158 = 1; +x_159 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; +x_160 = l_Lean_Name_toString(x_157, x_158, x_159); +x_161 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_162 = lean_string_append(x_161, x_160); +lean_dec(x_160); +x_163 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2; +x_164 = lean_string_append(x_162, x_163); +x_165 = lean_ctor_get(x_156, 2); +lean_inc(x_165); +lean_ctor_set_tag(x_20, 0); +lean_ctor_set(x_20, 0, x_165); +x_166 = l_Lake_Module_keyword; +x_167 = l_Lake_Module_setupFacet; +lean_inc(x_156); +x_168 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_168, 0, x_20); +lean_ctor_set(x_168, 1, x_166); +lean_ctor_set(x_168, 2, x_156); +lean_ctor_set(x_168, 3, x_167); +x_169 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); +lean_closure_set(x_169, 0, x_168); +lean_closure_set(x_169, 1, lean_box(0)); +x_170 = 0; +x_171 = lean_box(x_170); +x_172 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__1___boxed), 9, 3); +lean_closure_set(x_172, 0, x_164); +lean_closure_set(x_172, 1, x_169); +lean_closure_set(x_172, 2, x_171); +lean_inc(x_1); +x_173 = l_Lake_Workspace_runFetchM___rarg(x_1, x_172, x_4, x_21); +if (lean_obj_tag(x_173) == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_174 = lean_ctor_get(x_173, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_173, 1); +lean_inc(x_175); +lean_dec(x_173); +x_176 = lean_ctor_get(x_174, 0); +lean_inc(x_176); +lean_dec(x_174); +x_177 = lean_io_wait(x_176, x_175); +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +if (lean_obj_tag(x_178) == 0) +{ +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; lean_object* x_192; lean_object* x_193; uint8_t x_194; lean_object* x_195; uint8_t x_196; uint8_t x_197; lean_object* x_198; +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +lean_dec(x_177); +x_180 = lean_ctor_get(x_178, 0); +lean_inc(x_180); +lean_dec(x_178); +x_181 = lean_ctor_get(x_156, 0); +lean_inc(x_181); +lean_dec(x_156); +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_182, 1); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 3); +lean_inc(x_184); +lean_dec(x_182); +x_185 = lean_ctor_get(x_184, 5); +lean_inc(x_185); +x_186 = l_System_FilePath_normalize(x_185); +x_187 = l_Lake_joinRelative(x_183, x_186); +lean_dec(x_186); +x_188 = lean_ctor_get(x_181, 2); +lean_inc(x_188); +lean_dec(x_181); +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +x_190 = l_System_FilePath_normalize(x_189); +x_191 = l_Lake_joinRelative(x_187, x_190); +lean_dec(x_190); +x_192 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_192, 0, x_191); +x_193 = lean_ctor_get(x_184, 1); +lean_inc(x_193); +lean_dec(x_184); +x_194 = lean_ctor_get_uint8(x_193, sizeof(void*)*13); +x_195 = lean_ctor_get(x_188, 0); +lean_inc(x_195); +lean_dec(x_188); +x_196 = lean_ctor_get_uint8(x_195, sizeof(void*)*13); +x_197 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_194, x_196); +x_198 = lean_box(x_197); +if (lean_obj_tag(x_198) == 2) +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_199 = lean_ctor_get(x_193, 1); +lean_inc(x_199); +lean_dec(x_193); +x_200 = lean_ctor_get(x_195, 1); +lean_inc(x_200); +lean_dec(x_195); +x_201 = l_Lake_BuildType_leanArgs(x_196); +x_202 = l_Array_append___rarg(x_201, x_199); +lean_dec(x_199); +x_203 = l_Array_append___rarg(x_202, x_200); +lean_dec(x_200); +lean_inc(x_5); +x_204 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_36, x_180, x_192, x_203, x_5, x_179); +lean_dec(x_192); +if (lean_obj_tag(x_204) == 0) +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +lean_dec(x_204); +x_207 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_3, x_205, x_5, x_206); +return x_207; +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_5); +lean_dec(x_1); +x_208 = lean_ctor_get(x_204, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_204, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_210 = x_204; +} else { + lean_dec_ref(x_204); + x_210 = lean_box(0); +} +if (lean_is_scalar(x_210)) { + x_211 = lean_alloc_ctor(1, 2, 0); +} else { + x_211 = x_210; +} +lean_ctor_set(x_211, 0, x_208); +lean_ctor_set(x_211, 1, x_209); +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; +lean_dec(x_198); +x_212 = lean_ctor_get(x_193, 1); +lean_inc(x_212); +lean_dec(x_193); +x_213 = lean_ctor_get(x_195, 1); +lean_inc(x_213); +lean_dec(x_195); +x_214 = l_Lake_BuildType_leanArgs(x_194); +x_215 = l_Array_append___rarg(x_214, x_212); +lean_dec(x_212); +x_216 = l_Array_append___rarg(x_215, x_213); +lean_dec(x_213); +lean_inc(x_5); +x_217 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_36, x_180, x_192, x_216, x_5, x_179); +lean_dec(x_192); +if (lean_obj_tag(x_217) == 0) +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_217, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_217, 1); +lean_inc(x_219); +lean_dec(x_217); +x_220 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_3, x_218, x_5, x_219); +return x_220; +} +else +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_dec(x_5); +lean_dec(x_1); +x_221 = lean_ctor_get(x_217, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_217, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + lean_ctor_release(x_217, 1); + x_223 = x_217; +} else { + lean_dec_ref(x_217); + x_223 = lean_box(0); +} +if (lean_is_scalar(x_223)) { + x_224 = lean_alloc_ctor(1, 2, 0); +} else { + x_224 = x_223; +} +lean_ctor_set(x_224, 0, x_221); +lean_ctor_set(x_224, 1, x_222); +return x_224; } } } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; -lean_dec(x_77); +lean_object* x_225; lean_object* x_226; +lean_dec(x_178); +lean_dec(x_156); +lean_dec(x_36); +lean_dec(x_1); +x_225 = lean_ctor_get(x_177, 1); +lean_inc(x_225); +lean_dec(x_177); +x_226 = l_Lake_lake_build___closed__3; +x_7 = x_226; +x_8 = x_225; +goto block_19; +} +} +else +{ +lean_object* x_227; lean_object* x_228; +lean_dec(x_156); +lean_dec(x_36); +lean_dec(x_1); +x_227 = lean_ctor_get(x_173, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_173, 1); +lean_inc(x_228); +lean_dec(x_173); +x_7 = x_227; +x_8 = x_228; +goto block_19; +} +} +} +} +else +{ +lean_object* x_229; lean_object* x_230; +x_229 = lean_ctor_get(x_20, 0); +lean_inc(x_229); +lean_dec(x_20); +lean_inc(x_229); +x_230 = l_Lake_Workspace_findModuleBySrc_x3f(x_229, x_1); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; +x_231 = l_IO_FS_readFile(x_229, x_21); +if (lean_obj_tag(x_231) == 0) +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_231, 1); +lean_inc(x_233); +lean_dec(x_231); +x_234 = lean_ctor_get(x_1, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_234, 3); +lean_inc(x_235); +lean_dec(x_234); +x_236 = lean_ctor_get(x_235, 1); +lean_inc(x_236); +lean_dec(x_235); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = l_Lean_LeanOptions_ofArray(x_237); +lean_dec(x_237); +lean_inc(x_1); +x_239 = l_Lake_mkModuleSetup(x_1, x_2, x_232, x_238, x_4, x_233); +if (lean_obj_tag(x_239) == 0) +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_240 = lean_ctor_get(x_239, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_239, 1); +lean_inc(x_241); +lean_dec(x_239); +x_242 = lean_box(0); +x_243 = lean_ctor_get(x_236, 1); +lean_inc(x_243); +lean_dec(x_236); +lean_inc(x_5); +x_244 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_229, x_240, x_242, x_243, x_5, x_241); +if (lean_obj_tag(x_244) == 0) +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_3, x_245, x_5, x_246); +return x_247; +} +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +lean_dec(x_5); +lean_dec(x_1); +x_248 = lean_ctor_get(x_244, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_244, 1); +lean_inc(x_249); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + x_250 = x_244; +} else { + lean_dec_ref(x_244); + x_250 = lean_box(0); +} +if (lean_is_scalar(x_250)) { + x_251 = lean_alloc_ctor(1, 2, 0); +} else { + x_251 = x_250; +} +lean_ctor_set(x_251, 0, x_248); +lean_ctor_set(x_251, 1, x_249); +return x_251; +} +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t 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_dec(x_236); +lean_dec(x_229); +lean_dec(x_1); +x_252 = lean_ctor_get(x_239, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_239, 1); +lean_inc(x_253); +lean_dec(x_239); +x_254 = lean_io_error_to_string(x_252); +x_255 = 3; +x_256 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_256, 0, x_254); +lean_ctor_set_uint8(x_256, sizeof(void*)*1, x_255); +x_257 = lean_apply_2(x_5, x_256, x_253); +x_258 = lean_ctor_get(x_257, 1); +lean_inc(x_258); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_259 = x_257; +} else { + lean_dec_ref(x_257); + x_259 = lean_box(0); +} +x_260 = lean_box(0); +if (lean_is_scalar(x_259)) { + x_261 = lean_alloc_ctor(1, 2, 0); +} else { + x_261 = x_259; + lean_ctor_set_tag(x_261, 1); +} +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_258); +return x_261; +} +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t 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_dec(x_229); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_158 = lean_ctor_get(x_79, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_79, 1); -lean_inc(x_159); -lean_dec(x_79); -x_160 = lean_io_error_to_string(x_158); -x_161 = 3; -x_162 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set_uint8(x_162, sizeof(void*)*1, x_161); -x_163 = lean_apply_2(x_5, x_162, x_159); -x_164 = !lean_is_exclusive(x_163); -if (x_164 == 0) -{ -lean_object* x_165; lean_object* x_166; -x_165 = lean_ctor_get(x_163, 0); -lean_dec(x_165); -x_166 = lean_box(0); -lean_ctor_set_tag(x_163, 1); -lean_ctor_set(x_163, 0, x_166); -return x_163; -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_163, 1); -lean_inc(x_167); -lean_dec(x_163); -x_168 = lean_box(0); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_167); -return x_169; -} -} -} -else -{ -uint8_t x_170; -lean_dec(x_2); -x_170 = !lean_is_exclusive(x_78); -if (x_170 == 0) -{ -lean_object* x_171; lean_object* x_172; uint8_t 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; uint8_t x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_171 = lean_ctor_get(x_78, 0); -x_172 = lean_ctor_get(x_171, 1); -lean_inc(x_172); -x_173 = 1; -x_174 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; -x_175 = l_Lean_Name_toString(x_172, x_173, x_174); -x_176 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2; -x_177 = lean_string_append(x_176, x_175); -lean_dec(x_175); -x_178 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3; -x_179 = lean_string_append(x_177, x_178); -x_180 = lean_ctor_get(x_171, 2); -lean_inc(x_180); -lean_ctor_set_tag(x_61, 0); -lean_ctor_set(x_61, 0, x_180); -x_181 = l_Lake_Module_keyword; -x_182 = l_Lake_Module_depsFacet; -lean_inc(x_171); -x_183 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_183, 0, x_61); -lean_ctor_set(x_183, 1, x_181); -lean_ctor_set(x_183, 2, x_171); -lean_ctor_set(x_183, 3, x_182); -x_184 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); -lean_closure_set(x_184, 0, x_183); -lean_closure_set(x_184, 1, lean_box(0)); -x_185 = 0; -x_186 = lean_box(x_185); -x_187 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__2___boxed), 9, 3); -lean_closure_set(x_187, 0, x_179); -lean_closure_set(x_187, 1, x_184); -lean_closure_set(x_187, 2, x_186); -lean_inc(x_1); -x_188 = l_Lake_Workspace_runFetchM___rarg(x_1, x_187, x_4, x_62); -if (lean_obj_tag(x_188) == 0) -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -lean_dec(x_188); -x_191 = lean_ctor_get(x_189, 0); -lean_inc(x_191); -lean_dec(x_189); -x_192 = lean_io_wait(x_191, x_190); -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -if (lean_obj_tag(x_193) == 0) -{ -lean_object* x_194; lean_object* x_195; 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_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_194 = lean_ctor_get(x_192, 1); -lean_inc(x_194); -lean_dec(x_192); -x_195 = lean_ctor_get(x_193, 0); -lean_inc(x_195); -lean_dec(x_193); -x_196 = lean_ctor_get(x_171, 0); -lean_inc(x_196); -lean_dec(x_171); -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -x_199 = lean_ctor_get(x_197, 3); -lean_inc(x_199); -lean_dec(x_197); -x_200 = lean_ctor_get(x_199, 5); -lean_inc(x_200); -x_201 = l_System_FilePath_normalize(x_200); -x_202 = l_Lake_joinRelative(x_198, x_201); -lean_dec(x_201); -x_203 = lean_ctor_get(x_196, 2); -lean_inc(x_203); -lean_dec(x_196); -x_204 = lean_ctor_get(x_203, 1); -lean_inc(x_204); -x_205 = l_System_FilePath_normalize(x_204); -x_206 = l_Lake_joinRelative(x_202, x_205); -lean_dec(x_205); -lean_ctor_set(x_78, 0, x_206); -x_207 = lean_ctor_get(x_199, 1); -lean_inc(x_207); -lean_dec(x_199); -x_208 = lean_ctor_get_uint8(x_207, sizeof(void*)*13); -x_209 = lean_ctor_get(x_203, 0); -lean_inc(x_209); -lean_dec(x_203); -x_210 = lean_ctor_get_uint8(x_209, sizeof(void*)*13); -x_211 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_208, x_210); -x_212 = lean_ctor_get(x_207, 1); -lean_inc(x_212); -x_213 = lean_ctor_get(x_209, 1); -lean_inc(x_213); -x_214 = lean_ctor_get(x_207, 0); -lean_inc(x_214); -lean_dec(x_207); -x_215 = l_Lean_LeanOptions_ofArray(x_214); -lean_dec(x_214); -switch (x_211) { -case 0: -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_216 = lean_ctor_get(x_209, 0); -lean_inc(x_216); -lean_dec(x_209); -x_217 = l_Lake_BuildType_leanArgs(x_208); -x_218 = l_Array_append___rarg(x_217, x_212); -lean_dec(x_212); -x_219 = l_Array_append___rarg(x_218, x_213); -lean_dec(x_213); -x_220 = l_Lake_BuildType_leanOptions(x_208); -x_221 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_222 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_223 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_221, x_222, x_220, x_215); -x_224 = l_Lean_LeanOptions_appendArray(x_223, x_216); -lean_dec(x_216); -x_225 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__4(x_219, x_224); -x_226 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_77, x_195, x_78, x_225); -lean_dec(x_78); -lean_dec(x_195); -x_20 = x_226; -x_21 = x_194; -goto block_60; -} -case 1: -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_227 = lean_ctor_get(x_209, 0); -lean_inc(x_227); -lean_dec(x_209); -x_228 = l_Lake_BuildType_leanArgs(x_208); -x_229 = l_Array_append___rarg(x_228, x_212); -lean_dec(x_212); -x_230 = l_Array_append___rarg(x_229, x_213); -lean_dec(x_213); -x_231 = l_Lake_BuildType_leanOptions(x_208); -x_232 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_233 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_234 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_232, x_233, x_231, x_215); -x_235 = l_Lean_LeanOptions_appendArray(x_234, x_227); -lean_dec(x_227); -x_236 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__6(x_230, x_235); -x_237 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_77, x_195, x_78, x_236); -lean_dec(x_78); -lean_dec(x_195); -x_20 = x_237; -x_21 = x_194; -goto block_60; -} -default: -{ -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; lean_object* x_248; -x_238 = lean_ctor_get(x_209, 0); -lean_inc(x_238); -lean_dec(x_209); -x_239 = l_Lake_BuildType_leanArgs(x_210); -x_240 = l_Array_append___rarg(x_239, x_212); -lean_dec(x_212); -x_241 = l_Array_append___rarg(x_240, x_213); -lean_dec(x_213); -x_242 = l_Lake_BuildType_leanOptions(x_210); -x_243 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_244 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_245 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_243, x_244, x_242, x_215); -x_246 = l_Lean_LeanOptions_appendArray(x_245, x_238); -lean_dec(x_238); -x_247 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__8(x_241, x_246); -x_248 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_77, x_195, x_78, x_247); -lean_dec(x_78); -lean_dec(x_195); -x_20 = x_248; -x_21 = x_194; -goto block_60; -} -} -} -else -{ -lean_object* x_249; lean_object* x_250; -lean_dec(x_193); -lean_free_object(x_78); -lean_dec(x_171); -lean_dec(x_77); -lean_dec(x_1); -x_249 = lean_ctor_get(x_192, 1); -lean_inc(x_249); -lean_dec(x_192); -x_250 = l_Lake_lake_build___closed__3; -x_7 = x_250; -x_8 = x_249; -goto block_19; -} -} -else -{ -lean_object* x_251; lean_object* x_252; -lean_free_object(x_78); -lean_dec(x_171); -lean_dec(x_77); -lean_dec(x_1); -x_251 = lean_ctor_get(x_188, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_188, 1); -lean_inc(x_252); -lean_dec(x_188); -x_7 = x_251; -x_8 = x_252; -goto block_19; -} -} -else -{ -lean_object* x_253; lean_object* x_254; uint8_t 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; uint8_t x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_253 = lean_ctor_get(x_78, 0); -lean_inc(x_253); -lean_dec(x_78); -x_254 = lean_ctor_get(x_253, 1); -lean_inc(x_254); -x_255 = 1; -x_256 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; -x_257 = l_Lean_Name_toString(x_254, x_255, x_256); -x_258 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2; -x_259 = lean_string_append(x_258, x_257); -lean_dec(x_257); -x_260 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3; -x_261 = lean_string_append(x_259, x_260); -x_262 = lean_ctor_get(x_253, 2); +x_262 = lean_ctor_get(x_231, 0); lean_inc(x_262); -lean_ctor_set_tag(x_61, 0); -lean_ctor_set(x_61, 0, x_262); -x_263 = l_Lake_Module_keyword; -x_264 = l_Lake_Module_depsFacet; -lean_inc(x_253); -x_265 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_265, 0, x_61); -lean_ctor_set(x_265, 1, x_263); -lean_ctor_set(x_265, 2, x_253); -lean_ctor_set(x_265, 3, x_264); -x_266 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); -lean_closure_set(x_266, 0, x_265); -lean_closure_set(x_266, 1, lean_box(0)); -x_267 = 0; -x_268 = lean_box(x_267); -x_269 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__2___boxed), 9, 3); -lean_closure_set(x_269, 0, x_261); -lean_closure_set(x_269, 1, x_266); -lean_closure_set(x_269, 2, x_268); -lean_inc(x_1); -x_270 = l_Lake_Workspace_runFetchM___rarg(x_1, x_269, x_4, x_62); -if (lean_obj_tag(x_270) == 0) +x_263 = lean_ctor_get(x_231, 1); +lean_inc(x_263); +lean_dec(x_231); +x_264 = lean_io_error_to_string(x_262); +x_265 = 3; +x_266 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_266, 0, x_264); +lean_ctor_set_uint8(x_266, sizeof(void*)*1, x_265); +x_267 = lean_apply_2(x_5, x_266, x_263); +x_268 = lean_ctor_get(x_267, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_269 = x_267; +} else { + lean_dec_ref(x_267); + x_269 = lean_box(0); +} +x_270 = lean_box(0); +if (lean_is_scalar(x_269)) { + x_271 = lean_alloc_ctor(1, 2, 0); +} else { + x_271 = x_269; + lean_ctor_set_tag(x_271, 1); +} +lean_ctor_set(x_271, 0, x_270); +lean_ctor_set(x_271, 1, x_268); +return x_271; +} +} +else { -lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_271 = lean_ctor_get(x_270, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_270, 1); +lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t 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; uint8_t x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +lean_dec(x_2); +x_272 = lean_ctor_get(x_230, 0); lean_inc(x_272); -lean_dec(x_270); -x_273 = lean_ctor_get(x_271, 0); -lean_inc(x_273); -lean_dec(x_271); -x_274 = lean_io_wait(x_273, x_272); -x_275 = lean_ctor_get(x_274, 0); -lean_inc(x_275); -if (lean_obj_tag(x_275) == 0) -{ -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; uint8_t x_291; lean_object* x_292; uint8_t x_293; uint8_t x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_276 = lean_ctor_get(x_274, 1); -lean_inc(x_276); -lean_dec(x_274); -x_277 = lean_ctor_get(x_275, 0); -lean_inc(x_277); -lean_dec(x_275); -x_278 = lean_ctor_get(x_253, 0); -lean_inc(x_278); -lean_dec(x_253); -x_279 = lean_ctor_get(x_278, 0); -lean_inc(x_279); -x_280 = lean_ctor_get(x_279, 1); -lean_inc(x_280); -x_281 = lean_ctor_get(x_279, 3); -lean_inc(x_281); -lean_dec(x_279); -x_282 = lean_ctor_get(x_281, 5); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + x_273 = x_230; +} else { + lean_dec_ref(x_230); + x_273 = lean_box(0); +} +x_274 = lean_ctor_get(x_272, 1); +lean_inc(x_274); +x_275 = 1; +x_276 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; +x_277 = l_Lean_Name_toString(x_274, x_275, x_276); +x_278 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_279 = lean_string_append(x_278, x_277); +lean_dec(x_277); +x_280 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2; +x_281 = lean_string_append(x_279, x_280); +x_282 = lean_ctor_get(x_272, 2); lean_inc(x_282); -x_283 = l_System_FilePath_normalize(x_282); -x_284 = l_Lake_joinRelative(x_280, x_283); -lean_dec(x_283); -x_285 = lean_ctor_get(x_278, 2); -lean_inc(x_285); -lean_dec(x_278); -x_286 = lean_ctor_get(x_285, 1); -lean_inc(x_286); -x_287 = l_System_FilePath_normalize(x_286); -x_288 = l_Lake_joinRelative(x_284, x_287); -lean_dec(x_287); -x_289 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_289, 0, x_288); -x_290 = lean_ctor_get(x_281, 1); -lean_inc(x_290); -lean_dec(x_281); -x_291 = lean_ctor_get_uint8(x_290, sizeof(void*)*13); -x_292 = lean_ctor_get(x_285, 0); -lean_inc(x_292); -lean_dec(x_285); -x_293 = lean_ctor_get_uint8(x_292, sizeof(void*)*13); -x_294 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_291, x_293); -x_295 = lean_ctor_get(x_290, 1); -lean_inc(x_295); -x_296 = lean_ctor_get(x_292, 1); -lean_inc(x_296); -x_297 = lean_ctor_get(x_290, 0); -lean_inc(x_297); -lean_dec(x_290); -x_298 = l_Lean_LeanOptions_ofArray(x_297); -lean_dec(x_297); -switch (x_294) { -case 0: -{ -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; -x_299 = lean_ctor_get(x_292, 0); -lean_inc(x_299); -lean_dec(x_292); -x_300 = l_Lake_BuildType_leanArgs(x_291); -x_301 = l_Array_append___rarg(x_300, x_295); -lean_dec(x_295); -x_302 = l_Array_append___rarg(x_301, x_296); -lean_dec(x_296); -x_303 = l_Lake_BuildType_leanOptions(x_291); -x_304 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_305 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_306 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_304, x_305, x_303, x_298); -x_307 = l_Lean_LeanOptions_appendArray(x_306, x_299); -lean_dec(x_299); -x_308 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__4(x_302, x_307); -x_309 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_77, x_277, x_289, x_308); -lean_dec(x_289); -lean_dec(x_277); -x_20 = x_309; -x_21 = x_276; -goto block_60; -} -case 1: -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_310 = lean_ctor_get(x_292, 0); -lean_inc(x_310); -lean_dec(x_292); -x_311 = l_Lake_BuildType_leanArgs(x_291); -x_312 = l_Array_append___rarg(x_311, x_295); -lean_dec(x_295); -x_313 = l_Array_append___rarg(x_312, x_296); -lean_dec(x_296); -x_314 = l_Lake_BuildType_leanOptions(x_291); -x_315 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_316 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_317 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_315, x_316, x_314, x_298); -x_318 = l_Lean_LeanOptions_appendArray(x_317, x_310); -lean_dec(x_310); -x_319 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__6(x_313, x_318); -x_320 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_77, x_277, x_289, x_319); -lean_dec(x_289); -lean_dec(x_277); -x_20 = x_320; -x_21 = x_276; -goto block_60; -} -default: -{ -lean_object* x_321; 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; -x_321 = lean_ctor_get(x_292, 0); -lean_inc(x_321); -lean_dec(x_292); -x_322 = l_Lake_BuildType_leanArgs(x_293); -x_323 = l_Array_append___rarg(x_322, x_295); -lean_dec(x_295); -x_324 = l_Array_append___rarg(x_323, x_296); -lean_dec(x_296); -x_325 = l_Lake_BuildType_leanOptions(x_293); -x_326 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_327 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_328 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_326, x_327, x_325, x_298); -x_329 = l_Lean_LeanOptions_appendArray(x_328, x_321); -lean_dec(x_321); -x_330 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__8(x_324, x_329); -x_331 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_77, x_277, x_289, x_330); -lean_dec(x_289); -lean_dec(x_277); -x_20 = x_331; -x_21 = x_276; -goto block_60; -} -} -} -else -{ -lean_object* x_332; lean_object* x_333; -lean_dec(x_275); -lean_dec(x_253); -lean_dec(x_77); -lean_dec(x_1); -x_332 = lean_ctor_get(x_274, 1); -lean_inc(x_332); -lean_dec(x_274); -x_333 = l_Lake_lake_build___closed__3; -x_7 = x_333; -x_8 = x_332; -goto block_19; -} -} -else -{ -lean_object* x_334; lean_object* x_335; -lean_dec(x_253); -lean_dec(x_77); -lean_dec(x_1); -x_334 = lean_ctor_get(x_270, 0); -lean_inc(x_334); -x_335 = lean_ctor_get(x_270, 1); -lean_inc(x_335); -lean_dec(x_270); -x_7 = x_334; -x_8 = x_335; -goto block_19; -} -} -} -} -else -{ -lean_object* x_336; lean_object* x_337; -x_336 = lean_ctor_get(x_61, 0); -lean_inc(x_336); -lean_dec(x_61); -lean_inc(x_336); -x_337 = l_Lake_Workspace_findModuleBySrc_x3f(x_336, x_1); -if (lean_obj_tag(x_337) == 0) -{ -lean_object* x_338; -x_338 = l_IO_FS_readFile(x_336, x_62); -if (lean_obj_tag(x_338) == 0) -{ -lean_object* x_339; lean_object* x_340; lean_object* x_341; -x_339 = lean_ctor_get(x_338, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_338, 1); -lean_inc(x_340); -lean_dec(x_338); -x_341 = l_Lean_parseImports_x27(x_339, x_2, x_340); -if (lean_obj_tag(x_341) == 0) -{ -lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; -x_342 = lean_ctor_get(x_341, 0); -lean_inc(x_342); -x_343 = lean_ctor_get(x_341, 1); -lean_inc(x_343); -lean_dec(x_341); -x_344 = lean_ctor_get(x_342, 0); -lean_inc(x_344); -lean_dec(x_342); -x_345 = lean_array_get_size(x_344); -x_346 = lean_unsigned_to_nat(0u); -x_347 = l_Array_filterMapM___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__1(x_1, x_344, x_346, x_345); -lean_dec(x_345); -lean_dec(x_344); -x_348 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps), 8, 2); -lean_closure_set(x_348, 0, x_2); -lean_closure_set(x_348, 1, x_347); +x_283 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_283, 0, x_282); +x_284 = l_Lake_Module_keyword; +x_285 = l_Lake_Module_setupFacet; +lean_inc(x_272); +x_286 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_286, 0, x_283); +lean_ctor_set(x_286, 1, x_284); +lean_ctor_set(x_286, 2, x_272); +lean_ctor_set(x_286, 3, x_285); +x_287 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); +lean_closure_set(x_287, 0, x_286); +lean_closure_set(x_287, 1, lean_box(0)); +x_288 = 0; +x_289 = lean_box(x_288); +x_290 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__1___boxed), 9, 3); +lean_closure_set(x_290, 0, x_281); +lean_closure_set(x_290, 1, x_287); +lean_closure_set(x_290, 2, x_289); lean_inc(x_1); -x_349 = l_Lake_Workspace_runFetchM___rarg(x_1, x_348, x_4, x_343); -if (lean_obj_tag(x_349) == 0) +x_291 = l_Lake_Workspace_runFetchM___rarg(x_1, x_290, x_4, x_21); +if (lean_obj_tag(x_291) == 0) { -lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; -x_350 = lean_ctor_get(x_349, 0); +lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_292 = lean_ctor_get(x_291, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_291, 1); +lean_inc(x_293); +lean_dec(x_291); +x_294 = lean_ctor_get(x_292, 0); +lean_inc(x_294); +lean_dec(x_292); +x_295 = lean_io_wait(x_294, x_293); +x_296 = lean_ctor_get(x_295, 0); +lean_inc(x_296); +if (lean_obj_tag(x_296) == 0) +{ +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; uint8_t x_312; lean_object* x_313; uint8_t x_314; uint8_t x_315; lean_object* x_316; +x_297 = lean_ctor_get(x_295, 1); +lean_inc(x_297); +lean_dec(x_295); +x_298 = lean_ctor_get(x_296, 0); +lean_inc(x_298); +lean_dec(x_296); +x_299 = lean_ctor_get(x_272, 0); +lean_inc(x_299); +lean_dec(x_272); +x_300 = lean_ctor_get(x_299, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_300, 1); +lean_inc(x_301); +x_302 = lean_ctor_get(x_300, 3); +lean_inc(x_302); +lean_dec(x_300); +x_303 = lean_ctor_get(x_302, 5); +lean_inc(x_303); +x_304 = l_System_FilePath_normalize(x_303); +x_305 = l_Lake_joinRelative(x_301, x_304); +lean_dec(x_304); +x_306 = lean_ctor_get(x_299, 2); +lean_inc(x_306); +lean_dec(x_299); +x_307 = lean_ctor_get(x_306, 1); +lean_inc(x_307); +x_308 = l_System_FilePath_normalize(x_307); +x_309 = l_Lake_joinRelative(x_305, x_308); +lean_dec(x_308); +if (lean_is_scalar(x_273)) { + x_310 = lean_alloc_ctor(1, 1, 0); +} else { + x_310 = x_273; +} +lean_ctor_set(x_310, 0, x_309); +x_311 = lean_ctor_get(x_302, 1); +lean_inc(x_311); +lean_dec(x_302); +x_312 = lean_ctor_get_uint8(x_311, sizeof(void*)*13); +x_313 = lean_ctor_get(x_306, 0); +lean_inc(x_313); +lean_dec(x_306); +x_314 = lean_ctor_get_uint8(x_313, sizeof(void*)*13); +x_315 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_312, x_314); +x_316 = lean_box(x_315); +if (lean_obj_tag(x_316) == 2) +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; +x_317 = lean_ctor_get(x_311, 1); +lean_inc(x_317); +lean_dec(x_311); +x_318 = lean_ctor_get(x_313, 1); +lean_inc(x_318); +lean_dec(x_313); +x_319 = l_Lake_BuildType_leanArgs(x_314); +x_320 = l_Array_append___rarg(x_319, x_317); +lean_dec(x_317); +x_321 = l_Array_append___rarg(x_320, x_318); +lean_dec(x_318); +lean_inc(x_5); +x_322 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_229, x_298, x_310, x_321, x_5, x_297); +lean_dec(x_310); +if (lean_obj_tag(x_322) == 0) +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_322, 1); +lean_inc(x_324); +lean_dec(x_322); +x_325 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_3, x_323, x_5, x_324); +return x_325; +} +else +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; +lean_dec(x_5); +lean_dec(x_1); +x_326 = lean_ctor_get(x_322, 0); +lean_inc(x_326); +x_327 = lean_ctor_get(x_322, 1); +lean_inc(x_327); +if (lean_is_exclusive(x_322)) { + lean_ctor_release(x_322, 0); + lean_ctor_release(x_322, 1); + x_328 = x_322; +} else { + lean_dec_ref(x_322); + x_328 = lean_box(0); +} +if (lean_is_scalar(x_328)) { + x_329 = lean_alloc_ctor(1, 2, 0); +} else { + x_329 = x_328; +} +lean_ctor_set(x_329, 0, x_326); +lean_ctor_set(x_329, 1, x_327); +return x_329; +} +} +else +{ +lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +lean_dec(x_316); +x_330 = lean_ctor_get(x_311, 1); +lean_inc(x_330); +lean_dec(x_311); +x_331 = lean_ctor_get(x_313, 1); +lean_inc(x_331); +lean_dec(x_313); +x_332 = l_Lake_BuildType_leanArgs(x_312); +x_333 = l_Array_append___rarg(x_332, x_330); +lean_dec(x_330); +x_334 = l_Array_append___rarg(x_333, x_331); +lean_dec(x_331); +lean_inc(x_5); +x_335 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs(x_229, x_298, x_310, x_334, x_5, x_297); +lean_dec(x_310); +if (lean_obj_tag(x_335) == 0) +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; +x_336 = lean_ctor_get(x_335, 0); +lean_inc(x_336); +x_337 = lean_ctor_get(x_335, 1); +lean_inc(x_337); +lean_dec(x_335); +x_338 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_3, x_336, x_5, x_337); +return x_338; +} +else +{ +lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +lean_dec(x_5); +lean_dec(x_1); +x_339 = lean_ctor_get(x_335, 0); +lean_inc(x_339); +x_340 = lean_ctor_get(x_335, 1); +lean_inc(x_340); +if (lean_is_exclusive(x_335)) { + lean_ctor_release(x_335, 0); + lean_ctor_release(x_335, 1); + x_341 = x_335; +} else { + lean_dec_ref(x_335); + x_341 = lean_box(0); +} +if (lean_is_scalar(x_341)) { + x_342 = lean_alloc_ctor(1, 2, 0); +} else { + x_342 = x_341; +} +lean_ctor_set(x_342, 0, x_339); +lean_ctor_set(x_342, 1, x_340); +return x_342; +} +} +} +else +{ +lean_object* x_343; lean_object* x_344; +lean_dec(x_296); +lean_dec(x_273); +lean_dec(x_272); +lean_dec(x_229); +lean_dec(x_1); +x_343 = lean_ctor_get(x_295, 1); +lean_inc(x_343); +lean_dec(x_295); +x_344 = l_Lake_lake_build___closed__3; +x_7 = x_344; +x_8 = x_343; +goto block_19; +} +} +else +{ +lean_object* x_345; lean_object* x_346; +lean_dec(x_273); +lean_dec(x_272); +lean_dec(x_229); +lean_dec(x_1); +x_345 = lean_ctor_get(x_291, 0); +lean_inc(x_345); +x_346 = lean_ctor_get(x_291, 1); +lean_inc(x_346); +lean_dec(x_291); +x_7 = x_345; +x_8 = x_346; +goto block_19; +} +} +} +} +} +block_361: +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; uint8_t x_354; +x_350 = lean_ctor_get(x_348, 0); lean_inc(x_350); -x_351 = lean_ctor_get(x_349, 1); +x_351 = lean_ctor_get(x_348, 1); lean_inc(x_351); -lean_dec(x_349); -x_352 = lean_ctor_get(x_350, 0); -lean_inc(x_352); -lean_dec(x_350); -x_353 = lean_io_wait(x_352, x_351); -x_354 = lean_ctor_get(x_353, 0); -lean_inc(x_354); -if (lean_obj_tag(x_354) == 0) +lean_dec(x_348); +x_352 = lean_array_get_size(x_351); +x_353 = lean_unsigned_to_nat(0u); +x_354 = lean_nat_dec_lt(x_353, x_352); +if (x_354 == 0) { -lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; uint8_t x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; -x_355 = lean_ctor_get(x_353, 1); -lean_inc(x_355); -lean_dec(x_353); -x_356 = lean_ctor_get(x_354, 0); -lean_inc(x_356); -lean_dec(x_354); -x_357 = lean_box(0); -x_358 = lean_ctor_get(x_1, 0); -lean_inc(x_358); -x_359 = lean_ctor_get(x_358, 3); -lean_inc(x_359); -lean_dec(x_358); +lean_dec(x_352); +lean_dec(x_351); +x_20 = x_350; +x_21 = x_349; +goto block_347; +} +else +{ +uint8_t x_355; +x_355 = lean_nat_dec_le(x_352, x_352); +if (x_355 == 0) +{ +lean_dec(x_352); +lean_dec(x_351); +x_20 = x_350; +x_21 = x_349; +goto block_347; +} +else +{ +size_t x_356; size_t x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; +x_356 = 0; +x_357 = lean_usize_of_nat(x_352); +lean_dec(x_352); +x_358 = lean_box(0); +lean_inc(x_5); +x_359 = l_Array_foldlMUnsafe_fold___at_Lake_instMonadLiftLogIOLoggerIO___spec__1(x_351, x_356, x_357, x_358, x_5, x_349); +lean_dec(x_351); x_360 = lean_ctor_get(x_359, 1); lean_inc(x_360); lean_dec(x_359); -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -lean_dec(x_360); -x_362 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_336, x_356, x_357, x_361); -lean_dec(x_356); -lean_inc(x_362); -x_363 = l_Lake_mkCmdLog(x_362); -x_364 = 0; -x_365 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_365, 0, x_363); -lean_ctor_set_uint8(x_365, sizeof(void*)*1, x_364); -lean_inc(x_5); -x_366 = lean_apply_2(x_5, x_365, x_355); -x_367 = lean_ctor_get(x_366, 1); -lean_inc(x_367); -lean_dec(x_366); -lean_inc(x_362); -x_368 = lean_io_process_spawn(x_362, x_367); -if (lean_obj_tag(x_368) == 0) -{ -lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; -x_369 = lean_ctor_get(x_368, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_368, 1); -lean_inc(x_370); -lean_dec(x_368); -x_371 = lean_ctor_get(x_362, 0); -lean_inc(x_371); -lean_dec(x_362); -x_372 = lean_io_process_child_wait(x_371, x_369, x_370); -lean_dec(x_369); -lean_dec(x_371); -if (lean_obj_tag(x_372) == 0) -{ -lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; -lean_dec(x_5); -x_373 = lean_ctor_get(x_372, 0); -lean_inc(x_373); -x_374 = lean_ctor_get(x_372, 1); -lean_inc(x_374); -if (lean_is_exclusive(x_372)) { - lean_ctor_release(x_372, 0); - lean_ctor_release(x_372, 1); - x_375 = x_372; -} else { - lean_dec_ref(x_372); - x_375 = lean_box(0); -} -if (lean_is_scalar(x_375)) { - x_376 = lean_alloc_ctor(0, 2, 0); -} else { - x_376 = x_375; -} -lean_ctor_set(x_376, 0, x_373); -lean_ctor_set(x_376, 1, x_374); -return x_376; -} -else -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; uint8_t x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; -x_377 = lean_ctor_get(x_372, 0); -lean_inc(x_377); -x_378 = lean_ctor_get(x_372, 1); -lean_inc(x_378); -lean_dec(x_372); -x_379 = lean_io_error_to_string(x_377); -x_380 = 3; -x_381 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_381, 0, x_379); -lean_ctor_set_uint8(x_381, sizeof(void*)*1, x_380); -x_382 = lean_apply_2(x_5, x_381, x_378); -x_383 = lean_ctor_get(x_382, 1); -lean_inc(x_383); -if (lean_is_exclusive(x_382)) { - lean_ctor_release(x_382, 0); - lean_ctor_release(x_382, 1); - x_384 = x_382; -} else { - lean_dec_ref(x_382); - x_384 = lean_box(0); -} -x_385 = lean_box(0); -if (lean_is_scalar(x_384)) { - x_386 = lean_alloc_ctor(1, 2, 0); -} else { - x_386 = x_384; - lean_ctor_set_tag(x_386, 1); -} -lean_ctor_set(x_386, 0, x_385); -lean_ctor_set(x_386, 1, x_383); -return x_386; -} -} -else -{ -lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; -lean_dec(x_362); -x_387 = lean_ctor_get(x_368, 0); -lean_inc(x_387); -x_388 = lean_ctor_get(x_368, 1); -lean_inc(x_388); -lean_dec(x_368); -x_389 = lean_io_error_to_string(x_387); -x_390 = 3; -x_391 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_391, 0, x_389); -lean_ctor_set_uint8(x_391, sizeof(void*)*1, x_390); -x_392 = lean_apply_2(x_5, x_391, x_388); -x_393 = lean_ctor_get(x_392, 1); -lean_inc(x_393); -if (lean_is_exclusive(x_392)) { - lean_ctor_release(x_392, 0); - lean_ctor_release(x_392, 1); - x_394 = x_392; -} else { - lean_dec_ref(x_392); - x_394 = lean_box(0); -} -x_395 = lean_box(0); -if (lean_is_scalar(x_394)) { - x_396 = lean_alloc_ctor(1, 2, 0); -} else { - x_396 = x_394; - lean_ctor_set_tag(x_396, 1); -} -lean_ctor_set(x_396, 0, x_395); -lean_ctor_set(x_396, 1, x_393); -return x_396; -} -} -else -{ -lean_object* x_397; lean_object* x_398; -lean_dec(x_354); -lean_dec(x_336); -lean_dec(x_1); -x_397 = lean_ctor_get(x_353, 1); -lean_inc(x_397); -lean_dec(x_353); -x_398 = l_Lake_lake_build___closed__3; -x_7 = x_398; -x_8 = x_397; -goto block_19; -} -} -else -{ -lean_object* x_399; lean_object* x_400; -lean_dec(x_336); -lean_dec(x_1); -x_399 = lean_ctor_get(x_349, 0); -lean_inc(x_399); -x_400 = lean_ctor_get(x_349, 1); -lean_inc(x_400); -lean_dec(x_349); -x_7 = x_399; -x_8 = x_400; -goto block_19; -} -} -else -{ -lean_object* x_401; lean_object* x_402; lean_object* x_403; uint8_t x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; -lean_dec(x_336); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_401 = lean_ctor_get(x_341, 0); -lean_inc(x_401); -x_402 = lean_ctor_get(x_341, 1); -lean_inc(x_402); -lean_dec(x_341); -x_403 = lean_io_error_to_string(x_401); -x_404 = 3; -x_405 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_405, 0, x_403); -lean_ctor_set_uint8(x_405, sizeof(void*)*1, x_404); -x_406 = lean_apply_2(x_5, x_405, x_402); -x_407 = lean_ctor_get(x_406, 1); -lean_inc(x_407); -if (lean_is_exclusive(x_406)) { - lean_ctor_release(x_406, 0); - lean_ctor_release(x_406, 1); - x_408 = x_406; -} else { - lean_dec_ref(x_406); - x_408 = lean_box(0); -} -x_409 = lean_box(0); -if (lean_is_scalar(x_408)) { - x_410 = lean_alloc_ctor(1, 2, 0); -} else { - x_410 = x_408; - lean_ctor_set_tag(x_410, 1); -} -lean_ctor_set(x_410, 0, x_409); -lean_ctor_set(x_410, 1, x_407); -return x_410; -} -} -else -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -lean_dec(x_336); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_411 = lean_ctor_get(x_338, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_338, 1); -lean_inc(x_412); -lean_dec(x_338); -x_413 = lean_io_error_to_string(x_411); -x_414 = 3; -x_415 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_415, 0, x_413); -lean_ctor_set_uint8(x_415, sizeof(void*)*1, x_414); -x_416 = lean_apply_2(x_5, x_415, x_412); -x_417 = lean_ctor_get(x_416, 1); -lean_inc(x_417); -if (lean_is_exclusive(x_416)) { - lean_ctor_release(x_416, 0); - lean_ctor_release(x_416, 1); - x_418 = x_416; -} else { - lean_dec_ref(x_416); - x_418 = lean_box(0); -} -x_419 = lean_box(0); -if (lean_is_scalar(x_418)) { - x_420 = lean_alloc_ctor(1, 2, 0); -} else { - x_420 = x_418; - lean_ctor_set_tag(x_420, 1); -} -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_417); -return x_420; -} -} -else -{ -lean_object* x_421; lean_object* x_422; lean_object* x_423; uint8_t x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; -lean_dec(x_2); -x_421 = lean_ctor_get(x_337, 0); -lean_inc(x_421); -if (lean_is_exclusive(x_337)) { - lean_ctor_release(x_337, 0); - x_422 = x_337; -} else { - lean_dec_ref(x_337); - x_422 = lean_box(0); -} -x_423 = lean_ctor_get(x_421, 1); -lean_inc(x_423); -x_424 = 1; -x_425 = l_IO_println___at_Lake_lake_queryKind___spec__4___closed__1; -x_426 = l_Lean_Name_toString(x_423, x_424, x_425); -x_427 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2; -x_428 = lean_string_append(x_427, x_426); -lean_dec(x_426); -x_429 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3; -x_430 = lean_string_append(x_428, x_429); -x_431 = lean_ctor_get(x_421, 2); -lean_inc(x_431); -x_432 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_432, 0, x_431); -x_433 = l_Lake_Module_keyword; -x_434 = l_Lake_Module_depsFacet; -lean_inc(x_421); -x_435 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_435, 0, x_432); -lean_ctor_set(x_435, 1, x_433); -lean_ctor_set(x_435, 2, x_421); -lean_ctor_set(x_435, 3, x_434); -x_436 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); -lean_closure_set(x_436, 0, x_435); -lean_closure_set(x_436, 1, lean_box(0)); -x_437 = 0; -x_438 = lean_box(x_437); -x_439 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__2___boxed), 9, 3); -lean_closure_set(x_439, 0, x_430); -lean_closure_set(x_439, 1, x_436); -lean_closure_set(x_439, 2, x_438); -lean_inc(x_1); -x_440 = l_Lake_Workspace_runFetchM___rarg(x_1, x_439, x_4, x_62); -if (lean_obj_tag(x_440) == 0) -{ -lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_441 = lean_ctor_get(x_440, 0); -lean_inc(x_441); -x_442 = lean_ctor_get(x_440, 1); -lean_inc(x_442); -lean_dec(x_440); -x_443 = lean_ctor_get(x_441, 0); -lean_inc(x_443); -lean_dec(x_441); -x_444 = lean_io_wait(x_443, x_442); -x_445 = lean_ctor_get(x_444, 0); -lean_inc(x_445); -if (lean_obj_tag(x_445) == 0) -{ -lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; lean_object* x_462; uint8_t x_463; uint8_t x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; -x_446 = lean_ctor_get(x_444, 1); -lean_inc(x_446); -lean_dec(x_444); -x_447 = lean_ctor_get(x_445, 0); -lean_inc(x_447); -lean_dec(x_445); -x_448 = lean_ctor_get(x_421, 0); -lean_inc(x_448); -lean_dec(x_421); -x_449 = lean_ctor_get(x_448, 0); -lean_inc(x_449); -x_450 = lean_ctor_get(x_449, 1); -lean_inc(x_450); -x_451 = lean_ctor_get(x_449, 3); -lean_inc(x_451); -lean_dec(x_449); -x_452 = lean_ctor_get(x_451, 5); -lean_inc(x_452); -x_453 = l_System_FilePath_normalize(x_452); -x_454 = l_Lake_joinRelative(x_450, x_453); -lean_dec(x_453); -x_455 = lean_ctor_get(x_448, 2); -lean_inc(x_455); -lean_dec(x_448); -x_456 = lean_ctor_get(x_455, 1); -lean_inc(x_456); -x_457 = l_System_FilePath_normalize(x_456); -x_458 = l_Lake_joinRelative(x_454, x_457); -lean_dec(x_457); -if (lean_is_scalar(x_422)) { - x_459 = lean_alloc_ctor(1, 1, 0); -} else { - x_459 = x_422; -} -lean_ctor_set(x_459, 0, x_458); -x_460 = lean_ctor_get(x_451, 1); -lean_inc(x_460); -lean_dec(x_451); -x_461 = lean_ctor_get_uint8(x_460, sizeof(void*)*13); -x_462 = lean_ctor_get(x_455, 0); -lean_inc(x_462); -lean_dec(x_455); -x_463 = lean_ctor_get_uint8(x_462, sizeof(void*)*13); -x_464 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_461, x_463); -x_465 = lean_ctor_get(x_460, 1); -lean_inc(x_465); -x_466 = lean_ctor_get(x_462, 1); -lean_inc(x_466); -x_467 = lean_ctor_get(x_460, 0); -lean_inc(x_467); -lean_dec(x_460); -x_468 = l_Lean_LeanOptions_ofArray(x_467); -lean_dec(x_467); -switch (x_464) { -case 0: -{ -lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; -x_469 = lean_ctor_get(x_462, 0); -lean_inc(x_469); -lean_dec(x_462); -x_470 = l_Lake_BuildType_leanArgs(x_461); -x_471 = l_Array_append___rarg(x_470, x_465); -lean_dec(x_465); -x_472 = l_Array_append___rarg(x_471, x_466); -lean_dec(x_466); -x_473 = l_Lake_BuildType_leanOptions(x_461); -x_474 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_475 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_476 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_474, x_475, x_473, x_468); -x_477 = l_Lean_LeanOptions_appendArray(x_476, x_469); -lean_dec(x_469); -x_478 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__4(x_472, x_477); -x_479 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_336, x_447, x_459, x_478); -lean_dec(x_459); -lean_dec(x_447); -x_20 = x_479; -x_21 = x_446; -goto block_60; -} -case 1: -{ -lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_480 = lean_ctor_get(x_462, 0); -lean_inc(x_480); -lean_dec(x_462); -x_481 = l_Lake_BuildType_leanArgs(x_461); -x_482 = l_Array_append___rarg(x_481, x_465); -lean_dec(x_465); -x_483 = l_Array_append___rarg(x_482, x_466); -lean_dec(x_466); -x_484 = l_Lake_BuildType_leanOptions(x_461); -x_485 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_486 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_487 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_485, x_486, x_484, x_468); -x_488 = l_Lean_LeanOptions_appendArray(x_487, x_480); -lean_dec(x_480); -x_489 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__5___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__6(x_483, x_488); -x_490 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_336, x_447, x_459, x_489); -lean_dec(x_459); -lean_dec(x_447); -x_20 = x_490; -x_21 = x_446; -goto block_60; -} -default: -{ -lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; -x_491 = lean_ctor_get(x_462, 0); -lean_inc(x_491); -lean_dec(x_462); -x_492 = l_Lake_BuildType_leanArgs(x_463); -x_493 = l_Array_append___rarg(x_492, x_465); -lean_dec(x_465); -x_494 = l_Array_append___rarg(x_493, x_466); -lean_dec(x_466); -x_495 = l_Lake_BuildType_leanOptions(x_463); -x_496 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4; -x_497 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5; -x_498 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_496, x_497, x_495, x_468); -x_499 = l_Lean_LeanOptions_appendArray(x_498, x_491); -lean_dec(x_491); -x_500 = l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__7___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__8(x_494, x_499); -x_501 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs(x_3, x_1, x_336, x_447, x_459, x_500); -lean_dec(x_459); -lean_dec(x_447); -x_20 = x_501; -x_21 = x_446; -goto block_60; -} -} -} -else -{ -lean_object* x_502; lean_object* x_503; -lean_dec(x_445); -lean_dec(x_422); -lean_dec(x_421); -lean_dec(x_336); -lean_dec(x_1); -x_502 = lean_ctor_get(x_444, 1); -lean_inc(x_502); -lean_dec(x_444); -x_503 = l_Lake_lake_build___closed__3; -x_7 = x_503; -x_8 = x_502; -goto block_19; -} -} -else -{ -lean_object* x_504; lean_object* x_505; -lean_dec(x_422); -lean_dec(x_421); -lean_dec(x_336); -lean_dec(x_1); -x_504 = lean_ctor_get(x_440, 0); -lean_inc(x_504); -x_505 = lean_ctor_get(x_440, 1); -lean_inc(x_505); -lean_dec(x_440); -x_7 = x_504; -x_8 = x_505; -goto block_19; +x_20 = x_350; +x_21 = x_360; +goto block_347; } } } } } -block_520: -{ -lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; uint8_t x_513; -x_509 = lean_ctor_get(x_507, 0); -lean_inc(x_509); -x_510 = lean_ctor_get(x_507, 1); -lean_inc(x_510); -lean_dec(x_507); -x_511 = lean_array_get_size(x_510); -x_512 = lean_unsigned_to_nat(0u); -x_513 = lean_nat_dec_lt(x_512, x_511); -if (x_513 == 0) -{ -lean_dec(x_511); -lean_dec(x_510); -x_61 = x_509; -x_62 = x_508; -goto block_506; -} -else -{ -uint8_t x_514; -x_514 = lean_nat_dec_le(x_511, x_511); -if (x_514 == 0) -{ -lean_dec(x_511); -lean_dec(x_510); -x_61 = x_509; -x_62 = x_508; -goto block_506; -} -else -{ -size_t x_515; size_t x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; -x_515 = 0; -x_516 = lean_usize_of_nat(x_511); -lean_dec(x_511); -x_517 = lean_box(0); -lean_inc(x_5); -x_518 = l_Array_foldlMUnsafe_fold___at_Lake_instMonadLiftLogIOLoggerIO___spec__1(x_510, x_515, x_516, x_517, x_5, x_508); -lean_dec(x_510); -x_519 = lean_ctor_get(x_518, 1); -lean_inc(x_519); -lean_dec(x_518); -x_61 = x_509; -x_62 = x_519; -goto block_506; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -size_t x_6; size_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = l_Array_foldlMUnsafe_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__2(x_1, x_2, x_6, x_7, x_5); +lean_object* x_6; +x_6 = l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___lambda__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Array_filterMapM___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_5; +return x_6; } } LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___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) { @@ -56472,7 +56097,7 @@ x_1 = l_Lake_lake_ReservoirConfig_currentSchemaVersion___closed__2; return x_1; } } -LEAN_EXPORT lean_object* l_List_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_List_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__1(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -56481,7 +56106,7 @@ x_3 = l_Array_toJson___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPri return x_3; } } -LEAN_EXPORT lean_object* l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -56501,7 +56126,7 @@ return x_4; } } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__1() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__1() { _start: { lean_object* x_1; @@ -56509,7 +56134,7 @@ x_1 = lean_mk_string_unchecked("name", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__2() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__2() { _start: { lean_object* x_1; @@ -56517,7 +56142,7 @@ x_1 = lean_mk_string_unchecked("version", 7, 7); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__3() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__3() { _start: { lean_object* x_1; @@ -56525,7 +56150,7 @@ x_1 = lean_mk_string_unchecked("versionTags", 11, 11); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__4() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__4() { _start: { lean_object* x_1; @@ -56533,7 +56158,7 @@ x_1 = lean_mk_string_unchecked("description", 11, 11); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__5() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__5() { _start: { lean_object* x_1; @@ -56541,7 +56166,7 @@ x_1 = lean_mk_string_unchecked("keywords", 8, 8); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__6() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__6() { _start: { lean_object* x_1; @@ -56549,7 +56174,7 @@ x_1 = lean_mk_string_unchecked("homepage", 8, 8); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__7() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__7() { _start: { lean_object* x_1; @@ -56557,7 +56182,7 @@ x_1 = lean_mk_string_unchecked("platformIndependent", 19, 19); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__8() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__8() { _start: { lean_object* x_1; @@ -56565,7 +56190,7 @@ x_1 = lean_mk_string_unchecked("license", 7, 7); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__9() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__9() { _start: { lean_object* x_1; @@ -56573,7 +56198,7 @@ x_1 = lean_mk_string_unchecked("licenseFiles", 12, 12); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__10() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__10() { _start: { lean_object* x_1; @@ -56581,7 +56206,7 @@ x_1 = lean_mk_string_unchecked("readmeFile", 10, 10); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__11() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__11() { _start: { lean_object* x_1; @@ -56589,7 +56214,7 @@ x_1 = lean_mk_string_unchecked("doIndex", 7, 7); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__12() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__12() { _start: { lean_object* x_1; @@ -56597,7 +56222,7 @@ x_1 = lean_mk_string_unchecked("schemaVersion", 13, 13); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* 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; 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; @@ -56627,7 +56252,7 @@ lean_inc(x_13); lean_dec(x_1); x_14 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_14, 0, x_2); -x_15 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__1; +x_15 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__1; x_16 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); @@ -56638,15 +56263,15 @@ lean_ctor_set(x_18, 1, x_17); x_19 = l_Lake_StdVer_toString(x_3); x_20 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_20, 0, x_19); -x_21 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__2; +x_21 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__2; x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_17); -x_24 = l_List_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__1(x_4); -x_25 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__3; +x_24 = l_List_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__1(x_4); +x_25 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__3; x_26 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); @@ -56655,7 +56280,7 @@ lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_17); x_28 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_28, 0, x_5); -x_29 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__4; +x_29 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__4; x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); @@ -56663,7 +56288,7 @@ x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_17); x_32 = l_Array_toJson___at___private_Lean_Elab_ParseImportsFast_0__Lean_toJsonPrintImportResult____x40_Lean_Elab_ParseImportsFast___hyg_1540____spec__2(x_6); -x_33 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__5; +x_33 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__5; x_34 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -56672,16 +56297,16 @@ lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_17); x_36 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_36, 0, x_7); -x_37 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__6; +x_37 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__6; x_38 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); x_39 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_39, 0, x_38); lean_ctor_set(x_39, 1, x_17); -x_40 = l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__2(x_8); +x_40 = l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__2(x_8); lean_dec(x_8); -x_41 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__7; +x_41 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__7; x_42 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_40); @@ -56690,7 +56315,7 @@ lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_17); x_44 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_44, 0, x_9); -x_45 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__8; +x_45 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__8; x_46 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); @@ -56698,7 +56323,7 @@ x_47 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_17); x_48 = l_Array_toJson___at_Lake_InputDir_defaultFacetConfig___spec__3(x_10); -x_49 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__9; +x_49 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__9; x_50 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_48); @@ -56706,7 +56331,7 @@ x_51 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_51, 0, x_50); lean_ctor_set(x_51, 1, x_17); x_52 = l_Option_toJson___at___private_Lake_Load_Manifest_0__Lake_toJsonPackageEntryV6____x40_Lake_Load_Manifest___hyg_472____spec__4(x_11); -x_53 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__10; +x_53 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__10; x_54 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); @@ -56715,7 +56340,7 @@ lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_17); x_56 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_56, 0, x_12); -x_57 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__11; +x_57 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__11; x_58 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_56); @@ -56725,7 +56350,7 @@ lean_ctor_set(x_59, 1, x_17); x_60 = l_Lake_StdVer_toString(x_13); x_61 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_61, 0, x_60); -x_62 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__12; +x_62 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__12; x_63 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_61); @@ -56774,11 +56399,11 @@ x_79 = l_Lean_Json_mkObj(x_78); return x_79; } } -LEAN_EXPORT lean_object* l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__2___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__2___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____spec__2(x_1); +x_2 = l_Option_toJson___at___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____spec__2(x_1); lean_dec(x_1); return x_2; } @@ -56787,7 +56412,7 @@ static lean_object* _init_l_Lake_lake_instToJsonReservoirConfig___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_), 1, 0); return x_1; } } @@ -57941,7 +57566,7 @@ lean_ctor_set(x_51, 8, x_27); lean_ctor_set(x_51, 9, x_49); lean_ctor_set(x_51, 10, x_50); lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_48); -x_52 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_51); +x_52 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_51); x_53 = lean_unsigned_to_nat(80u); x_54 = l_Lean_Json_pretty(x_52, x_53); x_55 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_54, x_34); @@ -58051,7 +57676,7 @@ lean_ctor_set(x_84, 8, x_27); lean_ctor_set(x_84, 9, x_6); lean_ctor_set(x_84, 10, x_83); lean_ctor_set_uint8(x_84, sizeof(void*)*11, x_82); -x_85 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_84); +x_85 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_84); x_86 = lean_unsigned_to_nat(80u); x_87 = l_Lean_Json_pretty(x_85, x_86); x_88 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_87, x_34); @@ -58195,7 +57820,7 @@ lean_ctor_set(x_133, 8, x_109); lean_ctor_set(x_133, 9, x_131); lean_ctor_set(x_133, 10, x_132); lean_ctor_set_uint8(x_133, sizeof(void*)*11, x_130); -x_134 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_133); +x_134 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_133); x_135 = lean_unsigned_to_nat(80u); x_136 = l_Lean_Json_pretty(x_134, x_135); x_137 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_136, x_116); @@ -58302,7 +57927,7 @@ lean_ctor_set(x_164, 8, x_109); lean_ctor_set(x_164, 9, x_6); lean_ctor_set(x_164, 10, x_163); lean_ctor_set_uint8(x_164, sizeof(void*)*11, x_162); -x_165 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_164); +x_165 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_164); x_166 = lean_unsigned_to_nat(80u); x_167 = l_Lean_Json_pretty(x_165, x_166); x_168 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_167, x_116); @@ -58457,7 +58082,7 @@ lean_ctor_set(x_214, 8, x_189); lean_ctor_set(x_214, 9, x_212); lean_ctor_set(x_214, 10, x_213); lean_ctor_set_uint8(x_214, sizeof(void*)*11, x_211); -x_215 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_214); +x_215 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_214); x_216 = lean_unsigned_to_nat(80u); x_217 = l_Lean_Json_pretty(x_215, x_216); x_218 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_217, x_197); @@ -58569,7 +58194,7 @@ lean_ctor_set(x_246, 8, x_189); lean_ctor_set(x_246, 9, x_6); lean_ctor_set(x_246, 10, x_245); lean_ctor_set_uint8(x_246, sizeof(void*)*11, x_244); -x_247 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_246); +x_247 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_246); x_248 = lean_unsigned_to_nat(80u); x_249 = l_Lean_Json_pretty(x_247, x_248); x_250 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_249, x_197); @@ -58760,7 +58385,7 @@ lean_ctor_set(x_312, 8, x_287); lean_ctor_set(x_312, 9, x_310); lean_ctor_set(x_312, 10, x_311); lean_ctor_set_uint8(x_312, sizeof(void*)*11, x_309); -x_313 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_312); +x_313 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_312); x_314 = lean_unsigned_to_nat(80u); x_315 = l_Lean_Json_pretty(x_313, x_314); x_316 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_315, x_295); @@ -58878,7 +58503,7 @@ lean_ctor_set(x_345, 8, x_287); lean_ctor_set(x_345, 9, x_343); lean_ctor_set(x_345, 10, x_344); lean_ctor_set_uint8(x_345, sizeof(void*)*11, x_342); -x_346 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_345); +x_346 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_345); x_347 = lean_unsigned_to_nat(80u); x_348 = l_Lean_Json_pretty(x_346, x_347); x_349 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_348, x_295); @@ -59233,7 +58858,7 @@ lean_ctor_set(x_51, 8, x_26); lean_ctor_set(x_51, 9, x_49); lean_ctor_set(x_51, 10, x_50); lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_48); -x_52 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_51); +x_52 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_51); x_53 = lean_unsigned_to_nat(80u); x_54 = l_Lean_Json_pretty(x_52, x_53); x_55 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_54, x_33); @@ -59343,7 +58968,7 @@ lean_ctor_set(x_84, 8, x_26); lean_ctor_set(x_84, 9, x_5); lean_ctor_set(x_84, 10, x_83); lean_ctor_set_uint8(x_84, sizeof(void*)*11, x_82); -x_85 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_84); +x_85 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_84); x_86 = lean_unsigned_to_nat(80u); x_87 = l_Lean_Json_pretty(x_85, x_86); x_88 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_87, x_33); @@ -59488,7 +59113,7 @@ lean_ctor_set(x_134, 8, x_109); lean_ctor_set(x_134, 9, x_132); lean_ctor_set(x_134, 10, x_133); lean_ctor_set_uint8(x_134, sizeof(void*)*11, x_131); -x_135 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_134); +x_135 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_134); x_136 = lean_unsigned_to_nat(80u); x_137 = l_Lean_Json_pretty(x_135, x_136); x_138 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_137, x_116); @@ -59595,7 +59220,7 @@ lean_ctor_set(x_165, 8, x_109); lean_ctor_set(x_165, 9, x_5); lean_ctor_set(x_165, 10, x_164); lean_ctor_set_uint8(x_165, sizeof(void*)*11, x_163); -x_166 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_165); +x_166 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_165); x_167 = lean_unsigned_to_nat(80u); x_168 = l_Lean_Json_pretty(x_166, x_167); x_169 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_168, x_116); @@ -59751,7 +59376,7 @@ lean_ctor_set(x_216, 8, x_190); lean_ctor_set(x_216, 9, x_214); lean_ctor_set(x_216, 10, x_215); lean_ctor_set_uint8(x_216, sizeof(void*)*11, x_213); -x_217 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_216); +x_217 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_216); x_218 = lean_unsigned_to_nat(80u); x_219 = l_Lean_Json_pretty(x_217, x_218); x_220 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_219, x_198); @@ -59863,7 +59488,7 @@ lean_ctor_set(x_248, 8, x_190); lean_ctor_set(x_248, 9, x_5); lean_ctor_set(x_248, 10, x_247); lean_ctor_set_uint8(x_248, sizeof(void*)*11, x_246); -x_249 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_248); +x_249 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_248); x_250 = lean_unsigned_to_nat(80u); x_251 = l_Lean_Json_pretty(x_249, x_250); x_252 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_251, x_198); @@ -60055,7 +59680,7 @@ lean_ctor_set(x_315, 8, x_289); lean_ctor_set(x_315, 9, x_313); lean_ctor_set(x_315, 10, x_314); lean_ctor_set_uint8(x_315, sizeof(void*)*11, x_312); -x_316 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_315); +x_316 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_315); x_317 = lean_unsigned_to_nat(80u); x_318 = l_Lean_Json_pretty(x_316, x_317); x_319 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_318, x_297); @@ -60173,7 +59798,7 @@ lean_ctor_set(x_348, 8, x_289); lean_ctor_set(x_348, 9, x_346); lean_ctor_set(x_348, 10, x_347); lean_ctor_set_uint8(x_348, sizeof(void*)*11, x_345); -x_349 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187_(x_348); +x_349 = l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093_(x_348); x_350 = lean_unsigned_to_nat(80u); x_351 = l_Lean_Json_pretty(x_349, x_350); x_352 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_351, x_297); @@ -66743,26 +66368,18 @@ l_Lake_lake_exe___closed__1 = _init_l_Lake_lake_exe___closed__1(); lean_mark_persistent(l_Lake_lake_exe___closed__1); l_Lake_lake_exe___boxed__const__1 = _init_l_Lake_lake_exe___boxed__const__1(); lean_mark_persistent(l_Lake_lake_exe___boxed__const__1); -l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__1___closed__1); -l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___spec__2___closed__1); -l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___closed__1(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkSpawnArgs___closed__1); -l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1 = _init_l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1(); -lean_mark_persistent(l_Lean_RBNode_fold___at___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___spec__3___closed__1); +l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__1); +l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___lambda__1___closed__2); +l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___closed__1(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile_mkArgs___closed__1); l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__1(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__1); l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__2); l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__3); -l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__4); -l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__5); -l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__6 = _init_l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__6(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_evalLeanFile___closed__6); l_Lake_lake_lean___lambda__2___boxed__const__1 = _init_l_Lake_lake_lean___lambda__2___boxed__const__1(); lean_mark_persistent(l_Lake_lake_lean___lambda__2___boxed__const__1); l_Lake_lake_lean___closed__1 = _init_l_Lake_lake_lean___closed__1(); @@ -66785,30 +66402,30 @@ l_Lake_lake_ReservoirConfig_currentSchemaVersion___closed__2 = _init_l_Lake_lake lean_mark_persistent(l_Lake_lake_ReservoirConfig_currentSchemaVersion___closed__2); l_Lake_lake_ReservoirConfig_currentSchemaVersion = _init_l_Lake_lake_ReservoirConfig_currentSchemaVersion(); lean_mark_persistent(l_Lake_lake_ReservoirConfig_currentSchemaVersion); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__1(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__1); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__2(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__2); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__3 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__3(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__3); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__4 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__4(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__4); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__5 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__5(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__5); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__6 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__6(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__6); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__7 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__7(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__7); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__8 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__8(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__8); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__9 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__9(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__9); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__10 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__10(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__10); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__11 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__11(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__11); -l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__12 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__12(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7187____closed__12); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__1(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__1); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__2(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__2); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__3 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__3(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__3); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__4 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__4(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__4); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__5 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__5(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__5); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__6 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__6(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__6); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__7 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__7(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__7); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__8 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__8(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__8); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__9 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__9(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__9); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__10 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__10(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__10); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__11 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__11(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__11); +l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__12 = _init_l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__12(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_toJsonReservoirConfig____x40_Lake_CLI_Main___hyg_7093____closed__12); l_Lake_lake_instToJsonReservoirConfig___closed__1 = _init_l_Lake_lake_instToJsonReservoirConfig___closed__1(); lean_mark_persistent(l_Lake_lake_instToJsonReservoirConfig___closed__1); l_Lake_lake_instToJsonReservoirConfig = _init_l_Lake_lake_instToJsonReservoirConfig(); diff --git a/stage0/stdlib/Lake/CLI/Serve.c b/stage0/stdlib/Lake/CLI/Serve.c index b85dfa7c91..d134a45a1d 100644 --- a/stage0/stdlib/Lake/CLI/Serve.c +++ b/stage0/stdlib/Lake/CLI/Serve.c @@ -18,28 +18,26 @@ lean_object* l_Lean_Json_compress(lean_object*); lean_object* l_Lake_Workspace_findModuleBySrc_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_serve___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_AnsiMode_isEnabled(lean_object*, uint8_t, lean_object*); -static lean_object* l_Lake_setupFile___closed__11; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LeanOptions_ofArray(lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* l_Lake_Log_toString(lean_object*); static lean_object* l_Lake_setupFile___closed__9; static lean_object* l_Lake_setupFile___closed__4; -LEAN_EXPORT lean_object* l_List_foldl___at_Lake_setupFile___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Workspace_leanSrcPath(lean_object*); lean_object* lean_io_getenv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_setupFile___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Job_renew___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___boxed(lean_object*, lean_object*); lean_object* l_Lake_Env_leanSrcPath(lean_object*); -extern lean_object* l_Lake_Module_depsFacet; +lean_object* lean_module_name_of_file(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Env_baseVars(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_serve___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LeanOptions_append___lambda__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); -static lean_object* l_Lake_setupFile___closed__10; lean_object* l_Lake_OutStream_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_serve(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); @@ -48,14 +46,14 @@ LEAN_EXPORT uint8_t l_Lake_setupFile___lambda__1(lean_object*); lean_object* lean_io_process_child_wait(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Workspace_augmentedEnvVars(lean_object*); static lean_object* l_Lake_setupFile___closed__3; +extern lean_object* l_Lake_Module_setupFacet; size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_List_foldl___at_Lake_setupFile___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_resolvePath(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_serve___closed__1; lean_object* l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_serve___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +static lean_object* l_Lake_mkModuleSetup___closed__2; lean_object* l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(lean_object*, lean_object*); @@ -63,25 +61,25 @@ static lean_object* l_Lake_serve___lambda__1___closed__2; lean_object* l_Lake_BuildInfo_fetch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_logToStream(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_invalidConfigEnvVar; -lean_object* l_Lake_Workspace_findModule_x3f(lean_object*, lean_object*); lean_object* l_Lake_loadWorkspace(lean_object*, lean_object*, lean_object*); lean_object* lean_io_process_spawn(lean_object*, lean_object*); lean_object* l_Lake_Workspace_leanPath(lean_object*); LEAN_EXPORT lean_object* l_Lake_setupFile___boxed__const__2; -LEAN_EXPORT lean_object* l_Lake_setupFile(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_setupFile(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_OutStream_logEntry(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); lean_object* l_Lake_BuildType_leanOptions(uint8_t); LEAN_EXPORT lean_object* l_Lake_setupFile___lambda__2(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); uint8_t l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(uint8_t, uint8_t); static lean_object* l_Lake_serve___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lake_serve___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_mkModuleSetup___closed__1; lean_object* l_Lake_buildImportsAndDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Job_toOpaque___rarg(lean_object*); static lean_object* l_Lake_serve___lambda__1___closed__3; lean_object* l_Array_append___rarg(lean_object*, lean_object*); static lean_object* l_Lake_serve___lambda__1___closed__4; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___spec__1(size_t, size_t, lean_object*); -lean_object* l_Lake_ensureJob___at_Lake_Module_recBuildDeps___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lake_ensureJob___at_Lake_Module_recFetchSetup___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_FS_readFile(lean_object*, lean_object*); static lean_object* l_Lake_setupFile___closed__2; static lean_object* l_Lake_setupFile___closed__7; lean_object* l_IO_println___at_Lean_Environment_displayStats___spec__3(lean_object*, lean_object*); @@ -90,11 +88,11 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_setupFile___boxed__const__1; static lean_object* l_Lake_invalidConfigEnvVar___closed__1; lean_object* l_Lean_LeanOptions_appendArray(lean_object*, lean_object*); +lean_object* l_Lean_parseImports_x27(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_mkModuleSetup(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_setupFile___closed__8; -lean_object* l_String_toName(lean_object*); lean_object* l_Lake_Workspace_runFetchM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_LoggerIO_captureLog___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Env_leanPath(lean_object*); lean_object* lean_array_mk(lean_object*); static lean_object* l_Lake_setupFile___closed__1; @@ -111,11 +109,10 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_IO_eprint___at_IO_eprintln___spec__1(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lake_serve___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lake_realConfigFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_setupFile___lambda__1___boxed(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(size_t, size_t, lean_object*); static uint32_t _init_l_Lake_noConfigFileCode() { _start: { @@ -140,67 +137,22 @@ x_1 = l_Lake_invalidConfigEnvVar___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_usize_dec_lt(x_2, x_1); -if (x_4 == 0) -{ -return x_3; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; -x_5 = lean_array_uget(x_3, x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = lean_ctor_get(x_5, 0); -lean_inc(x_8); -lean_dec(x_5); -x_9 = 1; -x_10 = lean_usize_add(x_2, x_9); -x_11 = lean_array_uset(x_7, x_2, x_8); -x_2 = x_10; -x_3 = x_11; -goto _start; -} -} -} LEAN_EXPORT lean_object* l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; size_t x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_3 = l_Lake_Workspace_leanPath(x_1); x_4 = l_Lake_Workspace_leanSrcPath(x_1); -x_5 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 3); +x_6 = lean_ctor_get(x_2, 4); +lean_inc(x_6); lean_inc(x_5); -x_6 = lean_array_size(x_5); -x_7 = 0; -x_8 = l_Array_mapMUnsafe_map___at___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___spec__1(x_6, x_7, x_5); -x_9 = lean_ctor_get(x_2, 1); -lean_inc(x_9); -lean_dec(x_2); -x_10 = lean_array_size(x_9); -x_11 = l_Array_mapMUnsafe_map___at___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___spec__1(x_10, x_7, x_9); -x_12 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_12, 0, x_3); -lean_ctor_set(x_12, 1, x_4); -lean_ctor_set(x_12, 2, x_8); -lean_ctor_set(x_12, 3, x_11); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; size_t x_5; lean_object* x_6; -x_4 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___spec__1(x_4, x_5, x_3); -return x_6; +x_7 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_4); +lean_ctor_set(x_7, 2, x_5); +lean_ctor_set(x_7, 3, x_6); +return x_7; } } LEAN_EXPORT lean_object* l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths___boxed(lean_object* x_1, lean_object* x_2) { @@ -208,52 +160,254 @@ _start: { lean_object* x_3; x_3 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_1, x_2); +lean_dec(x_2); lean_dec(x_1); return x_3; } } -LEAN_EXPORT lean_object* l_List_foldl___at_Lake_setupFile___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +static lean_object* _init_l_Lake_mkModuleSetup___closed__1() { _start: { -if (lean_obj_tag(x_3) == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("build failed", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lake_mkModuleSetup___closed__2() { +_start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lake_mkModuleSetup___closed__1; +x_2 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_2, 0, x_1); return x_2; } -else +} +LEAN_EXPORT lean_object* l_Lake_mkModuleSetup(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_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_3, 1); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_String_toName(x_4); -x_7 = l_Lake_Workspace_findModule_x3f(x_6, x_1); +lean_object* x_7; +x_7 = l_Lean_parseImports_x27(x_3, x_2, x_6); if (lean_obj_tag(x_7) == 0) { -x_3 = x_5; -goto _start; +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +x_11 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); +lean_dec(x_8); +lean_inc(x_10); +lean_inc(x_2); +x_12 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps), 8, 2); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_10); +x_13 = l_Lake_Workspace_runFetchM___rarg(x_1, x_12, x_5, x_9); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_io_wait(x_16, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_box(0); +x_24 = lean_module_name_of_file(x_2, x_23, x_20); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; size_t x_31; lean_object* x_32; lean_object* x_33; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_box(0); +x_28 = lean_array_size(x_21); +x_29 = 0; +x_30 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_28, x_29, x_21); +x_31 = lean_array_size(x_22); +x_32 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_31, x_29, x_22); +x_33 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_33, 0, x_26); +lean_ctor_set(x_33, 1, x_10); +lean_ctor_set(x_33, 2, x_27); +lean_ctor_set(x_33, 3, x_30); +lean_ctor_set(x_33, 4, x_32); +lean_ctor_set(x_33, 5, x_4); +lean_ctor_set_uint8(x_33, sizeof(void*)*6, x_11); +lean_ctor_set(x_24, 0, x_33); +return x_24; } else { -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); +lean_object* x_34; lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; size_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_34 = lean_ctor_get(x_24, 0); +x_35 = lean_ctor_get(x_24, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_24); +x_36 = lean_box(0); +x_37 = lean_array_size(x_21); +x_38 = 0; +x_39 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_37, x_38, x_21); +x_40 = lean_array_size(x_22); +x_41 = l_Array_mapMUnsafe_map___at_Lake_Module_recFetchSetup___spec__5(x_40, x_38, x_22); +x_42 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_42, 0, x_34); +lean_ctor_set(x_42, 1, x_10); +lean_ctor_set(x_42, 2, x_36); +lean_ctor_set(x_42, 3, x_39); +lean_ctor_set(x_42, 4, x_41); +lean_ctor_set(x_42, 5, x_4); +lean_ctor_set_uint8(x_42, sizeof(void*)*6, x_11); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_35); +return x_43; +} +} +else +{ +uint8_t x_44; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_10); +lean_dec(x_4); +x_44 = !lean_is_exclusive(x_24); +if (x_44 == 0) +{ +return x_24; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_24, 0); +x_46 = lean_ctor_get(x_24, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_24); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_18); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_17); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_17, 0); +lean_dec(x_49); +x_50 = l_Lake_mkModuleSetup___closed__2; +lean_ctor_set_tag(x_17, 1); +lean_ctor_set(x_17, 0, x_50); +return x_17; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_17, 1); +lean_inc(x_51); +lean_dec(x_17); +x_52 = l_Lake_mkModuleSetup___closed__2; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_13); +if (x_54 == 0) +{ +return x_13; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_13, 0); +x_56 = lean_ctor_get(x_13, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_13); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_58 = !lean_is_exclusive(x_7); +if (x_58 == 0) +{ +return x_7; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_7, 0); +x_60 = lean_ctor_get(x_7, 1); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_7); -x_10 = lean_array_push(x_2, x_9); -x_2 = x_10; -x_3 = x_5; -goto _start; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } } -LEAN_EXPORT lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__2(lean_object* x_1, lean_object* x_2, uint8_t 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_EXPORT lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__1(lean_object* x_1, lean_object* x_2, uint8_t 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) { _start: { lean_object* x_10; lean_inc(x_7); -x_10 = l_Lake_ensureJob___at_Lake_Module_recBuildDeps___spec__17(x_2, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lake_ensureJob___at_Lake_Module_recFetchSetup___spec__19(x_2, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; @@ -563,63 +717,36 @@ return x_3; static lean_object* _init_l_Lake_setupFile___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_array_mk(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lake_setupFile___lambda__1___boxed), 1, 0); +return x_1; } } static lean_object* _init_l_Lake_setupFile___closed__4() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("build failed", 12, 12); +x_1 = lean_mk_string_unchecked("", 0, 0); return x_1; } } static lean_object* _init_l_Lake_setupFile___closed__5() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_setupFile___closed__4; -x_2 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_unchecked(":setup", 6, 6); +return x_1; } } static lean_object* _init_l_Lake_setupFile___closed__6() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_setupFile___lambda__1___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lake_setupFile___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("setup (", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lake_setupFile___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(")", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Lake_setupFile___closed__9() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Lake_setupFile___closed__10() { +static lean_object* _init_l_Lake_setupFile___closed__7() { _start: { lean_object* x_1; @@ -627,7 +754,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_LeanOptions_append___lambda__1___boxed), return x_1; } } -static lean_object* _init_l_Lake_setupFile___closed__11() { +static lean_object* _init_l_Lake_setupFile___closed__8() { _start: { lean_object* x_1; @@ -635,6 +762,15 @@ x_1 = lean_mk_string_unchecked("Failed to configure the Lake workspace. Please r return x_1; } } +static lean_object* _init_l_Lake_setupFile___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} static lean_object* _init_l_Lake_setupFile___boxed__const__1() { _start: { @@ -653,768 +789,766 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lake_setupFile(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lake_setupFile(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_22; uint8_t x_23; -x_22 = l_Lake_resolvePath(x_2, x_5); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_21; uint8_t x_22; +x_21 = l_Lake_resolvePath(x_2, x_4); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_285; lean_object* x_286; uint8_t x_287; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_22, 1); -x_285 = lean_ctor_get(x_1, 6); -lean_inc(x_285); -x_286 = l_Lake_realConfigFile(x_285, x_25); -x_287 = !lean_is_exclusive(x_286); -if (x_287 == 0) +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_312; lean_object* x_313; uint8_t x_314; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +x_312 = lean_ctor_get(x_1, 6); +lean_inc(x_312); +x_313 = l_Lake_realConfigFile(x_312, x_24); +x_314 = !lean_is_exclusive(x_313); +if (x_314 == 0) { -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; -x_288 = lean_ctor_get(x_286, 0); -x_289 = lean_ctor_get(x_286, 1); -x_290 = lean_string_utf8_byte_size(x_288); -x_291 = lean_unsigned_to_nat(0u); -x_292 = lean_nat_dec_eq(x_290, x_291); -lean_dec(x_290); -if (x_292 == 0) -{ -uint8_t x_293; -lean_free_object(x_286); -x_293 = lean_string_dec_eq(x_288, x_24); -lean_dec(x_288); -if (x_293 == 0) -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; -lean_free_object(x_22); -x_294 = l_Lake_invalidConfigEnvVar; -x_295 = lean_io_getenv(x_294, x_289); -x_296 = lean_ctor_get(x_295, 0); -lean_inc(x_296); -if (lean_obj_tag(x_296) == 0) -{ -lean_object* x_297; uint8_t x_298; uint8_t 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; -x_297 = lean_ctor_get(x_295, 1); -lean_inc(x_297); -lean_dec(x_295); -x_298 = lean_ctor_get_uint8(x_4, sizeof(void*)*1 + 5); -x_299 = lean_ctor_get_uint8(x_4, sizeof(void*)*1 + 6); -x_300 = lean_box(1); -x_301 = l_Lake_OutStream_get(x_300, x_297); -x_302 = lean_ctor_get(x_301, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -lean_dec(x_301); -lean_inc(x_302); -x_304 = l_Lake_AnsiMode_isEnabled(x_302, x_299, x_303); -x_305 = lean_ctor_get(x_304, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_304, 1); -lean_inc(x_306); -lean_dec(x_304); -x_307 = lean_box(x_298); -x_308 = lean_alloc_closure((void*)(l_Lake_setupFile___lambda__2___boxed), 5, 3); -lean_closure_set(x_308, 0, x_302); -lean_closure_set(x_308, 1, x_307); -lean_closure_set(x_308, 2, x_305); -x_309 = l_Lake_loadWorkspace(x_1, x_308, x_306); -if (lean_obj_tag(x_309) == 0) -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_309, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_309, 1); -lean_inc(x_311); -lean_dec(x_309); -x_312 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_312, 0, x_310); -x_26 = x_312; -x_27 = x_311; -goto block_284; -} -else -{ -lean_object* x_313; lean_object* x_314; -x_313 = lean_ctor_get(x_309, 1); -lean_inc(x_313); -lean_dec(x_309); -x_314 = lean_box(0); -x_26 = x_314; -x_27 = x_313; -goto block_284; -} -} -else -{ -lean_object* x_315; lean_object* x_316; lean_object* x_317; -lean_dec(x_24); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_315 = lean_ctor_get(x_295, 1); -lean_inc(x_315); -lean_dec(x_295); -x_316 = lean_ctor_get(x_296, 0); -lean_inc(x_316); -lean_dec(x_296); -x_317 = l_IO_eprint___at_IO_eprintln___spec__1(x_316, x_315); -if (lean_obj_tag(x_317) == 0) -{ -lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_318 = lean_ctor_get(x_317, 1); -lean_inc(x_318); +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; +x_315 = lean_ctor_get(x_313, 0); +x_316 = lean_ctor_get(x_313, 1); +x_317 = lean_string_utf8_byte_size(x_315); +x_318 = lean_unsigned_to_nat(0u); +x_319 = lean_nat_dec_eq(x_317, x_318); lean_dec(x_317); -x_319 = l_Lake_setupFile___closed__11; -x_320 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_319, x_318); -if (lean_obj_tag(x_320) == 0) +if (x_319 == 0) { -uint8_t x_321; -x_321 = !lean_is_exclusive(x_320); -if (x_321 == 0) +uint8_t x_320; +lean_free_object(x_313); +x_320 = lean_string_dec_eq(x_315, x_23); +lean_dec(x_315); +if (x_320 == 0) { -lean_object* x_322; lean_object* x_323; -x_322 = lean_ctor_get(x_320, 0); -lean_dec(x_322); -x_323 = l_Lake_setupFile___boxed__const__1; -lean_ctor_set_tag(x_320, 1); -lean_ctor_set(x_320, 0, x_323); -return x_320; -} -else +lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_free_object(x_21); +x_321 = l_Lake_invalidConfigEnvVar; +x_322 = lean_io_getenv(x_321, x_316); +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +if (lean_obj_tag(x_323) == 0) { -lean_object* x_324; lean_object* x_325; lean_object* x_326; -x_324 = lean_ctor_get(x_320, 1); +lean_object* x_324; uint8_t x_325; uint8_t x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +x_324 = lean_ctor_get(x_322, 1); lean_inc(x_324); -lean_dec(x_320); -x_325 = l_Lake_setupFile___boxed__const__1; -x_326 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_324); -return x_326; -} -} -else -{ -lean_object* x_327; lean_object* x_328; lean_object* x_329; uint8_t x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; uint8_t x_334; lean_object* x_335; uint8_t x_336; -x_327 = lean_ctor_get(x_320, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_320, 1); -lean_inc(x_328); -lean_dec(x_320); -x_329 = lean_io_error_to_string(x_327); -x_330 = 3; -x_331 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_331, 0, x_329); -lean_ctor_set_uint8(x_331, sizeof(void*)*1, x_330); -x_332 = lean_box(1); -x_333 = 1; -x_334 = 0; -x_335 = l_Lake_OutStream_logEntry(x_332, x_331, x_333, x_334, x_328); +lean_dec(x_322); +x_325 = lean_ctor_get_uint8(x_3, sizeof(void*)*1 + 5); +x_326 = lean_ctor_get_uint8(x_3, sizeof(void*)*1 + 6); +x_327 = lean_box(1); +x_328 = l_Lake_OutStream_get(x_327, x_324); +x_329 = lean_ctor_get(x_328, 0); +lean_inc(x_329); +x_330 = lean_ctor_get(x_328, 1); +lean_inc(x_330); +lean_dec(x_328); +lean_inc(x_329); +x_331 = l_Lake_AnsiMode_isEnabled(x_329, x_326, x_330); +x_332 = lean_ctor_get(x_331, 0); +lean_inc(x_332); +x_333 = lean_ctor_get(x_331, 1); +lean_inc(x_333); lean_dec(x_331); -x_336 = !lean_is_exclusive(x_335); -if (x_336 == 0) +x_334 = lean_box(x_325); +x_335 = lean_alloc_closure((void*)(l_Lake_setupFile___lambda__2___boxed), 5, 3); +lean_closure_set(x_335, 0, x_329); +lean_closure_set(x_335, 1, x_334); +lean_closure_set(x_335, 2, x_332); +x_336 = l_Lake_loadWorkspace(x_1, x_335, x_333); +if (lean_obj_tag(x_336) == 0) { -lean_object* x_337; lean_object* x_338; -x_337 = lean_ctor_get(x_335, 0); -lean_dec(x_337); -x_338 = l_Lake_setupFile___boxed__const__1; -lean_ctor_set_tag(x_335, 1); -lean_ctor_set(x_335, 0, x_338); -return x_335; +lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_337 = lean_ctor_get(x_336, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_336, 1); +lean_inc(x_338); +lean_dec(x_336); +x_339 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_339, 0, x_337); +x_25 = x_339; +x_26 = x_338; +goto block_311; } else { -lean_object* x_339; lean_object* x_340; lean_object* x_341; -x_339 = lean_ctor_get(x_335, 1); -lean_inc(x_339); -lean_dec(x_335); -x_340 = l_Lake_setupFile___boxed__const__1; -x_341 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_341, 0, x_340); -lean_ctor_set(x_341, 1, x_339); -return x_341; -} +lean_object* x_340; lean_object* x_341; +x_340 = lean_ctor_get(x_336, 1); +lean_inc(x_340); +lean_dec(x_336); +x_341 = lean_box(0); +x_25 = x_341; +x_26 = x_340; +goto block_311; } } else { -lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; lean_object* x_346; lean_object* x_347; uint8_t x_348; uint8_t x_349; lean_object* x_350; uint8_t x_351; -x_342 = lean_ctor_get(x_317, 0); -lean_inc(x_342); -x_343 = lean_ctor_get(x_317, 1); -lean_inc(x_343); -lean_dec(x_317); -x_344 = lean_io_error_to_string(x_342); -x_345 = 3; -x_346 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_346, 0, x_344); -lean_ctor_set_uint8(x_346, sizeof(void*)*1, x_345); -x_347 = lean_box(1); -x_348 = 1; -x_349 = 0; -x_350 = l_Lake_OutStream_logEntry(x_347, x_346, x_348, x_349, x_343); -lean_dec(x_346); -x_351 = !lean_is_exclusive(x_350); -if (x_351 == 0) -{ -lean_object* x_352; lean_object* x_353; -x_352 = lean_ctor_get(x_350, 0); -lean_dec(x_352); -x_353 = l_Lake_setupFile___boxed__const__1; -lean_ctor_set_tag(x_350, 1); -lean_ctor_set(x_350, 0, x_353); -return x_350; -} -else -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_354 = lean_ctor_get(x_350, 1); -lean_inc(x_354); -lean_dec(x_350); -x_355 = l_Lake_setupFile___boxed__const__1; -x_356 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_356, 0, x_355); -lean_ctor_set(x_356, 1, x_354); -return x_356; -} -} -} -} -else -{ -lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; -lean_dec(x_24); -lean_dec(x_4); +lean_object* x_342; lean_object* x_343; lean_object* x_344; +lean_dec(x_23); lean_dec(x_3); -x_357 = lean_ctor_get(x_1, 0); -lean_inc(x_357); lean_dec(x_1); -x_358 = l_Lake_Env_leanPath(x_357); -x_359 = l_Lake_Env_leanSrcPath(x_357); -x_360 = lean_box(0); -x_361 = lean_ctor_get(x_357, 0); -lean_inc(x_361); -lean_dec(x_357); -x_362 = lean_ctor_get(x_361, 4); -lean_inc(x_362); -lean_dec(x_361); -x_363 = lean_ctor_get(x_362, 0); -lean_inc(x_363); +x_342 = lean_ctor_get(x_322, 1); +lean_inc(x_342); +lean_dec(x_322); +x_343 = lean_ctor_get(x_323, 0); +lean_inc(x_343); +lean_dec(x_323); +x_344 = l_IO_eprint___at_IO_eprintln___spec__1(x_343, x_342); +if (lean_obj_tag(x_344) == 0) +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; +x_345 = lean_ctor_get(x_344, 1); +lean_inc(x_345); +lean_dec(x_344); +x_346 = l_Lake_setupFile___closed__8; +x_347 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_346, x_345); +if (lean_obj_tag(x_347) == 0) +{ +uint8_t x_348; +x_348 = !lean_is_exclusive(x_347); +if (x_348 == 0) +{ +lean_object* x_349; lean_object* x_350; +x_349 = lean_ctor_get(x_347, 0); +lean_dec(x_349); +x_350 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_347, 1); +lean_ctor_set(x_347, 0, x_350); +return x_347; +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; +x_351 = lean_ctor_get(x_347, 1); +lean_inc(x_351); +lean_dec(x_347); +x_352 = l_Lake_setupFile___boxed__const__1; +x_353 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_353, 0, x_352); +lean_ctor_set(x_353, 1, x_351); +return x_353; +} +} +else +{ +lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; lean_object* x_358; lean_object* x_359; uint8_t x_360; uint8_t x_361; lean_object* x_362; uint8_t x_363; +x_354 = lean_ctor_get(x_347, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_347, 1); +lean_inc(x_355); +lean_dec(x_347); +x_356 = lean_io_error_to_string(x_354); +x_357 = 3; +x_358 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_358, 0, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*1, x_357); +x_359 = lean_box(1); +x_360 = 1; +x_361 = 0; +x_362 = l_Lake_OutStream_logEntry(x_359, x_358, x_360, x_361, x_355); +lean_dec(x_358); +x_363 = !lean_is_exclusive(x_362); +if (x_363 == 0) +{ +lean_object* x_364; lean_object* x_365; +x_364 = lean_ctor_get(x_362, 0); +lean_dec(x_364); +x_365 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_362, 1); +lean_ctor_set(x_362, 0, x_365); +return x_362; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_366 = lean_ctor_get(x_362, 1); +lean_inc(x_366); lean_dec(x_362); -lean_ctor_set_tag(x_22, 1); -lean_ctor_set(x_22, 1, x_360); -lean_ctor_set(x_22, 0, x_363); -x_364 = lean_array_mk(x_22); -x_365 = l_Lake_setupFile___closed__3; -x_366 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_366, 0, x_358); -lean_ctor_set(x_366, 1, x_359); -lean_ctor_set(x_366, 2, x_365); -lean_ctor_set(x_366, 3, x_364); -x_367 = lean_box(0); -x_368 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_368, 0, x_366); -lean_ctor_set(x_368, 1, x_367); -x_369 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_368); -x_370 = l_Lean_Json_compress(x_369); -x_371 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_370, x_289); -if (lean_obj_tag(x_371) == 0) -{ -uint8_t x_372; -x_372 = !lean_is_exclusive(x_371); -if (x_372 == 0) -{ -return x_371; +x_367 = l_Lake_setupFile___boxed__const__1; +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_367); +lean_ctor_set(x_368, 1, x_366); +return x_368; } -else -{ -lean_object* x_373; lean_object* x_374; lean_object* x_375; -x_373 = lean_ctor_get(x_371, 0); -x_374 = lean_ctor_get(x_371, 1); -lean_inc(x_374); -lean_inc(x_373); -lean_dec(x_371); -x_375 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_375, 0, x_373); -lean_ctor_set(x_375, 1, x_374); -return x_375; } } else { -lean_object* x_376; lean_object* x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; lean_object* x_381; uint8_t x_382; uint8_t x_383; lean_object* x_384; uint8_t x_385; -x_376 = lean_ctor_get(x_371, 0); -lean_inc(x_376); -x_377 = lean_ctor_get(x_371, 1); -lean_inc(x_377); -lean_dec(x_371); -x_378 = lean_io_error_to_string(x_376); -x_379 = 3; -x_380 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_380, 0, x_378); -lean_ctor_set_uint8(x_380, sizeof(void*)*1, x_379); -x_381 = lean_box(1); -x_382 = 1; -x_383 = 0; -x_384 = l_Lake_OutStream_logEntry(x_381, x_380, x_382, x_383, x_377); -lean_dec(x_380); -x_385 = !lean_is_exclusive(x_384); -if (x_385 == 0) +lean_object* x_369; lean_object* x_370; lean_object* x_371; uint8_t x_372; lean_object* x_373; lean_object* x_374; uint8_t x_375; uint8_t x_376; lean_object* x_377; uint8_t x_378; +x_369 = lean_ctor_get(x_344, 0); +lean_inc(x_369); +x_370 = lean_ctor_get(x_344, 1); +lean_inc(x_370); +lean_dec(x_344); +x_371 = lean_io_error_to_string(x_369); +x_372 = 3; +x_373 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_373, 0, x_371); +lean_ctor_set_uint8(x_373, sizeof(void*)*1, x_372); +x_374 = lean_box(1); +x_375 = 1; +x_376 = 0; +x_377 = l_Lake_OutStream_logEntry(x_374, x_373, x_375, x_376, x_370); +lean_dec(x_373); +x_378 = !lean_is_exclusive(x_377); +if (x_378 == 0) { -lean_object* x_386; lean_object* x_387; -x_386 = lean_ctor_get(x_384, 0); -lean_dec(x_386); -x_387 = l_Lake_setupFile___boxed__const__1; -lean_ctor_set_tag(x_384, 1); -lean_ctor_set(x_384, 0, x_387); -return x_384; +lean_object* x_379; lean_object* x_380; +x_379 = lean_ctor_get(x_377, 0); +lean_dec(x_379); +x_380 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_377, 1); +lean_ctor_set(x_377, 0, x_380); +return x_377; } else { -lean_object* x_388; lean_object* x_389; lean_object* x_390; -x_388 = lean_ctor_get(x_384, 1); +lean_object* x_381; lean_object* x_382; lean_object* x_383; +x_381 = lean_ctor_get(x_377, 1); +lean_inc(x_381); +lean_dec(x_377); +x_382 = l_Lake_setupFile___boxed__const__1; +x_383 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_383, 0, x_382); +lean_ctor_set(x_383, 1, x_381); +return x_383; +} +} +} +} +else +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; +lean_dec(x_23); +lean_dec(x_3); +x_384 = lean_ctor_get(x_1, 0); +lean_inc(x_384); +lean_dec(x_1); +x_385 = l_Lake_Env_leanPath(x_384); +x_386 = l_Lake_Env_leanSrcPath(x_384); +x_387 = lean_box(0); +x_388 = lean_ctor_get(x_384, 0); lean_inc(x_388); lean_dec(x_384); -x_389 = l_Lake_setupFile___boxed__const__1; -x_390 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_390, 0, x_389); -lean_ctor_set(x_390, 1, x_388); -return x_390; -} -} -} +x_389 = lean_ctor_get(x_388, 4); +lean_inc(x_389); +lean_dec(x_388); +x_390 = lean_ctor_get(x_389, 0); +lean_inc(x_390); +lean_dec(x_389); +lean_ctor_set_tag(x_21, 1); +lean_ctor_set(x_21, 1, x_387); +lean_ctor_set(x_21, 0, x_390); +x_391 = lean_array_mk(x_21); +x_392 = l_Lake_setupFile___closed__9; +x_393 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_393, 0, x_385); +lean_ctor_set(x_393, 1, x_386); +lean_ctor_set(x_393, 2, x_392); +lean_ctor_set(x_393, 3, x_391); +x_394 = lean_box(0); +x_395 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_395, 0, x_393); +lean_ctor_set(x_395, 1, x_394); +x_396 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_395); +x_397 = l_Lean_Json_compress(x_396); +x_398 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_397, x_316); +if (lean_obj_tag(x_398) == 0) +{ +uint8_t x_399; +x_399 = !lean_is_exclusive(x_398); +if (x_399 == 0) +{ +return x_398; } else { -lean_object* x_391; -lean_dec(x_288); -lean_free_object(x_22); -lean_dec(x_24); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_391 = l_Lake_setupFile___boxed__const__2; -lean_ctor_set_tag(x_286, 1); -lean_ctor_set(x_286, 0, x_391); -return x_286; -} -} -else -{ -lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; uint8_t x_396; -x_392 = lean_ctor_get(x_286, 0); -x_393 = lean_ctor_get(x_286, 1); -lean_inc(x_393); -lean_inc(x_392); -lean_dec(x_286); -x_394 = lean_string_utf8_byte_size(x_392); -x_395 = lean_unsigned_to_nat(0u); -x_396 = lean_nat_dec_eq(x_394, x_395); -lean_dec(x_394); -if (x_396 == 0) -{ -uint8_t x_397; -x_397 = lean_string_dec_eq(x_392, x_24); -lean_dec(x_392); -if (x_397 == 0) -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; -lean_free_object(x_22); -x_398 = l_Lake_invalidConfigEnvVar; -x_399 = lean_io_getenv(x_398, x_393); -x_400 = lean_ctor_get(x_399, 0); -lean_inc(x_400); -if (lean_obj_tag(x_400) == 0) -{ -lean_object* x_401; uint8_t x_402; uint8_t x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; -x_401 = lean_ctor_get(x_399, 1); +lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_400 = lean_ctor_get(x_398, 0); +x_401 = lean_ctor_get(x_398, 1); lean_inc(x_401); -lean_dec(x_399); -x_402 = lean_ctor_get_uint8(x_4, sizeof(void*)*1 + 5); -x_403 = lean_ctor_get_uint8(x_4, sizeof(void*)*1 + 6); -x_404 = lean_box(1); -x_405 = l_Lake_OutStream_get(x_404, x_401); -x_406 = lean_ctor_get(x_405, 0); -lean_inc(x_406); -x_407 = lean_ctor_get(x_405, 1); -lean_inc(x_407); -lean_dec(x_405); -lean_inc(x_406); -x_408 = l_Lake_AnsiMode_isEnabled(x_406, x_403, x_407); -x_409 = lean_ctor_get(x_408, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_408, 1); -lean_inc(x_410); -lean_dec(x_408); -x_411 = lean_box(x_402); -x_412 = lean_alloc_closure((void*)(l_Lake_setupFile___lambda__2___boxed), 5, 3); -lean_closure_set(x_412, 0, x_406); -lean_closure_set(x_412, 1, x_411); -lean_closure_set(x_412, 2, x_409); -x_413 = l_Lake_loadWorkspace(x_1, x_412, x_410); -if (lean_obj_tag(x_413) == 0) +lean_inc(x_400); +lean_dec(x_398); +x_402 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_402, 0, x_400); +lean_ctor_set(x_402, 1, x_401); +return x_402; +} +} +else { -lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_414 = lean_ctor_get(x_413, 0); -lean_inc(x_414); -x_415 = lean_ctor_get(x_413, 1); +lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; lean_object* x_407; lean_object* x_408; uint8_t x_409; uint8_t x_410; lean_object* x_411; uint8_t x_412; +x_403 = lean_ctor_get(x_398, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_398, 1); +lean_inc(x_404); +lean_dec(x_398); +x_405 = lean_io_error_to_string(x_403); +x_406 = 3; +x_407 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_407, 0, x_405); +lean_ctor_set_uint8(x_407, sizeof(void*)*1, x_406); +x_408 = lean_box(1); +x_409 = 1; +x_410 = 0; +x_411 = l_Lake_OutStream_logEntry(x_408, x_407, x_409, x_410, x_404); +lean_dec(x_407); +x_412 = !lean_is_exclusive(x_411); +if (x_412 == 0) +{ +lean_object* x_413; lean_object* x_414; +x_413 = lean_ctor_get(x_411, 0); +lean_dec(x_413); +x_414 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_411, 1); +lean_ctor_set(x_411, 0, x_414); +return x_411; +} +else +{ +lean_object* x_415; lean_object* x_416; lean_object* x_417; +x_415 = lean_ctor_get(x_411, 1); lean_inc(x_415); -lean_dec(x_413); -x_416 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_416, 0, x_414); -x_26 = x_416; -x_27 = x_415; -goto block_284; +lean_dec(x_411); +x_416 = l_Lake_setupFile___boxed__const__1; +x_417 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_417, 0, x_416); +lean_ctor_set(x_417, 1, x_415); +return x_417; +} } -else -{ -lean_object* x_417; lean_object* x_418; -x_417 = lean_ctor_get(x_413, 1); -lean_inc(x_417); -lean_dec(x_413); -x_418 = lean_box(0); -x_26 = x_418; -x_27 = x_417; -goto block_284; } } else { -lean_object* x_419; lean_object* x_420; lean_object* x_421; -lean_dec(x_24); -lean_dec(x_4); +lean_object* x_418; +lean_dec(x_315); +lean_free_object(x_21); +lean_dec(x_23); lean_dec(x_3); lean_dec(x_1); -x_419 = lean_ctor_get(x_399, 1); -lean_inc(x_419); -lean_dec(x_399); -x_420 = lean_ctor_get(x_400, 0); +x_418 = l_Lake_setupFile___boxed__const__2; +lean_ctor_set_tag(x_313, 1); +lean_ctor_set(x_313, 0, x_418); +return x_313; +} +} +else +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; uint8_t x_423; +x_419 = lean_ctor_get(x_313, 0); +x_420 = lean_ctor_get(x_313, 1); lean_inc(x_420); -lean_dec(x_400); -x_421 = l_IO_eprint___at_IO_eprintln___spec__1(x_420, x_419); -if (lean_obj_tag(x_421) == 0) -{ -lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_422 = lean_ctor_get(x_421, 1); -lean_inc(x_422); +lean_inc(x_419); +lean_dec(x_313); +x_421 = lean_string_utf8_byte_size(x_419); +x_422 = lean_unsigned_to_nat(0u); +x_423 = lean_nat_dec_eq(x_421, x_422); lean_dec(x_421); -x_423 = l_Lake_setupFile___closed__11; -x_424 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_423, x_422); -if (lean_obj_tag(x_424) == 0) +if (x_423 == 0) { -lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_425 = lean_ctor_get(x_424, 1); -lean_inc(x_425); -if (lean_is_exclusive(x_424)) { - lean_ctor_release(x_424, 0); - lean_ctor_release(x_424, 1); - x_426 = x_424; -} else { - lean_dec_ref(x_424); - x_426 = lean_box(0); -} -x_427 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_426)) { - x_428 = lean_alloc_ctor(1, 2, 0); -} else { - x_428 = x_426; - lean_ctor_set_tag(x_428, 1); -} -lean_ctor_set(x_428, 0, x_427); -lean_ctor_set(x_428, 1, x_425); -return x_428; -} -else +uint8_t x_424; +x_424 = lean_string_dec_eq(x_419, x_23); +lean_dec(x_419); +if (x_424 == 0) { -lean_object* x_429; lean_object* x_430; lean_object* x_431; uint8_t x_432; lean_object* x_433; lean_object* x_434; uint8_t x_435; uint8_t x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; -x_429 = lean_ctor_get(x_424, 0); -lean_inc(x_429); -x_430 = lean_ctor_get(x_424, 1); -lean_inc(x_430); -lean_dec(x_424); -x_431 = lean_io_error_to_string(x_429); -x_432 = 3; -x_433 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_433, 0, x_431); -lean_ctor_set_uint8(x_433, sizeof(void*)*1, x_432); -x_434 = lean_box(1); -x_435 = 1; -x_436 = 0; -x_437 = l_Lake_OutStream_logEntry(x_434, x_433, x_435, x_436, x_430); -lean_dec(x_433); -x_438 = lean_ctor_get(x_437, 1); -lean_inc(x_438); -if (lean_is_exclusive(x_437)) { - lean_ctor_release(x_437, 0); - lean_ctor_release(x_437, 1); - x_439 = x_437; -} else { - lean_dec_ref(x_437); - x_439 = lean_box(0); -} -x_440 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_439)) { - x_441 = lean_alloc_ctor(1, 2, 0); -} else { - x_441 = x_439; - lean_ctor_set_tag(x_441, 1); -} -lean_ctor_set(x_441, 0, x_440); -lean_ctor_set(x_441, 1, x_438); -return x_441; -} -} -else +lean_object* x_425; lean_object* x_426; lean_object* x_427; +lean_free_object(x_21); +x_425 = l_Lake_invalidConfigEnvVar; +x_426 = lean_io_getenv(x_425, x_420); +x_427 = lean_ctor_get(x_426, 0); +lean_inc(x_427); +if (lean_obj_tag(x_427) == 0) { -lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; lean_object* x_446; lean_object* x_447; uint8_t x_448; uint8_t x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; -x_442 = lean_ctor_get(x_421, 0); +lean_object* x_428; uint8_t x_429; uint8_t x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; +x_428 = lean_ctor_get(x_426, 1); +lean_inc(x_428); +lean_dec(x_426); +x_429 = lean_ctor_get_uint8(x_3, sizeof(void*)*1 + 5); +x_430 = lean_ctor_get_uint8(x_3, sizeof(void*)*1 + 6); +x_431 = lean_box(1); +x_432 = l_Lake_OutStream_get(x_431, x_428); +x_433 = lean_ctor_get(x_432, 0); +lean_inc(x_433); +x_434 = lean_ctor_get(x_432, 1); +lean_inc(x_434); +lean_dec(x_432); +lean_inc(x_433); +x_435 = l_Lake_AnsiMode_isEnabled(x_433, x_430, x_434); +x_436 = lean_ctor_get(x_435, 0); +lean_inc(x_436); +x_437 = lean_ctor_get(x_435, 1); +lean_inc(x_437); +lean_dec(x_435); +x_438 = lean_box(x_429); +x_439 = lean_alloc_closure((void*)(l_Lake_setupFile___lambda__2___boxed), 5, 3); +lean_closure_set(x_439, 0, x_433); +lean_closure_set(x_439, 1, x_438); +lean_closure_set(x_439, 2, x_436); +x_440 = l_Lake_loadWorkspace(x_1, x_439, x_437); +if (lean_obj_tag(x_440) == 0) +{ +lean_object* x_441; lean_object* x_442; lean_object* x_443; +x_441 = lean_ctor_get(x_440, 0); +lean_inc(x_441); +x_442 = lean_ctor_get(x_440, 1); lean_inc(x_442); -x_443 = lean_ctor_get(x_421, 1); -lean_inc(x_443); -lean_dec(x_421); -x_444 = lean_io_error_to_string(x_442); -x_445 = 3; -x_446 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_446, 0, x_444); -lean_ctor_set_uint8(x_446, sizeof(void*)*1, x_445); -x_447 = lean_box(1); -x_448 = 1; -x_449 = 0; -x_450 = l_Lake_OutStream_logEntry(x_447, x_446, x_448, x_449, x_443); -lean_dec(x_446); -x_451 = lean_ctor_get(x_450, 1); -lean_inc(x_451); -if (lean_is_exclusive(x_450)) { - lean_ctor_release(x_450, 0); - lean_ctor_release(x_450, 1); - x_452 = x_450; -} else { - lean_dec_ref(x_450); - x_452 = lean_box(0); -} -x_453 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_452)) { - x_454 = lean_alloc_ctor(1, 2, 0); -} else { - x_454 = x_452; - lean_ctor_set_tag(x_454, 1); -} -lean_ctor_set(x_454, 0, x_453); -lean_ctor_set(x_454, 1, x_451); -return x_454; +lean_dec(x_440); +x_443 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_443, 0, x_441); +x_25 = x_443; +x_26 = x_442; +goto block_311; } +else +{ +lean_object* x_444; lean_object* x_445; +x_444 = lean_ctor_get(x_440, 1); +lean_inc(x_444); +lean_dec(x_440); +x_445 = lean_box(0); +x_25 = x_445; +x_26 = x_444; +goto block_311; } } else { -lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; -lean_dec(x_24); -lean_dec(x_4); +lean_object* x_446; lean_object* x_447; lean_object* x_448; +lean_dec(x_23); lean_dec(x_3); -x_455 = lean_ctor_get(x_1, 0); -lean_inc(x_455); lean_dec(x_1); -x_456 = l_Lake_Env_leanPath(x_455); -x_457 = l_Lake_Env_leanSrcPath(x_455); -x_458 = lean_box(0); -x_459 = lean_ctor_get(x_455, 0); -lean_inc(x_459); -lean_dec(x_455); -x_460 = lean_ctor_get(x_459, 4); -lean_inc(x_460); -lean_dec(x_459); -x_461 = lean_ctor_get(x_460, 0); -lean_inc(x_461); +x_446 = lean_ctor_get(x_426, 1); +lean_inc(x_446); +lean_dec(x_426); +x_447 = lean_ctor_get(x_427, 0); +lean_inc(x_447); +lean_dec(x_427); +x_448 = l_IO_eprint___at_IO_eprintln___spec__1(x_447, x_446); +if (lean_obj_tag(x_448) == 0) +{ +lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_449 = lean_ctor_get(x_448, 1); +lean_inc(x_449); +lean_dec(x_448); +x_450 = l_Lake_setupFile___closed__8; +x_451 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_450, x_449); +if (lean_obj_tag(x_451) == 0) +{ +lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; +x_452 = lean_ctor_get(x_451, 1); +lean_inc(x_452); +if (lean_is_exclusive(x_451)) { + lean_ctor_release(x_451, 0); + lean_ctor_release(x_451, 1); + x_453 = x_451; +} else { + lean_dec_ref(x_451); + x_453 = lean_box(0); +} +x_454 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_453)) { + x_455 = lean_alloc_ctor(1, 2, 0); +} else { + x_455 = x_453; + lean_ctor_set_tag(x_455, 1); +} +lean_ctor_set(x_455, 0, x_454); +lean_ctor_set(x_455, 1, x_452); +return x_455; +} +else +{ +lean_object* x_456; lean_object* x_457; lean_object* x_458; uint8_t x_459; lean_object* x_460; lean_object* x_461; uint8_t x_462; uint8_t x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; +x_456 = lean_ctor_get(x_451, 0); +lean_inc(x_456); +x_457 = lean_ctor_get(x_451, 1); +lean_inc(x_457); +lean_dec(x_451); +x_458 = lean_io_error_to_string(x_456); +x_459 = 3; +x_460 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_460, 0, x_458); +lean_ctor_set_uint8(x_460, sizeof(void*)*1, x_459); +x_461 = lean_box(1); +x_462 = 1; +x_463 = 0; +x_464 = l_Lake_OutStream_logEntry(x_461, x_460, x_462, x_463, x_457); lean_dec(x_460); -lean_ctor_set_tag(x_22, 1); -lean_ctor_set(x_22, 1, x_458); -lean_ctor_set(x_22, 0, x_461); -x_462 = lean_array_mk(x_22); -x_463 = l_Lake_setupFile___closed__3; -x_464 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_464, 0, x_456); -lean_ctor_set(x_464, 1, x_457); -lean_ctor_set(x_464, 2, x_463); -lean_ctor_set(x_464, 3, x_462); -x_465 = lean_box(0); -x_466 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_466, 0, x_464); -lean_ctor_set(x_466, 1, x_465); -x_467 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_466); -x_468 = l_Lean_Json_compress(x_467); -x_469 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_468, x_393); -if (lean_obj_tag(x_469) == 0) +x_465 = lean_ctor_get(x_464, 1); +lean_inc(x_465); +if (lean_is_exclusive(x_464)) { + lean_ctor_release(x_464, 0); + lean_ctor_release(x_464, 1); + x_466 = x_464; +} else { + lean_dec_ref(x_464); + x_466 = lean_box(0); +} +x_467 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_466)) { + x_468 = lean_alloc_ctor(1, 2, 0); +} else { + x_468 = x_466; + lean_ctor_set_tag(x_468, 1); +} +lean_ctor_set(x_468, 0, x_467); +lean_ctor_set(x_468, 1, x_465); +return x_468; +} +} +else { -lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; -x_470 = lean_ctor_get(x_469, 0); +lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; lean_object* x_473; lean_object* x_474; uint8_t x_475; uint8_t x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_469 = lean_ctor_get(x_448, 0); +lean_inc(x_469); +x_470 = lean_ctor_get(x_448, 1); lean_inc(x_470); -x_471 = lean_ctor_get(x_469, 1); -lean_inc(x_471); -if (lean_is_exclusive(x_469)) { - lean_ctor_release(x_469, 0); - lean_ctor_release(x_469, 1); - x_472 = x_469; +lean_dec(x_448); +x_471 = lean_io_error_to_string(x_469); +x_472 = 3; +x_473 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_473, 0, x_471); +lean_ctor_set_uint8(x_473, sizeof(void*)*1, x_472); +x_474 = lean_box(1); +x_475 = 1; +x_476 = 0; +x_477 = l_Lake_OutStream_logEntry(x_474, x_473, x_475, x_476, x_470); +lean_dec(x_473); +x_478 = lean_ctor_get(x_477, 1); +lean_inc(x_478); +if (lean_is_exclusive(x_477)) { + lean_ctor_release(x_477, 0); + lean_ctor_release(x_477, 1); + x_479 = x_477; } else { - lean_dec_ref(x_469); - x_472 = lean_box(0); + lean_dec_ref(x_477); + x_479 = lean_box(0); } -if (lean_is_scalar(x_472)) { - x_473 = lean_alloc_ctor(0, 2, 0); +x_480 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_479)) { + x_481 = lean_alloc_ctor(1, 2, 0); } else { - x_473 = x_472; + x_481 = x_479; + lean_ctor_set_tag(x_481, 1); } -lean_ctor_set(x_473, 0, x_470); -lean_ctor_set(x_473, 1, x_471); -return x_473; -} -else -{ -lean_object* x_474; lean_object* x_475; lean_object* x_476; uint8_t x_477; lean_object* x_478; lean_object* x_479; uint8_t x_480; uint8_t x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; -x_474 = lean_ctor_get(x_469, 0); -lean_inc(x_474); -x_475 = lean_ctor_get(x_469, 1); -lean_inc(x_475); -lean_dec(x_469); -x_476 = lean_io_error_to_string(x_474); -x_477 = 3; -x_478 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_478, 0, x_476); -lean_ctor_set_uint8(x_478, sizeof(void*)*1, x_477); -x_479 = lean_box(1); -x_480 = 1; -x_481 = 0; -x_482 = l_Lake_OutStream_logEntry(x_479, x_478, x_480, x_481, x_475); -lean_dec(x_478); -x_483 = lean_ctor_get(x_482, 1); -lean_inc(x_483); -if (lean_is_exclusive(x_482)) { - lean_ctor_release(x_482, 0); - lean_ctor_release(x_482, 1); - x_484 = x_482; -} else { - lean_dec_ref(x_482); - x_484 = lean_box(0); -} -x_485 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_484)) { - x_486 = lean_alloc_ctor(1, 2, 0); -} else { - x_486 = x_484; - lean_ctor_set_tag(x_486, 1); -} -lean_ctor_set(x_486, 0, x_485); -lean_ctor_set(x_486, 1, x_483); -return x_486; +lean_ctor_set(x_481, 0, x_480); +lean_ctor_set(x_481, 1, x_478); +return x_481; } } } else { -lean_object* x_487; lean_object* x_488; -lean_dec(x_392); -lean_free_object(x_22); -lean_dec(x_24); -lean_dec(x_4); +lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; +lean_dec(x_23); +lean_dec(x_3); +x_482 = lean_ctor_get(x_1, 0); +lean_inc(x_482); +lean_dec(x_1); +x_483 = l_Lake_Env_leanPath(x_482); +x_484 = l_Lake_Env_leanSrcPath(x_482); +x_485 = lean_box(0); +x_486 = lean_ctor_get(x_482, 0); +lean_inc(x_486); +lean_dec(x_482); +x_487 = lean_ctor_get(x_486, 4); +lean_inc(x_487); +lean_dec(x_486); +x_488 = lean_ctor_get(x_487, 0); +lean_inc(x_488); +lean_dec(x_487); +lean_ctor_set_tag(x_21, 1); +lean_ctor_set(x_21, 1, x_485); +lean_ctor_set(x_21, 0, x_488); +x_489 = lean_array_mk(x_21); +x_490 = l_Lake_setupFile___closed__9; +x_491 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_491, 0, x_483); +lean_ctor_set(x_491, 1, x_484); +lean_ctor_set(x_491, 2, x_490); +lean_ctor_set(x_491, 3, x_489); +x_492 = lean_box(0); +x_493 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_493, 0, x_491); +lean_ctor_set(x_493, 1, x_492); +x_494 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_493); +x_495 = l_Lean_Json_compress(x_494); +x_496 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_495, x_420); +if (lean_obj_tag(x_496) == 0) +{ +lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_497 = lean_ctor_get(x_496, 0); +lean_inc(x_497); +x_498 = lean_ctor_get(x_496, 1); +lean_inc(x_498); +if (lean_is_exclusive(x_496)) { + lean_ctor_release(x_496, 0); + lean_ctor_release(x_496, 1); + x_499 = x_496; +} else { + lean_dec_ref(x_496); + x_499 = lean_box(0); +} +if (lean_is_scalar(x_499)) { + x_500 = lean_alloc_ctor(0, 2, 0); +} else { + x_500 = x_499; +} +lean_ctor_set(x_500, 0, x_497); +lean_ctor_set(x_500, 1, x_498); +return x_500; +} +else +{ +lean_object* x_501; lean_object* x_502; lean_object* x_503; uint8_t x_504; lean_object* x_505; lean_object* x_506; uint8_t x_507; uint8_t x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; +x_501 = lean_ctor_get(x_496, 0); +lean_inc(x_501); +x_502 = lean_ctor_get(x_496, 1); +lean_inc(x_502); +lean_dec(x_496); +x_503 = lean_io_error_to_string(x_501); +x_504 = 3; +x_505 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_505, 0, x_503); +lean_ctor_set_uint8(x_505, sizeof(void*)*1, x_504); +x_506 = lean_box(1); +x_507 = 1; +x_508 = 0; +x_509 = l_Lake_OutStream_logEntry(x_506, x_505, x_507, x_508, x_502); +lean_dec(x_505); +x_510 = lean_ctor_get(x_509, 1); +lean_inc(x_510); +if (lean_is_exclusive(x_509)) { + lean_ctor_release(x_509, 0); + lean_ctor_release(x_509, 1); + x_511 = x_509; +} else { + lean_dec_ref(x_509); + x_511 = lean_box(0); +} +x_512 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_511)) { + x_513 = lean_alloc_ctor(1, 2, 0); +} else { + x_513 = x_511; + lean_ctor_set_tag(x_513, 1); +} +lean_ctor_set(x_513, 0, x_512); +lean_ctor_set(x_513, 1, x_510); +return x_513; +} +} +} +else +{ +lean_object* x_514; lean_object* x_515; +lean_dec(x_419); +lean_free_object(x_21); +lean_dec(x_23); lean_dec(x_3); lean_dec(x_1); -x_487 = l_Lake_setupFile___boxed__const__2; -x_488 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_488, 0, x_487); -lean_ctor_set(x_488, 1, x_393); -return x_488; +x_514 = l_Lake_setupFile___boxed__const__2; +x_515 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_515, 0, x_514); +lean_ctor_set(x_515, 1, x_420); +return x_515; } } -block_284: +block_311: { -if (lean_obj_tag(x_26) == 0) +if (lean_obj_tag(x_25) == 0) { -lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; -lean_dec(x_24); -lean_dec(x_4); +lean_object* x_27; lean_object* x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; +lean_dec(x_23); lean_dec(x_3); -x_28 = lean_box(1); -x_29 = l_Lake_setupFile___closed__2; -x_30 = 1; -x_31 = 0; -x_32 = l_Lake_OutStream_logEntry(x_28, x_29, x_30, x_31, x_27); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_27 = lean_box(1); +x_28 = l_Lake_setupFile___closed__2; +x_29 = 1; +x_30 = 0; +x_31 = l_Lake_OutStream_logEntry(x_27, x_28, x_29, x_30, x_26); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -x_35 = l_Lake_setupFile___boxed__const__1; -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_35); -return x_32; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +x_34 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_34); +return x_31; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_32, 1); -lean_inc(x_36); -lean_dec(x_32); -x_37 = l_Lake_setupFile___boxed__const__1; -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_31, 1); +lean_inc(x_35); +lean_dec(x_31); +x_36 = l_Lake_setupFile___boxed__const__1; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; } } else { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_26, 0); -lean_inc(x_39); -lean_dec(x_26); -lean_inc(x_24); -x_40 = l_Lake_Workspace_findModuleBySrc_x3f(x_24, x_39); +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_25, 0); +lean_inc(x_38); +lean_dec(x_25); +lean_inc(x_23); +x_39 = l_Lake_Workspace_findModuleBySrc_x3f(x_23, x_38); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; +x_40 = l_IO_FS_readFile(x_23, x_26); if (lean_obj_tag(x_40) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = l_Lake_setupFile___closed__3; -x_42 = l_List_foldl___at_Lake_setupFile___spec__1(x_39, x_41, x_3); -x_43 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps), 8, 2); -lean_closure_set(x_43, 0, x_24); -lean_closure_set(x_43, 1, x_42); -lean_inc(x_39); -x_44 = l_Lake_Workspace_runFetchM___rarg(x_39, x_43, x_4, x_27); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_45 = lean_ctor_get(x_44, 0); +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; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_ctor_get(x_38, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_43, 3); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); lean_dec(x_44); -x_47 = lean_ctor_get(x_45, 0); -lean_inc(x_47); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = l_Lean_LeanOptions_ofArray(x_46); +lean_dec(x_46); +x_48 = lean_ctor_get(x_45, 4); +lean_inc(x_48); lean_dec(x_45); -x_48 = lean_io_wait(x_47, x_46); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); +x_49 = l_Lean_LeanOptions_appendArray(x_47, x_48); lean_dec(x_48); -x_51 = !lean_is_exclusive(x_49); +lean_inc(x_38); +x_50 = l_Lake_mkModuleSetup(x_38, x_23, x_41, x_49, x_3, x_42); +if (lean_obj_tag(x_50) == 0) +{ +uint8_t x_51; +x_51 = !lean_is_exclusive(x_50); if (x_51 == 0) { 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; -x_52 = lean_ctor_get(x_49, 0); -x_53 = lean_ctor_get(x_49, 1); -lean_dec(x_53); -x_54 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_39, x_52); -lean_dec(x_39); -x_55 = lean_box(0); -lean_ctor_set(x_49, 1, x_55); -lean_ctor_set(x_49, 0, x_54); -x_56 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_49); +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +x_54 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_38, x_52); +lean_dec(x_38); +x_55 = lean_ctor_get(x_52, 5); +lean_inc(x_55); +lean_dec(x_52); +lean_ctor_set(x_50, 1, x_55); +lean_ctor_set(x_50, 0, x_54); +x_56 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_50); x_57 = l_Lean_Json_compress(x_56); -x_58 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_57, x_50); +x_58 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_57, x_53); if (lean_obj_tag(x_58) == 0) { uint8_t x_59; @@ -1482,1354 +1616,1248 @@ return x_77; } else { -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; -x_78 = lean_ctor_get(x_49, 0); +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_78 = lean_ctor_get(x_50, 0); +x_79 = lean_ctor_get(x_50, 1); +lean_inc(x_79); lean_inc(x_78); -lean_dec(x_49); -x_79 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_39, x_78); -lean_dec(x_39); -x_80 = lean_box(0); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -x_82 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_81); -x_83 = l_Lean_Json_compress(x_82); -x_84 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_83, x_50); -if (lean_obj_tag(x_84) == 0) +lean_dec(x_50); +x_80 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_38, x_78); +lean_dec(x_38); +x_81 = lean_ctor_get(x_78, 5); +lean_inc(x_81); +lean_dec(x_78); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +x_83 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_82); +x_84 = l_Lean_Json_compress(x_83); +x_85 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_84, x_79); +if (lean_obj_tag(x_85) == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_87 = x_84; +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_88 = x_85; } else { - lean_dec_ref(x_84); - x_87 = lean_box(0); + lean_dec_ref(x_85); + x_88 = lean_box(0); } -if (lean_is_scalar(x_87)) { - x_88 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(0, 2, 0); } else { - x_88 = x_87; + x_89 = x_88; } -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_86); -return x_88; +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_87); +return x_89; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_89 = lean_ctor_get(x_84, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_84, 1); +lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_90 = lean_ctor_get(x_85, 0); lean_inc(x_90); -lean_dec(x_84); -x_91 = lean_io_error_to_string(x_89); -x_92 = 3; -x_93 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set_uint8(x_93, sizeof(void*)*1, x_92); -x_94 = lean_box(1); -x_95 = 1; -x_96 = 0; -x_97 = l_Lake_OutStream_logEntry(x_94, x_93, x_95, x_96, x_90); -lean_dec(x_93); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_99 = x_97; +x_91 = lean_ctor_get(x_85, 1); +lean_inc(x_91); +lean_dec(x_85); +x_92 = lean_io_error_to_string(x_90); +x_93 = 3; +x_94 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set_uint8(x_94, sizeof(void*)*1, x_93); +x_95 = lean_box(1); +x_96 = 1; +x_97 = 0; +x_98 = l_Lake_OutStream_logEntry(x_95, x_94, x_96, x_97, x_91); +lean_dec(x_94); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_100 = x_98; } else { - lean_dec_ref(x_97); - x_99 = lean_box(0); + lean_dec_ref(x_98); + x_100 = lean_box(0); } -x_100 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_99)) { - x_101 = lean_alloc_ctor(1, 2, 0); +x_101 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_100)) { + x_102 = lean_alloc_ctor(1, 2, 0); } else { - x_101 = x_99; - lean_ctor_set_tag(x_101, 1); + x_102 = x_100; + lean_ctor_set_tag(x_102, 1); } -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_98); -return x_101; +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_99); +return x_102; } } } else { -lean_object* x_102; lean_object* x_103; -lean_dec(x_49); -lean_dec(x_39); -x_102 = lean_ctor_get(x_48, 1); -lean_inc(x_102); -lean_dec(x_48); -x_103 = l_Lake_setupFile___closed__5; -x_6 = x_103; -x_7 = x_102; -goto block_21; -} -} -else -{ -lean_object* x_104; lean_object* x_105; -lean_dec(x_39); -x_104 = lean_ctor_get(x_44, 0); +lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; lean_object* x_111; uint8_t x_112; +lean_dec(x_38); +x_103 = lean_ctor_get(x_50, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_50, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_44, 1); -lean_inc(x_105); -lean_dec(x_44); -x_6 = x_104; -x_7 = x_105; -goto block_21; -} -} -else -{ -uint8_t x_106; -lean_dec(x_24); -lean_dec(x_3); -x_106 = !lean_is_exclusive(x_40); -if (x_106 == 0) -{ -lean_object* x_107; lean_object* x_108; uint8_t x_109; 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; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_107 = lean_ctor_get(x_40, 0); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); +lean_dec(x_50); +x_105 = lean_io_error_to_string(x_103); +x_106 = 3; +x_107 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set_uint8(x_107, sizeof(void*)*1, x_106); +x_108 = lean_box(1); x_109 = 1; -x_110 = l_Lake_setupFile___closed__6; -x_111 = l_Lean_Name_toString(x_108, x_109, x_110); -x_112 = l_Lake_setupFile___closed__7; -x_113 = lean_string_append(x_112, x_111); +x_110 = 0; +x_111 = l_Lake_OutStream_logEntry(x_108, x_107, x_109, x_110, x_104); +lean_dec(x_107); +x_112 = !lean_is_exclusive(x_111); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_111, 0); +lean_dec(x_113); +x_114 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_111, 1); +lean_ctor_set(x_111, 0, x_114); +return x_111; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_111, 1); +lean_inc(x_115); lean_dec(x_111); -x_114 = l_Lake_setupFile___closed__8; -x_115 = lean_string_append(x_113, x_114); -x_116 = lean_ctor_get(x_107, 2); -lean_inc(x_116); -lean_ctor_set_tag(x_40, 0); -lean_ctor_set(x_40, 0, x_116); -x_117 = l_Lake_Module_keyword; -x_118 = l_Lake_Module_depsFacet; -lean_inc(x_107); -x_119 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_119, 0, x_40); -lean_ctor_set(x_119, 1, x_117); -lean_ctor_set(x_119, 2, x_107); -lean_ctor_set(x_119, 3, x_118); -x_120 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); -lean_closure_set(x_120, 0, x_119); -lean_closure_set(x_120, 1, lean_box(0)); -x_121 = 0; -x_122 = lean_box(x_121); -x_123 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__2___boxed), 9, 3); -lean_closure_set(x_123, 0, x_115); -lean_closure_set(x_123, 1, x_120); -lean_closure_set(x_123, 2, x_122); -lean_inc(x_39); -x_124 = l_Lake_Workspace_runFetchM___rarg(x_39, x_123, x_4, x_27); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -lean_dec(x_124); -x_127 = lean_ctor_get(x_125, 0); -lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_io_wait(x_127, x_126); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; uint8_t x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -x_131 = lean_ctor_get(x_129, 0); -lean_inc(x_131); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_132 = x_129; -} else { - lean_dec_ref(x_129); - x_132 = lean_box(0); -} -x_133 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_39, x_131); -lean_dec(x_39); -x_159 = lean_ctor_get(x_107, 0); -lean_inc(x_159); -lean_dec(x_107); -x_160 = lean_box(0); -x_161 = lean_ctor_get(x_159, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_161, 3); -lean_inc(x_162); -lean_dec(x_161); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -lean_dec(x_162); -x_164 = lean_ctor_get_uint8(x_163, sizeof(void*)*13); -x_165 = lean_ctor_get(x_159, 2); -lean_inc(x_165); -lean_dec(x_159); -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -lean_dec(x_165); -x_167 = lean_ctor_get_uint8(x_166, sizeof(void*)*13); -x_168 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_164, x_167); -x_169 = lean_ctor_get(x_163, 0); -lean_inc(x_169); -x_170 = l_Lean_LeanOptions_ofArray(x_169); -lean_dec(x_169); -x_171 = lean_ctor_get(x_163, 4); -lean_inc(x_171); -lean_dec(x_163); -x_172 = l_Lean_LeanOptions_appendArray(x_170, x_171); -lean_dec(x_171); -x_173 = lean_box(x_168); -if (lean_obj_tag(x_173) == 2) -{ -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; -x_174 = lean_ctor_get(x_166, 0); -lean_inc(x_174); -x_175 = lean_ctor_get(x_166, 4); -lean_inc(x_175); -lean_dec(x_166); -x_176 = l_Lake_BuildType_leanOptions(x_167); -x_177 = l_Lake_setupFile___closed__9; -x_178 = l_Lake_setupFile___closed__10; -x_179 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_177, x_178, x_160, x_176); -x_180 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_177, x_178, x_179, x_172); -x_181 = l_Lean_LeanOptions_appendArray(x_180, x_174); -lean_dec(x_174); -x_182 = l_Lean_LeanOptions_appendArray(x_181, x_175); -lean_dec(x_175); -x_134 = x_182; -goto block_158; -} -else -{ -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; -lean_dec(x_173); -x_183 = lean_ctor_get(x_166, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_166, 4); -lean_inc(x_184); -lean_dec(x_166); -x_185 = l_Lake_BuildType_leanOptions(x_164); -x_186 = l_Lake_setupFile___closed__9; -x_187 = l_Lake_setupFile___closed__10; -x_188 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_186, x_187, x_160, x_185); -x_189 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_186, x_187, x_188, x_172); -x_190 = l_Lean_LeanOptions_appendArray(x_189, x_183); -lean_dec(x_183); -x_191 = l_Lean_LeanOptions_appendArray(x_190, x_184); -lean_dec(x_184); -x_134 = x_191; -goto block_158; -} -block_158: -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -if (lean_is_scalar(x_132)) { - x_135 = lean_alloc_ctor(0, 2, 0); -} else { - x_135 = x_132; -} -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -x_136 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_135); -x_137 = l_Lean_Json_compress(x_136); -x_138 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_137, x_130); -if (lean_obj_tag(x_138) == 0) -{ -uint8_t x_139; -x_139 = !lean_is_exclusive(x_138); -if (x_139 == 0) -{ -return x_138; -} -else -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_138, 0); -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_138); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; -} -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; uint8_t x_150; lean_object* x_151; uint8_t x_152; -x_143 = lean_ctor_get(x_138, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_138, 1); -lean_inc(x_144); -lean_dec(x_138); -x_145 = lean_io_error_to_string(x_143); -x_146 = 3; -x_147 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set_uint8(x_147, sizeof(void*)*1, x_146); -x_148 = lean_box(1); -x_149 = 1; -x_150 = 0; -x_151 = l_Lake_OutStream_logEntry(x_148, x_147, x_149, x_150, x_144); -lean_dec(x_147); -x_152 = !lean_is_exclusive(x_151); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; -x_153 = lean_ctor_get(x_151, 0); -lean_dec(x_153); -x_154 = l_Lake_setupFile___boxed__const__1; -lean_ctor_set_tag(x_151, 1); -lean_ctor_set(x_151, 0, x_154); -return x_151; -} -else -{ -lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_155 = lean_ctor_get(x_151, 1); -lean_inc(x_155); -lean_dec(x_151); -x_156 = l_Lake_setupFile___boxed__const__1; -x_157 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_155); -return x_157; -} +x_116 = l_Lake_setupFile___boxed__const__1; +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_115); +return x_117; } } } else { -lean_object* x_192; lean_object* x_193; -lean_dec(x_129); -lean_dec(x_107); -lean_dec(x_39); -x_192 = lean_ctor_get(x_128, 1); -lean_inc(x_192); -lean_dec(x_128); -x_193 = l_Lake_setupFile___closed__5; -x_6 = x_193; -x_7 = x_192; -goto block_21; -} -} -else -{ -lean_object* x_194; lean_object* x_195; -lean_dec(x_107); -lean_dec(x_39); -x_194 = lean_ctor_get(x_124, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_124, 1); -lean_inc(x_195); -lean_dec(x_124); -x_6 = x_194; -x_7 = x_195; -goto block_21; -} -} -else -{ -lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_196 = lean_ctor_get(x_40, 0); -lean_inc(x_196); +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; uint8_t x_125; lean_object* x_126; uint8_t x_127; +lean_dec(x_38); +lean_dec(x_23); +lean_dec(x_3); +x_118 = lean_ctor_get(x_40, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_40, 1); +lean_inc(x_119); lean_dec(x_40); -x_197 = lean_ctor_get(x_196, 1); -lean_inc(x_197); -x_198 = 1; -x_199 = l_Lake_setupFile___closed__6; -x_200 = l_Lean_Name_toString(x_197, x_198, x_199); -x_201 = l_Lake_setupFile___closed__7; -x_202 = lean_string_append(x_201, x_200); -lean_dec(x_200); -x_203 = l_Lake_setupFile___closed__8; -x_204 = lean_string_append(x_202, x_203); -x_205 = lean_ctor_get(x_196, 2); -lean_inc(x_205); -x_206 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_206, 0, x_205); -x_207 = l_Lake_Module_keyword; -x_208 = l_Lake_Module_depsFacet; +x_120 = lean_io_error_to_string(x_118); +x_121 = 3; +x_122 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set_uint8(x_122, sizeof(void*)*1, x_121); +x_123 = lean_box(1); +x_124 = 1; +x_125 = 0; +x_126 = l_Lake_OutStream_logEntry(x_123, x_122, x_124, x_125, x_119); +lean_dec(x_122); +x_127 = !lean_is_exclusive(x_126); +if (x_127 == 0) +{ +lean_object* x_128; lean_object* x_129; +x_128 = lean_ctor_get(x_126, 0); +lean_dec(x_128); +x_129 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_126, 1); +lean_ctor_set(x_126, 0, x_129); +return x_126; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_126, 1); +lean_inc(x_130); +lean_dec(x_126); +x_131 = l_Lake_setupFile___boxed__const__1; +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_130); +return x_132; +} +} +} +else +{ +uint8_t x_133; +lean_dec(x_23); +x_133 = !lean_is_exclusive(x_39); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; uint8_t 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; uint8_t x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_134 = lean_ctor_get(x_39, 0); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +x_136 = 1; +x_137 = l_Lake_setupFile___closed__3; +x_138 = l_Lean_Name_toString(x_135, x_136, x_137); +x_139 = l_Lake_setupFile___closed__4; +x_140 = lean_string_append(x_139, x_138); +lean_dec(x_138); +x_141 = l_Lake_setupFile___closed__5; +x_142 = lean_string_append(x_140, x_141); +x_143 = lean_ctor_get(x_134, 2); +lean_inc(x_143); +lean_ctor_set_tag(x_39, 0); +lean_ctor_set(x_39, 0, x_143); +x_144 = l_Lake_Module_keyword; +x_145 = l_Lake_Module_setupFacet; +lean_inc(x_134); +x_146 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_146, 0, x_39); +lean_ctor_set(x_146, 1, x_144); +lean_ctor_set(x_146, 2, x_134); +lean_ctor_set(x_146, 3, x_145); +x_147 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); +lean_closure_set(x_147, 0, x_146); +lean_closure_set(x_147, 1, lean_box(0)); +x_148 = 0; +x_149 = lean_box(x_148); +x_150 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__1___boxed), 9, 3); +lean_closure_set(x_150, 0, x_142); +lean_closure_set(x_150, 1, x_147); +lean_closure_set(x_150, 2, x_149); +lean_inc(x_38); +x_151 = l_Lake_Workspace_runFetchM___rarg(x_38, x_150, x_3, x_26); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_152 = lean_ctor_get(x_151, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); +lean_dec(x_151); +x_154 = lean_ctor_get(x_152, 0); +lean_inc(x_154); +lean_dec(x_152); +x_155 = lean_io_wait(x_154, x_153); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; uint8_t x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_ctor_get(x_156, 0); +lean_inc(x_158); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_159 = x_156; +} else { + lean_dec_ref(x_156); + x_159 = lean_box(0); +} +x_160 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_38, x_158); +lean_dec(x_158); +lean_dec(x_38); +x_186 = lean_ctor_get(x_134, 0); +lean_inc(x_186); +lean_dec(x_134); +x_187 = lean_box(0); +x_188 = lean_ctor_get(x_186, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_188, 3); +lean_inc(x_189); +lean_dec(x_188); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = lean_ctor_get_uint8(x_190, sizeof(void*)*13); +x_192 = lean_ctor_get(x_186, 2); +lean_inc(x_192); +lean_dec(x_186); +x_193 = lean_ctor_get(x_192, 0); +lean_inc(x_193); +lean_dec(x_192); +x_194 = lean_ctor_get_uint8(x_193, sizeof(void*)*13); +x_195 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_191, x_194); +x_196 = lean_ctor_get(x_190, 0); lean_inc(x_196); -x_209 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_209, 0, x_206); -lean_ctor_set(x_209, 1, x_207); -lean_ctor_set(x_209, 2, x_196); -lean_ctor_set(x_209, 3, x_208); -x_210 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); -lean_closure_set(x_210, 0, x_209); -lean_closure_set(x_210, 1, lean_box(0)); -x_211 = 0; -x_212 = lean_box(x_211); -x_213 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__2___boxed), 9, 3); -lean_closure_set(x_213, 0, x_204); -lean_closure_set(x_213, 1, x_210); -lean_closure_set(x_213, 2, x_212); -lean_inc(x_39); -x_214 = l_Lake_Workspace_runFetchM___rarg(x_39, x_213, x_4, x_27); -if (lean_obj_tag(x_214) == 0) +x_197 = l_Lean_LeanOptions_ofArray(x_196); +lean_dec(x_196); +x_198 = lean_ctor_get(x_190, 4); +lean_inc(x_198); +lean_dec(x_190); +x_199 = l_Lean_LeanOptions_appendArray(x_197, x_198); +lean_dec(x_198); +x_200 = lean_box(x_195); +if (lean_obj_tag(x_200) == 2) { -lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_215 = lean_ctor_get(x_214, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_214, 1); -lean_inc(x_216); -lean_dec(x_214); -x_217 = lean_ctor_get(x_215, 0); -lean_inc(x_217); -lean_dec(x_215); -x_218 = lean_io_wait(x_217, x_216); -x_219 = lean_ctor_get(x_218, 0); +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_201 = lean_ctor_get(x_193, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_193, 4); +lean_inc(x_202); +lean_dec(x_193); +x_203 = l_Lake_BuildType_leanOptions(x_194); +x_204 = l_Lake_setupFile___closed__6; +x_205 = l_Lake_setupFile___closed__7; +x_206 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_204, x_205, x_187, x_203); +x_207 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_204, x_205, x_206, x_199); +x_208 = l_Lean_LeanOptions_appendArray(x_207, x_201); +lean_dec(x_201); +x_209 = l_Lean_LeanOptions_appendArray(x_208, x_202); +lean_dec(x_202); +x_161 = x_209; +goto block_185; +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +lean_dec(x_200); +x_210 = lean_ctor_get(x_193, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_193, 4); +lean_inc(x_211); +lean_dec(x_193); +x_212 = l_Lake_BuildType_leanOptions(x_191); +x_213 = l_Lake_setupFile___closed__6; +x_214 = l_Lake_setupFile___closed__7; +x_215 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_213, x_214, x_187, x_212); +x_216 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_213, x_214, x_215, x_199); +x_217 = l_Lean_LeanOptions_appendArray(x_216, x_210); +lean_dec(x_210); +x_218 = l_Lean_LeanOptions_appendArray(x_217, x_211); +lean_dec(x_211); +x_161 = x_218; +goto block_185; +} +block_185: +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +if (lean_is_scalar(x_159)) { + x_162 = lean_alloc_ctor(0, 2, 0); +} else { + x_162 = x_159; +} +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +x_163 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_162); +x_164 = l_Lean_Json_compress(x_163); +x_165 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_164, x_157); +if (lean_obj_tag(x_165) == 0) +{ +uint8_t x_166; +x_166 = !lean_is_exclusive(x_165); +if (x_166 == 0) +{ +return x_165; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_165, 0); +x_168 = lean_ctor_get(x_165, 1); +lean_inc(x_168); +lean_inc(x_167); +lean_dec(x_165); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +return x_169; +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; uint8_t x_177; lean_object* x_178; uint8_t x_179; +x_170 = lean_ctor_get(x_165, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_165, 1); +lean_inc(x_171); +lean_dec(x_165); +x_172 = lean_io_error_to_string(x_170); +x_173 = 3; +x_174 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_174, 0, x_172); +lean_ctor_set_uint8(x_174, sizeof(void*)*1, x_173); +x_175 = lean_box(1); +x_176 = 1; +x_177 = 0; +x_178 = l_Lake_OutStream_logEntry(x_175, x_174, x_176, x_177, x_171); +lean_dec(x_174); +x_179 = !lean_is_exclusive(x_178); +if (x_179 == 0) +{ +lean_object* x_180; lean_object* x_181; +x_180 = lean_ctor_get(x_178, 0); +lean_dec(x_180); +x_181 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_178, 1); +lean_ctor_set(x_178, 0, x_181); +return x_178; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_178, 1); +lean_inc(x_182); +lean_dec(x_178); +x_183 = l_Lake_setupFile___boxed__const__1; +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_182); +return x_184; +} +} +} +} +else +{ +lean_object* x_219; lean_object* x_220; +lean_dec(x_156); +lean_dec(x_134); +lean_dec(x_38); +x_219 = lean_ctor_get(x_155, 1); lean_inc(x_219); -if (lean_obj_tag(x_219) == 0) +lean_dec(x_155); +x_220 = l_Lake_mkModuleSetup___closed__2; +x_5 = x_220; +x_6 = x_219; +goto block_20; +} +} +else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; uint8_t x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); -lean_dec(x_218); -x_221 = lean_ctor_get(x_219, 0); +lean_object* x_221; lean_object* x_222; +lean_dec(x_134); +lean_dec(x_38); +x_221 = lean_ctor_get(x_151, 0); lean_inc(x_221); -if (lean_is_exclusive(x_219)) { - lean_ctor_release(x_219, 0); - lean_ctor_release(x_219, 1); - x_222 = x_219; -} else { - lean_dec_ref(x_219); - x_222 = lean_box(0); +x_222 = lean_ctor_get(x_151, 1); +lean_inc(x_222); +lean_dec(x_151); +x_5 = x_221; +x_6 = x_222; +goto block_20; } -x_223 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_39, x_221); +} +else +{ +lean_object* x_223; lean_object* x_224; uint8_t x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; uint8_t x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +x_223 = lean_ctor_get(x_39, 0); +lean_inc(x_223); lean_dec(x_39); -x_247 = lean_ctor_get(x_196, 0); -lean_inc(x_247); -lean_dec(x_196); -x_248 = lean_box(0); -x_249 = lean_ctor_get(x_247, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_249, 3); -lean_inc(x_250); -lean_dec(x_249); -x_251 = lean_ctor_get(x_250, 1); -lean_inc(x_251); -lean_dec(x_250); -x_252 = lean_ctor_get_uint8(x_251, sizeof(void*)*13); -x_253 = lean_ctor_get(x_247, 2); -lean_inc(x_253); -lean_dec(x_247); -x_254 = lean_ctor_get(x_253, 0); -lean_inc(x_254); -lean_dec(x_253); -x_255 = lean_ctor_get_uint8(x_254, sizeof(void*)*13); -x_256 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_252, x_255); -x_257 = lean_ctor_get(x_251, 0); -lean_inc(x_257); -x_258 = l_Lean_LeanOptions_ofArray(x_257); -lean_dec(x_257); -x_259 = lean_ctor_get(x_251, 4); -lean_inc(x_259); -lean_dec(x_251); -x_260 = l_Lean_LeanOptions_appendArray(x_258, x_259); -lean_dec(x_259); -x_261 = lean_box(x_256); -if (lean_obj_tag(x_261) == 2) +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +x_225 = 1; +x_226 = l_Lake_setupFile___closed__3; +x_227 = l_Lean_Name_toString(x_224, x_225, x_226); +x_228 = l_Lake_setupFile___closed__4; +x_229 = lean_string_append(x_228, x_227); +lean_dec(x_227); +x_230 = l_Lake_setupFile___closed__5; +x_231 = lean_string_append(x_229, x_230); +x_232 = lean_ctor_get(x_223, 2); +lean_inc(x_232); +x_233 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_233, 0, x_232); +x_234 = l_Lake_Module_keyword; +x_235 = l_Lake_Module_setupFacet; +lean_inc(x_223); +x_236 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_236, 0, x_233); +lean_ctor_set(x_236, 1, x_234); +lean_ctor_set(x_236, 2, x_223); +lean_ctor_set(x_236, 3, x_235); +x_237 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); +lean_closure_set(x_237, 0, x_236); +lean_closure_set(x_237, 1, lean_box(0)); +x_238 = 0; +x_239 = lean_box(x_238); +x_240 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__1___boxed), 9, 3); +lean_closure_set(x_240, 0, x_231); +lean_closure_set(x_240, 1, x_237); +lean_closure_set(x_240, 2, x_239); +lean_inc(x_38); +x_241 = l_Lake_Workspace_runFetchM___rarg(x_38, x_240, x_3, x_26); +if (lean_obj_tag(x_241) == 0) { -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; -x_262 = lean_ctor_get(x_254, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_254, 4); -lean_inc(x_263); -lean_dec(x_254); -x_264 = l_Lake_BuildType_leanOptions(x_255); -x_265 = l_Lake_setupFile___closed__9; -x_266 = l_Lake_setupFile___closed__10; -x_267 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_265, x_266, x_248, x_264); -x_268 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_265, x_266, x_267, x_260); -x_269 = l_Lean_LeanOptions_appendArray(x_268, x_262); -lean_dec(x_262); -x_270 = l_Lean_LeanOptions_appendArray(x_269, x_263); -lean_dec(x_263); -x_224 = x_270; -goto block_246; -} -else -{ -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_dec(x_261); -x_271 = lean_ctor_get(x_254, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_254, 4); -lean_inc(x_272); -lean_dec(x_254); -x_273 = l_Lake_BuildType_leanOptions(x_252); -x_274 = l_Lake_setupFile___closed__9; -x_275 = l_Lake_setupFile___closed__10; -x_276 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_274, x_275, x_248, x_273); -x_277 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_274, x_275, x_276, x_260); -x_278 = l_Lean_LeanOptions_appendArray(x_277, x_271); -lean_dec(x_271); -x_279 = l_Lean_LeanOptions_appendArray(x_278, x_272); -lean_dec(x_272); -x_224 = x_279; -goto block_246; -} -block_246: -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -if (lean_is_scalar(x_222)) { - x_225 = lean_alloc_ctor(0, 2, 0); -} else { - x_225 = x_222; -} -lean_ctor_set(x_225, 0, x_223); -lean_ctor_set(x_225, 1, x_224); -x_226 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_225); -x_227 = l_Lean_Json_compress(x_226); -x_228 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_227, x_220); -if (lean_obj_tag(x_228) == 0) -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_231 = x_228; -} else { - lean_dec_ref(x_228); - x_231 = lean_box(0); -} -if (lean_is_scalar(x_231)) { - x_232 = lean_alloc_ctor(0, 2, 0); -} else { - x_232 = x_231; -} -lean_ctor_set(x_232, 0, x_229); -lean_ctor_set(x_232, 1, x_230); -return x_232; -} -else -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; uint8_t x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; uint8_t x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_233 = lean_ctor_get(x_228, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_228, 1); -lean_inc(x_234); -lean_dec(x_228); -x_235 = lean_io_error_to_string(x_233); -x_236 = 3; -x_237 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_237, 0, x_235); -lean_ctor_set_uint8(x_237, sizeof(void*)*1, x_236); -x_238 = lean_box(1); -x_239 = 1; -x_240 = 0; -x_241 = l_Lake_OutStream_logEntry(x_238, x_237, x_239, x_240, x_234); -lean_dec(x_237); -x_242 = lean_ctor_get(x_241, 1); +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_242 = lean_ctor_get(x_241, 0); lean_inc(x_242); -if (lean_is_exclusive(x_241)) { - lean_ctor_release(x_241, 0); - lean_ctor_release(x_241, 1); - x_243 = x_241; -} else { - lean_dec_ref(x_241); - x_243 = lean_box(0); -} -x_244 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_243)) { - x_245 = lean_alloc_ctor(1, 2, 0); -} else { - x_245 = x_243; - lean_ctor_set_tag(x_245, 1); -} -lean_ctor_set(x_245, 0, x_244); -lean_ctor_set(x_245, 1, x_242); -return x_245; -} -} -} -else +x_243 = lean_ctor_get(x_241, 1); +lean_inc(x_243); +lean_dec(x_241); +x_244 = lean_ctor_get(x_242, 0); +lean_inc(x_244); +lean_dec(x_242); +x_245 = lean_io_wait(x_244, x_243); +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +if (lean_obj_tag(x_246) == 0) { -lean_object* x_280; lean_object* x_281; -lean_dec(x_219); -lean_dec(x_196); -lean_dec(x_39); -x_280 = lean_ctor_get(x_218, 1); +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); +lean_dec(x_245); +x_248 = lean_ctor_get(x_246, 0); +lean_inc(x_248); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_249 = x_246; +} else { + lean_dec_ref(x_246); + x_249 = lean_box(0); +} +x_250 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_38, x_248); +lean_dec(x_248); +lean_dec(x_38); +x_274 = lean_ctor_get(x_223, 0); +lean_inc(x_274); +lean_dec(x_223); +x_275 = lean_box(0); +x_276 = lean_ctor_get(x_274, 0); +lean_inc(x_276); +x_277 = lean_ctor_get(x_276, 3); +lean_inc(x_277); +lean_dec(x_276); +x_278 = lean_ctor_get(x_277, 1); +lean_inc(x_278); +lean_dec(x_277); +x_279 = lean_ctor_get_uint8(x_278, sizeof(void*)*13); +x_280 = lean_ctor_get(x_274, 2); lean_inc(x_280); -lean_dec(x_218); -x_281 = l_Lake_setupFile___closed__5; -x_6 = x_281; -x_7 = x_280; -goto block_21; -} +lean_dec(x_274); +x_281 = lean_ctor_get(x_280, 0); +lean_inc(x_281); +lean_dec(x_280); +x_282 = lean_ctor_get_uint8(x_281, sizeof(void*)*13); +x_283 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_279, x_282); +x_284 = lean_ctor_get(x_278, 0); +lean_inc(x_284); +x_285 = l_Lean_LeanOptions_ofArray(x_284); +lean_dec(x_284); +x_286 = lean_ctor_get(x_278, 4); +lean_inc(x_286); +lean_dec(x_278); +x_287 = l_Lean_LeanOptions_appendArray(x_285, x_286); +lean_dec(x_286); +x_288 = lean_box(x_283); +if (lean_obj_tag(x_288) == 2) +{ +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; +x_289 = lean_ctor_get(x_281, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_281, 4); +lean_inc(x_290); +lean_dec(x_281); +x_291 = l_Lake_BuildType_leanOptions(x_282); +x_292 = l_Lake_setupFile___closed__6; +x_293 = l_Lake_setupFile___closed__7; +x_294 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_292, x_293, x_275, x_291); +x_295 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_292, x_293, x_294, x_287); +x_296 = l_Lean_LeanOptions_appendArray(x_295, x_289); +lean_dec(x_289); +x_297 = l_Lean_LeanOptions_appendArray(x_296, x_290); +lean_dec(x_290); +x_251 = x_297; +goto block_273; } else { -lean_object* x_282; lean_object* x_283; -lean_dec(x_196); -lean_dec(x_39); -x_282 = lean_ctor_get(x_214, 0); -lean_inc(x_282); -x_283 = lean_ctor_get(x_214, 1); -lean_inc(x_283); -lean_dec(x_214); -x_6 = x_282; -x_7 = x_283; -goto block_21; +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_dec(x_288); +x_298 = lean_ctor_get(x_281, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_281, 4); +lean_inc(x_299); +lean_dec(x_281); +x_300 = l_Lake_BuildType_leanOptions(x_279); +x_301 = l_Lake_setupFile___closed__6; +x_302 = l_Lake_setupFile___closed__7; +x_303 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_301, x_302, x_275, x_300); +x_304 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_301, x_302, x_303, x_287); +x_305 = l_Lean_LeanOptions_appendArray(x_304, x_298); +lean_dec(x_298); +x_306 = l_Lean_LeanOptions_appendArray(x_305, x_299); +lean_dec(x_299); +x_251 = x_306; +goto block_273; } -} -} -} -} -} -else +block_273: { -lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; uint8_t x_640; -x_489 = lean_ctor_get(x_22, 0); -x_490 = lean_ctor_get(x_22, 1); -lean_inc(x_490); -lean_inc(x_489); -lean_dec(x_22); -x_633 = lean_ctor_get(x_1, 6); -lean_inc(x_633); -x_634 = l_Lake_realConfigFile(x_633, x_490); -x_635 = lean_ctor_get(x_634, 0); -lean_inc(x_635); -x_636 = lean_ctor_get(x_634, 1); -lean_inc(x_636); -if (lean_is_exclusive(x_634)) { - lean_ctor_release(x_634, 0); - lean_ctor_release(x_634, 1); - x_637 = x_634; +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +if (lean_is_scalar(x_249)) { + x_252 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_634); - x_637 = lean_box(0); + x_252 = x_249; } -x_638 = lean_string_utf8_byte_size(x_635); -x_639 = lean_unsigned_to_nat(0u); -x_640 = lean_nat_dec_eq(x_638, x_639); -lean_dec(x_638); -if (x_640 == 0) +lean_ctor_set(x_252, 0, x_250); +lean_ctor_set(x_252, 1, x_251); +x_253 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_252); +x_254 = l_Lean_Json_compress(x_253); +x_255 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_254, x_247); +if (lean_obj_tag(x_255) == 0) { -uint8_t x_641; -lean_dec(x_637); -x_641 = lean_string_dec_eq(x_635, x_489); -lean_dec(x_635); -if (x_641 == 0) -{ -lean_object* x_642; lean_object* x_643; lean_object* x_644; -x_642 = l_Lake_invalidConfigEnvVar; -x_643 = lean_io_getenv(x_642, x_636); -x_644 = lean_ctor_get(x_643, 0); -lean_inc(x_644); -if (lean_obj_tag(x_644) == 0) -{ -lean_object* x_645; uint8_t x_646; uint8_t x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; -x_645 = lean_ctor_get(x_643, 1); -lean_inc(x_645); -lean_dec(x_643); -x_646 = lean_ctor_get_uint8(x_4, sizeof(void*)*1 + 5); -x_647 = lean_ctor_get_uint8(x_4, sizeof(void*)*1 + 6); -x_648 = lean_box(1); -x_649 = l_Lake_OutStream_get(x_648, x_645); -x_650 = lean_ctor_get(x_649, 0); -lean_inc(x_650); -x_651 = lean_ctor_get(x_649, 1); -lean_inc(x_651); -lean_dec(x_649); -lean_inc(x_650); -x_652 = l_Lake_AnsiMode_isEnabled(x_650, x_647, x_651); -x_653 = lean_ctor_get(x_652, 0); -lean_inc(x_653); -x_654 = lean_ctor_get(x_652, 1); -lean_inc(x_654); -lean_dec(x_652); -x_655 = lean_box(x_646); -x_656 = lean_alloc_closure((void*)(l_Lake_setupFile___lambda__2___boxed), 5, 3); -lean_closure_set(x_656, 0, x_650); -lean_closure_set(x_656, 1, x_655); -lean_closure_set(x_656, 2, x_653); -x_657 = l_Lake_loadWorkspace(x_1, x_656, x_654); -if (lean_obj_tag(x_657) == 0) -{ -lean_object* x_658; lean_object* x_659; lean_object* x_660; -x_658 = lean_ctor_get(x_657, 0); -lean_inc(x_658); -x_659 = lean_ctor_get(x_657, 1); -lean_inc(x_659); -lean_dec(x_657); -x_660 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_660, 0, x_658); -x_491 = x_660; -x_492 = x_659; -goto block_632; +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); +if (lean_is_exclusive(x_255)) { + lean_ctor_release(x_255, 0); + lean_ctor_release(x_255, 1); + x_258 = x_255; +} else { + lean_dec_ref(x_255); + x_258 = lean_box(0); +} +if (lean_is_scalar(x_258)) { + x_259 = lean_alloc_ctor(0, 2, 0); +} else { + x_259 = x_258; +} +lean_ctor_set(x_259, 0, x_256); +lean_ctor_set(x_259, 1, x_257); +return x_259; } else { -lean_object* x_661; lean_object* x_662; -x_661 = lean_ctor_get(x_657, 1); -lean_inc(x_661); -lean_dec(x_657); -x_662 = lean_box(0); -x_491 = x_662; -x_492 = x_661; -goto block_632; +lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; +x_260 = lean_ctor_get(x_255, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_255, 1); +lean_inc(x_261); +lean_dec(x_255); +x_262 = lean_io_error_to_string(x_260); +x_263 = 3; +x_264 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set_uint8(x_264, sizeof(void*)*1, x_263); +x_265 = lean_box(1); +x_266 = 1; +x_267 = 0; +x_268 = l_Lake_OutStream_logEntry(x_265, x_264, x_266, x_267, x_261); +lean_dec(x_264); +x_269 = lean_ctor_get(x_268, 1); +lean_inc(x_269); +if (lean_is_exclusive(x_268)) { + lean_ctor_release(x_268, 0); + lean_ctor_release(x_268, 1); + x_270 = x_268; +} else { + lean_dec_ref(x_268); + x_270 = lean_box(0); +} +x_271 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_270)) { + x_272 = lean_alloc_ctor(1, 2, 0); +} else { + x_272 = x_270; + lean_ctor_set_tag(x_272, 1); +} +lean_ctor_set(x_272, 0, x_271); +lean_ctor_set(x_272, 1, x_269); +return x_272; +} } } else { -lean_object* x_663; lean_object* x_664; lean_object* x_665; -lean_dec(x_489); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_663 = lean_ctor_get(x_643, 1); -lean_inc(x_663); -lean_dec(x_643); -x_664 = lean_ctor_get(x_644, 0); -lean_inc(x_664); -lean_dec(x_644); -x_665 = l_IO_eprint___at_IO_eprintln___spec__1(x_664, x_663); -if (lean_obj_tag(x_665) == 0) -{ -lean_object* x_666; lean_object* x_667; lean_object* x_668; -x_666 = lean_ctor_get(x_665, 1); -lean_inc(x_666); -lean_dec(x_665); -x_667 = l_Lake_setupFile___closed__11; -x_668 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_667, x_666); -if (lean_obj_tag(x_668) == 0) -{ -lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; -x_669 = lean_ctor_get(x_668, 1); -lean_inc(x_669); -if (lean_is_exclusive(x_668)) { - lean_ctor_release(x_668, 0); - lean_ctor_release(x_668, 1); - x_670 = x_668; -} else { - lean_dec_ref(x_668); - x_670 = lean_box(0); -} -x_671 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_670)) { - x_672 = lean_alloc_ctor(1, 2, 0); -} else { - x_672 = x_670; - lean_ctor_set_tag(x_672, 1); -} -lean_ctor_set(x_672, 0, x_671); -lean_ctor_set(x_672, 1, x_669); -return x_672; -} -else -{ -lean_object* x_673; lean_object* x_674; lean_object* x_675; uint8_t x_676; lean_object* x_677; lean_object* x_678; uint8_t x_679; uint8_t x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; -x_673 = lean_ctor_get(x_668, 0); -lean_inc(x_673); -x_674 = lean_ctor_get(x_668, 1); -lean_inc(x_674); -lean_dec(x_668); -x_675 = lean_io_error_to_string(x_673); -x_676 = 3; -x_677 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_677, 0, x_675); -lean_ctor_set_uint8(x_677, sizeof(void*)*1, x_676); -x_678 = lean_box(1); -x_679 = 1; -x_680 = 0; -x_681 = l_Lake_OutStream_logEntry(x_678, x_677, x_679, x_680, x_674); -lean_dec(x_677); -x_682 = lean_ctor_get(x_681, 1); -lean_inc(x_682); -if (lean_is_exclusive(x_681)) { - lean_ctor_release(x_681, 0); - lean_ctor_release(x_681, 1); - x_683 = x_681; -} else { - lean_dec_ref(x_681); - x_683 = lean_box(0); -} -x_684 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_683)) { - x_685 = lean_alloc_ctor(1, 2, 0); -} else { - x_685 = x_683; - lean_ctor_set_tag(x_685, 1); -} -lean_ctor_set(x_685, 0, x_684); -lean_ctor_set(x_685, 1, x_682); -return x_685; +lean_object* x_307; lean_object* x_308; +lean_dec(x_246); +lean_dec(x_223); +lean_dec(x_38); +x_307 = lean_ctor_get(x_245, 1); +lean_inc(x_307); +lean_dec(x_245); +x_308 = l_Lake_mkModuleSetup___closed__2; +x_5 = x_308; +x_6 = x_307; +goto block_20; } } else { -lean_object* x_686; lean_object* x_687; lean_object* x_688; uint8_t x_689; lean_object* x_690; lean_object* x_691; uint8_t x_692; uint8_t x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; -x_686 = lean_ctor_get(x_665, 0); +lean_object* x_309; lean_object* x_310; +lean_dec(x_223); +lean_dec(x_38); +x_309 = lean_ctor_get(x_241, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_241, 1); +lean_inc(x_310); +lean_dec(x_241); +x_5 = x_309; +x_6 = x_310; +goto block_20; +} +} +} +} +} +} +else +{ +lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; uint8_t x_691; +x_516 = lean_ctor_get(x_21, 0); +x_517 = lean_ctor_get(x_21, 1); +lean_inc(x_517); +lean_inc(x_516); +lean_dec(x_21); +x_684 = lean_ctor_get(x_1, 6); +lean_inc(x_684); +x_685 = l_Lake_realConfigFile(x_684, x_517); +x_686 = lean_ctor_get(x_685, 0); lean_inc(x_686); -x_687 = lean_ctor_get(x_665, 1); +x_687 = lean_ctor_get(x_685, 1); lean_inc(x_687); -lean_dec(x_665); -x_688 = lean_io_error_to_string(x_686); -x_689 = 3; -x_690 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_690, 0, x_688); -lean_ctor_set_uint8(x_690, sizeof(void*)*1, x_689); -x_691 = lean_box(1); -x_692 = 1; -x_693 = 0; -x_694 = l_Lake_OutStream_logEntry(x_691, x_690, x_692, x_693, x_687); -lean_dec(x_690); -x_695 = lean_ctor_get(x_694, 1); +if (lean_is_exclusive(x_685)) { + lean_ctor_release(x_685, 0); + lean_ctor_release(x_685, 1); + x_688 = x_685; +} else { + lean_dec_ref(x_685); + x_688 = lean_box(0); +} +x_689 = lean_string_utf8_byte_size(x_686); +x_690 = lean_unsigned_to_nat(0u); +x_691 = lean_nat_dec_eq(x_689, x_690); +lean_dec(x_689); +if (x_691 == 0) +{ +uint8_t x_692; +lean_dec(x_688); +x_692 = lean_string_dec_eq(x_686, x_516); +lean_dec(x_686); +if (x_692 == 0) +{ +lean_object* x_693; lean_object* x_694; lean_object* x_695; +x_693 = l_Lake_invalidConfigEnvVar; +x_694 = lean_io_getenv(x_693, x_687); +x_695 = lean_ctor_get(x_694, 0); lean_inc(x_695); -if (lean_is_exclusive(x_694)) { - lean_ctor_release(x_694, 0); - lean_ctor_release(x_694, 1); - x_696 = x_694; -} else { - lean_dec_ref(x_694); - x_696 = lean_box(0); -} -x_697 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_696)) { - x_698 = lean_alloc_ctor(1, 2, 0); -} else { - x_698 = x_696; - lean_ctor_set_tag(x_698, 1); -} -lean_ctor_set(x_698, 0, x_697); -lean_ctor_set(x_698, 1, x_695); -return x_698; -} -} -} -else +if (lean_obj_tag(x_695) == 0) { -lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; -lean_dec(x_489); -lean_dec(x_4); -lean_dec(x_3); -x_699 = lean_ctor_get(x_1, 0); -lean_inc(x_699); -lean_dec(x_1); -x_700 = l_Lake_Env_leanPath(x_699); -x_701 = l_Lake_Env_leanSrcPath(x_699); -x_702 = lean_box(0); -x_703 = lean_ctor_get(x_699, 0); -lean_inc(x_703); -lean_dec(x_699); -x_704 = lean_ctor_get(x_703, 4); +lean_object* x_696; uint8_t x_697; uint8_t x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; +x_696 = lean_ctor_get(x_694, 1); +lean_inc(x_696); +lean_dec(x_694); +x_697 = lean_ctor_get_uint8(x_3, sizeof(void*)*1 + 5); +x_698 = lean_ctor_get_uint8(x_3, sizeof(void*)*1 + 6); +x_699 = lean_box(1); +x_700 = l_Lake_OutStream_get(x_699, x_696); +x_701 = lean_ctor_get(x_700, 0); +lean_inc(x_701); +x_702 = lean_ctor_get(x_700, 1); +lean_inc(x_702); +lean_dec(x_700); +lean_inc(x_701); +x_703 = l_Lake_AnsiMode_isEnabled(x_701, x_698, x_702); +x_704 = lean_ctor_get(x_703, 0); lean_inc(x_704); -lean_dec(x_703); -x_705 = lean_ctor_get(x_704, 0); +x_705 = lean_ctor_get(x_703, 1); lean_inc(x_705); -lean_dec(x_704); -x_706 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_706, 0, x_705); -lean_ctor_set(x_706, 1, x_702); -x_707 = lean_array_mk(x_706); -x_708 = l_Lake_setupFile___closed__3; -x_709 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_709, 0, x_700); -lean_ctor_set(x_709, 1, x_701); -lean_ctor_set(x_709, 2, x_708); -lean_ctor_set(x_709, 3, x_707); -x_710 = lean_box(0); -x_711 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_703); +x_706 = lean_box(x_697); +x_707 = lean_alloc_closure((void*)(l_Lake_setupFile___lambda__2___boxed), 5, 3); +lean_closure_set(x_707, 0, x_701); +lean_closure_set(x_707, 1, x_706); +lean_closure_set(x_707, 2, x_704); +x_708 = l_Lake_loadWorkspace(x_1, x_707, x_705); +if (lean_obj_tag(x_708) == 0) +{ +lean_object* x_709; lean_object* x_710; lean_object* x_711; +x_709 = lean_ctor_get(x_708, 0); +lean_inc(x_709); +x_710 = lean_ctor_get(x_708, 1); +lean_inc(x_710); +lean_dec(x_708); +x_711 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_711, 0, x_709); -lean_ctor_set(x_711, 1, x_710); -x_712 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_711); -x_713 = l_Lean_Json_compress(x_712); -x_714 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_713, x_636); -if (lean_obj_tag(x_714) == 0) -{ -lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; -x_715 = lean_ctor_get(x_714, 0); -lean_inc(x_715); -x_716 = lean_ctor_get(x_714, 1); -lean_inc(x_716); -if (lean_is_exclusive(x_714)) { - lean_ctor_release(x_714, 0); - lean_ctor_release(x_714, 1); - x_717 = x_714; -} else { - lean_dec_ref(x_714); - x_717 = lean_box(0); -} -if (lean_is_scalar(x_717)) { - x_718 = lean_alloc_ctor(0, 2, 0); -} else { - x_718 = x_717; -} -lean_ctor_set(x_718, 0, x_715); -lean_ctor_set(x_718, 1, x_716); -return x_718; +x_518 = x_711; +x_519 = x_710; +goto block_683; } else { -lean_object* x_719; lean_object* x_720; lean_object* x_721; uint8_t x_722; lean_object* x_723; lean_object* x_724; uint8_t x_725; uint8_t x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; -x_719 = lean_ctor_get(x_714, 0); -lean_inc(x_719); -x_720 = lean_ctor_get(x_714, 1); -lean_inc(x_720); -lean_dec(x_714); -x_721 = lean_io_error_to_string(x_719); -x_722 = 3; -x_723 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_723, 0, x_721); -lean_ctor_set_uint8(x_723, sizeof(void*)*1, x_722); -x_724 = lean_box(1); -x_725 = 1; -x_726 = 0; -x_727 = l_Lake_OutStream_logEntry(x_724, x_723, x_725, x_726, x_720); -lean_dec(x_723); -x_728 = lean_ctor_get(x_727, 1); -lean_inc(x_728); -if (lean_is_exclusive(x_727)) { - lean_ctor_release(x_727, 0); - lean_ctor_release(x_727, 1); - x_729 = x_727; -} else { - lean_dec_ref(x_727); - x_729 = lean_box(0); -} -x_730 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_729)) { - x_731 = lean_alloc_ctor(1, 2, 0); -} else { - x_731 = x_729; - lean_ctor_set_tag(x_731, 1); -} -lean_ctor_set(x_731, 0, x_730); -lean_ctor_set(x_731, 1, x_728); -return x_731; -} +lean_object* x_712; lean_object* x_713; +x_712 = lean_ctor_get(x_708, 1); +lean_inc(x_712); +lean_dec(x_708); +x_713 = lean_box(0); +x_518 = x_713; +x_519 = x_712; +goto block_683; } } else { -lean_object* x_732; lean_object* x_733; -lean_dec(x_635); -lean_dec(x_489); -lean_dec(x_4); +lean_object* x_714; lean_object* x_715; lean_object* x_716; +lean_dec(x_516); lean_dec(x_3); lean_dec(x_1); -x_732 = l_Lake_setupFile___boxed__const__2; -if (lean_is_scalar(x_637)) { - x_733 = lean_alloc_ctor(1, 2, 0); +x_714 = lean_ctor_get(x_694, 1); +lean_inc(x_714); +lean_dec(x_694); +x_715 = lean_ctor_get(x_695, 0); +lean_inc(x_715); +lean_dec(x_695); +x_716 = l_IO_eprint___at_IO_eprintln___spec__1(x_715, x_714); +if (lean_obj_tag(x_716) == 0) +{ +lean_object* x_717; lean_object* x_718; lean_object* x_719; +x_717 = lean_ctor_get(x_716, 1); +lean_inc(x_717); +lean_dec(x_716); +x_718 = l_Lake_setupFile___closed__8; +x_719 = l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(x_718, x_717); +if (lean_obj_tag(x_719) == 0) +{ +lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; +x_720 = lean_ctor_get(x_719, 1); +lean_inc(x_720); +if (lean_is_exclusive(x_719)) { + lean_ctor_release(x_719, 0); + lean_ctor_release(x_719, 1); + x_721 = x_719; } else { - x_733 = x_637; - lean_ctor_set_tag(x_733, 1); + lean_dec_ref(x_719); + x_721 = lean_box(0); } -lean_ctor_set(x_733, 0, x_732); -lean_ctor_set(x_733, 1, x_636); -return x_733; +x_722 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_721)) { + x_723 = lean_alloc_ctor(1, 2, 0); +} else { + x_723 = x_721; + lean_ctor_set_tag(x_723, 1); } -block_632: +lean_ctor_set(x_723, 0, x_722); +lean_ctor_set(x_723, 1, x_720); +return x_723; +} +else { -if (lean_obj_tag(x_491) == 0) +lean_object* x_724; lean_object* x_725; lean_object* x_726; uint8_t x_727; lean_object* x_728; lean_object* x_729; uint8_t x_730; uint8_t x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; +x_724 = lean_ctor_get(x_719, 0); +lean_inc(x_724); +x_725 = lean_ctor_get(x_719, 1); +lean_inc(x_725); +lean_dec(x_719); +x_726 = lean_io_error_to_string(x_724); +x_727 = 3; +x_728 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_728, 0, x_726); +lean_ctor_set_uint8(x_728, sizeof(void*)*1, x_727); +x_729 = lean_box(1); +x_730 = 1; +x_731 = 0; +x_732 = l_Lake_OutStream_logEntry(x_729, x_728, x_730, x_731, x_725); +lean_dec(x_728); +x_733 = lean_ctor_get(x_732, 1); +lean_inc(x_733); +if (lean_is_exclusive(x_732)) { + lean_ctor_release(x_732, 0); + lean_ctor_release(x_732, 1); + x_734 = x_732; +} else { + lean_dec_ref(x_732); + x_734 = lean_box(0); +} +x_735 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_734)) { + x_736 = lean_alloc_ctor(1, 2, 0); +} else { + x_736 = x_734; + lean_ctor_set_tag(x_736, 1); +} +lean_ctor_set(x_736, 0, x_735); +lean_ctor_set(x_736, 1, x_733); +return x_736; +} +} +else { -lean_object* x_493; lean_object* x_494; uint8_t x_495; uint8_t x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; -lean_dec(x_489); -lean_dec(x_4); +lean_object* x_737; lean_object* x_738; lean_object* x_739; uint8_t x_740; lean_object* x_741; lean_object* x_742; uint8_t x_743; uint8_t x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; +x_737 = lean_ctor_get(x_716, 0); +lean_inc(x_737); +x_738 = lean_ctor_get(x_716, 1); +lean_inc(x_738); +lean_dec(x_716); +x_739 = lean_io_error_to_string(x_737); +x_740 = 3; +x_741 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_741, 0, x_739); +lean_ctor_set_uint8(x_741, sizeof(void*)*1, x_740); +x_742 = lean_box(1); +x_743 = 1; +x_744 = 0; +x_745 = l_Lake_OutStream_logEntry(x_742, x_741, x_743, x_744, x_738); +lean_dec(x_741); +x_746 = lean_ctor_get(x_745, 1); +lean_inc(x_746); +if (lean_is_exclusive(x_745)) { + lean_ctor_release(x_745, 0); + lean_ctor_release(x_745, 1); + x_747 = x_745; +} else { + lean_dec_ref(x_745); + x_747 = lean_box(0); +} +x_748 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_747)) { + x_749 = lean_alloc_ctor(1, 2, 0); +} else { + x_749 = x_747; + lean_ctor_set_tag(x_749, 1); +} +lean_ctor_set(x_749, 0, x_748); +lean_ctor_set(x_749, 1, x_746); +return x_749; +} +} +} +else +{ +lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; +lean_dec(x_516); lean_dec(x_3); -x_493 = lean_box(1); -x_494 = l_Lake_setupFile___closed__2; -x_495 = 1; -x_496 = 0; -x_497 = l_Lake_OutStream_logEntry(x_493, x_494, x_495, x_496, x_492); -x_498 = lean_ctor_get(x_497, 1); -lean_inc(x_498); -if (lean_is_exclusive(x_497)) { - lean_ctor_release(x_497, 0); - lean_ctor_release(x_497, 1); - x_499 = x_497; +x_750 = lean_ctor_get(x_1, 0); +lean_inc(x_750); +lean_dec(x_1); +x_751 = l_Lake_Env_leanPath(x_750); +x_752 = l_Lake_Env_leanSrcPath(x_750); +x_753 = lean_box(0); +x_754 = lean_ctor_get(x_750, 0); +lean_inc(x_754); +lean_dec(x_750); +x_755 = lean_ctor_get(x_754, 4); +lean_inc(x_755); +lean_dec(x_754); +x_756 = lean_ctor_get(x_755, 0); +lean_inc(x_756); +lean_dec(x_755); +x_757 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_757, 0, x_756); +lean_ctor_set(x_757, 1, x_753); +x_758 = lean_array_mk(x_757); +x_759 = l_Lake_setupFile___closed__9; +x_760 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_760, 0, x_751); +lean_ctor_set(x_760, 1, x_752); +lean_ctor_set(x_760, 2, x_759); +lean_ctor_set(x_760, 3, x_758); +x_761 = lean_box(0); +x_762 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_762, 0, x_760); +lean_ctor_set(x_762, 1, x_761); +x_763 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_762); +x_764 = l_Lean_Json_compress(x_763); +x_765 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_764, x_687); +if (lean_obj_tag(x_765) == 0) +{ +lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; +x_766 = lean_ctor_get(x_765, 0); +lean_inc(x_766); +x_767 = lean_ctor_get(x_765, 1); +lean_inc(x_767); +if (lean_is_exclusive(x_765)) { + lean_ctor_release(x_765, 0); + lean_ctor_release(x_765, 1); + x_768 = x_765; } else { - lean_dec_ref(x_497); - x_499 = lean_box(0); + lean_dec_ref(x_765); + x_768 = lean_box(0); } -x_500 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_499)) { - x_501 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_768)) { + x_769 = lean_alloc_ctor(0, 2, 0); } else { - x_501 = x_499; - lean_ctor_set_tag(x_501, 1); + x_769 = x_768; } -lean_ctor_set(x_501, 0, x_500); -lean_ctor_set(x_501, 1, x_498); -return x_501; +lean_ctor_set(x_769, 0, x_766); +lean_ctor_set(x_769, 1, x_767); +return x_769; } else { -lean_object* x_502; lean_object* x_503; -x_502 = lean_ctor_get(x_491, 0); -lean_inc(x_502); -lean_dec(x_491); -lean_inc(x_489); -x_503 = l_Lake_Workspace_findModuleBySrc_x3f(x_489, x_502); -if (lean_obj_tag(x_503) == 0) -{ -lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; -x_504 = l_Lake_setupFile___closed__3; -x_505 = l_List_foldl___at_Lake_setupFile___spec__1(x_502, x_504, x_3); -x_506 = lean_alloc_closure((void*)(l_Lake_buildImportsAndDeps), 8, 2); -lean_closure_set(x_506, 0, x_489); -lean_closure_set(x_506, 1, x_505); -lean_inc(x_502); -x_507 = l_Lake_Workspace_runFetchM___rarg(x_502, x_506, x_4, x_492); -if (lean_obj_tag(x_507) == 0) -{ -lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; -x_508 = lean_ctor_get(x_507, 0); -lean_inc(x_508); -x_509 = lean_ctor_get(x_507, 1); -lean_inc(x_509); -lean_dec(x_507); -x_510 = lean_ctor_get(x_508, 0); -lean_inc(x_510); -lean_dec(x_508); -x_511 = lean_io_wait(x_510, x_509); -x_512 = lean_ctor_get(x_511, 0); -lean_inc(x_512); -if (lean_obj_tag(x_512) == 0) -{ -lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; -x_513 = lean_ctor_get(x_511, 1); -lean_inc(x_513); -lean_dec(x_511); -x_514 = lean_ctor_get(x_512, 0); -lean_inc(x_514); -if (lean_is_exclusive(x_512)) { - lean_ctor_release(x_512, 0); - lean_ctor_release(x_512, 1); - x_515 = x_512; +lean_object* x_770; lean_object* x_771; lean_object* x_772; uint8_t x_773; lean_object* x_774; lean_object* x_775; uint8_t x_776; uint8_t x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; +x_770 = lean_ctor_get(x_765, 0); +lean_inc(x_770); +x_771 = lean_ctor_get(x_765, 1); +lean_inc(x_771); +lean_dec(x_765); +x_772 = lean_io_error_to_string(x_770); +x_773 = 3; +x_774 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_774, 0, x_772); +lean_ctor_set_uint8(x_774, sizeof(void*)*1, x_773); +x_775 = lean_box(1); +x_776 = 1; +x_777 = 0; +x_778 = l_Lake_OutStream_logEntry(x_775, x_774, x_776, x_777, x_771); +lean_dec(x_774); +x_779 = lean_ctor_get(x_778, 1); +lean_inc(x_779); +if (lean_is_exclusive(x_778)) { + lean_ctor_release(x_778, 0); + lean_ctor_release(x_778, 1); + x_780 = x_778; } else { - lean_dec_ref(x_512); - x_515 = lean_box(0); + lean_dec_ref(x_778); + x_780 = lean_box(0); } -x_516 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_502, x_514); -lean_dec(x_502); -x_517 = lean_box(0); -if (lean_is_scalar(x_515)) { - x_518 = lean_alloc_ctor(0, 2, 0); +x_781 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_780)) { + x_782 = lean_alloc_ctor(1, 2, 0); } else { - x_518 = x_515; + x_782 = x_780; + lean_ctor_set_tag(x_782, 1); } -lean_ctor_set(x_518, 0, x_516); -lean_ctor_set(x_518, 1, x_517); -x_519 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_518); -x_520 = l_Lean_Json_compress(x_519); -x_521 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_520, x_513); -if (lean_obj_tag(x_521) == 0) -{ -lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; -x_522 = lean_ctor_get(x_521, 0); -lean_inc(x_522); -x_523 = lean_ctor_get(x_521, 1); -lean_inc(x_523); -if (lean_is_exclusive(x_521)) { - lean_ctor_release(x_521, 0); - lean_ctor_release(x_521, 1); - x_524 = x_521; -} else { - lean_dec_ref(x_521); - x_524 = lean_box(0); +lean_ctor_set(x_782, 0, x_781); +lean_ctor_set(x_782, 1, x_779); +return x_782; } -if (lean_is_scalar(x_524)) { - x_525 = lean_alloc_ctor(0, 2, 0); -} else { - x_525 = x_524; } -lean_ctor_set(x_525, 0, x_522); -lean_ctor_set(x_525, 1, x_523); -return x_525; } else { -lean_object* x_526; lean_object* x_527; lean_object* x_528; uint8_t x_529; lean_object* x_530; lean_object* x_531; uint8_t x_532; uint8_t x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; -x_526 = lean_ctor_get(x_521, 0); -lean_inc(x_526); -x_527 = lean_ctor_get(x_521, 1); -lean_inc(x_527); -lean_dec(x_521); -x_528 = lean_io_error_to_string(x_526); -x_529 = 3; -x_530 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_530, 0, x_528); -lean_ctor_set_uint8(x_530, sizeof(void*)*1, x_529); -x_531 = lean_box(1); -x_532 = 1; -x_533 = 0; -x_534 = l_Lake_OutStream_logEntry(x_531, x_530, x_532, x_533, x_527); -lean_dec(x_530); -x_535 = lean_ctor_get(x_534, 1); +lean_object* x_783; lean_object* x_784; +lean_dec(x_686); +lean_dec(x_516); +lean_dec(x_3); +lean_dec(x_1); +x_783 = l_Lake_setupFile___boxed__const__2; +if (lean_is_scalar(x_688)) { + x_784 = lean_alloc_ctor(1, 2, 0); +} else { + x_784 = x_688; + lean_ctor_set_tag(x_784, 1); +} +lean_ctor_set(x_784, 0, x_783); +lean_ctor_set(x_784, 1, x_687); +return x_784; +} +block_683: +{ +if (lean_obj_tag(x_518) == 0) +{ +lean_object* x_520; lean_object* x_521; uint8_t x_522; uint8_t x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; +lean_dec(x_516); +lean_dec(x_3); +x_520 = lean_box(1); +x_521 = l_Lake_setupFile___closed__2; +x_522 = 1; +x_523 = 0; +x_524 = l_Lake_OutStream_logEntry(x_520, x_521, x_522, x_523, x_519); +x_525 = lean_ctor_get(x_524, 1); +lean_inc(x_525); +if (lean_is_exclusive(x_524)) { + lean_ctor_release(x_524, 0); + lean_ctor_release(x_524, 1); + x_526 = x_524; +} else { + lean_dec_ref(x_524); + x_526 = lean_box(0); +} +x_527 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_526)) { + x_528 = lean_alloc_ctor(1, 2, 0); +} else { + x_528 = x_526; + lean_ctor_set_tag(x_528, 1); +} +lean_ctor_set(x_528, 0, x_527); +lean_ctor_set(x_528, 1, x_525); +return x_528; +} +else +{ +lean_object* x_529; lean_object* x_530; +x_529 = lean_ctor_get(x_518, 0); +lean_inc(x_529); +lean_dec(x_518); +lean_inc(x_516); +x_530 = l_Lake_Workspace_findModuleBySrc_x3f(x_516, x_529); +if (lean_obj_tag(x_530) == 0) +{ +lean_object* x_531; +x_531 = l_IO_FS_readFile(x_516, x_519); +if (lean_obj_tag(x_531) == 0) +{ +lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; +x_532 = lean_ctor_get(x_531, 0); +lean_inc(x_532); +x_533 = lean_ctor_get(x_531, 1); +lean_inc(x_533); +lean_dec(x_531); +x_534 = lean_ctor_get(x_529, 0); +lean_inc(x_534); +x_535 = lean_ctor_get(x_534, 3); lean_inc(x_535); -if (lean_is_exclusive(x_534)) { - lean_ctor_release(x_534, 0); - lean_ctor_release(x_534, 1); - x_536 = x_534; -} else { - lean_dec_ref(x_534); - x_536 = lean_box(0); -} -x_537 = l_Lake_setupFile___boxed__const__1; -if (lean_is_scalar(x_536)) { - x_538 = lean_alloc_ctor(1, 2, 0); -} else { - x_538 = x_536; - lean_ctor_set_tag(x_538, 1); -} -lean_ctor_set(x_538, 0, x_537); -lean_ctor_set(x_538, 1, x_535); -return x_538; -} -} -else -{ -lean_object* x_539; lean_object* x_540; -lean_dec(x_512); -lean_dec(x_502); -x_539 = lean_ctor_get(x_511, 1); +lean_dec(x_534); +x_536 = lean_ctor_get(x_535, 1); +lean_inc(x_536); +lean_dec(x_535); +x_537 = lean_ctor_get(x_536, 0); +lean_inc(x_537); +x_538 = l_Lean_LeanOptions_ofArray(x_537); +lean_dec(x_537); +x_539 = lean_ctor_get(x_536, 4); lean_inc(x_539); -lean_dec(x_511); -x_540 = l_Lake_setupFile___closed__5; -x_6 = x_540; -x_7 = x_539; -goto block_21; -} -} -else +lean_dec(x_536); +x_540 = l_Lean_LeanOptions_appendArray(x_538, x_539); +lean_dec(x_539); +lean_inc(x_529); +x_541 = l_Lake_mkModuleSetup(x_529, x_516, x_532, x_540, x_3, x_533); +if (lean_obj_tag(x_541) == 0) { -lean_object* x_541; lean_object* x_542; -lean_dec(x_502); -x_541 = lean_ctor_get(x_507, 0); -lean_inc(x_541); -x_542 = lean_ctor_get(x_507, 1); +lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; +x_542 = lean_ctor_get(x_541, 0); lean_inc(x_542); -lean_dec(x_507); -x_6 = x_541; -x_7 = x_542; -goto block_21; -} -} -else -{ -lean_object* x_543; lean_object* x_544; lean_object* x_545; uint8_t x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; uint8_t x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; -lean_dec(x_489); -lean_dec(x_3); -x_543 = lean_ctor_get(x_503, 0); +x_543 = lean_ctor_get(x_541, 1); lean_inc(x_543); -if (lean_is_exclusive(x_503)) { - lean_ctor_release(x_503, 0); - x_544 = x_503; +if (lean_is_exclusive(x_541)) { + lean_ctor_release(x_541, 0); + lean_ctor_release(x_541, 1); + x_544 = x_541; } else { - lean_dec_ref(x_503); + lean_dec_ref(x_541); x_544 = lean_box(0); } -x_545 = lean_ctor_get(x_543, 1); -lean_inc(x_545); -x_546 = 1; -x_547 = l_Lake_setupFile___closed__6; -x_548 = l_Lean_Name_toString(x_545, x_546, x_547); -x_549 = l_Lake_setupFile___closed__7; -x_550 = lean_string_append(x_549, x_548); -lean_dec(x_548); -x_551 = l_Lake_setupFile___closed__8; -x_552 = lean_string_append(x_550, x_551); -x_553 = lean_ctor_get(x_543, 2); -lean_inc(x_553); +x_545 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_529, x_542); +lean_dec(x_529); +x_546 = lean_ctor_get(x_542, 5); +lean_inc(x_546); +lean_dec(x_542); if (lean_is_scalar(x_544)) { - x_554 = lean_alloc_ctor(0, 1, 0); + x_547 = lean_alloc_ctor(0, 2, 0); } else { - x_554 = x_544; - lean_ctor_set_tag(x_554, 0); + x_547 = x_544; } -lean_ctor_set(x_554, 0, x_553); -x_555 = l_Lake_Module_keyword; -x_556 = l_Lake_Module_depsFacet; -lean_inc(x_543); -x_557 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_557, 0, x_554); -lean_ctor_set(x_557, 1, x_555); -lean_ctor_set(x_557, 2, x_543); -lean_ctor_set(x_557, 3, x_556); -x_558 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); -lean_closure_set(x_558, 0, x_557); -lean_closure_set(x_558, 1, lean_box(0)); -x_559 = 0; -x_560 = lean_box(x_559); -x_561 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__2___boxed), 9, 3); -lean_closure_set(x_561, 0, x_552); -lean_closure_set(x_561, 1, x_558); -lean_closure_set(x_561, 2, x_560); -lean_inc(x_502); -x_562 = l_Lake_Workspace_runFetchM___rarg(x_502, x_561, x_4, x_492); -if (lean_obj_tag(x_562) == 0) +lean_ctor_set(x_547, 0, x_545); +lean_ctor_set(x_547, 1, x_546); +x_548 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_547); +x_549 = l_Lean_Json_compress(x_548); +x_550 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_549, x_543); +if (lean_obj_tag(x_550) == 0) { -lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; -x_563 = lean_ctor_get(x_562, 0); -lean_inc(x_563); -x_564 = lean_ctor_get(x_562, 1); -lean_inc(x_564); -lean_dec(x_562); -x_565 = lean_ctor_get(x_563, 0); -lean_inc(x_565); -lean_dec(x_563); -x_566 = lean_io_wait(x_565, x_564); -x_567 = lean_ctor_get(x_566, 0); -lean_inc(x_567); -if (lean_obj_tag(x_567) == 0) -{ -lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; uint8_t x_600; lean_object* x_601; lean_object* x_602; uint8_t x_603; uint8_t x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; -x_568 = lean_ctor_get(x_566, 1); -lean_inc(x_568); -lean_dec(x_566); -x_569 = lean_ctor_get(x_567, 0); -lean_inc(x_569); -if (lean_is_exclusive(x_567)) { - lean_ctor_release(x_567, 0); - lean_ctor_release(x_567, 1); - x_570 = x_567; +lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; +x_551 = lean_ctor_get(x_550, 0); +lean_inc(x_551); +x_552 = lean_ctor_get(x_550, 1); +lean_inc(x_552); +if (lean_is_exclusive(x_550)) { + lean_ctor_release(x_550, 0); + lean_ctor_release(x_550, 1); + x_553 = x_550; } else { - lean_dec_ref(x_567); - x_570 = lean_box(0); + lean_dec_ref(x_550); + x_553 = lean_box(0); } -x_571 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_502, x_569); -lean_dec(x_502); -x_595 = lean_ctor_get(x_543, 0); -lean_inc(x_595); -lean_dec(x_543); -x_596 = lean_box(0); -x_597 = lean_ctor_get(x_595, 0); -lean_inc(x_597); -x_598 = lean_ctor_get(x_597, 3); -lean_inc(x_598); -lean_dec(x_597); -x_599 = lean_ctor_get(x_598, 1); -lean_inc(x_599); -lean_dec(x_598); -x_600 = lean_ctor_get_uint8(x_599, sizeof(void*)*13); -x_601 = lean_ctor_get(x_595, 2); -lean_inc(x_601); -lean_dec(x_595); -x_602 = lean_ctor_get(x_601, 0); -lean_inc(x_602); -lean_dec(x_601); -x_603 = lean_ctor_get_uint8(x_602, sizeof(void*)*13); -x_604 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_600, x_603); -x_605 = lean_ctor_get(x_599, 0); -lean_inc(x_605); -x_606 = l_Lean_LeanOptions_ofArray(x_605); -lean_dec(x_605); -x_607 = lean_ctor_get(x_599, 4); -lean_inc(x_607); -lean_dec(x_599); -x_608 = l_Lean_LeanOptions_appendArray(x_606, x_607); -lean_dec(x_607); -x_609 = lean_box(x_604); -if (lean_obj_tag(x_609) == 2) -{ -lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; -x_610 = lean_ctor_get(x_602, 0); -lean_inc(x_610); -x_611 = lean_ctor_get(x_602, 4); -lean_inc(x_611); -lean_dec(x_602); -x_612 = l_Lake_BuildType_leanOptions(x_603); -x_613 = l_Lake_setupFile___closed__9; -x_614 = l_Lake_setupFile___closed__10; -x_615 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_613, x_614, x_596, x_612); -x_616 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_613, x_614, x_615, x_608); -x_617 = l_Lean_LeanOptions_appendArray(x_616, x_610); -lean_dec(x_610); -x_618 = l_Lean_LeanOptions_appendArray(x_617, x_611); -lean_dec(x_611); -x_572 = x_618; -goto block_594; +if (lean_is_scalar(x_553)) { + x_554 = lean_alloc_ctor(0, 2, 0); +} else { + x_554 = x_553; +} +lean_ctor_set(x_554, 0, x_551); +lean_ctor_set(x_554, 1, x_552); +return x_554; } else { -lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; -lean_dec(x_609); -x_619 = lean_ctor_get(x_602, 0); -lean_inc(x_619); -x_620 = lean_ctor_get(x_602, 4); -lean_inc(x_620); -lean_dec(x_602); -x_621 = l_Lake_BuildType_leanOptions(x_600); -x_622 = l_Lake_setupFile___closed__9; -x_623 = l_Lake_setupFile___closed__10; -x_624 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_622, x_623, x_596, x_621); -x_625 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_622, x_623, x_624, x_608); -x_626 = l_Lean_LeanOptions_appendArray(x_625, x_619); -lean_dec(x_619); -x_627 = l_Lean_LeanOptions_appendArray(x_626, x_620); -lean_dec(x_620); -x_572 = x_627; -goto block_594; -} -block_594: -{ -lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; -if (lean_is_scalar(x_570)) { - x_573 = lean_alloc_ctor(0, 2, 0); +lean_object* x_555; lean_object* x_556; lean_object* x_557; uint8_t x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; uint8_t x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; +x_555 = lean_ctor_get(x_550, 0); +lean_inc(x_555); +x_556 = lean_ctor_get(x_550, 1); +lean_inc(x_556); +lean_dec(x_550); +x_557 = lean_io_error_to_string(x_555); +x_558 = 3; +x_559 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_559, 0, x_557); +lean_ctor_set_uint8(x_559, sizeof(void*)*1, x_558); +x_560 = lean_box(1); +x_561 = 1; +x_562 = 0; +x_563 = l_Lake_OutStream_logEntry(x_560, x_559, x_561, x_562, x_556); +lean_dec(x_559); +x_564 = lean_ctor_get(x_563, 1); +lean_inc(x_564); +if (lean_is_exclusive(x_563)) { + lean_ctor_release(x_563, 0); + lean_ctor_release(x_563, 1); + x_565 = x_563; } else { - x_573 = x_570; + lean_dec_ref(x_563); + x_565 = lean_box(0); } -lean_ctor_set(x_573, 0, x_571); -lean_ctor_set(x_573, 1, x_572); -x_574 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_573); -x_575 = l_Lean_Json_compress(x_574); -x_576 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_575, x_568); -if (lean_obj_tag(x_576) == 0) +x_566 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_565)) { + x_567 = lean_alloc_ctor(1, 2, 0); +} else { + x_567 = x_565; + lean_ctor_set_tag(x_567, 1); +} +lean_ctor_set(x_567, 0, x_566); +lean_ctor_set(x_567, 1, x_564); +return x_567; +} +} +else { -lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; -x_577 = lean_ctor_get(x_576, 0); +lean_object* x_568; lean_object* x_569; lean_object* x_570; uint8_t x_571; lean_object* x_572; lean_object* x_573; uint8_t x_574; uint8_t x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; +lean_dec(x_529); +x_568 = lean_ctor_get(x_541, 0); +lean_inc(x_568); +x_569 = lean_ctor_get(x_541, 1); +lean_inc(x_569); +lean_dec(x_541); +x_570 = lean_io_error_to_string(x_568); +x_571 = 3; +x_572 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_572, 0, x_570); +lean_ctor_set_uint8(x_572, sizeof(void*)*1, x_571); +x_573 = lean_box(1); +x_574 = 1; +x_575 = 0; +x_576 = l_Lake_OutStream_logEntry(x_573, x_572, x_574, x_575, x_569); +lean_dec(x_572); +x_577 = lean_ctor_get(x_576, 1); lean_inc(x_577); -x_578 = lean_ctor_get(x_576, 1); -lean_inc(x_578); if (lean_is_exclusive(x_576)) { lean_ctor_release(x_576, 0); lean_ctor_release(x_576, 1); - x_579 = x_576; + x_578 = x_576; } else { lean_dec_ref(x_576); - x_579 = lean_box(0); + x_578 = lean_box(0); } -if (lean_is_scalar(x_579)) { - x_580 = lean_alloc_ctor(0, 2, 0); +x_579 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_578)) { + x_580 = lean_alloc_ctor(1, 2, 0); } else { - x_580 = x_579; + x_580 = x_578; + lean_ctor_set_tag(x_580, 1); } -lean_ctor_set(x_580, 0, x_577); -lean_ctor_set(x_580, 1, x_578); +lean_ctor_set(x_580, 0, x_579); +lean_ctor_set(x_580, 1, x_577); return x_580; } +} else { lean_object* x_581; lean_object* x_582; lean_object* x_583; uint8_t x_584; lean_object* x_585; lean_object* x_586; uint8_t x_587; uint8_t x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; -x_581 = lean_ctor_get(x_576, 0); +lean_dec(x_529); +lean_dec(x_516); +lean_dec(x_3); +x_581 = lean_ctor_get(x_531, 0); lean_inc(x_581); -x_582 = lean_ctor_get(x_576, 1); +x_582 = lean_ctor_get(x_531, 1); lean_inc(x_582); -lean_dec(x_576); +lean_dec(x_531); x_583 = lean_io_error_to_string(x_581); x_584 = 3; x_585 = lean_alloc_ctor(0, 1, 1); @@ -2862,95 +2890,319 @@ lean_ctor_set(x_593, 1, x_590); return x_593; } } +else +{ +lean_object* x_594; lean_object* x_595; lean_object* x_596; uint8_t x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; uint8_t x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; +lean_dec(x_516); +x_594 = lean_ctor_get(x_530, 0); +lean_inc(x_594); +if (lean_is_exclusive(x_530)) { + lean_ctor_release(x_530, 0); + x_595 = x_530; +} else { + lean_dec_ref(x_530); + x_595 = lean_box(0); +} +x_596 = lean_ctor_get(x_594, 1); +lean_inc(x_596); +x_597 = 1; +x_598 = l_Lake_setupFile___closed__3; +x_599 = l_Lean_Name_toString(x_596, x_597, x_598); +x_600 = l_Lake_setupFile___closed__4; +x_601 = lean_string_append(x_600, x_599); +lean_dec(x_599); +x_602 = l_Lake_setupFile___closed__5; +x_603 = lean_string_append(x_601, x_602); +x_604 = lean_ctor_get(x_594, 2); +lean_inc(x_604); +if (lean_is_scalar(x_595)) { + x_605 = lean_alloc_ctor(0, 1, 0); +} else { + x_605 = x_595; + lean_ctor_set_tag(x_605, 0); +} +lean_ctor_set(x_605, 0, x_604); +x_606 = l_Lake_Module_keyword; +x_607 = l_Lake_Module_setupFacet; +lean_inc(x_594); +x_608 = lean_alloc_ctor(1, 4, 0); +lean_ctor_set(x_608, 0, x_605); +lean_ctor_set(x_608, 1, x_606); +lean_ctor_set(x_608, 2, x_594); +lean_ctor_set(x_608, 3, x_607); +x_609 = lean_alloc_closure((void*)(l_Lake_BuildInfo_fetch___rarg), 8, 2); +lean_closure_set(x_609, 0, x_608); +lean_closure_set(x_609, 1, lean_box(0)); +x_610 = 0; +x_611 = lean_box(x_610); +x_612 = lean_alloc_closure((void*)(l_Lake_withRegisterJob___at_Lake_setupFile___spec__1___boxed), 9, 3); +lean_closure_set(x_612, 0, x_603); +lean_closure_set(x_612, 1, x_609); +lean_closure_set(x_612, 2, x_611); +lean_inc(x_529); +x_613 = l_Lake_Workspace_runFetchM___rarg(x_529, x_612, x_3, x_519); +if (lean_obj_tag(x_613) == 0) +{ +lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; +x_614 = lean_ctor_get(x_613, 0); +lean_inc(x_614); +x_615 = lean_ctor_get(x_613, 1); +lean_inc(x_615); +lean_dec(x_613); +x_616 = lean_ctor_get(x_614, 0); +lean_inc(x_616); +lean_dec(x_614); +x_617 = lean_io_wait(x_616, x_615); +x_618 = lean_ctor_get(x_617, 0); +lean_inc(x_618); +if (lean_obj_tag(x_618) == 0) +{ +lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; uint8_t x_651; lean_object* x_652; lean_object* x_653; uint8_t x_654; uint8_t x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; +x_619 = lean_ctor_get(x_617, 1); +lean_inc(x_619); +lean_dec(x_617); +x_620 = lean_ctor_get(x_618, 0); +lean_inc(x_620); +if (lean_is_exclusive(x_618)) { + lean_ctor_release(x_618, 0); + lean_ctor_release(x_618, 1); + x_621 = x_618; +} else { + lean_dec_ref(x_618); + x_621 = lean_box(0); +} +x_622 = l___private_Lake_CLI_Serve_0__Lake_mkLeanPaths(x_529, x_620); +lean_dec(x_620); +lean_dec(x_529); +x_646 = lean_ctor_get(x_594, 0); +lean_inc(x_646); +lean_dec(x_594); +x_647 = lean_box(0); +x_648 = lean_ctor_get(x_646, 0); +lean_inc(x_648); +x_649 = lean_ctor_get(x_648, 3); +lean_inc(x_649); +lean_dec(x_648); +x_650 = lean_ctor_get(x_649, 1); +lean_inc(x_650); +lean_dec(x_649); +x_651 = lean_ctor_get_uint8(x_650, sizeof(void*)*13); +x_652 = lean_ctor_get(x_646, 2); +lean_inc(x_652); +lean_dec(x_646); +x_653 = lean_ctor_get(x_652, 0); +lean_inc(x_653); +lean_dec(x_652); +x_654 = lean_ctor_get_uint8(x_653, sizeof(void*)*13); +x_655 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_651, x_654); +x_656 = lean_ctor_get(x_650, 0); +lean_inc(x_656); +x_657 = l_Lean_LeanOptions_ofArray(x_656); +lean_dec(x_656); +x_658 = lean_ctor_get(x_650, 4); +lean_inc(x_658); +lean_dec(x_650); +x_659 = l_Lean_LeanOptions_appendArray(x_657, x_658); +lean_dec(x_658); +x_660 = lean_box(x_655); +if (lean_obj_tag(x_660) == 2) +{ +lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; +x_661 = lean_ctor_get(x_653, 0); +lean_inc(x_661); +x_662 = lean_ctor_get(x_653, 4); +lean_inc(x_662); +lean_dec(x_653); +x_663 = l_Lake_BuildType_leanOptions(x_654); +x_664 = l_Lake_setupFile___closed__6; +x_665 = l_Lake_setupFile___closed__7; +x_666 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_664, x_665, x_647, x_663); +x_667 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_664, x_665, x_666, x_659); +x_668 = l_Lean_LeanOptions_appendArray(x_667, x_661); +lean_dec(x_661); +x_669 = l_Lean_LeanOptions_appendArray(x_668, x_662); +lean_dec(x_662); +x_623 = x_669; +goto block_645; } else { -lean_object* x_628; lean_object* x_629; -lean_dec(x_567); -lean_dec(x_543); -lean_dec(x_502); -x_628 = lean_ctor_get(x_566, 1); +lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; +lean_dec(x_660); +x_670 = lean_ctor_get(x_653, 0); +lean_inc(x_670); +x_671 = lean_ctor_get(x_653, 4); +lean_inc(x_671); +lean_dec(x_653); +x_672 = l_Lake_BuildType_leanOptions(x_651); +x_673 = l_Lake_setupFile___closed__6; +x_674 = l_Lake_setupFile___closed__7; +x_675 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_673, x_674, x_647, x_672); +x_676 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_673, x_674, x_675, x_659); +x_677 = l_Lean_LeanOptions_appendArray(x_676, x_670); +lean_dec(x_670); +x_678 = l_Lean_LeanOptions_appendArray(x_677, x_671); +lean_dec(x_671); +x_623 = x_678; +goto block_645; +} +block_645: +{ +lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; +if (lean_is_scalar(x_621)) { + x_624 = lean_alloc_ctor(0, 2, 0); +} else { + x_624 = x_621; +} +lean_ctor_set(x_624, 0, x_622); +lean_ctor_set(x_624, 1, x_623); +x_625 = l___private_Lean_Util_FileSetupInfo_0__Lean_toJsonFileSetupInfo____x40_Lean_Util_FileSetupInfo___hyg_137_(x_624); +x_626 = l_Lean_Json_compress(x_625); +x_627 = l_IO_println___at_Lean_Environment_displayStats___spec__3(x_626, x_619); +if (lean_obj_tag(x_627) == 0) +{ +lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; +x_628 = lean_ctor_get(x_627, 0); lean_inc(x_628); -lean_dec(x_566); -x_629 = l_Lake_setupFile___closed__5; -x_6 = x_629; -x_7 = x_628; -goto block_21; +x_629 = lean_ctor_get(x_627, 1); +lean_inc(x_629); +if (lean_is_exclusive(x_627)) { + lean_ctor_release(x_627, 0); + lean_ctor_release(x_627, 1); + x_630 = x_627; +} else { + lean_dec_ref(x_627); + x_630 = lean_box(0); +} +if (lean_is_scalar(x_630)) { + x_631 = lean_alloc_ctor(0, 2, 0); +} else { + x_631 = x_630; +} +lean_ctor_set(x_631, 0, x_628); +lean_ctor_set(x_631, 1, x_629); +return x_631; +} +else +{ +lean_object* x_632; lean_object* x_633; lean_object* x_634; uint8_t x_635; lean_object* x_636; lean_object* x_637; uint8_t x_638; uint8_t x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; +x_632 = lean_ctor_get(x_627, 0); +lean_inc(x_632); +x_633 = lean_ctor_get(x_627, 1); +lean_inc(x_633); +lean_dec(x_627); +x_634 = lean_io_error_to_string(x_632); +x_635 = 3; +x_636 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_636, 0, x_634); +lean_ctor_set_uint8(x_636, sizeof(void*)*1, x_635); +x_637 = lean_box(1); +x_638 = 1; +x_639 = 0; +x_640 = l_Lake_OutStream_logEntry(x_637, x_636, x_638, x_639, x_633); +lean_dec(x_636); +x_641 = lean_ctor_get(x_640, 1); +lean_inc(x_641); +if (lean_is_exclusive(x_640)) { + lean_ctor_release(x_640, 0); + lean_ctor_release(x_640, 1); + x_642 = x_640; +} else { + lean_dec_ref(x_640); + x_642 = lean_box(0); +} +x_643 = l_Lake_setupFile___boxed__const__1; +if (lean_is_scalar(x_642)) { + x_644 = lean_alloc_ctor(1, 2, 0); +} else { + x_644 = x_642; + lean_ctor_set_tag(x_644, 1); +} +lean_ctor_set(x_644, 0, x_643); +lean_ctor_set(x_644, 1, x_641); +return x_644; +} } } else { -lean_object* x_630; lean_object* x_631; -lean_dec(x_543); -lean_dec(x_502); -x_630 = lean_ctor_get(x_562, 0); -lean_inc(x_630); -x_631 = lean_ctor_get(x_562, 1); -lean_inc(x_631); -lean_dec(x_562); -x_6 = x_630; -x_7 = x_631; -goto block_21; +lean_object* x_679; lean_object* x_680; +lean_dec(x_618); +lean_dec(x_594); +lean_dec(x_529); +x_679 = lean_ctor_get(x_617, 1); +lean_inc(x_679); +lean_dec(x_617); +x_680 = l_Lake_mkModuleSetup___closed__2; +x_5 = x_680; +x_6 = x_679; +goto block_20; } } -} -} -} -block_21: -{ -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; uint8_t x_15; -x_8 = lean_io_error_to_string(x_6); -x_9 = 3; -x_10 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set_uint8(x_10, sizeof(void*)*1, x_9); -x_11 = lean_box(1); -x_12 = 1; -x_13 = 0; -x_14 = l_Lake_OutStream_logEntry(x_11, x_10, x_12, x_13, x_7); -lean_dec(x_10); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -x_17 = l_Lake_setupFile___boxed__const__1; -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_17); -return x_14; -} else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_14, 1); -lean_inc(x_18); -lean_dec(x_14); -x_19 = l_Lake_setupFile___boxed__const__1; -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; +lean_object* x_681; lean_object* x_682; +lean_dec(x_594); +lean_dec(x_529); +x_681 = lean_ctor_get(x_613, 0); +lean_inc(x_681); +x_682 = lean_ctor_get(x_613, 1); +lean_inc(x_682); +lean_dec(x_613); +x_5 = x_681; +x_6 = x_682; +goto block_20; } } } } -LEAN_EXPORT lean_object* l_List_foldl___at_Lake_setupFile___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: +} +block_20: { -lean_object* x_4; -x_4 = l_List_foldl___at_Lake_setupFile___spec__1(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; +lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; uint8_t x_14; +x_7 = lean_io_error_to_string(x_5); +x_8 = 3; +x_9 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_8); +x_10 = lean_box(1); +x_11 = 1; +x_12 = 0; +x_13 = l_Lake_OutStream_logEntry(x_10, x_9, x_11, x_12, x_6); +lean_dec(x_9); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +x_16 = l_Lake_setupFile___boxed__const__1; +lean_ctor_set_tag(x_13, 1); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_dec(x_13); +x_18 = l_Lake_setupFile___boxed__const__1; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; } } -LEAN_EXPORT lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__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_EXPORT lean_object* l_Lake_withRegisterJob___at_Lake_setupFile___spec__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) { _start: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_3); lean_dec(x_3); -x_11 = l_Lake_withRegisterJob___at_Lake_setupFile___spec__2(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l_Lake_withRegisterJob___at_Lake_setupFile___spec__1(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } @@ -3174,7 +3426,7 @@ x_22 = l_Lake_invalidConfigEnvVar; lean_ctor_set(x_7, 1, x_21); lean_ctor_set(x_7, 0, x_22); x_23 = lean_array_push(x_19, x_7); -x_24 = l_Lake_setupFile___closed__3; +x_24 = l_Lake_setupFile___closed__9; lean_ctor_set(x_5, 1, x_24); lean_ctor_set(x_5, 0, x_23); x_25 = l_Lake_serve___lambda__1(x_1, x_2, x_5, x_17); @@ -3265,7 +3517,7 @@ x_44 = l_Lake_invalidConfigEnvVar; lean_ctor_set(x_7, 1, x_43); lean_ctor_set(x_7, 0, x_44); x_45 = lean_array_push(x_41, x_7); -x_46 = l_Lake_setupFile___closed__3; +x_46 = l_Lake_setupFile___closed__9; lean_ctor_set(x_5, 1, x_46); lean_ctor_set(x_5, 0, x_45); x_47 = l_Lake_serve___lambda__1(x_1, x_2, x_5, x_39); @@ -3365,7 +3617,7 @@ x_72 = l_Lake_invalidConfigEnvVar; lean_ctor_set(x_7, 1, x_71); lean_ctor_set(x_7, 0, x_72); x_73 = lean_array_push(x_69, x_7); -x_74 = l_Lake_setupFile___closed__3; +x_74 = l_Lake_setupFile___closed__9; lean_ctor_set(x_61, 1, x_74); lean_ctor_set(x_61, 0, x_73); x_75 = l_Lake_serve___lambda__1(x_1, x_2, x_61, x_67); @@ -3425,7 +3677,7 @@ x_88 = l_Lake_invalidConfigEnvVar; lean_ctor_set(x_7, 1, x_87); lean_ctor_set(x_7, 0, x_88); x_89 = lean_array_push(x_85, x_7); -x_90 = l_Lake_setupFile___closed__3; +x_90 = l_Lake_setupFile___closed__9; x_91 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_91, 0, x_89); lean_ctor_set(x_91, 1, x_90); @@ -3532,7 +3784,7 @@ x_118 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_118, 0, x_117); lean_ctor_set(x_118, 1, x_116); x_119 = lean_array_push(x_114, x_118); -x_120 = l_Lake_setupFile___closed__3; +x_120 = l_Lake_setupFile___closed__9; lean_ctor_set(x_5, 1, x_120); lean_ctor_set(x_5, 0, x_119); x_121 = l_Lake_serve___lambda__1(x_1, x_2, x_5, x_112); @@ -3626,7 +3878,7 @@ x_142 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_142, 0, x_141); lean_ctor_set(x_142, 1, x_140); x_143 = lean_array_push(x_138, x_142); -x_144 = l_Lake_setupFile___closed__3; +x_144 = l_Lake_setupFile___closed__9; lean_ctor_set(x_5, 1, x_144); lean_ctor_set(x_5, 0, x_143); x_145 = l_Lake_serve___lambda__1(x_1, x_2, x_5, x_136); @@ -3732,7 +3984,7 @@ x_171 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_171, 0, x_170); lean_ctor_set(x_171, 1, x_169); x_172 = lean_array_push(x_167, x_171); -x_173 = l_Lake_setupFile___closed__3; +x_173 = l_Lake_setupFile___closed__9; if (lean_is_scalar(x_162)) { x_174 = lean_alloc_ctor(0, 2, 0); } else { @@ -3859,7 +4111,7 @@ if (lean_is_scalar(x_192)) { lean_ctor_set(x_204, 0, x_203); lean_ctor_set(x_204, 1, x_202); x_205 = lean_array_push(x_200, x_204); -x_206 = l_Lake_setupFile___closed__3; +x_206 = l_Lake_setupFile___closed__9; x_207 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_207, 0, x_205); lean_ctor_set(x_207, 1, x_206); @@ -3961,7 +4213,7 @@ if (lean_is_scalar(x_192)) { lean_ctor_set(x_229, 0, x_228); lean_ctor_set(x_229, 1, x_227); x_230 = lean_array_push(x_225, x_229); -x_231 = l_Lake_setupFile___closed__3; +x_231 = l_Lake_setupFile___closed__9; x_232 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_232, 0, x_230); lean_ctor_set(x_232, 1, x_231); @@ -4074,7 +4326,7 @@ if (lean_is_scalar(x_192)) { lean_ctor_set(x_259, 0, x_258); lean_ctor_set(x_259, 1, x_257); x_260 = lean_array_push(x_255, x_259); -x_261 = l_Lake_setupFile___closed__3; +x_261 = l_Lake_setupFile___closed__9; if (lean_is_scalar(x_250)) { x_262 = lean_alloc_ctor(0, 2, 0); } else { @@ -4213,6 +4465,10 @@ l_Lake_invalidConfigEnvVar___closed__1 = _init_l_Lake_invalidConfigEnvVar___clos lean_mark_persistent(l_Lake_invalidConfigEnvVar___closed__1); l_Lake_invalidConfigEnvVar = _init_l_Lake_invalidConfigEnvVar(); lean_mark_persistent(l_Lake_invalidConfigEnvVar); +l_Lake_mkModuleSetup___closed__1 = _init_l_Lake_mkModuleSetup___closed__1(); +lean_mark_persistent(l_Lake_mkModuleSetup___closed__1); +l_Lake_mkModuleSetup___closed__2 = _init_l_Lake_mkModuleSetup___closed__2(); +lean_mark_persistent(l_Lake_mkModuleSetup___closed__2); l_Lake_setupFile___closed__1 = _init_l_Lake_setupFile___closed__1(); lean_mark_persistent(l_Lake_setupFile___closed__1); l_Lake_setupFile___closed__2 = _init_l_Lake_setupFile___closed__2(); @@ -4231,10 +4487,6 @@ l_Lake_setupFile___closed__8 = _init_l_Lake_setupFile___closed__8(); lean_mark_persistent(l_Lake_setupFile___closed__8); l_Lake_setupFile___closed__9 = _init_l_Lake_setupFile___closed__9(); lean_mark_persistent(l_Lake_setupFile___closed__9); -l_Lake_setupFile___closed__10 = _init_l_Lake_setupFile___closed__10(); -lean_mark_persistent(l_Lake_setupFile___closed__10); -l_Lake_setupFile___closed__11 = _init_l_Lake_setupFile___closed__11(); -lean_mark_persistent(l_Lake_setupFile___closed__11); l_Lake_setupFile___boxed__const__1 = _init_l_Lake_setupFile___boxed__const__1(); lean_mark_persistent(l_Lake_setupFile___boxed__const__1); l_Lake_setupFile___boxed__const__2 = _init_l_Lake_setupFile___boxed__const__2(); diff --git a/stage0/stdlib/Lake/Config/Meta.c b/stage0/stdlib/Lake/Config/Meta.c index 97ada68b28..2c3ecf5490 100644 --- a/stage0/stdlib/Lake/Config/Meta.c +++ b/stage0/stdlib/Lake/Config/Meta.c @@ -108,7 +108,6 @@ static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___clos static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__21; static lean_object* l_Lake_expandConfigDecl___lambda__1___closed__8; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__8(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_configDecl___closed__13; static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__22; static lean_object* l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__5; @@ -153,6 +152,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0_ static lean_object* l_Lake_configDecl___closed__66; static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__36; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__111; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__8(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__71; static lean_object* l_Lake_configDecl___closed__63; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__41; @@ -161,6 +161,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0_ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__23; static lean_object* l_Lake_configField___closed__12; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__17; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__9(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__114; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__62; LEAN_EXPORT lean_object* l_Lake_instConfigFieldOfConfigParent___rarg(lean_object*, lean_object*); @@ -213,7 +214,8 @@ static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___clos LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Meta_0__Lake_mkFieldView___lambda__1___closed__1; static lean_object* l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__7; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_expandConfigDecl___lambda__1___closed__18; static lean_object* l_Lake_configField___closed__7; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__3___closed__11; static lean_object* l___private_Lake_Config_Meta_0__Lake_mkParentFieldView___lambda__1___closed__1; @@ -234,12 +236,14 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spe LEAN_EXPORT lean_object* l_Lake_expandConfigDecl___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_configDecl___closed__21; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__58; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_configDecl___closed__43; static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__40; static lean_object* l_Lake_configField___closed__24; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__80; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_configDecl___closed__52; lean_object* l_Lean_extractMacroScopes(lean_object*); static lean_object* l___private_Lake_Config_Meta_0__Lake_mkFieldView___lambda__1___closed__2; @@ -254,6 +258,7 @@ lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_ static lean_object* l_Lake_expandConfigDecl___lambda__1___closed__2; static lean_object* l_Lake_configDecl___closed__10; static lean_object* l_Lake_configDecl___closed__46; +static lean_object* l_Lake_expandConfigDecl___lambda__1___closed__22; static lean_object* l_Lake_configDecl___closed__16; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__65; @@ -307,6 +312,7 @@ static lean_object* l_Lake_configDecl___closed__18; static lean_object* l_Lake_expandConfigDecl___lambda__3___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__33; LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lake_expandConfigDecl___spec__3___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_expandConfigDecl___lambda__1___closed__19; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__52; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___boxed(lean_object**); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__87; @@ -336,9 +342,9 @@ LEAN_EXPORT lean_object* l_Lake_mkFieldDefault___rarg(lean_object*, lean_object* static lean_object* l_Lake_configDecl___closed__15; static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__3; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__29; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_configField___closed__26; static lean_object* l_Lake_configDecl___closed__65; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_configDecl___closed__2; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__30; @@ -392,6 +398,7 @@ static lean_object* l_Lake_configDecl___closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__3___boxed(lean_object**); static lean_object* l_Lake_configDecl___closed__33; lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l_Lake_expandConfigDecl___lambda__1___closed__20; static lean_object* l_Lake_configField___closed__8; size_t lean_array_size(lean_object*); static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__4; @@ -429,6 +436,7 @@ static lean_object* l_Lake_configField___closed__27; LEAN_EXPORT lean_object* l_Lake_instConfigFieldOfConfigParent___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__51; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__32; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_configField___closed__18; static lean_object* l_Lake_configDecl___closed__8; lean_object* l_Lake_mkDepArrow(lean_object*, lean_object*); @@ -445,6 +453,7 @@ static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___clos static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__44; static lean_object* l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__2; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__73; +static lean_object* l_Lake_expandConfigDecl___lambda__1___closed__21; LEAN_EXPORT lean_object* l_Lake_expandConfigDecl___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__116; static lean_object* l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__38; @@ -7781,26 +7790,26 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { -uint8_t x_5; -x_5 = lean_usize_dec_lt(x_3, x_2); -if (x_5 == 0) +uint8_t x_6; +x_6 = lean_usize_dec_lt(x_4, x_3); +if (x_6 == 0) { -return x_4; +return x_5; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; -x_6 = lean_array_uget(x_4, x_3); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_uset(x_4, x_3, x_7); -x_9 = 1; -x_10 = lean_usize_add(x_3, x_9); -x_11 = lean_array_uset(x_8, x_3, x_6); -x_3 = x_10; +lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; +x_7 = lean_array_uget(x_5, x_4); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_uset(x_5, x_4, x_8); +x_10 = 1; +x_11 = lean_usize_add(x_4, x_10); +x_12 = lean_array_uset(x_9, x_4, x_7); x_4 = x_11; +x_5 = x_12; goto _start; } } @@ -7829,7 +7838,55 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_lt(x_3, x_2); +if (x_5 == 0) +{ +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_6 = lean_array_uget(x_4, x_3); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_4, x_3, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_3, x_9); +x_11 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_10; +x_4 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__9(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_lt(x_3, x_2); +if (x_5 == 0) +{ +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_6 = lean_array_uget(x_4, x_3); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_4, x_3, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_3, x_9); +x_11 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_10; +x_4 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__10(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -7895,28 +7952,32 @@ return x_20; static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("structure", 9, 9); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lake_configDecl___closed__25; +x_2 = l_Lake_configDecl___closed__26; +x_3 = l_Lake_configDecl___closed__27; +x_4 = l_Lake_configDecl___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_expandConfigDecl___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_configDecl___closed__25; -x_2 = l_Lake_configDecl___closed__26; -x_3 = l_Lake_configDecl___closed__32; -x_4 = l_Lake_expandConfigDecl___lambda__1___closed__1; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lake_expandConfigDecl___lambda__1___closed__1; +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_expandConfigDecl___lambda__1___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("structureTk", 11, 11); +x_1 = lean_mk_string_unchecked("structure", 9, 9); return x_1; } } @@ -7936,7 +7997,7 @@ static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("structFields", 12, 12); +x_1 = lean_mk_string_unchecked("structureTk", 11, 11); return x_1; } } @@ -7956,7 +8017,7 @@ static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__7() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("structExplicitBinder", 20, 20); +x_1 = lean_mk_string_unchecked("hole", 4, 4); return x_1; } } @@ -7966,7 +8027,7 @@ _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_configDecl___closed__25; x_2 = l_Lake_configDecl___closed__26; -x_3 = l_Lake_configDecl___closed__32; +x_3 = l_Lake_configDecl___closed__27; x_4 = l_Lake_expandConfigDecl___lambda__1___closed__7; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -7975,24 +8036,76 @@ return x_5; static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__9() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("structImplicitBinder", 20, 20); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lake_expandConfigDecl___lambda__1___closed__8; +x_2 = l_Lake_expandConfigDecl___lambda__1___closed__2; +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_expandConfigDecl___lambda__1___closed__10() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structFields", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__11() { +_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_configDecl___closed__25; x_2 = l_Lake_configDecl___closed__26; x_3 = l_Lake_configDecl___closed__32; -x_4 = l_Lake_expandConfigDecl___lambda__1___closed__9; +x_4 = l_Lake_expandConfigDecl___lambda__1___closed__10; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__11() { +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structExplicitBinder", 20, 20); +return x_1; +} +} +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__13() { +_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_configDecl___closed__25; +x_2 = l_Lake_configDecl___closed__26; +x_3 = l_Lake_configDecl___closed__32; +x_4 = l_Lake_expandConfigDecl___lambda__1___closed__12; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structImplicitBinder", 20, 20); +return x_1; +} +} +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__15() { +_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_configDecl___closed__25; +x_2 = l_Lake_configDecl___closed__26; +x_3 = l_Lake_configDecl___closed__32; +x_4 = l_Lake_expandConfigDecl___lambda__1___closed__14; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__16() { _start: { lean_object* x_1; @@ -8000,19 +8113,19 @@ x_1 = lean_mk_string_unchecked("structInstBinder", 16, 16); return x_1; } } -static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__12() { +static lean_object* _init_l_Lake_expandConfigDecl___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_configDecl___closed__25; x_2 = l_Lake_configDecl___closed__26; x_3 = l_Lake_configDecl___closed__32; -x_4 = l_Lake_expandConfigDecl___lambda__1___closed__11; +x_4 = l_Lake_expandConfigDecl___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_expandConfigDecl___lambda__1___closed__13() { +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -8024,43 +8137,43 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__14() { +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_expandConfigDecl___lambda__1___closed__12; -x_2 = l_Lake_expandConfigDecl___lambda__1___closed__13; +x_1 = l_Lake_expandConfigDecl___lambda__1___closed__17; +x_2 = l_Lake_expandConfigDecl___lambda__1___closed__18; 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_expandConfigDecl___lambda__1___closed__15() { +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_expandConfigDecl___lambda__1___closed__10; -x_2 = l_Lake_expandConfigDecl___lambda__1___closed__14; +x_1 = l_Lake_expandConfigDecl___lambda__1___closed__15; +x_2 = l_Lake_expandConfigDecl___lambda__1___closed__19; 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_expandConfigDecl___lambda__1___closed__16() { +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_expandConfigDecl___lambda__1___closed__8; -x_2 = l_Lake_expandConfigDecl___lambda__1___closed__15; +x_1 = l_Lake_expandConfigDecl___lambda__1___closed__13; +x_2 = l_Lake_expandConfigDecl___lambda__1___closed__20; 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_expandConfigDecl___lambda__1___closed__17() { +static lean_object* _init_l_Lake_expandConfigDecl___lambda__1___closed__22() { _start: { lean_object* x_1; lean_object* x_2; @@ -8106,21 +8219,21 @@ lean_inc(x_25); x_30 = l_Lean_Syntax_mkApp(x_25, x_29); if (lean_obj_tag(x_11) == 0) { -lean_object* x_199; -x_199 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__31; -x_31 = x_199; -goto block_198; +lean_object* x_207; +x_207 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__31; +x_31 = x_207; +goto block_206; } else { -lean_object* x_200; -x_200 = lean_ctor_get(x_11, 0); -lean_inc(x_200); +lean_object* x_208; +x_208 = lean_ctor_get(x_11, 0); +lean_inc(x_208); lean_dec(x_11); -x_31 = x_200; -goto block_198; +x_31 = x_208; +goto block_206; } -block_198: +block_206: { size_t x_32; lean_object* x_33; x_32 = lean_array_size(x_31); @@ -8136,69 +8249,69 @@ lean_inc(x_35); lean_dec(x_33); if (lean_obj_tag(x_8) == 0) { -lean_object* x_192; -x_192 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__31; -x_36 = x_192; -goto block_191; +lean_object* x_200; +x_200 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__31; +x_36 = x_200; +goto block_199; } else { -lean_object* x_193; -x_193 = lean_ctor_get(x_8, 0); -lean_inc(x_193); +lean_object* x_201; +x_201 = lean_ctor_get(x_8, 0); +lean_inc(x_201); lean_dec(x_8); -x_36 = x_193; -goto block_191; +x_36 = x_201; +goto block_199; } -block_191: +block_199: { -lean_object* x_37; lean_object* x_38; lean_object* x_179; lean_object* x_180; uint8_t x_181; -x_179 = l_Lean_Syntax_TSepArray_getElems___rarg(x_36); -x_180 = lean_array_get_size(x_179); -x_181 = lean_nat_dec_lt(x_24, x_180); -if (x_181 == 0) +lean_object* x_37; lean_object* x_38; lean_object* x_187; lean_object* x_188; uint8_t x_189; +x_187 = l_Lean_Syntax_TSepArray_getElems___rarg(x_36); +x_188 = lean_array_get_size(x_187); +x_189 = lean_nat_dec_lt(x_24, x_188); +if (x_189 == 0) { -lean_dec(x_180); -lean_dec(x_179); +lean_dec(x_188); +lean_dec(x_187); x_37 = x_34; x_38 = x_35; -goto block_178; +goto block_186; } else { -uint8_t x_182; -x_182 = lean_nat_dec_le(x_180, x_180); -if (x_182 == 0) +uint8_t x_190; +x_190 = lean_nat_dec_le(x_188, x_188); +if (x_190 == 0) { -lean_dec(x_180); -lean_dec(x_179); +lean_dec(x_188); +lean_dec(x_187); x_37 = x_34; x_38 = x_35; -goto block_178; +goto block_186; } else { -size_t x_183; lean_object* x_184; -x_183 = lean_usize_of_nat(x_180); -lean_dec(x_180); +size_t x_191; lean_object* x_192; +x_191 = lean_usize_of_nat(x_188); +lean_dec(x_188); lean_inc(x_12); -x_184 = l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__8(x_179, x_27, x_183, x_34, x_12, x_35); -lean_dec(x_179); -if (lean_obj_tag(x_184) == 0) +x_192 = l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__10(x_187, x_27, x_191, x_34, x_12, x_35); +lean_dec(x_187); +if (lean_obj_tag(x_192) == 0) { -lean_object* x_185; lean_object* x_186; -x_185 = lean_ctor_get(x_184, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -lean_dec(x_184); -x_37 = x_185; -x_38 = x_186; -goto block_178; +lean_object* x_193; lean_object* x_194; +x_193 = lean_ctor_get(x_192, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_192, 1); +lean_inc(x_194); +lean_dec(x_192); +x_37 = x_193; +x_38 = x_194; +goto block_186; } else { -uint8_t x_187; +uint8_t x_195; lean_dec(x_36); lean_dec(x_30); lean_dec(x_25); @@ -8211,387 +8324,396 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_187 = !lean_is_exclusive(x_184); -if (x_187 == 0) +x_195 = !lean_is_exclusive(x_192); +if (x_195 == 0) { -return x_184; +return x_192; } else { -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_184, 0); -x_189 = lean_ctor_get(x_184, 1); -lean_inc(x_189); -lean_inc(x_188); -lean_dec(x_184); -x_190 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_190, 0, x_188); -lean_ctor_set(x_190, 1, x_189); -return x_190; +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_192, 0); +x_197 = lean_ctor_get(x_192, 1); +lean_inc(x_197); +lean_inc(x_196); +lean_dec(x_192); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); +return x_198; } } } } -block_178: +block_186: { -lean_object* x_39; lean_object* x_40; uint8_t 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; size_t x_57; lean_object* x_58; lean_object* x_59; size_t x_60; lean_object* x_61; lean_object* x_62; size_t 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_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; size_t x_47; lean_object* x_48; size_t 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; size_t x_63; lean_object* x_64; lean_object* x_65; size_t x_66; lean_object* x_67; lean_object* x_68; size_t 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; x_39 = lean_array_get_size(x_37); x_40 = l_Array_filterMapM___at_Lake_expandConfigDecl___spec__3(x_37, x_24, x_39); lean_dec(x_39); x_41 = 0; x_42 = l_Lean_SourceInfo_fromRef(x_20, x_41); lean_dec(x_20); -x_43 = l_Lake_expandConfigDecl___lambda__1___closed__1; +x_43 = l_Lake_expandConfigDecl___lambda__1___closed__3; lean_inc(x_42); x_44 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_44, 0, x_42); lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lake_expandConfigDecl___lambda__1___closed__4; +x_45 = l_Lake_expandConfigDecl___lambda__1___closed__6; lean_inc(x_42); x_46 = l_Lean_Syntax_node1(x_42, x_45, x_44); -x_47 = l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__6; -x_48 = l_Array_append___rarg(x_47, x_17); -lean_dec(x_17); -x_49 = l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__5; +x_47 = lean_array_size(x_17); +x_48 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__5(x_16, x_47, x_27, x_17); +x_49 = lean_array_size(x_48); +x_50 = l_Lake_configField___closed__12; +x_51 = l_Lake_expandConfigDecl___lambda__1___closed__9; +x_52 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(x_50, x_51, x_49, x_27, x_48); +x_53 = l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__6; +x_54 = l_Array_append___rarg(x_53, x_52); +lean_dec(x_52); +x_55 = l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__5; lean_inc(x_42); -x_50 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_50, 0, x_42); -lean_ctor_set(x_50, 1, x_49); -lean_ctor_set(x_50, 2, x_48); -x_51 = l_Lake_configDecl___closed__33; -lean_inc(x_42); -x_52 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_52, 0, x_42); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Array_append___rarg(x_47, x_36); -lean_dec(x_36); -lean_inc(x_42); -x_54 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_54, 0, x_42); -lean_ctor_set(x_54, 1, x_49); -lean_ctor_set(x_54, 2, x_53); -x_55 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__23; -lean_inc(x_42); -x_56 = lean_alloc_ctor(2, 2, 0); +x_56 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_56, 0, x_42); lean_ctor_set(x_56, 1, x_55); -x_57 = lean_array_size(x_40); -x_58 = l_Lake_expandConfigDecl___lambda__1___closed__14; -x_59 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__5(x_58, x_57, x_27, x_40); -x_60 = lean_array_size(x_59); -x_61 = l_Lake_expandConfigDecl___lambda__1___closed__15; -x_62 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(x_61, x_60, x_27, x_59); -x_63 = lean_array_size(x_62); -x_64 = l_Lake_expandConfigDecl___lambda__1___closed__16; -x_65 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__7(x_64, x_63, x_27, x_62); -x_66 = l_Array_append___rarg(x_47, x_65); -lean_dec(x_65); +lean_ctor_set(x_56, 2, x_54); +x_57 = l_Lake_configDecl___closed__33; lean_inc(x_42); -x_67 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_67, 0, x_42); -lean_ctor_set(x_67, 1, x_49); -lean_ctor_set(x_67, 2, x_66); -x_68 = l_Lake_expandConfigDecl___lambda__1___closed__6; +x_58 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_58, 0, x_42); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Array_append___rarg(x_53, x_36); +lean_dec(x_36); lean_inc(x_42); -x_69 = l_Lean_Syntax_node1(x_42, x_68, x_67); -x_70 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls(x_25, x_30, x_37, x_12, x_38); -if (lean_obj_tag(x_7) == 0) -{ -x_71 = x_47; -goto block_175; -} -else -{ -lean_object* x_176; lean_object* x_177; -x_176 = lean_ctor_get(x_7, 0); -lean_inc(x_176); -lean_dec(x_7); -x_177 = l_Array_mkArray1___rarg(x_176); -x_71 = x_177; -goto block_175; -} -block_175: -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = l_Array_append___rarg(x_47, x_71); +x_60 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_60, 0, x_42); +lean_ctor_set(x_60, 1, x_55); +lean_ctor_set(x_60, 2, x_59); +x_61 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__23; +lean_inc(x_42); +x_62 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_62, 0, x_42); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_array_size(x_40); +x_64 = l_Lake_expandConfigDecl___lambda__1___closed__19; +x_65 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__7(x_64, x_63, x_27, x_40); +x_66 = lean_array_size(x_65); +x_67 = l_Lake_expandConfigDecl___lambda__1___closed__20; +x_68 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__8(x_67, x_66, x_27, x_65); +x_69 = lean_array_size(x_68); +x_70 = l_Lake_expandConfigDecl___lambda__1___closed__21; +x_71 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__9(x_70, x_69, x_27, x_68); +x_72 = l_Array_append___rarg(x_53, x_71); lean_dec(x_71); lean_inc(x_42); x_73 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_73, 0, x_42); -lean_ctor_set(x_73, 1, x_49); +lean_ctor_set(x_73, 1, x_55); lean_ctor_set(x_73, 2, x_72); +x_74 = l_Lake_expandConfigDecl___lambda__1___closed__11; +lean_inc(x_42); +x_75 = l_Lean_Syntax_node1(x_42, x_74, x_73); +x_76 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls(x_25, x_30, x_37, x_12, x_38); +if (lean_obj_tag(x_7) == 0) +{ +x_77 = x_53; +goto block_183; +} +else +{ +lean_object* x_184; lean_object* x_185; +x_184 = lean_ctor_get(x_7, 0); +lean_inc(x_184); +lean_dec(x_7); +x_185 = l_Array_mkArray1___rarg(x_184); +x_77 = x_185; +goto block_183; +} +block_183: +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_78 = l_Array_append___rarg(x_53, x_77); +lean_dec(x_77); +lean_inc(x_42); +x_79 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_79, 0, x_42); +lean_ctor_set(x_79, 1, x_55); +lean_ctor_set(x_79, 2, x_78); +x_80 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__11; +lean_inc(x_42); +x_81 = l_Lean_Syntax_node2(x_42, x_80, x_56, x_79); if (lean_obj_tag(x_6) == 0) { -x_74 = x_47; -goto block_171; +x_82 = x_53; +goto block_179; } else { -lean_object* x_172; -x_172 = lean_ctor_get(x_6, 0); -lean_inc(x_172); +lean_object* x_180; +x_180 = lean_ctor_get(x_6, 0); +lean_inc(x_180); lean_dec(x_6); -if (lean_obj_tag(x_172) == 0) +if (lean_obj_tag(x_180) == 0) { -x_74 = x_47; -goto block_171; +x_82 = x_53; +goto block_179; } else { -lean_object* x_173; lean_object* x_174; -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -lean_dec(x_172); -x_174 = lean_array_push(x_47, x_173); -x_74 = x_174; -goto block_171; +lean_object* x_181; lean_object* x_182; +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +lean_dec(x_180); +x_182 = lean_array_push(x_53, x_181); +x_82 = x_182; +goto block_179; } } -block_171: +block_179: { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_75 = l_Array_append___rarg(x_47, x_74); -lean_dec(x_74); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_83 = l_Array_append___rarg(x_53, x_82); +lean_dec(x_82); lean_inc(x_42); -x_76 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_76, 0, x_42); -lean_ctor_set(x_76, 1, x_49); -lean_ctor_set(x_76, 2, x_75); -x_77 = l_Lake_configDecl___closed__34; +x_84 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_84, 0, x_42); +lean_ctor_set(x_84, 1, x_55); +lean_ctor_set(x_84, 2, x_83); +x_85 = l_Lake_configDecl___closed__34; lean_inc(x_42); -x_78 = l_Lean_Syntax_node3(x_42, x_77, x_52, x_54, x_76); +x_86 = l_Lean_Syntax_node3(x_42, x_85, x_58, x_60, x_84); lean_inc(x_42); -x_79 = l_Lean_Syntax_node1(x_42, x_49, x_78); +x_87 = l_Lean_Syntax_node1(x_42, x_55, x_86); if (lean_obj_tag(x_10) == 0) { -uint8_t x_80; -x_80 = !lean_is_exclusive(x_70); -if (x_80 == 0) +uint8_t x_88; +x_88 = !lean_is_exclusive(x_76); +if (x_88 == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_81 = lean_ctor_get(x_70, 0); -x_82 = l_Lake_expandConfigDecl___lambda__1___closed__17; +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_89 = lean_ctor_get(x_76, 0); +x_90 = l_Lake_expandConfigDecl___lambda__1___closed__22; lean_inc(x_42); -x_83 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_83, 0, x_42); -lean_ctor_set(x_83, 1, x_49); -lean_ctor_set(x_83, 2, x_82); +x_91 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_91, 0, x_42); +lean_ctor_set(x_91, 1, x_55); +lean_ctor_set(x_91, 2, x_90); lean_inc(x_42); -x_84 = l_Lean_Syntax_node3(x_42, x_49, x_56, x_83, x_69); -x_85 = l_Lake_expandConfigDecl___lambda__1___closed__2; +x_92 = l_Lean_Syntax_node3(x_42, x_55, x_62, x_91, x_75); +x_93 = l_Lake_expandConfigDecl___lambda__1___closed__4; lean_inc(x_42); -x_86 = l_Lean_Syntax_node7(x_42, x_85, x_46, x_4, x_50, x_73, x_79, x_84, x_15); -x_87 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_88 = l_Lean_Syntax_node2(x_42, x_87, x_5, x_86); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_16); -x_90 = lean_array_mk(x_89); -x_91 = l_Array_append___rarg(x_90, x_81); -lean_dec(x_81); -x_92 = lean_box(2); -x_93 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_49); -lean_ctor_set(x_93, 2, x_91); -lean_ctor_set(x_70, 0, x_93); -return x_70; +x_94 = l_Lean_Syntax_node6(x_42, x_93, x_46, x_4, x_81, x_87, x_92, x_15); +x_95 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_96 = l_Lean_Syntax_node2(x_42, x_95, x_5, x_94); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_16); +x_98 = lean_array_mk(x_97); +x_99 = l_Array_append___rarg(x_98, x_89); +lean_dec(x_89); +x_100 = lean_box(2); +x_101 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_55); +lean_ctor_set(x_101, 2, x_99); +lean_ctor_set(x_76, 0, x_101); +return x_76; } else { -lean_object* x_94; 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_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_94 = lean_ctor_get(x_70, 0); -x_95 = lean_ctor_get(x_70, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_70); -x_96 = l_Lake_expandConfigDecl___lambda__1___closed__17; +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_102 = lean_ctor_get(x_76, 0); +x_103 = lean_ctor_get(x_76, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_76); +x_104 = l_Lake_expandConfigDecl___lambda__1___closed__22; lean_inc(x_42); -x_97 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_97, 0, x_42); -lean_ctor_set(x_97, 1, x_49); -lean_ctor_set(x_97, 2, x_96); +x_105 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_105, 0, x_42); +lean_ctor_set(x_105, 1, x_55); +lean_ctor_set(x_105, 2, x_104); lean_inc(x_42); -x_98 = l_Lean_Syntax_node3(x_42, x_49, x_56, x_97, x_69); -x_99 = l_Lake_expandConfigDecl___lambda__1___closed__2; +x_106 = l_Lean_Syntax_node3(x_42, x_55, x_62, x_105, x_75); +x_107 = l_Lake_expandConfigDecl___lambda__1___closed__4; lean_inc(x_42); -x_100 = l_Lean_Syntax_node7(x_42, x_99, x_46, x_4, x_50, x_73, x_79, x_98, x_15); -x_101 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_102 = l_Lean_Syntax_node2(x_42, x_101, x_5, x_100); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_16); -x_104 = lean_array_mk(x_103); -x_105 = l_Array_append___rarg(x_104, x_94); -lean_dec(x_94); -x_106 = lean_box(2); -x_107 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_49); -lean_ctor_set(x_107, 2, x_105); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_95); -return x_108; +x_108 = l_Lean_Syntax_node6(x_42, x_107, x_46, x_4, x_81, x_87, x_106, x_15); +x_109 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_110 = l_Lean_Syntax_node2(x_42, x_109, x_5, x_108); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_16); +x_112 = lean_array_mk(x_111); +x_113 = l_Array_append___rarg(x_112, x_102); +lean_dec(x_102); +x_114 = lean_box(2); +x_115 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_55); +lean_ctor_set(x_115, 2, x_113); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_103); +return x_116; } } else { -lean_object* x_109; -x_109 = lean_ctor_get(x_10, 0); -lean_inc(x_109); +lean_object* x_117; +x_117 = lean_ctor_get(x_10, 0); +lean_inc(x_117); lean_dec(x_10); -if (lean_obj_tag(x_109) == 0) +if (lean_obj_tag(x_117) == 0) { -uint8_t x_110; -x_110 = !lean_is_exclusive(x_70); -if (x_110 == 0) +uint8_t x_118; +x_118 = !lean_is_exclusive(x_76); +if (x_118 == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_111 = lean_ctor_get(x_70, 0); -x_112 = l_Lake_expandConfigDecl___lambda__1___closed__17; +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_119 = lean_ctor_get(x_76, 0); +x_120 = l_Lake_expandConfigDecl___lambda__1___closed__22; lean_inc(x_42); -x_113 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_113, 0, x_42); -lean_ctor_set(x_113, 1, x_49); -lean_ctor_set(x_113, 2, x_112); +x_121 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_121, 0, x_42); +lean_ctor_set(x_121, 1, x_55); +lean_ctor_set(x_121, 2, x_120); lean_inc(x_42); -x_114 = l_Lean_Syntax_node3(x_42, x_49, x_56, x_113, x_69); -x_115 = l_Lake_expandConfigDecl___lambda__1___closed__2; +x_122 = l_Lean_Syntax_node3(x_42, x_55, x_62, x_121, x_75); +x_123 = l_Lake_expandConfigDecl___lambda__1___closed__4; lean_inc(x_42); -x_116 = l_Lean_Syntax_node7(x_42, x_115, x_46, x_4, x_50, x_73, x_79, x_114, x_15); -x_117 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_118 = l_Lean_Syntax_node2(x_42, x_117, x_5, x_116); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_16); -x_120 = lean_array_mk(x_119); -x_121 = l_Array_append___rarg(x_120, x_111); -lean_dec(x_111); -x_122 = lean_box(2); -x_123 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_49); -lean_ctor_set(x_123, 2, x_121); -lean_ctor_set(x_70, 0, x_123); -return x_70; +x_124 = l_Lean_Syntax_node6(x_42, x_123, x_46, x_4, x_81, x_87, x_122, x_15); +x_125 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_126 = l_Lean_Syntax_node2(x_42, x_125, x_5, x_124); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_16); +x_128 = lean_array_mk(x_127); +x_129 = l_Array_append___rarg(x_128, x_119); +lean_dec(x_119); +x_130 = lean_box(2); +x_131 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_55); +lean_ctor_set(x_131, 2, x_129); +lean_ctor_set(x_76, 0, x_131); +return x_76; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_124 = lean_ctor_get(x_70, 0); -x_125 = lean_ctor_get(x_70, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_70); -x_126 = l_Lake_expandConfigDecl___lambda__1___closed__17; +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; +x_132 = lean_ctor_get(x_76, 0); +x_133 = lean_ctor_get(x_76, 1); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_76); +x_134 = l_Lake_expandConfigDecl___lambda__1___closed__22; lean_inc(x_42); -x_127 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_127, 0, x_42); -lean_ctor_set(x_127, 1, x_49); -lean_ctor_set(x_127, 2, x_126); +x_135 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_135, 0, x_42); +lean_ctor_set(x_135, 1, x_55); +lean_ctor_set(x_135, 2, x_134); lean_inc(x_42); -x_128 = l_Lean_Syntax_node3(x_42, x_49, x_56, x_127, x_69); -x_129 = l_Lake_expandConfigDecl___lambda__1___closed__2; +x_136 = l_Lean_Syntax_node3(x_42, x_55, x_62, x_135, x_75); +x_137 = l_Lake_expandConfigDecl___lambda__1___closed__4; lean_inc(x_42); -x_130 = l_Lean_Syntax_node7(x_42, x_129, x_46, x_4, x_50, x_73, x_79, x_128, x_15); -x_131 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_132 = l_Lean_Syntax_node2(x_42, x_131, x_5, x_130); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_16); -x_134 = lean_array_mk(x_133); -x_135 = l_Array_append___rarg(x_134, x_124); -lean_dec(x_124); -x_136 = lean_box(2); -x_137 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_49); -lean_ctor_set(x_137, 2, x_135); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_125); -return x_138; +x_138 = l_Lean_Syntax_node6(x_42, x_137, x_46, x_4, x_81, x_87, x_136, x_15); +x_139 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_140 = l_Lean_Syntax_node2(x_42, x_139, x_5, x_138); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_16); +x_142 = lean_array_mk(x_141); +x_143 = l_Array_append___rarg(x_142, x_132); +lean_dec(x_132); +x_144 = lean_box(2); +x_145 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_55); +lean_ctor_set(x_145, 2, x_143); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_133); +return x_146; } } else { -lean_object* x_139; uint8_t x_140; -x_139 = lean_ctor_get(x_109, 0); -lean_inc(x_139); -lean_dec(x_109); -x_140 = !lean_is_exclusive(x_70); -if (x_140 == 0) +lean_object* x_147; uint8_t x_148; +x_147 = lean_ctor_get(x_117, 0); +lean_inc(x_147); +lean_dec(x_117); +x_148 = !lean_is_exclusive(x_76); +if (x_148 == 0) { -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; -x_141 = lean_ctor_get(x_70, 0); -x_142 = lean_array_push(x_47, x_139); -x_143 = l_Array_append___rarg(x_47, x_142); -lean_dec(x_142); +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; +x_149 = lean_ctor_get(x_76, 0); +x_150 = lean_array_push(x_53, x_147); +x_151 = l_Array_append___rarg(x_53, x_150); +lean_dec(x_150); lean_inc(x_42); -x_144 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_144, 0, x_42); -lean_ctor_set(x_144, 1, x_49); -lean_ctor_set(x_144, 2, x_143); +x_152 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_152, 0, x_42); +lean_ctor_set(x_152, 1, x_55); +lean_ctor_set(x_152, 2, x_151); lean_inc(x_42); -x_145 = l_Lean_Syntax_node3(x_42, x_49, x_56, x_144, x_69); -x_146 = l_Lake_expandConfigDecl___lambda__1___closed__2; +x_153 = l_Lean_Syntax_node3(x_42, x_55, x_62, x_152, x_75); +x_154 = l_Lake_expandConfigDecl___lambda__1___closed__4; lean_inc(x_42); -x_147 = l_Lean_Syntax_node7(x_42, x_146, x_46, x_4, x_50, x_73, x_79, x_145, x_15); -x_148 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_149 = l_Lean_Syntax_node2(x_42, x_148, x_5, x_147); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_16); -x_151 = lean_array_mk(x_150); -x_152 = l_Array_append___rarg(x_151, x_141); -lean_dec(x_141); -x_153 = lean_box(2); -x_154 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_49); -lean_ctor_set(x_154, 2, x_152); -lean_ctor_set(x_70, 0, x_154); -return x_70; +x_155 = l_Lean_Syntax_node6(x_42, x_154, x_46, x_4, x_81, x_87, x_153, x_15); +x_156 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_157 = l_Lean_Syntax_node2(x_42, x_156, x_5, x_155); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_16); +x_159 = lean_array_mk(x_158); +x_160 = l_Array_append___rarg(x_159, x_149); +lean_dec(x_149); +x_161 = lean_box(2); +x_162 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_55); +lean_ctor_set(x_162, 2, x_160); +lean_ctor_set(x_76, 0, x_162); +return x_76; } else { -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; -x_155 = lean_ctor_get(x_70, 0); -x_156 = lean_ctor_get(x_70, 1); -lean_inc(x_156); -lean_inc(x_155); -lean_dec(x_70); -x_157 = lean_array_push(x_47, x_139); -x_158 = l_Array_append___rarg(x_47, x_157); -lean_dec(x_157); +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; +x_163 = lean_ctor_get(x_76, 0); +x_164 = lean_ctor_get(x_76, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_76); +x_165 = lean_array_push(x_53, x_147); +x_166 = l_Array_append___rarg(x_53, x_165); +lean_dec(x_165); lean_inc(x_42); -x_159 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_159, 0, x_42); -lean_ctor_set(x_159, 1, x_49); -lean_ctor_set(x_159, 2, x_158); +x_167 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_167, 0, x_42); +lean_ctor_set(x_167, 1, x_55); +lean_ctor_set(x_167, 2, x_166); lean_inc(x_42); -x_160 = l_Lean_Syntax_node3(x_42, x_49, x_56, x_159, x_69); -x_161 = l_Lake_expandConfigDecl___lambda__1___closed__2; +x_168 = l_Lean_Syntax_node3(x_42, x_55, x_62, x_167, x_75); +x_169 = l_Lake_expandConfigDecl___lambda__1___closed__4; lean_inc(x_42); -x_162 = l_Lean_Syntax_node7(x_42, x_161, x_46, x_4, x_50, x_73, x_79, x_160, x_15); -x_163 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_164 = l_Lean_Syntax_node2(x_42, x_163, x_5, x_162); -x_165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_16); -x_166 = lean_array_mk(x_165); -x_167 = l_Array_append___rarg(x_166, x_155); -lean_dec(x_155); -x_168 = lean_box(2); -x_169 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_49); -lean_ctor_set(x_169, 2, x_167); -x_170 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_170, 0, x_169); -lean_ctor_set(x_170, 1, x_156); -return x_170; +x_170 = l_Lean_Syntax_node6(x_42, x_169, x_46, x_4, x_81, x_87, x_168, x_15); +x_171 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_172 = l_Lean_Syntax_node2(x_42, x_171, x_5, x_170); +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_16); +x_174 = lean_array_mk(x_173); +x_175 = l_Array_append___rarg(x_174, x_163); +lean_dec(x_163); +x_176 = lean_box(2); +x_177 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_55); +lean_ctor_set(x_177, 2, x_175); +x_178 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_164); +return x_178; } } } @@ -8602,7 +8724,7 @@ return x_170; } else { -uint8_t x_194; +uint8_t x_202; lean_dec(x_30); lean_dec(x_25); lean_dec(x_12); @@ -8615,30 +8737,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_194 = !lean_is_exclusive(x_33); -if (x_194 == 0) +x_202 = !lean_is_exclusive(x_33); +if (x_202 == 0) { return x_33; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_33, 0); -x_196 = lean_ctor_get(x_33, 1); -lean_inc(x_196); -lean_inc(x_195); +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_33, 0); +x_204 = lean_ctor_get(x_33, 1); +lean_inc(x_204); +lean_inc(x_203); lean_dec(x_33); -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_195); -lean_ctor_set(x_197, 1, x_196); -return x_197; +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; } } } } else { -uint8_t x_201; +uint8_t x_209; lean_dec(x_12); lean_dec(x_20); lean_dec(x_17); @@ -8650,484 +8772,493 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_201 = !lean_is_exclusive(x_21); -if (x_201 == 0) +x_209 = !lean_is_exclusive(x_21); +if (x_209 == 0) { return x_21; } else { -lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_202 = lean_ctor_get(x_21, 0); -x_203 = lean_ctor_get(x_21, 1); -lean_inc(x_203); -lean_inc(x_202); +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_21, 0); +x_211 = lean_ctor_get(x_21, 1); +lean_inc(x_211); +lean_inc(x_210); lean_dec(x_21); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_203); -return x_204; +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +return x_212; } } } else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_205 = lean_ctor_get(x_12, 0); -x_206 = lean_ctor_get(x_12, 1); -x_207 = lean_ctor_get(x_12, 2); -x_208 = lean_ctor_get(x_12, 3); -x_209 = lean_ctor_get(x_12, 4); -x_210 = lean_ctor_get(x_12, 5); -lean_inc(x_210); -lean_inc(x_209); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_inc(x_205); -lean_dec(x_12); -x_211 = l_Lean_replaceRef(x_3, x_210); -lean_dec(x_210); -lean_inc(x_211); -x_212 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_212, 0, x_205); -lean_ctor_set(x_212, 1, x_206); -lean_ctor_set(x_212, 2, x_207); -lean_ctor_set(x_212, 3, x_208); -lean_ctor_set(x_212, 4, x_209); -lean_ctor_set(x_212, 5, x_211); -lean_inc(x_212); -x_213 = l_Lake_expandBinders(x_17, x_212, x_13); -if (lean_obj_tag(x_213) == 0) -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; size_t x_218; size_t x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -lean_dec(x_213); -x_216 = lean_unsigned_to_nat(0u); -x_217 = l_Lean_Syntax_getArg(x_4, x_216); -x_218 = lean_array_size(x_214); -x_219 = 0; -x_220 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__34; -x_221 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__1(x_220, x_218, x_219, x_214); +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_213 = lean_ctor_get(x_12, 0); +x_214 = lean_ctor_get(x_12, 1); +x_215 = lean_ctor_get(x_12, 2); +x_216 = lean_ctor_get(x_12, 3); +x_217 = lean_ctor_get(x_12, 4); +x_218 = lean_ctor_get(x_12, 5); +lean_inc(x_218); lean_inc(x_217); -x_222 = l_Lean_Syntax_mkApp(x_217, x_221); +lean_inc(x_216); +lean_inc(x_215); +lean_inc(x_214); +lean_inc(x_213); +lean_dec(x_12); +x_219 = l_Lean_replaceRef(x_3, x_218); +lean_dec(x_218); +lean_inc(x_219); +x_220 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_220, 0, x_213); +lean_ctor_set(x_220, 1, x_214); +lean_ctor_set(x_220, 2, x_215); +lean_ctor_set(x_220, 3, x_216); +lean_ctor_set(x_220, 4, x_217); +lean_ctor_set(x_220, 5, x_219); +lean_inc(x_220); +x_221 = l_Lake_expandBinders(x_17, x_220, x_13); +if (lean_obj_tag(x_221) == 0) +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; size_t x_226; size_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_221, 1); +lean_inc(x_223); +lean_dec(x_221); +x_224 = lean_unsigned_to_nat(0u); +x_225 = l_Lean_Syntax_getArg(x_4, x_224); +x_226 = lean_array_size(x_222); +x_227 = 0; +x_228 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__34; +x_229 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__1(x_228, x_226, x_227, x_222); +lean_inc(x_225); +x_230 = l_Lean_Syntax_mkApp(x_225, x_229); if (lean_obj_tag(x_11) == 0) { -lean_object* x_351; -x_351 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__31; -x_223 = x_351; -goto block_350; +lean_object* x_367; +x_367 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__31; +x_231 = x_367; +goto block_366; } else { -lean_object* x_352; -x_352 = lean_ctor_get(x_11, 0); -lean_inc(x_352); +lean_object* x_368; +x_368 = lean_ctor_get(x_11, 0); +lean_inc(x_368); lean_dec(x_11); -x_223 = x_352; -goto block_350; +x_231 = x_368; +goto block_366; } -block_350: +block_366: { -size_t x_224; lean_object* x_225; -x_224 = lean_array_size(x_223); -lean_inc(x_212); -x_225 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__2(x_224, x_219, x_223, x_212, x_215); -if (lean_obj_tag(x_225) == 0) +size_t x_232; lean_object* x_233; +x_232 = lean_array_size(x_231); +lean_inc(x_220); +x_233 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__2(x_232, x_227, x_231, x_220, x_223); +if (lean_obj_tag(x_233) == 0) { -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_225, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_225, 1); -lean_inc(x_227); -lean_dec(x_225); +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); if (lean_obj_tag(x_8) == 0) { -lean_object* x_344; -x_344 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__31; -x_228 = x_344; +lean_object* x_360; +x_360 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___closed__31; +x_236 = x_360; +goto block_359; +} +else +{ +lean_object* x_361; +x_361 = lean_ctor_get(x_8, 0); +lean_inc(x_361); +lean_dec(x_8); +x_236 = x_361; +goto block_359; +} +block_359: +{ +lean_object* x_237; lean_object* x_238; lean_object* x_347; lean_object* x_348; uint8_t x_349; +x_347 = l_Lean_Syntax_TSepArray_getElems___rarg(x_236); +x_348 = lean_array_get_size(x_347); +x_349 = lean_nat_dec_lt(x_224, x_348); +if (x_349 == 0) +{ +lean_dec(x_348); +lean_dec(x_347); +x_237 = x_234; +x_238 = x_235; +goto block_346; +} +else +{ +uint8_t x_350; +x_350 = lean_nat_dec_le(x_348, x_348); +if (x_350 == 0) +{ +lean_dec(x_348); +lean_dec(x_347); +x_237 = x_234; +x_238 = x_235; +goto block_346; +} +else +{ +size_t x_351; lean_object* x_352; +x_351 = lean_usize_of_nat(x_348); +lean_dec(x_348); +lean_inc(x_220); +x_352 = l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__10(x_347, x_227, x_351, x_234, x_220, x_235); +lean_dec(x_347); +if (lean_obj_tag(x_352) == 0) +{ +lean_object* x_353; lean_object* x_354; +x_353 = lean_ctor_get(x_352, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_352, 1); +lean_inc(x_354); +lean_dec(x_352); +x_237 = x_353; +x_238 = x_354; +goto block_346; +} +else +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; +lean_dec(x_236); +lean_dec(x_230); +lean_dec(x_225); +lean_dec(x_220); +lean_dec(x_219); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_355 = lean_ctor_get(x_352, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_352, 1); +lean_inc(x_356); +if (lean_is_exclusive(x_352)) { + lean_ctor_release(x_352, 0); + lean_ctor_release(x_352, 1); + x_357 = x_352; +} else { + lean_dec_ref(x_352); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 2, 0); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_355); +lean_ctor_set(x_358, 1, x_356); +return x_358; +} +} +} +block_346: +{ +lean_object* x_239; lean_object* x_240; uint8_t x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; size_t x_247; lean_object* x_248; size_t 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; size_t x_263; lean_object* x_264; lean_object* x_265; size_t x_266; lean_object* x_267; lean_object* x_268; size_t 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; +x_239 = lean_array_get_size(x_237); +x_240 = l_Array_filterMapM___at_Lake_expandConfigDecl___spec__3(x_237, x_224, x_239); +lean_dec(x_239); +x_241 = 0; +x_242 = l_Lean_SourceInfo_fromRef(x_219, x_241); +lean_dec(x_219); +x_243 = l_Lake_expandConfigDecl___lambda__1___closed__3; +lean_inc(x_242); +x_244 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +x_245 = l_Lake_expandConfigDecl___lambda__1___closed__6; +lean_inc(x_242); +x_246 = l_Lean_Syntax_node1(x_242, x_245, x_244); +x_247 = lean_array_size(x_17); +x_248 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__5(x_16, x_247, x_227, x_17); +x_249 = lean_array_size(x_248); +x_250 = l_Lake_configField___closed__12; +x_251 = l_Lake_expandConfigDecl___lambda__1___closed__9; +x_252 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(x_250, x_251, x_249, x_227, x_248); +x_253 = l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__6; +x_254 = l_Array_append___rarg(x_253, x_252); +lean_dec(x_252); +x_255 = l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__5; +lean_inc(x_242); +x_256 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_256, 0, x_242); +lean_ctor_set(x_256, 1, x_255); +lean_ctor_set(x_256, 2, x_254); +x_257 = l_Lake_configDecl___closed__33; +lean_inc(x_242); +x_258 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_258, 0, x_242); +lean_ctor_set(x_258, 1, x_257); +x_259 = l_Array_append___rarg(x_253, x_236); +lean_dec(x_236); +lean_inc(x_242); +x_260 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_260, 0, x_242); +lean_ctor_set(x_260, 1, x_255); +lean_ctor_set(x_260, 2, x_259); +x_261 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__23; +lean_inc(x_242); +x_262 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_262, 0, x_242); +lean_ctor_set(x_262, 1, x_261); +x_263 = lean_array_size(x_240); +x_264 = l_Lake_expandConfigDecl___lambda__1___closed__19; +x_265 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__7(x_264, x_263, x_227, x_240); +x_266 = lean_array_size(x_265); +x_267 = l_Lake_expandConfigDecl___lambda__1___closed__20; +x_268 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__8(x_267, x_266, x_227, x_265); +x_269 = lean_array_size(x_268); +x_270 = l_Lake_expandConfigDecl___lambda__1___closed__21; +x_271 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__9(x_270, x_269, x_227, x_268); +x_272 = l_Array_append___rarg(x_253, x_271); +lean_dec(x_271); +lean_inc(x_242); +x_273 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_273, 0, x_242); +lean_ctor_set(x_273, 1, x_255); +lean_ctor_set(x_273, 2, x_272); +x_274 = l_Lake_expandConfigDecl___lambda__1___closed__11; +lean_inc(x_242); +x_275 = l_Lean_Syntax_node1(x_242, x_274, x_273); +x_276 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls(x_225, x_230, x_237, x_220, x_238); +if (lean_obj_tag(x_7) == 0) +{ +x_277 = x_253; goto block_343; } else { -lean_object* x_345; -x_345 = lean_ctor_get(x_8, 0); -lean_inc(x_345); -lean_dec(x_8); -x_228 = x_345; +lean_object* x_344; lean_object* x_345; +x_344 = lean_ctor_get(x_7, 0); +lean_inc(x_344); +lean_dec(x_7); +x_345 = l_Array_mkArray1___rarg(x_344); +x_277 = x_345; goto block_343; } block_343: { -lean_object* x_229; lean_object* x_230; lean_object* x_331; lean_object* x_332; uint8_t x_333; -x_331 = l_Lean_Syntax_TSepArray_getElems___rarg(x_228); -x_332 = lean_array_get_size(x_331); -x_333 = lean_nat_dec_lt(x_216, x_332); -if (x_333 == 0) -{ -lean_dec(x_332); -lean_dec(x_331); -x_229 = x_226; -x_230 = x_227; -goto block_330; -} -else -{ -uint8_t x_334; -x_334 = lean_nat_dec_le(x_332, x_332); -if (x_334 == 0) -{ -lean_dec(x_332); -lean_dec(x_331); -x_229 = x_226; -x_230 = x_227; -goto block_330; -} -else -{ -size_t x_335; lean_object* x_336; -x_335 = lean_usize_of_nat(x_332); -lean_dec(x_332); -lean_inc(x_212); -x_336 = l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__8(x_331, x_219, x_335, x_226, x_212, x_227); -lean_dec(x_331); -if (lean_obj_tag(x_336) == 0) -{ -lean_object* x_337; lean_object* x_338; -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_336, 1); -lean_inc(x_338); -lean_dec(x_336); -x_229 = x_337; -x_230 = x_338; -goto block_330; -} -else -{ -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; -lean_dec(x_228); -lean_dec(x_222); -lean_dec(x_217); -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_339 = lean_ctor_get(x_336, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_336, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_341 = x_336; -} else { - lean_dec_ref(x_336); - x_341 = lean_box(0); -} -if (lean_is_scalar(x_341)) { - x_342 = lean_alloc_ctor(1, 2, 0); -} else { - x_342 = x_341; -} -lean_ctor_set(x_342, 0, x_339); -lean_ctor_set(x_342, 1, x_340); -return x_342; -} -} -} -block_330: -{ -lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; size_t x_249; lean_object* x_250; lean_object* x_251; size_t x_252; lean_object* x_253; lean_object* x_254; size_t 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; -x_231 = lean_array_get_size(x_229); -x_232 = l_Array_filterMapM___at_Lake_expandConfigDecl___spec__3(x_229, x_216, x_231); -lean_dec(x_231); -x_233 = 0; -x_234 = l_Lean_SourceInfo_fromRef(x_211, x_233); -lean_dec(x_211); -x_235 = l_Lake_expandConfigDecl___lambda__1___closed__1; -lean_inc(x_234); -x_236 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_236, 0, x_234); -lean_ctor_set(x_236, 1, x_235); -x_237 = l_Lake_expandConfigDecl___lambda__1___closed__4; -lean_inc(x_234); -x_238 = l_Lean_Syntax_node1(x_234, x_237, x_236); -x_239 = l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__6; -x_240 = l_Array_append___rarg(x_239, x_17); -lean_dec(x_17); -x_241 = l_Lake_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr4Nil__lake___closed__5; -lean_inc(x_234); -x_242 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_242, 0, x_234); -lean_ctor_set(x_242, 1, x_241); -lean_ctor_set(x_242, 2, x_240); -x_243 = l_Lake_configDecl___closed__33; -lean_inc(x_234); -x_244 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_244, 0, x_234); -lean_ctor_set(x_244, 1, x_243); -x_245 = l_Array_append___rarg(x_239, x_228); -lean_dec(x_228); -lean_inc(x_234); -x_246 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_246, 0, x_234); -lean_ctor_set(x_246, 1, x_241); -lean_ctor_set(x_246, 2, x_245); -x_247 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__23; -lean_inc(x_234); -x_248 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_248, 0, x_234); -lean_ctor_set(x_248, 1, x_247); -x_249 = lean_array_size(x_232); -x_250 = l_Lake_expandConfigDecl___lambda__1___closed__14; -x_251 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__5(x_250, x_249, x_219, x_232); -x_252 = lean_array_size(x_251); -x_253 = l_Lake_expandConfigDecl___lambda__1___closed__15; -x_254 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(x_253, x_252, x_219, x_251); -x_255 = lean_array_size(x_254); -x_256 = l_Lake_expandConfigDecl___lambda__1___closed__16; -x_257 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__7(x_256, x_255, x_219, x_254); -x_258 = l_Array_append___rarg(x_239, x_257); -lean_dec(x_257); -lean_inc(x_234); -x_259 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_259, 0, x_234); -lean_ctor_set(x_259, 1, x_241); -lean_ctor_set(x_259, 2, x_258); -x_260 = l_Lake_expandConfigDecl___lambda__1___closed__6; -lean_inc(x_234); -x_261 = l_Lean_Syntax_node1(x_234, x_260, x_259); -x_262 = l___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls(x_217, x_222, x_229, x_212, x_230); -if (lean_obj_tag(x_7) == 0) -{ -x_263 = x_239; -goto block_327; -} -else -{ -lean_object* x_328; lean_object* x_329; -x_328 = lean_ctor_get(x_7, 0); -lean_inc(x_328); -lean_dec(x_7); -x_329 = l_Array_mkArray1___rarg(x_328); -x_263 = x_329; -goto block_327; -} -block_327: -{ -lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_264 = l_Array_append___rarg(x_239, x_263); -lean_dec(x_263); -lean_inc(x_234); -x_265 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_265, 0, x_234); -lean_ctor_set(x_265, 1, x_241); -lean_ctor_set(x_265, 2, x_264); +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; +x_278 = l_Array_append___rarg(x_253, x_277); +lean_dec(x_277); +lean_inc(x_242); +x_279 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_279, 0, x_242); +lean_ctor_set(x_279, 1, x_255); +lean_ctor_set(x_279, 2, x_278); +x_280 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__11; +lean_inc(x_242); +x_281 = l_Lean_Syntax_node2(x_242, x_280, x_256, x_279); if (lean_obj_tag(x_6) == 0) { -x_266 = x_239; -goto block_323; +x_282 = x_253; +goto block_339; } else { -lean_object* x_324; -x_324 = lean_ctor_get(x_6, 0); -lean_inc(x_324); +lean_object* x_340; +x_340 = lean_ctor_get(x_6, 0); +lean_inc(x_340); lean_dec(x_6); -if (lean_obj_tag(x_324) == 0) +if (lean_obj_tag(x_340) == 0) { -x_266 = x_239; -goto block_323; +x_282 = x_253; +goto block_339; } else { -lean_object* x_325; lean_object* x_326; -x_325 = lean_ctor_get(x_324, 0); -lean_inc(x_325); -lean_dec(x_324); -x_326 = lean_array_push(x_239, x_325); -x_266 = x_326; -goto block_323; +lean_object* x_341; lean_object* x_342; +x_341 = lean_ctor_get(x_340, 0); +lean_inc(x_341); +lean_dec(x_340); +x_342 = lean_array_push(x_253, x_341); +x_282 = x_342; +goto block_339; } } -block_323: +block_339: { -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_267 = l_Array_append___rarg(x_239, x_266); -lean_dec(x_266); -lean_inc(x_234); -x_268 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_268, 0, x_234); -lean_ctor_set(x_268, 1, x_241); -lean_ctor_set(x_268, 2, x_267); -x_269 = l_Lake_configDecl___closed__34; -lean_inc(x_234); -x_270 = l_Lean_Syntax_node3(x_234, x_269, x_244, x_246, x_268); -lean_inc(x_234); -x_271 = l_Lean_Syntax_node1(x_234, x_241, x_270); +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; +x_283 = l_Array_append___rarg(x_253, x_282); +lean_dec(x_282); +lean_inc(x_242); +x_284 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_284, 0, x_242); +lean_ctor_set(x_284, 1, x_255); +lean_ctor_set(x_284, 2, x_283); +x_285 = l_Lake_configDecl___closed__34; +lean_inc(x_242); +x_286 = l_Lean_Syntax_node3(x_242, x_285, x_258, x_260, x_284); +lean_inc(x_242); +x_287 = l_Lean_Syntax_node1(x_242, x_255, x_286); if (lean_obj_tag(x_10) == 0) { -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; -x_272 = lean_ctor_get(x_262, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_262, 1); -lean_inc(x_273); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_274 = x_262; -} else { - lean_dec_ref(x_262); - x_274 = lean_box(0); -} -x_275 = l_Lake_expandConfigDecl___lambda__1___closed__17; -lean_inc(x_234); -x_276 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_276, 0, x_234); -lean_ctor_set(x_276, 1, x_241); -lean_ctor_set(x_276, 2, x_275); -lean_inc(x_234); -x_277 = l_Lean_Syntax_node3(x_234, x_241, x_248, x_276, x_261); -x_278 = l_Lake_expandConfigDecl___lambda__1___closed__2; -lean_inc(x_234); -x_279 = l_Lean_Syntax_node7(x_234, x_278, x_238, x_4, x_242, x_265, x_271, x_277, x_15); -x_280 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_281 = l_Lean_Syntax_node2(x_234, x_280, x_5, x_279); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_281); -lean_ctor_set(x_282, 1, x_16); -x_283 = lean_array_mk(x_282); -x_284 = l_Array_append___rarg(x_283, x_272); -lean_dec(x_272); -x_285 = lean_box(2); -x_286 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_286, 0, x_285); -lean_ctor_set(x_286, 1, x_241); -lean_ctor_set(x_286, 2, x_284); -if (lean_is_scalar(x_274)) { - x_287 = lean_alloc_ctor(0, 2, 0); -} else { - x_287 = x_274; -} -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_273); -return x_287; -} -else -{ -lean_object* x_288; -x_288 = lean_ctor_get(x_10, 0); +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; +x_288 = lean_ctor_get(x_276, 0); lean_inc(x_288); -lean_dec(x_10); -if (lean_obj_tag(x_288) == 0) -{ -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; -x_289 = lean_ctor_get(x_262, 0); +x_289 = lean_ctor_get(x_276, 1); lean_inc(x_289); -x_290 = lean_ctor_get(x_262, 1); -lean_inc(x_290); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_291 = x_262; +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_290 = x_276; } else { - lean_dec_ref(x_262); - x_291 = lean_box(0); + lean_dec_ref(x_276); + x_290 = lean_box(0); } -x_292 = l_Lake_expandConfigDecl___lambda__1___closed__17; -lean_inc(x_234); -x_293 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_293, 0, x_234); -lean_ctor_set(x_293, 1, x_241); -lean_ctor_set(x_293, 2, x_292); -lean_inc(x_234); -x_294 = l_Lean_Syntax_node3(x_234, x_241, x_248, x_293, x_261); -x_295 = l_Lake_expandConfigDecl___lambda__1___closed__2; -lean_inc(x_234); -x_296 = l_Lean_Syntax_node7(x_234, x_295, x_238, x_4, x_242, x_265, x_271, x_294, x_15); -x_297 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_298 = l_Lean_Syntax_node2(x_234, x_297, x_5, x_296); -x_299 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_299, 0, x_298); -lean_ctor_set(x_299, 1, x_16); -x_300 = lean_array_mk(x_299); -x_301 = l_Array_append___rarg(x_300, x_289); -lean_dec(x_289); -x_302 = lean_box(2); -x_303 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_303, 0, x_302); -lean_ctor_set(x_303, 1, x_241); -lean_ctor_set(x_303, 2, x_301); -if (lean_is_scalar(x_291)) { - x_304 = lean_alloc_ctor(0, 2, 0); -} else { - x_304 = x_291; -} -lean_ctor_set(x_304, 0, x_303); -lean_ctor_set(x_304, 1, x_290); -return x_304; -} -else -{ -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; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; 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_object* x_322; -x_305 = lean_ctor_get(x_288, 0); -lean_inc(x_305); +x_291 = l_Lake_expandConfigDecl___lambda__1___closed__22; +lean_inc(x_242); +x_292 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_292, 0, x_242); +lean_ctor_set(x_292, 1, x_255); +lean_ctor_set(x_292, 2, x_291); +lean_inc(x_242); +x_293 = l_Lean_Syntax_node3(x_242, x_255, x_262, x_292, x_275); +x_294 = l_Lake_expandConfigDecl___lambda__1___closed__4; +lean_inc(x_242); +x_295 = l_Lean_Syntax_node6(x_242, x_294, x_246, x_4, x_281, x_287, x_293, x_15); +x_296 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_297 = l_Lean_Syntax_node2(x_242, x_296, x_5, x_295); +x_298 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_298, 0, x_297); +lean_ctor_set(x_298, 1, x_16); +x_299 = lean_array_mk(x_298); +x_300 = l_Array_append___rarg(x_299, x_288); lean_dec(x_288); -x_306 = lean_ctor_get(x_262, 0); +x_301 = lean_box(2); +x_302 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_302, 0, x_301); +lean_ctor_set(x_302, 1, x_255); +lean_ctor_set(x_302, 2, x_300); +if (lean_is_scalar(x_290)) { + x_303 = lean_alloc_ctor(0, 2, 0); +} else { + x_303 = x_290; +} +lean_ctor_set(x_303, 0, x_302); +lean_ctor_set(x_303, 1, x_289); +return x_303; +} +else +{ +lean_object* x_304; +x_304 = lean_ctor_get(x_10, 0); +lean_inc(x_304); +lean_dec(x_10); +if (lean_obj_tag(x_304) == 0) +{ +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; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +x_305 = lean_ctor_get(x_276, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_276, 1); lean_inc(x_306); -x_307 = lean_ctor_get(x_262, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_308 = x_262; +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_307 = x_276; } else { - lean_dec_ref(x_262); - x_308 = lean_box(0); + lean_dec_ref(x_276); + x_307 = lean_box(0); } -x_309 = lean_array_push(x_239, x_305); -x_310 = l_Array_append___rarg(x_239, x_309); -lean_dec(x_309); -lean_inc(x_234); -x_311 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_311, 0, x_234); -lean_ctor_set(x_311, 1, x_241); -lean_ctor_set(x_311, 2, x_310); -lean_inc(x_234); -x_312 = l_Lean_Syntax_node3(x_234, x_241, x_248, x_311, x_261); -x_313 = l_Lake_expandConfigDecl___lambda__1___closed__2; -lean_inc(x_234); -x_314 = l_Lean_Syntax_node7(x_234, x_313, x_238, x_4, x_242, x_265, x_271, x_312, x_15); -x_315 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; -x_316 = l_Lean_Syntax_node2(x_234, x_315, x_5, x_314); -x_317 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_317, 0, x_316); -lean_ctor_set(x_317, 1, x_16); -x_318 = lean_array_mk(x_317); -x_319 = l_Array_append___rarg(x_318, x_306); -lean_dec(x_306); -x_320 = lean_box(2); -x_321 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_321, 0, x_320); -lean_ctor_set(x_321, 1, x_241); -lean_ctor_set(x_321, 2, x_319); -if (lean_is_scalar(x_308)) { - x_322 = lean_alloc_ctor(0, 2, 0); +x_308 = l_Lake_expandConfigDecl___lambda__1___closed__22; +lean_inc(x_242); +x_309 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_309, 0, x_242); +lean_ctor_set(x_309, 1, x_255); +lean_ctor_set(x_309, 2, x_308); +lean_inc(x_242); +x_310 = l_Lean_Syntax_node3(x_242, x_255, x_262, x_309, x_275); +x_311 = l_Lake_expandConfigDecl___lambda__1___closed__4; +lean_inc(x_242); +x_312 = l_Lean_Syntax_node6(x_242, x_311, x_246, x_4, x_281, x_287, x_310, x_15); +x_313 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_314 = l_Lean_Syntax_node2(x_242, x_313, x_5, x_312); +x_315 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_315, 0, x_314); +lean_ctor_set(x_315, 1, x_16); +x_316 = lean_array_mk(x_315); +x_317 = l_Array_append___rarg(x_316, x_305); +lean_dec(x_305); +x_318 = lean_box(2); +x_319 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_255); +lean_ctor_set(x_319, 2, x_317); +if (lean_is_scalar(x_307)) { + x_320 = lean_alloc_ctor(0, 2, 0); } else { - x_322 = x_308; + x_320 = x_307; } -lean_ctor_set(x_322, 0, x_321); -lean_ctor_set(x_322, 1, x_307); -return x_322; +lean_ctor_set(x_320, 0, x_319); +lean_ctor_set(x_320, 1, x_306); +return x_320; +} +else +{ +lean_object* x_321; 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_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; +x_321 = lean_ctor_get(x_304, 0); +lean_inc(x_321); +lean_dec(x_304); +x_322 = lean_ctor_get(x_276, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_276, 1); +lean_inc(x_323); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_324 = x_276; +} else { + lean_dec_ref(x_276); + x_324 = lean_box(0); +} +x_325 = lean_array_push(x_253, x_321); +x_326 = l_Array_append___rarg(x_253, x_325); +lean_dec(x_325); +lean_inc(x_242); +x_327 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_327, 0, x_242); +lean_ctor_set(x_327, 1, x_255); +lean_ctor_set(x_327, 2, x_326); +lean_inc(x_242); +x_328 = l_Lean_Syntax_node3(x_242, x_255, x_262, x_327, x_275); +x_329 = l_Lake_expandConfigDecl___lambda__1___closed__4; +lean_inc(x_242); +x_330 = l_Lean_Syntax_node6(x_242, x_329, x_246, x_4, x_281, x_287, x_328, x_15); +x_331 = l_Array_foldlMUnsafe_fold___at___private_Lake_Config_Meta_0__Lake_mkConfigAuxDecls___spec__4___closed__4; +x_332 = l_Lean_Syntax_node2(x_242, x_331, x_5, x_330); +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_332); +lean_ctor_set(x_333, 1, x_16); +x_334 = lean_array_mk(x_333); +x_335 = l_Array_append___rarg(x_334, x_322); +lean_dec(x_322); +x_336 = lean_box(2); +x_337 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_337, 0, x_336); +lean_ctor_set(x_337, 1, x_255); +lean_ctor_set(x_337, 2, x_335); +if (lean_is_scalar(x_324)) { + x_338 = lean_alloc_ctor(0, 2, 0); +} else { + x_338 = x_324; +} +lean_ctor_set(x_338, 0, x_337); +lean_ctor_set(x_338, 1, x_323); +return x_338; } } } @@ -9137,11 +9268,11 @@ return x_322; } else { -lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; -lean_dec(x_222); -lean_dec(x_217); -lean_dec(x_212); -lean_dec(x_211); +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +lean_dec(x_230); +lean_dec(x_225); +lean_dec(x_220); +lean_dec(x_219); lean_dec(x_17); lean_dec(x_15); lean_dec(x_10); @@ -9150,34 +9281,34 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_346 = lean_ctor_get(x_225, 0); -lean_inc(x_346); -x_347 = lean_ctor_get(x_225, 1); -lean_inc(x_347); -if (lean_is_exclusive(x_225)) { - lean_ctor_release(x_225, 0); - lean_ctor_release(x_225, 1); - x_348 = x_225; +x_362 = lean_ctor_get(x_233, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_233, 1); +lean_inc(x_363); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_364 = x_233; } else { - lean_dec_ref(x_225); - x_348 = lean_box(0); + lean_dec_ref(x_233); + x_364 = lean_box(0); } -if (lean_is_scalar(x_348)) { - x_349 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_364)) { + x_365 = lean_alloc_ctor(1, 2, 0); } else { - x_349 = x_348; + x_365 = x_364; } -lean_ctor_set(x_349, 0, x_346); -lean_ctor_set(x_349, 1, x_347); -return x_349; +lean_ctor_set(x_365, 0, x_362); +lean_ctor_set(x_365, 1, x_363); +return x_365; } } } else { -lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -lean_dec(x_212); -lean_dec(x_211); +lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; +lean_dec(x_220); +lean_dec(x_219); lean_dec(x_17); lean_dec(x_15); lean_dec(x_11); @@ -9187,26 +9318,26 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_353 = lean_ctor_get(x_213, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_213, 1); -lean_inc(x_354); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_355 = x_213; +x_369 = lean_ctor_get(x_221, 0); +lean_inc(x_369); +x_370 = lean_ctor_get(x_221, 1); +lean_inc(x_370); +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + x_371 = x_221; } else { - lean_dec_ref(x_213); - x_355 = lean_box(0); + lean_dec_ref(x_221); + x_371 = lean_box(0); } -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_371)) { + x_372 = lean_alloc_ctor(1, 2, 0); } else { - x_356 = x_355; + x_372 = x_371; } -lean_ctor_set(x_356, 0, x_353); -lean_ctor_set(x_356, 1, x_354); -return x_356; +lean_ctor_set(x_372, 0, x_369); +lean_ctor_set(x_372, 1, x_370); +return x_372; } } } @@ -9653,17 +9784,18 @@ lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -size_t x_5; size_t x_6; lean_object* x_7; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); +size_t x_6; size_t x_7; lean_object* x_8; x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(x_1, x_5, x_6, x_4); +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__6(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); lean_dec(x_1); -return x_7; +return x_8; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -9679,7 +9811,33 @@ lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__8___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__8(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Array_mapMUnsafe_map___at_Lake_expandConfigDecl___spec__9(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__10___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: { size_t x_7; size_t x_8; lean_object* x_9; @@ -9687,7 +9845,7 @@ x_7 = lean_unbox_usize(x_2); lean_dec(x_2); x_8 = lean_unbox_usize(x_3); lean_dec(x_3); -x_9 = l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__8(x_1, x_7, x_8, x_4, x_5, x_6); +x_9 = l_Array_foldlMUnsafe_fold___at_Lake_expandConfigDecl___spec__10(x_1, x_7, x_8, x_4, x_5, x_6); lean_dec(x_1); return x_9; } @@ -10433,6 +10591,16 @@ l_Lake_expandConfigDecl___lambda__1___closed__16 = _init_l_Lake_expandConfigDecl lean_mark_persistent(l_Lake_expandConfigDecl___lambda__1___closed__16); l_Lake_expandConfigDecl___lambda__1___closed__17 = _init_l_Lake_expandConfigDecl___lambda__1___closed__17(); lean_mark_persistent(l_Lake_expandConfigDecl___lambda__1___closed__17); +l_Lake_expandConfigDecl___lambda__1___closed__18 = _init_l_Lake_expandConfigDecl___lambda__1___closed__18(); +lean_mark_persistent(l_Lake_expandConfigDecl___lambda__1___closed__18); +l_Lake_expandConfigDecl___lambda__1___closed__19 = _init_l_Lake_expandConfigDecl___lambda__1___closed__19(); +lean_mark_persistent(l_Lake_expandConfigDecl___lambda__1___closed__19); +l_Lake_expandConfigDecl___lambda__1___closed__20 = _init_l_Lake_expandConfigDecl___lambda__1___closed__20(); +lean_mark_persistent(l_Lake_expandConfigDecl___lambda__1___closed__20); +l_Lake_expandConfigDecl___lambda__1___closed__21 = _init_l_Lake_expandConfigDecl___lambda__1___closed__21(); +lean_mark_persistent(l_Lake_expandConfigDecl___lambda__1___closed__21); +l_Lake_expandConfigDecl___lambda__1___closed__22 = _init_l_Lake_expandConfigDecl___lambda__1___closed__22(); +lean_mark_persistent(l_Lake_expandConfigDecl___lambda__1___closed__22); l_Lake_expandConfigDecl___lambda__3___closed__1 = _init_l_Lake_expandConfigDecl___lambda__3___closed__1(); lean_mark_persistent(l_Lake_expandConfigDecl___lambda__3___closed__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lake/Config/Module.c b/stage0/stdlib/Lake/Config/Module.c index df6e770828..18112a6199 100644 --- a/stage0/stdlib/Lake/Config/Module.c +++ b/stage0/stdlib/Lake/Config/Module.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFile(lean_object*); static lean_object* l_Lake_instToTextModule___closed__1; uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_160____at_Lean_forEachModuleInDir___spec__1(lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); @@ -39,7 +40,6 @@ LEAN_EXPORT uint8_t l_Lake_instBEqModule(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_irPath___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instToTextModule(lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_LeanOptionValue_asCliFlagValue(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_LeanLib_getModuleArray(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); @@ -49,6 +49,7 @@ LEAN_EXPORT lean_object* l_Lake_Module_leanLibPath___boxed(lean_object*, lean_ob lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_leanOptions___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_platformIndependent(lean_object*); +static lean_object* l_Lake_Module_setupFile___closed__1; lean_object* l_System_FilePath_withExtension(lean_object*, lean_object*); static lean_object* l_Lake_Module_traceFile___closed__1; LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___at_Lake_LeanLib_getModuleArray___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -61,9 +62,9 @@ lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_instGetMTime; LEAN_EXPORT lean_object* l_Lake_Module_weakLeancArgs(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_LeanLib_getModuleArray___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_serverOptions___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___at_Lake_LeanLib_getModuleArray___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFile(lean_object*); lean_object* l_Lake_relPathFrom(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_OrdModuleSet_empty; LEAN_EXPORT lean_object* l_Lake_ModuleSet_empty; @@ -74,6 +75,7 @@ extern lean_object* l_Lake_sharedLibExt; LEAN_EXPORT lean_object* l_Lake_Module_leanArgs___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_weakLinkArgs(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_LeanLib_rootModules___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanPrivateFile___closed__1; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lake_instHashableModule___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_leanFile(lean_object*); @@ -134,6 +136,7 @@ LEAN_EXPORT lean_object* l_Lake_instToJsonModule(lean_object*); LEAN_EXPORT uint8_t l_Lake_Module_backend(lean_object*); static lean_object* l_Lake_Module_cFile___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lake_Module_oleanServerFile___closed__1; LEAN_EXPORT lean_object* l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; static uint8_t l_Lake_Module_bcFile_x3f___closed__1; uint8_t l_Lake_Backend_orPreferLeft(uint8_t, uint8_t); @@ -145,7 +148,6 @@ lean_object* l_Lake_modOfFilePath(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_instCheckExists; LEAN_EXPORT lean_object* l_Lake_Module_cFile(lean_object*); uint64_t l_Lean_Name_hash___override(lean_object*); -static lean_object* l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__2; static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Package_findModule_x3f___spec__3___closed__1; LEAN_EXPORT lean_object* l_Lake_Module_bcFile(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_leanIncludeDir_x3f(lean_object*); @@ -187,7 +189,6 @@ uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* l_Lake_joinRelative(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lake_BuildType_leancArgs(uint8_t); -static lean_object* l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__1; static lean_object* l_Lake_Module_instGetMTime___closed__1; static lean_object* l_Lake_Module_coExportFile___closed__1; static lean_object* l_Lake_Module_ileanFile___closed__1; @@ -195,6 +196,7 @@ LEAN_EXPORT lean_object* l_Lake_Module_linkArgs(lean_object*); LEAN_EXPORT uint8_t l_Lake_Module_buildType(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_dynlibName(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +LEAN_EXPORT lean_object* l_Lake_Module_setupFile(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_serverOptions(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_shouldPrecompile___boxed(lean_object*); LEAN_EXPORT uint8_t l_Lake_instToTextModule___lambda__1(lean_object* x_1) { @@ -2025,6 +2027,92 @@ lean_dec(x_11); return x_14; } } +static lean_object* _init_l_Lake_Module_oleanServerFile___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("olean.server", 12, 12); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_oleanServerFile(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +lean_dec(x_2); +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 3); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_5, 6); +lean_inc(x_6); +x_7 = l_System_FilePath_normalize(x_6); +x_8 = l_Lake_joinRelative(x_4, x_7); +lean_dec(x_7); +x_9 = lean_ctor_get(x_5, 7); +lean_inc(x_9); +lean_dec(x_5); +x_10 = l_System_FilePath_normalize(x_9); +x_11 = l_Lake_joinRelative(x_8, x_10); +lean_dec(x_10); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_dec(x_1); +x_13 = l_Lake_Module_oleanServerFile___closed__1; +x_14 = l_Lean_modToFilePath(x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_14; +} +} +static lean_object* _init_l_Lake_Module_oleanPrivateFile___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("olean.private", 13, 13); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_oleanPrivateFile(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +lean_dec(x_2); +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 3); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_5, 6); +lean_inc(x_6); +x_7 = l_System_FilePath_normalize(x_6); +x_8 = l_Lake_joinRelative(x_4, x_7); +lean_dec(x_7); +x_9 = lean_ctor_get(x_5, 7); +lean_inc(x_9); +lean_dec(x_5); +x_10 = l_System_FilePath_normalize(x_9); +x_11 = l_Lake_joinRelative(x_8, x_10); +lean_dec(x_10); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_dec(x_1); +x_13 = l_Lake_Module_oleanPrivateFile___closed__1; +x_14 = l_Lean_modToFilePath(x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_14; +} +} static lean_object* _init_l_Lake_Module_ileanFile___closed__1() { _start: { @@ -2154,6 +2242,49 @@ lean_dec(x_1); return x_3; } } +static lean_object* _init_l_Lake_Module_setupFile___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("setup.json", 10, 10); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_Module_setupFile(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +lean_dec(x_2); +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 3); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_5, 6); +lean_inc(x_6); +x_7 = l_System_FilePath_normalize(x_6); +x_8 = l_Lake_joinRelative(x_4, x_7); +lean_dec(x_7); +x_9 = lean_ctor_get(x_5, 10); +lean_inc(x_9); +lean_dec(x_5); +x_10 = l_System_FilePath_normalize(x_9); +x_11 = l_Lake_joinRelative(x_8, x_10); +lean_dec(x_10); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_dec(x_1); +x_13 = l_Lake_Module_setupFile___closed__1; +x_14 = l_Lean_modToFilePath(x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_14; +} +} static lean_object* _init_l_Lake_Module_cFile___closed__1() { _start: { @@ -2755,66 +2886,10 @@ lean_dec(x_1); return x_2; } } -static lean_object* _init_l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("-D", 2, 2); -return x_1; -} -} -static lean_object* _init_l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("=", 1, 1); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 2); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 3); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1(x_1, x_3); -x_8 = 1; -x_9 = l_Lake_instToTextModule___closed__1; -x_10 = l_Lean_Name_toString(x_4, x_8, x_9); -x_11 = l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__2; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_Lean_LeanOptionValue_asCliFlagValue(x_5); -x_16 = lean_string_append(x_14, x_15); -lean_dec(x_15); -x_17 = l_Array_forIn_x27Unsafe_loop___at_Lake_LeanLib_getModuleArray___spec__2___closed__4; -x_18 = lean_string_append(x_16, x_17); -x_19 = lean_array_push(x_7, x_18); -x_1 = x_19; -x_2 = x_6; -goto _start; -} -} -} LEAN_EXPORT lean_object* l_Lake_Module_leanArgs(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; lean_object* x_11; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_3, 3); @@ -2824,41 +2899,27 @@ x_7 = lean_ctor_get(x_2, 2); x_8 = lean_ctor_get(x_7, 0); x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*13); x_10 = l_Lake_ordBuildType____x40_Lake_Config_LeanConfig___hyg_267_(x_6, x_9); -x_11 = lean_ctor_get(x_5, 1); -x_12 = lean_ctor_get(x_8, 1); -x_13 = lean_ctor_get(x_5, 0); -x_14 = l_Lean_LeanOptions_ofArray(x_13); -x_15 = lean_box(x_10); -if (lean_obj_tag(x_15) == 2) +x_11 = lean_box(x_10); +if (lean_obj_tag(x_11) == 2) { -lean_object* x_16; lean_object* 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; -x_16 = lean_ctor_get(x_8, 0); -x_17 = l_Lake_BuildType_leanArgs(x_9); -x_18 = l_Array_append___rarg(x_17, x_11); -x_19 = l_Array_append___rarg(x_18, x_12); -x_20 = l_Lake_BuildType_leanOptions(x_9); -x_21 = l_Lake_Module_serverOptions___closed__1; -x_22 = l_Lake_Module_serverOptions___closed__2; -x_23 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_21, x_22, x_20, x_14); -x_24 = l_Lean_LeanOptions_appendArray(x_23, x_16); -x_25 = l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1(x_19, x_24); -return x_25; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_5, 1); +x_13 = lean_ctor_get(x_8, 1); +x_14 = l_Lake_BuildType_leanArgs(x_9); +x_15 = l_Array_append___rarg(x_14, x_12); +x_16 = l_Array_append___rarg(x_15, x_13); +return x_16; } else { -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_dec(x_15); -x_26 = lean_ctor_get(x_8, 0); -x_27 = l_Lake_BuildType_leanArgs(x_6); -x_28 = l_Array_append___rarg(x_27, x_11); -x_29 = l_Array_append___rarg(x_28, x_12); -x_30 = l_Lake_BuildType_leanOptions(x_6); -x_31 = l_Lake_Module_serverOptions___closed__1; -x_32 = l_Lake_Module_serverOptions___closed__2; -x_33 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_31, x_32, x_30, x_14); -x_34 = l_Lean_LeanOptions_appendArray(x_33, x_26); -x_35 = l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1(x_29, x_34); -return x_35; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_11); +x_17 = lean_ctor_get(x_5, 1); +x_18 = lean_ctor_get(x_8, 1); +x_19 = l_Lake_BuildType_leanArgs(x_6); +x_20 = l_Array_append___rarg(x_19, x_17); +x_21 = l_Array_append___rarg(x_20, x_18); +return x_21; } } } @@ -3830,10 +3891,16 @@ l_Array_forIn_x27Unsafe_loop___at_Lake_LeanLib_getModuleArray___spec__2___closed lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lake_LeanLib_getModuleArray___spec__2___closed__4); l_Lake_Module_oleanFile___closed__1 = _init_l_Lake_Module_oleanFile___closed__1(); lean_mark_persistent(l_Lake_Module_oleanFile___closed__1); +l_Lake_Module_oleanServerFile___closed__1 = _init_l_Lake_Module_oleanServerFile___closed__1(); +lean_mark_persistent(l_Lake_Module_oleanServerFile___closed__1); +l_Lake_Module_oleanPrivateFile___closed__1 = _init_l_Lake_Module_oleanPrivateFile___closed__1(); +lean_mark_persistent(l_Lake_Module_oleanPrivateFile___closed__1); l_Lake_Module_ileanFile___closed__1 = _init_l_Lake_Module_ileanFile___closed__1(); lean_mark_persistent(l_Lake_Module_ileanFile___closed__1); l_Lake_Module_traceFile___closed__1 = _init_l_Lake_Module_traceFile___closed__1(); lean_mark_persistent(l_Lake_Module_traceFile___closed__1); +l_Lake_Module_setupFile___closed__1 = _init_l_Lake_Module_setupFile___closed__1(); +lean_mark_persistent(l_Lake_Module_setupFile___closed__1); l_Lake_Module_cFile___closed__1 = _init_l_Lake_Module_cFile___closed__1(); lean_mark_persistent(l_Lake_Module_cFile___closed__1); l_Lake_Module_coExportFile___closed__1 = _init_l_Lake_Module_coExportFile___closed__1(); @@ -3855,10 +3922,6 @@ l_Lake_Module_serverOptions___closed__1 = _init_l_Lake_Module_serverOptions___cl lean_mark_persistent(l_Lake_Module_serverOptions___closed__1); l_Lake_Module_serverOptions___closed__2 = _init_l_Lake_Module_serverOptions___closed__2(); lean_mark_persistent(l_Lake_Module_serverOptions___closed__2); -l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__1 = _init_l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__1(); -lean_mark_persistent(l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__1); -l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__2 = _init_l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__2(); -lean_mark_persistent(l_Lean_RBNode_fold___at_Lake_Module_leanArgs___spec__1___closed__2); l_Lake_Module_leanIncludeDir_x3f___closed__1 = _init_l_Lake_Module_leanIncludeDir_x3f___closed__1(); lean_mark_persistent(l_Lake_Module_leanIncludeDir_x3f___closed__1); l_Lake_Module_instGetMTime___closed__1 = _init_l_Lake_Module_instGetMTime___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Grind.c b/stage0/stdlib/Lean/Elab/Tactic/Grind.c index 400b8603f0..5551922ab1 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Grind.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Grind.c @@ -23,6 +23,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_ static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_mkGrindOnly___spec__6___closed__27; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__5___lambda__3___closed__5; static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__4; +LEAN_EXPORT lean_object* l_Lean_withDeclNameForAuxNaming___at_Lean_Elab_Tactic_elabInitGrindNorm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabResetGrindAttrs___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_mkGrindOnly___spec__6___closed__12; @@ -191,6 +192,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_ static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___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* l_Lean_Elab_instantiateMVarsProfiling(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__5; lean_object* l_Lean_Meta_Grind_EMatchTheorems_find(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_commandElabAttribute; @@ -226,7 +228,7 @@ lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2 lean_object* l_Lean_Syntax_getKind(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); @@ -337,6 +339,7 @@ static lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_Elab_Tactic_elab lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__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*); static lean_object* l_Lean_Elab_Tactic_isGrindOnly___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___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* l_Lean_Meta_mkAuxTheorem(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_mkGrindOnly___spec__6___closed__28; lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -419,6 +422,7 @@ static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___regBuiltin_Lean_Elab_T static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_mkGrindOnly___spec__6___closed__16; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__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_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__8___closed__6; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabResetGrindAttrs___regBuiltin_Lean_Elab_Tactic_elabResetGrindAttrs__1(lean_object*); @@ -464,6 +468,7 @@ static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__2; static lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_Elab_Tactic_elabGrindPattern___spec__6___closed__4; lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_instantiateForallWithParamInfos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___elambda__1___rarg(lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__10; static lean_object* l_Lean_Elab_Tactic_mkGrindOnly___closed__1; @@ -473,6 +478,7 @@ static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_mkGrindOnly___sp LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_grind___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*); +static lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2___closed__1; LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_isGrindOnly(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabResetGrindAttrs___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_toList___at_Lean_Elab_Tactic_mkGrindOnly___spec__1___boxed(lean_object*); @@ -509,7 +515,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___lambda__2___boxed(lean_o LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback_unsafe__3___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__10___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__5___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___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_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrindCore___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*); uint8_t l_Lean_Exception_isRuntime(lean_object*); lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2904,7 +2910,474 @@ return x_27; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1(size_t x_1, size_t 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_EXPORT lean_object* l_Lean_withDeclNameForAuxNaming___at_Lean_Elab_Tactic_elabInitGrindNorm___spec__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) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 3); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_name_eq(x_14, x_1); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_16 = lean_box(0); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_18, 0, x_1); +lean_ctor_set(x_18, 1, x_17); +lean_ctor_set(x_18, 2, x_16); +x_19 = lean_st_ref_take(x_8, x_12); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_20, 3); +lean_dec(x_23); +lean_ctor_set(x_20, 3, x_18); +x_24 = lean_st_ref_set(x_8, x_20, x_21); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +lean_inc(x_8); +x_26 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_st_ref_take(x_8, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = !lean_is_exclusive(x_30); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_30, 3); +lean_dec(x_33); +lean_ctor_set(x_30, 3, x_13); +x_34 = lean_st_ref_set(x_8, x_30, x_31); +lean_dec(x_8); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_27); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_27); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +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; +x_39 = lean_ctor_get(x_30, 0); +x_40 = lean_ctor_get(x_30, 1); +x_41 = lean_ctor_get(x_30, 2); +x_42 = lean_ctor_get(x_30, 4); +x_43 = lean_ctor_get(x_30, 5); +x_44 = lean_ctor_get(x_30, 6); +x_45 = lean_ctor_get(x_30, 7); +x_46 = lean_ctor_get(x_30, 8); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_30); +x_47 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_47, 0, x_39); +lean_ctor_set(x_47, 1, x_40); +lean_ctor_set(x_47, 2, x_41); +lean_ctor_set(x_47, 3, x_13); +lean_ctor_set(x_47, 4, x_42); +lean_ctor_set(x_47, 5, x_43); +lean_ctor_set(x_47, 6, x_44); +lean_ctor_set(x_47, 7, x_45); +lean_ctor_set(x_47, 8, x_46); +x_48 = lean_st_ref_set(x_8, x_47, x_31); +lean_dec(x_8); +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_50 = x_48; +} else { + lean_dec_ref(x_48); + x_50 = lean_box(0); +} +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_50; +} +lean_ctor_set(x_51, 0, x_27); +lean_ctor_set(x_51, 1, x_49); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_52 = lean_ctor_get(x_26, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_26, 1); +lean_inc(x_53); +lean_dec(x_26); +x_54 = lean_st_ref_take(x_8, x_53); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = !lean_is_exclusive(x_55); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_ctor_get(x_55, 3); +lean_dec(x_58); +lean_ctor_set(x_55, 3, x_13); +x_59 = lean_st_ref_set(x_8, x_55, x_56); +lean_dec(x_8); +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_59, 0); +lean_dec(x_61); +lean_ctor_set_tag(x_59, 1); +lean_ctor_set(x_59, 0, x_52); +return x_59; +} +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_dec(x_59); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_52); +lean_ctor_set(x_63, 1, x_62); +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; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_64 = lean_ctor_get(x_55, 0); +x_65 = lean_ctor_get(x_55, 1); +x_66 = lean_ctor_get(x_55, 2); +x_67 = lean_ctor_get(x_55, 4); +x_68 = lean_ctor_get(x_55, 5); +x_69 = lean_ctor_get(x_55, 6); +x_70 = lean_ctor_get(x_55, 7); +x_71 = lean_ctor_get(x_55, 8); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_55); +x_72 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_72, 0, x_64); +lean_ctor_set(x_72, 1, x_65); +lean_ctor_set(x_72, 2, x_66); +lean_ctor_set(x_72, 3, x_13); +lean_ctor_set(x_72, 4, x_67); +lean_ctor_set(x_72, 5, x_68); +lean_ctor_set(x_72, 6, x_69); +lean_ctor_set(x_72, 7, x_70); +lean_ctor_set(x_72, 8, x_71); +x_73 = lean_st_ref_set(x_8, x_72, x_56); +lean_dec(x_8); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_75 = x_73; +} else { + lean_dec_ref(x_73); + x_75 = lean_box(0); +} +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); +} else { + x_76 = x_75; + lean_ctor_set_tag(x_76, 1); +} +lean_ctor_set(x_76, 0, x_52); +lean_ctor_set(x_76, 1, x_74); +return x_76; +} +} +} +else +{ +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; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_77 = lean_ctor_get(x_20, 0); +x_78 = lean_ctor_get(x_20, 1); +x_79 = lean_ctor_get(x_20, 2); +x_80 = lean_ctor_get(x_20, 4); +x_81 = lean_ctor_get(x_20, 5); +x_82 = lean_ctor_get(x_20, 6); +x_83 = lean_ctor_get(x_20, 7); +x_84 = lean_ctor_get(x_20, 8); +lean_inc(x_84); +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); +lean_inc(x_79); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_20); +x_85 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_85, 0, x_77); +lean_ctor_set(x_85, 1, x_78); +lean_ctor_set(x_85, 2, x_79); +lean_ctor_set(x_85, 3, x_18); +lean_ctor_set(x_85, 4, x_80); +lean_ctor_set(x_85, 5, x_81); +lean_ctor_set(x_85, 6, x_82); +lean_ctor_set(x_85, 7, x_83); +lean_ctor_set(x_85, 8, x_84); +x_86 = lean_st_ref_set(x_8, x_85, x_21); +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec(x_86); +lean_inc(x_8); +x_88 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_87); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +x_91 = lean_st_ref_take(x_8, x_90); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_94 = lean_ctor_get(x_92, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +x_96 = lean_ctor_get(x_92, 2); +lean_inc(x_96); +x_97 = lean_ctor_get(x_92, 4); +lean_inc(x_97); +x_98 = lean_ctor_get(x_92, 5); +lean_inc(x_98); +x_99 = lean_ctor_get(x_92, 6); +lean_inc(x_99); +x_100 = lean_ctor_get(x_92, 7); +lean_inc(x_100); +x_101 = lean_ctor_get(x_92, 8); +lean_inc(x_101); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + lean_ctor_release(x_92, 2); + lean_ctor_release(x_92, 3); + lean_ctor_release(x_92, 4); + lean_ctor_release(x_92, 5); + lean_ctor_release(x_92, 6); + lean_ctor_release(x_92, 7); + lean_ctor_release(x_92, 8); + x_102 = x_92; +} else { + lean_dec_ref(x_92); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(0, 9, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_94); +lean_ctor_set(x_103, 1, x_95); +lean_ctor_set(x_103, 2, x_96); +lean_ctor_set(x_103, 3, x_13); +lean_ctor_set(x_103, 4, x_97); +lean_ctor_set(x_103, 5, x_98); +lean_ctor_set(x_103, 6, x_99); +lean_ctor_set(x_103, 7, x_100); +lean_ctor_set(x_103, 8, x_101); +x_104 = lean_st_ref_set(x_8, x_103, x_93); +lean_dec(x_8); +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_106 = x_104; +} else { + lean_dec_ref(x_104); + x_106 = lean_box(0); +} +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_106; +} +lean_ctor_set(x_107, 0, x_89); +lean_ctor_set(x_107, 1, x_105); +return x_107; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_108 = lean_ctor_get(x_88, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_88, 1); +lean_inc(x_109); +lean_dec(x_88); +x_110 = lean_st_ref_take(x_8, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_ctor_get(x_111, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_111, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_111, 2); +lean_inc(x_115); +x_116 = lean_ctor_get(x_111, 4); +lean_inc(x_116); +x_117 = lean_ctor_get(x_111, 5); +lean_inc(x_117); +x_118 = lean_ctor_get(x_111, 6); +lean_inc(x_118); +x_119 = lean_ctor_get(x_111, 7); +lean_inc(x_119); +x_120 = lean_ctor_get(x_111, 8); +lean_inc(x_120); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + lean_ctor_release(x_111, 2); + lean_ctor_release(x_111, 3); + lean_ctor_release(x_111, 4); + lean_ctor_release(x_111, 5); + lean_ctor_release(x_111, 6); + lean_ctor_release(x_111, 7); + lean_ctor_release(x_111, 8); + x_121 = x_111; +} else { + lean_dec_ref(x_111); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(0, 9, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_113); +lean_ctor_set(x_122, 1, x_114); +lean_ctor_set(x_122, 2, x_115); +lean_ctor_set(x_122, 3, x_13); +lean_ctor_set(x_122, 4, x_116); +lean_ctor_set(x_122, 5, x_117); +lean_ctor_set(x_122, 6, x_118); +lean_ctor_set(x_122, 7, x_119); +lean_ctor_set(x_122, 8, x_120); +x_123 = lean_st_ref_set(x_8, x_122, x_112); +lean_dec(x_8); +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_125 = x_123; +} else { + lean_dec_ref(x_123); + x_125 = lean_box(0); +} +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(1, 2, 0); +} else { + x_126 = x_125; + lean_ctor_set_tag(x_126, 1); +} +lean_ctor_set(x_126, 0, x_108); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} +} +} +else +{ +lean_object* x_127; +lean_dec(x_13); +lean_dec(x_1); +x_127 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +return x_127; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_registerNormTheorems(x_1, x_2, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; +x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__2; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2(size_t x_1, size_t 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) { _start: { lean_object* x_12; @@ -2925,70 +3398,76 @@ lean_inc(x_9); x_16 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabInitGrindNorm___spec__1(x_15, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = l_Lean_Meta_Grind_registerNormTheorems(x_13, x_17, x_7, x_8, x_9, x_10, x_18); -lean_dec(x_17); -lean_dec(x_13); -return x_19; +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1___boxed), 9, 2); +lean_closure_set(x_19, 0, x_13); +lean_closure_set(x_19, 1, x_17); +x_20 = l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2___closed__1; +x_21 = l_Lean_withDeclNameForAuxNaming___at_Lean_Elab_Tactic_elabInitGrindNorm___spec__2(x_20, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +return x_21; } else { -uint8_t x_20; +uint8_t x_22; lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_20 = !lean_is_exclusive(x_16); -if (x_20 == 0) +lean_dec(x_6); +lean_dec(x_5); +x_22 = !lean_is_exclusive(x_16); +if (x_22 == 0) { return x_16; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_16, 0); -x_22 = lean_ctor_get(x_16, 1); -lean_inc(x_22); -lean_inc(x_21); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_16, 0); +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_inc(x_23); lean_dec(x_16); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } else { -uint8_t x_24; +uint8_t x_26; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); -x_24 = !lean_is_exclusive(x_12); -if (x_24 == 0) +x_26 = !lean_is_exclusive(x_12); +if (x_26 == 0) { return x_12; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_12, 0); -x_26 = lean_ctor_get(x_12, 1); -lean_inc(x_26); -lean_inc(x_25); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_12, 0); +x_28 = lean_ctor_get(x_12, 1); +lean_inc(x_28); +lean_inc(x_27); lean_dec(x_12); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } @@ -3051,7 +3530,7 @@ lean_dec(x_9); x_14 = lean_array_size(x_13); x_15 = lean_box_usize(x_14); x_16 = l_Lean_Elab_Tactic_elabInitGrindNorm___boxed__const__1; -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1___boxed), 11, 4); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2___boxed), 11, 4); lean_closure_set(x_17, 0, x_15); lean_closure_set(x_17, 1, x_16); lean_closure_set(x_17, 2, x_13); @@ -3077,7 +3556,19 @@ lean_dec(x_4); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___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_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___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) { _start: { size_t x_12; size_t x_13; lean_object* x_14; @@ -3085,9 +3576,7 @@ x_12 = lean_unbox_usize(x_1); lean_dec(x_1); x_13 = lean_unbox_usize(x_2); lean_dec(x_2); -x_14 = l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1(x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_6); -lean_dec(x_5); +x_14 = l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2(x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_14; } } @@ -20395,7 +20884,9 @@ lean_mark_persistent(l_Lean_Elab_Tactic_elabResetGrindAttrs___regBuiltin_Lean_El if (builtin) {res = l_Lean_Elab_Tactic_elabResetGrindAttrs___regBuiltin_Lean_Elab_Tactic_elabResetGrindAttrs__1(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Elab_Tactic_elabInitGrindNorm___closed__1 = _init_l_Lean_Elab_Tactic_elabInitGrindNorm___closed__1(); +}l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__2___closed__1); +l_Lean_Elab_Tactic_elabInitGrindNorm___closed__1 = _init_l_Lean_Elab_Tactic_elabInitGrindNorm___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_elabInitGrindNorm___closed__1); l_Lean_Elab_Tactic_elabInitGrindNorm___closed__2 = _init_l_Lean_Elab_Tactic_elabInitGrindNorm___closed__2(); lean_mark_persistent(l_Lean_Elab_Tactic_elabInitGrindNorm___closed__2); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Replace.c b/stage0/stdlib/Lean/Meta/Tactic/Replace.c index 7a66a5f2c9..cdb2cf6593 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Replace.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Replace.c @@ -30,6 +30,7 @@ lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_obj uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_withReverted___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MVarId_revertFrom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_change___lambda__2___closed__3; uint8_t l_Lean_Expr_isLet(lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); @@ -41,7 +42,9 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_clearValue___lambda__2(lean_object*, lean lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_replaceTargetEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_MVarId_withReverted___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_withRevertedFrom___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_modifyTarget___closed__2; lean_object* l_Lean_MVarId_getTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -50,6 +53,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Replace_0__Lean_Meta_repla static lean_object* l_Lean_MVarId_modifyTargetEqLHS___lambda__1___closed__3; static lean_object* l_Lean_MVarId_clearValue___lambda__2___closed__1; lean_object* l_Lean_LocalDecl_setType(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_withRevertedFrom___spec__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* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_withReverted___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -67,8 +71,10 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MVarId_changeLocalDecl lean_object* l_Lean_ForEachExpr_visit___at_Lean_MVarId_replace_findMaxFVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom___rarg___boxed__const__1; LEAN_EXPORT lean_object* l_Lean_MVarId_clearValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom___rarg___lambda__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_changeLocalDecl___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_withReverted___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -155,6 +161,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Replace_0__Lean_Meta_repla static lean_object* l_Lean_MVarId_changeLocalDecl___lambda__1___closed__1; lean_object* lean_array_mk(lean_object*); size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom(lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_change___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); @@ -176,6 +183,7 @@ uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_MVarId_clearValue___lambda__2___closed__2; uint8_t l_Lean_Exception_isRuntime(lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_clearValue___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); static lean_object* l_Lean_MVarId_modifyTarget___closed__1; @@ -3731,6 +3739,703 @@ x_11 = l_Lean_MVarId_withReverted___rarg(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8 return x_11; } } +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_withRevertedFrom___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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) { +_start: +{ +uint8_t x_12; +x_12 = lean_usize_dec_lt(x_5, x_4); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_7); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_6); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_14 = lean_array_uget(x_3, x_5); +x_15 = lean_ctor_get(x_6, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_6, 2); +lean_inc(x_17); +x_18 = lean_nat_dec_lt(x_16, x_17); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_7); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_6); +lean_ctor_set(x_19, 1, x_11); +return x_19; +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_6); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_21 = lean_ctor_get(x_6, 2); +lean_dec(x_21); +x_22 = lean_ctor_get(x_6, 1); +lean_dec(x_22); +x_23 = lean_ctor_get(x_6, 0); +lean_dec(x_23); +x_24 = lean_array_fget(x_15, x_16); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_add(x_16, x_25); +lean_dec(x_16); +lean_ctor_set(x_6, 1, x_26); +if (lean_obj_tag(x_14) == 0) +{ +size_t x_27; size_t x_28; +lean_dec(x_24); +x_27 = 1; +x_28 = lean_usize_add(x_5, x_27); +x_5 = x_28; +goto _start; +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_14); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_14, 0); +lean_inc(x_7); +lean_inc(x_24); +x_32 = l_Lean_FVarId_getUserName(x_24, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_24); +lean_ctor_set(x_35, 2, x_31); +lean_ctor_set_tag(x_14, 10); +lean_ctor_set(x_14, 0, x_35); +x_36 = l_Lean_Elab_pushInfoLeaf___at_Lean_MVarId_withReverted___spec__1(x_14, x_7, x_8, x_9, x_10, x_34); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = 1; +x_39 = lean_usize_add(x_5, x_38); +x_5 = x_39; +x_11 = x_37; +goto _start; +} +else +{ +uint8_t x_41; +lean_free_object(x_14); +lean_dec(x_31); +lean_dec(x_6); +lean_dec(x_24); +lean_dec(x_7); +x_41 = !lean_is_exclusive(x_32); +if (x_41 == 0) +{ +return x_32; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_32, 0); +x_43 = lean_ctor_get(x_32, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_32); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_14, 0); +lean_inc(x_45); +lean_dec(x_14); +lean_inc(x_7); +lean_inc(x_24); +x_46 = l_Lean_FVarId_getUserName(x_24, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; size_t x_53; size_t x_54; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_24); +lean_ctor_set(x_49, 2, x_45); +x_50 = lean_alloc_ctor(10, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = l_Lean_Elab_pushInfoLeaf___at_Lean_MVarId_withReverted___spec__1(x_50, x_7, x_8, x_9, x_10, x_48); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = 1; +x_54 = lean_usize_add(x_5, x_53); +x_5 = x_54; +x_11 = x_52; +goto _start; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_45); +lean_dec(x_6); +lean_dec(x_24); +lean_dec(x_7); +x_56 = lean_ctor_get(x_46, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_46, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_58 = x_46; +} else { + lean_dec_ref(x_46); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); +} else { + x_59 = x_58; +} +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; +} +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_6); +x_60 = lean_array_fget(x_15, x_16); +x_61 = lean_unsigned_to_nat(1u); +x_62 = lean_nat_add(x_16, x_61); +lean_dec(x_16); +x_63 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_63, 0, x_15); +lean_ctor_set(x_63, 1, x_62); +lean_ctor_set(x_63, 2, x_17); +if (lean_obj_tag(x_14) == 0) +{ +size_t x_64; size_t x_65; +lean_dec(x_60); +x_64 = 1; +x_65 = lean_usize_add(x_5, x_64); +x_5 = x_65; +x_6 = x_63; +goto _start; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_14, 0); +lean_inc(x_67); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + x_68 = x_14; +} else { + lean_dec_ref(x_14); + x_68 = lean_box(0); +} +lean_inc(x_7); +lean_inc(x_60); +x_69 = l_Lean_FVarId_getUserName(x_60, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; size_t x_76; size_t x_77; +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_60); +lean_ctor_set(x_72, 2, x_67); +if (lean_is_scalar(x_68)) { + x_73 = lean_alloc_ctor(10, 1, 0); +} else { + x_73 = x_68; + lean_ctor_set_tag(x_73, 10); +} +lean_ctor_set(x_73, 0, x_72); +x_74 = l_Lean_Elab_pushInfoLeaf___at_Lean_MVarId_withReverted___spec__1(x_73, x_7, x_8, x_9, x_10, x_71); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +lean_dec(x_74); +x_76 = 1; +x_77 = lean_usize_add(x_5, x_76); +x_5 = x_77; +x_6 = x_63; +x_11 = x_75; +goto _start; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_63); +lean_dec(x_60); +lean_dec(x_7); +x_79 = lean_ctor_get(x_69, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_69, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_81 = x_69; +} else { + lean_dec_ref(x_69); + x_81 = lean_box(0); +} +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); +} else { + x_82 = x_81; +} +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); +return x_82; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom___rarg___lambda__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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) { +_start: +{ +lean_object* x_11; +x_11 = l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_withRevertedFrom___spec__1(x_1, x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_13); +x_14 = lean_box(0); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) +{ +return x_11; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_11, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_11); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +static lean_object* _init_l_Lean_MVarId_withRevertedFrom___rarg___boxed__const__1() { +_start: +{ +size_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_box_usize(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom___rarg(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) { +_start: +{ +lean_object* x_9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_9 = l_Lean_MVarId_revertFrom(x_1, x_2, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_14 = lean_apply_7(x_3, x_13, x_12, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_array_get_size(x_19); +x_22 = lean_box(0); +x_23 = 0; +x_24 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_25 = l_Lean_Meta_introNCore(x_20, x_21, x_22, x_23, x_24, x_4, x_5, x_6, x_7, x_17); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = !lean_is_exclusive(x_26); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_26, 1); +x_31 = lean_array_get_size(x_29); +x_32 = lean_unsigned_to_nat(0u); +x_33 = l_Array_toSubarray___rarg(x_29, x_32, x_31); +x_34 = lean_box(0); +x_35 = lean_array_size(x_19); +x_36 = lean_box_usize(x_35); +x_37 = l_Lean_MVarId_withRevertedFrom___rarg___boxed__const__1; +x_38 = lean_alloc_closure((void*)(l_Lean_MVarId_withRevertedFrom___rarg___lambda__1___boxed), 10, 5); +lean_closure_set(x_38, 0, x_19); +lean_closure_set(x_38, 1, x_34); +lean_closure_set(x_38, 2, x_36); +lean_closure_set(x_38, 3, x_37); +lean_closure_set(x_38, 4, x_33); +lean_inc(x_30); +x_39 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_30, x_38, x_4, x_5, x_6, x_7, x_27); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_39, 0, x_26); +return x_39; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +lean_ctor_set(x_26, 0, x_18); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_26); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +else +{ +uint8_t x_44; +lean_free_object(x_26); +lean_dec(x_30); +lean_dec(x_18); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +return x_39; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_39); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; size_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_48 = lean_ctor_get(x_26, 0); +x_49 = lean_ctor_get(x_26, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_26); +x_50 = lean_array_get_size(x_48); +x_51 = lean_unsigned_to_nat(0u); +x_52 = l_Array_toSubarray___rarg(x_48, x_51, x_50); +x_53 = lean_box(0); +x_54 = lean_array_size(x_19); +x_55 = lean_box_usize(x_54); +x_56 = l_Lean_MVarId_withRevertedFrom___rarg___boxed__const__1; +x_57 = lean_alloc_closure((void*)(l_Lean_MVarId_withRevertedFrom___rarg___lambda__1___boxed), 10, 5); +lean_closure_set(x_57, 0, x_19); +lean_closure_set(x_57, 1, x_53); +lean_closure_set(x_57, 2, x_55); +lean_closure_set(x_57, 3, x_56); +lean_closure_set(x_57, 4, x_52); +lean_inc(x_49); +x_58 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_49, x_57, x_4, x_5, x_6, x_7, x_27); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_60 = x_58; +} else { + lean_dec_ref(x_58); + x_60 = lean_box(0); +} +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_18); +lean_ctor_set(x_61, 1, x_49); +if (lean_is_scalar(x_60)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_60; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_59); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_49); +lean_dec(x_18); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +uint8_t x_67; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_67 = !lean_is_exclusive(x_25); +if (x_67 == 0) +{ +return x_25; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_25, 0); +x_69 = lean_ctor_get(x_25, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_25); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_14); +if (x_71 == 0) +{ +return x_14; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_14, 0); +x_73 = lean_ctor_get(x_14, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_14); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_75 = !lean_is_exclusive(x_9); +if (x_75 == 0) +{ +return x_9; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_9, 0); +x_77 = lean_ctor_get(x_9, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_9); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_MVarId_withRevertedFrom___rarg), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_withRevertedFrom___spec__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) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_withRevertedFrom___spec__1(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_withRevertedFrom___rarg___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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = l_Lean_MVarId_withRevertedFrom___rarg___lambda__1(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MVarId_changeLocalDecl___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { @@ -5512,73 +6217,96 @@ lean_inc(x_1); x_11 = l_Lean_MVarId_getTag(x_1, x_3, x_4, x_5, x_6, x_10); if (lean_obj_tag(x_11) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); -x_14 = lean_box(0); -lean_inc(x_2); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_2); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_array_mk(x_15); lean_inc(x_1); -x_17 = lean_alloc_closure((void*)(l_Lean_MVarId_clearValue___lambda__4), 11, 4); -lean_closure_set(x_17, 0, x_12); -lean_closure_set(x_17, 1, x_2); -lean_closure_set(x_17, 2, x_8); -lean_closure_set(x_17, 3, x_1); -x_18 = 0; -x_19 = l_Lean_MVarId_withReverted___rarg(x_1, x_16, x_17, x_18, x_3, x_4, x_5, x_6, x_13); -if (lean_obj_tag(x_19) == 0) +lean_inc(x_2); +x_14 = lean_alloc_closure((void*)(l_Lean_MVarId_clearValue___lambda__4), 11, 4); +lean_closure_set(x_14, 0, x_12); +lean_closure_set(x_14, 1, x_2); +lean_closure_set(x_14, 2, x_8); +lean_closure_set(x_14, 3, x_1); +x_15 = l_Lean_MVarId_withRevertedFrom___rarg(x_1, x_2, x_14, x_3, x_4, x_5, x_6, x_13); +if (lean_obj_tag(x_15) == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -lean_ctor_set(x_19, 0, x_22); -return x_19; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +lean_ctor_set(x_15, 0, x_18); +return x_15; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_19, 0); -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_15); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); lean_dec(x_19); -x_25 = lean_ctor_get(x_23, 1); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_15); +if (x_23 == 0) +{ +return x_15; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_15, 0); +x_25 = lean_ctor_get(x_15, 1); lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); +lean_inc(x_24); +lean_dec(x_15); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); return x_26; } } +} else { uint8_t x_27; -x_27 = !lean_is_exclusive(x_19); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_11); if (x_27 == 0) { -return x_19; +return x_11; } else { lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_19, 0); -x_29 = lean_ctor_get(x_19, 1); +x_28 = lean_ctor_get(x_11, 0); +x_29 = lean_ctor_get(x_11, 1); lean_inc(x_29); lean_inc(x_28); -lean_dec(x_19); +lean_dec(x_11); x_30 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); @@ -5595,52 +6323,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_11); +x_31 = !lean_is_exclusive(x_9); if (x_31 == 0) { -return x_11; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_11, 0); -x_33 = lean_ctor_get(x_11, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_11); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -else -{ -uint8_t x_35; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_35 = !lean_is_exclusive(x_9); -if (x_35 == 0) -{ return x_9; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_9, 0); -x_37 = lean_ctor_get(x_9, 1); -lean_inc(x_37); -lean_inc(x_36); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_9, 0); +x_33 = lean_ctor_get(x_9, 1); +lean_inc(x_33); +lean_inc(x_32); lean_dec(x_9); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } @@ -5751,6 +6450,8 @@ l_Lean_Elab_pushInfoLeaf___at_Lean_MVarId_withReverted___spec__1___closed__3 = _ lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_MVarId_withReverted___spec__1___closed__3); l_Lean_MVarId_withReverted___rarg___boxed__const__1 = _init_l_Lean_MVarId_withReverted___rarg___boxed__const__1(); lean_mark_persistent(l_Lean_MVarId_withReverted___rarg___boxed__const__1); +l_Lean_MVarId_withRevertedFrom___rarg___boxed__const__1 = _init_l_Lean_MVarId_withRevertedFrom___rarg___boxed__const__1(); +lean_mark_persistent(l_Lean_MVarId_withRevertedFrom___rarg___boxed__const__1); l_Lean_MVarId_changeLocalDecl___lambda__1___closed__1 = _init_l_Lean_MVarId_changeLocalDecl___lambda__1___closed__1(); lean_mark_persistent(l_Lean_MVarId_changeLocalDecl___lambda__1___closed__1); l_Lean_MVarId_changeLocalDecl___lambda__1___closed__2 = _init_l_Lean_MVarId_changeLocalDecl___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Revert.c b/stage0/stdlib/Lean/Meta/Tactic/Revert.c index bdca8a1c4f..7e86fe21b6 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Revert.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Revert.c @@ -22,6 +22,7 @@ lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_MVarId_revertAfter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_revertAfter___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_MVarId_revert___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_revertFrom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MVarId_revert___spec__2(size_t, size_t, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); @@ -35,6 +36,7 @@ lean_object* l_Lean_MVarId_setKind(lean_object*, uint8_t, lean_object*, lean_obj LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_MVarId_revertAfter___spec__4(lean_object*, lean_object*); lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_revertFrom___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instInhabitedPersistentArrayNode(lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_revert___spec__4___closed__3; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_revert___spec__4___closed__1; @@ -2550,6 +2552,73 @@ lean_dec(x_1); return x_4; } } +LEAN_EXPORT lean_object* l_Lean_MVarId_revertFrom___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) { +_start: +{ +lean_object* x_8; +lean_inc(x_3); +x_8 = l_Lean_FVarId_getDecl(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_ctor_get(x_3, 2); +lean_inc(x_11); +x_12 = l_Lean_LocalDecl_index(x_9); +lean_dec(x_9); +x_13 = l_Lean_MVarId_revert___lambda__2___closed__1; +x_14 = l_Lean_LocalContext_foldlM___at_Lean_MVarId_revertAfter___spec__1(x_11, x_13, x_12); +lean_dec(x_12); +lean_dec(x_11); +x_15 = 1; +x_16 = l_Lean_MVarId_revert(x_2, x_14, x_15, x_15, x_3, x_4, x_5, x_6, x_10); +return x_16; +} +else +{ +uint8_t x_17; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_8); +if (x_17 == 0) +{ +return x_8; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_8, 0); +x_19 = lean_ctor_get(x_8, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_8); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_revertFrom(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_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_revertFrom___lambda__1), 7, 2); +lean_closure_set(x_8, 0, x_2); +lean_closure_set(x_8, 1, x_1); +x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} lean_object* initialize_Lean_Meta_Tactic_Clear(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Revert(uint8_t builtin, lean_object* w) {